create-agent
Что он делает
Этот скилл объясняет, как писать файлы собственных агентов для приложения Forge. Каждый агент — это файл markdown с заголовком настроек и разделом инструкций. Он нужен тем, кто хочет настроить Forge под себя.
Когда использовать
- ✓Когда вы хотите создать нового собственного агента для приложения Forge.
- ✓Когда нужно изменить инструменты или инструкции существующего агента.
- ✓Когда вы хотите понять, как устроены файлы агентов Forge.
Ссылка на скилл
https://github.com/tailcallhq/forgecode/blob/main/.forge/skills/create-agent/SKILL.mdСкопируйте и вставьте её в ваш ИИ (Claude, ChatGPT или Cursor) с просьбой следовать инструкциям.
Как использовать
Самый простой способ: скопируйте сообщение и вставьте его в свой ИИ. Он прочитает скилл и выполнит инструкции.
Готовое сообщение для вставки
Для Claude Code, Codex или Cursor: запустите в папке проекта, и скилл установится.
Скачайте SKILL.md и положите его в папку скиллов вашего агента.
Пример запроса к вашему ИИ
“Можешь создать собственного агента для Forge, который проверяет мой код на проблемы со стилем?”
5 новых скиллов в неделю. 1 минута чтения.
Как это работает
Агент пишет файл markdown с заголовком, в котором названы агент и его инструменты, затем добавляет инструкции в основную часть. Файл сохраняется в папке агентов проекта.
Технический текст (оригинальный SKILL.md)
Оригинальный текст автора на английском, прямо с GitHub.
{{{{raw}}}}
Create Agents
Create and manage agents for the code-forge application. Agents are specialized AI assistants with specific capabilities, tools, and behaviors.
File Location
CRITICAL: All agent files must be created in the <cwd>/.forge/agents directory, where <cwd> is the current working directory of your code-forge project.
- Directory:
<cwd>/.forge/agents - File format:
{agent-id}.md - Example: If your project is at
/home/user/my-project, agents go in/home/user/my-project/.forge/agents/
This is the only location where forge will discover and load custom agents.
Agent File Structure
Every agent file must have:
YAML Frontmatter (required):
id: Unique agent identifiertitle: Agent display namedescription: Detailed description of what the agent doesreasoning: Configuration withenabled: true/falsetools: List of tools the agent can useuser_prompt: Template for user context
Agent Body (required):
- Agent identity and purpose
- Core principles
- Capabilities
- Methodology
- Best practices
- Limitations and boundaries
Example Agent File
---
id: "forge"
title: "Perform technical development tasks"
description: "Hands-on implementation agent that executes software development tasks..."
reasoning:
enabled: true
tools:
- sem_search
- sage
- fs_search
- read
- write
- undo
- remove
- patch
- shell
- fetch
- skill
- mcp_*
user_prompt: |-
<{{event.name}}>{{event.value}}</{{event.name}}>
<system_date>{{current_date}}</system_date>
---
You are Forge, an expert software engineering assistant...
## Core Principles:
...
Complete Sample Agent
This sample demonstrates a complete agent structure:
---
id: "sample-agent"
title: "Sample agent for demonstration"
description: "A sample agent that demonstrates the complete agent file structure with all required fields and common patterns."
reasoning:
enabled: true
tools:
- sem_search
- read
- write
- shell
user_prompt: |-
<{{event.name}}>{{event.value}}</{{event.name}}>
<system_date>{{current_date}}</system_date>
---
You are Sample Agent, a demonstration agent that shows how to structure agent files.
## Core Principles:
1. **Principle 1**: Description of the first core principle
2. **Principle 2**: Description of the second core principle
3. **Principle 3**: Description of the third core principle
## Capabilities:
### Capability Category 1:
- Description of first capability
- Description of second capability
### Capability Category 2:
- Description of third capability
- Description of fourth capability
## Methodology:
### Step 1: First Step
Description of the first step in the methodology.
### Step 2: Second Step
Description of the second step in the methodology.
### Step 3: Third Step
Description of the third step in the methodology.
## Best Practices:
- Best practice 1
- Best practice 2
- Best practice 3
## Limitations and Boundaries:
This agent cannot perform certain tasks. When asked to do so, politely explain the limitations and suggest alternative approaches.
Creating a New Agent
Step 1: Determine Agent Purpose
Identify what the agent should accomplish:
- What is the agent's primary function?
- What tasks will it perform?
- What tools does it need?
- What are its limitations?
- How does it differ from existing agents?
Step 2: Choose Agent ID and Title
Use descriptive IDs and titles:
- ID: Use lowercase with hyphens for multi-word (e.g.,
code-reviewer,test-automation) - Title: Use clear, descriptive text (e.g., "Review code quality", "Automate testing")
Step 3: Write the Agent File
Create the file in the <cwd>/.forge/agents directory with the format: {agent-id}.md
IMPORTANT: The file MUST be in <cwd>/.forge/agents where <cwd> is your current working directory. Agents placed anywhere else will not be discovered by forge.
Frontmatter
---
id: "your-agent-id"
title: "Your Agent Title"
description: "Detailed description of what this agent does, its capabilities, and when to use it."
reasoning:
enabled: true
tools:
- tool1
- tool2
- tool3
user_prompt: |-
<{{event.name}}>{{event.value}}</{{event.name}}>
<system_date>{{current_date}}</system_date>
---
Agent Body
The body should include:
- Agent introduction and identity
- Core principles (typically 5-7 principles)
- Capabilities
Частые вопросы
Куда кладутся файлы агентов?
В папку agents внутри папки forge проекта.
Что должен включать заголовок?
Он включает идентификатор агента, название, описание, настройку рассуждений, инструменты и пользовательский запрос.
Можно ли изменить существующего агента?
Да. Скилл описывает как создание новых файлов агентов, так и изменение существующих.
Подробности
Оригинальное описание автора
Create new agents for the code-forge application. Agents are stored as .md files in the <cwd>/.forge/agents directory with YAML frontmatter (id, title, description, reasoning, tools, user_prompt) and markdown body containing agent instructions. Use when users need to add new agents, modify existing agents, or understand the agent file structure.
repo: tailcallhq/forgecode
Популярность
- Звёзды на GitHub
- 7.6k
- Место в рейтинге
- #13108
- Лицензия
- Apache-2.0
- Обновлён
- 01.11.2026
Комментарии
- …
Другие скиллы из этого репозитория
create-command
7.6kУчит агента создавать повторно используемые команды для приложения Forge, записанные как шаги в markdown, которые выполняются по порядку.
create-github-issue
7.6kПомогает агенту создать задачу на GitHub по собственному шаблону репозитория, с нужными полями и метками.
create-plan
7.6kПомогает агенту написать подробный план реализации сложной задачи с шагами, рисками и альтернативами до любых изменений кода.
github-pr-comments
7.6kПомогает агенту обработать все встроенные комментарии к pull request на GitHub, выполняя каждое запрошенное изменение по очереди.
Похожие скиллы
add-model-provider
394kПомогает агенту подключить нового провайдера ИИ-моделей к OpenClaw безопасными командами, хранить ключи API не в открытом виде и провести живой тест.
acp-router
394kПомогает агенту передать задачу инструменту для программирования, например Claude Code или Cursor, через OpenClaw, чтобы работа шла в этом инструменте.
browser-automation
394kУчит агента пошагово управлять веб-страницами: входить в аккаунты, работать с вкладками и восстанавливаться, если страница перестала отвечать.