home / skills / openclaw / skills / agent-factory

agent-factory skill

/skills/tevfikgulep/agent-factory

This skill creates new agents, switches between them, and auto-updates the config to streamline task delegation.

npx playbooks add skill openclaw/skills --skill agent-factory

Review the files below or copy the command above to add this skill to your agents.

Files (3)
SKILL.md
3.8 KB
---
name: agent-factory
description: |
  Ajan oluşturma ve ajanlar arası geçiş (v1.0.5 - chromium destekli + tüm yetenekler).
  Kullanım:
  - /create_agent İsim - Yeni ajan oluşturur ve config'e ekler
  - /switch ajan-id - Ajan değiştirir
---

# Agent Factory

Ajan yönetimi için kullanılır: ajan oluşturma ve ajanlar arası geçiş.

## 1. /create_agent Komutu

Yeni ajan oluşturmak için:

```
/create_agent Muhasebeci
/create_agent Coderman
/create_agent Analist
```

### Parametreler

- **İsim**: Ajanın görünen adı
- **Emoji**: Varsayılan: 🤖
- **Görev**: Varsayılan: "Kullanıcıya yardımcı olmak"

### Script Kullanımı

```bash
/home/ubuntu/.openclaw/workspace/skills/agent-factory/scripts/create_agent.sh \
  --id "ajan-id" \
  --name "İsim" \
  --emoji "⚙️" \
  --task "Görev tanımı"
```

### Oluşturulan Dosyalar

Script otomatik olarak oluşturur:

- IDENTITY.md - Kimlik kartı
- SOUL.md - Görev ve davranış kuralları
- USER.md - Kullanıcı bilgileri
- AGENTS.md - Çalışma kuralları
- TOOLS.md - Araçlar
- MEMORY.md - Uzun süreli hafıza
- HEARTBEAT.md - Boş (heartbeat kapalı)
- cron/README.md - Cron dosyaları için şablon
- cron/ornek.py - Örnek cron scripti

## ⚡ Tüm Ajanların Otomatik Eriştiği Yetenekler

Yeni oluşturulan her ajan aşağıdaki yeteneklere sahiptir:

### 1. Web Search (Brave API)

- Tüm ajanlar web araması yapabilir
- API Key: Gateway config'de tanımlı
- Kullanım: `web_search` tool

### 2. Browser (Chromium)

Her ajan tarayıcı kontrolü yapabilir:

#### Screenshot Almak için:

```bash
# Browser snapshot
browser action=snapshot profile=openclaw targetUrl=https://orneksite.com
```

#### Web Sayfası Taramak için:

```bash
# Sayfa içeriğini çek
browser action=open profile=openclaw targetUrl=https://orneksite.com
browser action=snapshot profile=openclaw
```

#### Etkileşim (tıklama, form doldurma):

```bash
browser action=act profile=openclaw request='{"kind": "click", "ref": "button-id"}'
browser action=act profile=openclaw request='{"kind": "type", "ref": "input-id", "text": "değer"}'
```

**Not:** `profile=openclaw` izole browser için, `profile=chrome` mevcut Chrome sekmeleri için.

### 3. Web Fetch

- Hafif HTML içerik çekme (API yanıtları için)
- Kullanım: `web_fetch` tool

### 4. Google Sheets (gog)

- Sheets okuma/yazma
- Kullanım: gog CLI

### 5. Cron Jobs

- Her ajan kendi cron job'unu oluşturabilir
- cron/ klasörü otomatik oluşturulur

## 2. /switch Komutu

Ajan değiştirmek için:

```
/switch angarya
/switch main
```

### Alternatif Yöntemler

**Telegram'da:**

- `angarya: <mesaj>` - Ajan'a doğrudan mesaj
- `/pm angarya <mesaj>` - Aynı işlev

**Sub-agent olarak:**

- "Angarya'ya şunu yaptır: ..." → Ajanı çağırır

## 3. Ajanlara Görev Gönderme

Sen benim üzerinden başka ajanlara görev gönderebilirsin:

```
Angarya'ya sor ne yapıyor
Angarya'ya şunu yaptır: çalışan servisleri kontrol et
```

## 4. Varsayılan Modeller

Yeni ajan, OpenClaw'ın ana ajanının varsayılan modellerini kullanır:

Bu modeller, OpenClaw'ın kendi varsayılan model ayarlarıdır — bu skill'i kuran herkes kendi OpenClaw'ındaki model yapılandırmasını kullanır.

## Örnek Kullanımlar

| Komut                            | Açıklama                        |
| -------------------------------- | ------------------------------- |
| `/create_agent Muhasebeci`       | Yeni ajan oluştur               |
| `/switch angarya`                | Angarya'ya geç                  |
| `angarya: merhaba`               | Angarya'ya mesaj gönder         |
| "Angarya'ya sor ne yapıyor"      | Angarya'nın durumunu kontrol et |
| "Angarya'ya şunu yaptır: ls -la" | Angarya'ya görev ver            |

## Not

- Oluşturulan ajanlar config'e otomatik eklenir
- Gateway restart gerekir: /restart

Overview

This skill provides an agent factory for creating and switching between agents, with automatic config updates. It exposes simple commands to create new agents, switch active agents, and forward tasks between agents. Created agents include ready-made files for identity, behavior, tools, and memory.

How this skill works

Use /create_agent <Name> to generate a new agent; the skill runs a script that creates identity, task, user, tools, memory, and runtime files and appends the agent to the system config. Use /switch <agent-id> to change the active agent. Messages prefixed with <agent-id>: or routed via /pm forward to specific agents or call them as sub-agents.

When to use it

  • When you need to quickly spin up role-focused agents (e.g., accountant, developer, analyst).
  • When managing multiple agents and switching context frequently.
  • When delegating tasks to distinct agents or having agents act as sub-agents.
  • When you want automatic config updates so agents appear in system listings.
  • When you need default model fallbacks configured by the environment.

Best practices

  • Pick clear, concise agent names that reflect role and responsibility.
  • Provide a short task description on creation to seed agent behavior and SOUL.md content.
  • Verify created files (IDENTITY.md, SOUL.md, USER.md, TOOLS.md, MEMORY.md) and edit them for custom behavior.
  • Use /switch to keep interactions scoped to the intended agent and avoid cross-talk.
  • Restart the gateway after installing or making major config changes to ensure updates take effect.

Example use cases

  • /create_agent Accountant — create an accounting assistant with default task and emoji.
  • /switch angarya — change the active agent to angarya for focused interaction.
  • angarya: hello — send a direct message to a specific agent in chat or Telegram.
  • Ask one agent to task another: “Ask angarya what it is doing” to query agent status.
  • Run the create_agent script in automation to batch-provision role-based agents for a team.

FAQ

What files are created when I make a new agent?

The script generates IDENTITY.md, SOUL.md, USER.md, AGENTS.md, TOOLS.md, MEMORY.md, and an empty HEARTBEAT.md.

Do created agents update system config automatically?

Yes. New agents are appended to the config automatically; a gateway restart may be required to apply runtime changes.

Which models do new agents use by default?

They inherit the host OpenClaw defaults (primary and several fallbacks). The exact model set depends on your OpenClaw configuration.