create-agent
Ce qu’il fait
Cette compétence explique comment écrire des fichiers d'agents personnalisés pour l'application de code Forge. Chaque agent est un fichier markdown avec un en-tête de réglages et un corps d'instructions. Elle s'adresse aux personnes qui veulent personnaliser Forge.
Quand l’utiliser
- ✓Quand vous voulez créer un nouvel agent personnalisé pour l'application Forge.
- ✓Quand vous devez modifier les outils ou les instructions d'un agent existant.
- ✓Quand vous voulez comprendre comment sont structurés les fichiers d'agents de Forge.
Lien du skill
https://github.com/tailcallhq/forgecode/blob/main/.forge/skills/create-agent/SKILL.mdCopiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.
Comment l’utiliser
Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.
Message prêt à coller
Pour Claude Code, Codex ou Cursor : lancez-la dans le dossier du projet et le skill est installé.
Téléchargez le SKILL.md et placez-le dans le dossier de skills de votre agent.
Exemple de demande à votre IA
“Peux-tu créer un agent personnalisé pour Forge qui relève les problèmes de style dans mon code ?”
5 nouveaux skills par semaine. 1 minute de lecture.
Comment ça marche
L'agent écrit un fichier markdown avec un en-tête qui indique le nom de l'agent et ses outils, puis ajoute les instructions dans le corps. Le fichier est enregistré dans le dossier d'agents du projet.
Contenu technique (SKILL.md original)
Texte original de l’auteur, en anglais, directement depuis 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
Questions fréquentes
Où sont enregistrés les fichiers d'agents ?
Ils sont placés dans un dossier agents, à l'intérieur du dossier forge du projet.
Que doit contenir l'en-tête ?
Il contient l'identifiant de l'agent, son titre, sa description, le niveau de raisonnement, les outils et l'invite utilisateur.
Peut-on modifier un agent existant ?
Oui. La compétence couvre la modification d'un fichier d'agent existant comme la création d'un nouveau.
Détails
Description originale de l’auteur
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
Popularité
- Étoiles GitHub
- 7.6k
- Position au classement
- #13108
- Licence
- Apache-2.0
- Mis à jour
- 01/11/2026
Commentaires
- …
Autres skills de ce dépôt
create-command
7.6kApprend à votre agent à créer des commandes réutilisables pour l'application de code Forge, écrites en étapes markdown exécutées dans l'ordre.
create-github-issue
7.6kAide votre agent à ouvrir une issue GitHub qui suit le modèle d'issue du dépôt, avec les bons champs et les bons libellés.
create-plan
7.6kAide votre agent à rédiger un plan de mise en œuvre détaillé pour une tâche complexe, avec étapes, risques et alternatives, avant toute modification du code.
github-pr-comments
7.6kAide votre agent à traiter chaque commentaire en ligne d'une demande de fusion GitHub, en appliquant les modifications demandées une à une.
Skills similaires
add-model-provider
394kPermet à votre agent de connecter un nouveau fournisseur de modèles IA à OpenClaw par des commandes sûres, sans clé en clair, puis de lancer un test.
acp-router
394kAide votre agent à envoyer une tâche à un assistant de code comme Claude Code ou Cursor via OpenClaw, afin que le travail s'exécute dans cet outil.
browser-automation
394kApprend à votre agent à piloter des pages web étape par étape, y compris les connexions, les onglets et la reprise lorsqu'une page ne répond plus.