Synthèse automatique
Crée, valide et audite des fichiers de définition d'agents au format Markdown avec frontmatter, en respectant les conventions Forge.
Points forts
- Automatise la création d'agents conformes aux conventions de nommage et de structure.
- Valide les fichiers pour garantir l'intégrité des métadonnées (nom, description, version).
- Permet un audit global de tous les agents pour détecter les incohérences.
Limites
- Nécessite que les conventions Forge soient déjà en place.
- Ne gère pas la configuration de déploiement (modèle, outils) qui est externalisée dans defaults.yaml.
Lorsque vous devez créer un nouvel agent, vérifier la conformité d'un agent existant, ou auditer l'ensemble des agents d'un projet.
Pour des tâches de développement générales sans lien avec la création ou la maintenance d'agents.
Analyse de sécurité
SûrThe skill instructs on creating, validating, and auditing agent markdown files; no dangerous commands or data exfiltration risks are present. The mentioned deployment commands (make install-agents) are part of a legitimate workflow and pose no inherent threat.
Aucun point d'attention détecté
Comment cette analyse est faiteExemples
Create a new agent named 'CodeReviewer' that reviews pull requests for code quality and security issues.Validate the agent file at /agents/SecurityArchitect.md for compliance with forge conventions.Audit all agent definitions in the agents/ directory and report any naming or field issues.name: BuildAgent version: 0.1.0 description: "Create, validate, or audit agent definitions. USE WHEN create agent, new agent, build agent, scaffold agent, validate agent, audit agents, agent conventions, agent frontmatter."
BuildAgent
Scaffold, validate, and audit agent markdown files following forge conventions. Agents are markdown files with frontmatter that deploy to provider-specific directories via install-agents.
Workflow Routing
| Workflow | Trigger | Section | |----------|---------|---------| | Create | "create agent", "new agent", "build agent" | Create Workflow | | Validate | "validate agent", "check agent" | Validate Workflow | | Audit | "audit agents", "check all agents" | Audit Workflow |
Agent Conventions
Naming
All agent identifiers use PascalCase with no spaces, hyphens, or abbreviations:
| Field | Format | Example |
|-------|--------|---------|
| name | PascalCase | SecurityArchitect |
| Source filename | PascalCase.md | SecurityArchitect.md |
| Deployed filename | PascalCase.md | ~/.claude/agents/SecurityArchitect.md |
| Task subagent_type | PascalCase | subagent_type: "SecurityArchitect" |
Rules:
- No spaces:
GameMasternotGame Master - No hyphens:
SecurityArchitectnotsecurity-architect - No abbreviations:
DocumentationWriternotDocWriter - Compound terms keep internal caps:
DevOpsstaysDevOps - Single words capitalize first letter:
Ghostwriter,Opponent
Where Agents Live
| Location | Purpose |
|----------|---------|
| agents/ | Module agents (shipped with the module) |
| User vault workspace | Personal agents |
Agent name must be unique across all locations -- sync overwrites by name.
Module Agent Frontmatter
Module agents use flat frontmatter -- deployment config (model, tools) lives in defaults.yaml, not in the agent file:
---
name: AgentName
description: "Role -- capabilities. USE WHEN trigger phrases."
version: 0.1.0
---
Field reference:
| Field | Required | Notes |
|-------|----------|-------|
| name | Yes | PascalCase, matches filename |
| description | Yes | Pattern: "Role -- capabilities. USE WHEN triggers." |
| version | Yes | Semantic version |
Model and tool assignments live in defaults.yaml (map format, keyed by agent name):
agents:
SecurityArchitect:
model: fast
tools: Read, Grep, Glob, Bash
Semantic model tiers:
| Tier | Maps to | Use for | |------|---------|---------| | fast | sonnet / gemini-2.0-flash | Implementation, analysis, most specialist work | | strong | opus / gemini-2.5-pro | Deep reasoning, critical decisions |
Model tiers resolve to concrete model IDs via the providers: section in defaults.yaml. Each provider maps fast and strong to its own model.
Body Structure
> One-line summary of role and scope. Shipped with forge-{module}.
## Role
2-3 sentences. Who is this agent? What perspective does it bring?
## Expertise
- Domain 1
- Domain 2
- Domain 3
- Domain 4
- Domain 5
## Instructions
### When Reviewing Code (or contextual heading)
1. Numbered steps. Concrete, actionable, ordered.
2. ...
### When Designing or Planning (or contextual heading)
1. Numbered steps for alternative modes.
2. ...
## Output Format
Structured template for findings using markdown headings.
## Constraints
- Stay focused on your assigned domain -- don't review areas outside your expertise
- Reference specific files and line numbers
- If your domain is solid, say so -- don't invent problems
- Every critique must include a concrete suggestion
- Communicate findings to the team lead via SendMessage when done
Body guidelines:
- Lead with a blockquote summary (
> ...). End with "Shipped with forge-{module}." for module agents. - Keep Role to 2-3 sentences. Don't pad with generic filler.
- Expertise: 4-6 concrete domains, not abstract qualities
- Instructions: numbered, actionable, in priority order
- Total body: 50-80 lines. Under 40 is too thin, over 100 is bloated.
Mandatory constraint clauses:
- Honesty clause: "If the [domain] is solid, say so -- don't invent problems. Every critique must include a concrete suggestion."
- Team communication clause (council/team agents): "Communicate findings to the team lead via SendMessage when done."
Example data rule: All examples must use synthetic data (Jane Doe, jdoe@example.com, Acme Corp). Never use real PII -- agent files deploy to public repos.
Deployment
Module agents deploy via install-agents from forge-lib:
make install-agents # all providers
lib/bin/install-agents agents --scope user # user-level install
Provider-specific behaviour:
| Provider | Format | Notes |
|----------|--------|-------|
| Claude | .md | Frontmatter + body, model/tools from defaults.yaml |
| Gemini | .md | Name slugified (e.g., code-helper), tools mapped to Gemini equivalents |
| Codex | .toml | TOML config in .codex/config.toml, agent prompt in .codex/agents/ |
| OpenCode | .md | Same format as Claude |
Deployment adds a # synced-from: OriginalFilename.md header for provenance tracking. Tool mapping to provider equivalents happens automatically.
Critical: install-agents reads provider keys from the providers: section in defaults.yaml to determine deployment targets. If a provider is missing from providers:, agents will not deploy there.
User-created detection: If an agent file already exists in the target directory without a # synced-from: header, install-agents skips it to avoid overwriting user-created agents. When migrating from a committed provider dir to agents/ source: delete the old file from disk first, then run make install-agents.
Create Workflow
Step 1: Understand the agent
Determine:
- What role does this agent fill?
- What domain expertise does it need?
- Is it standalone or part of a team (like council)?
- What tools does it need? (Read-only? Full access?)
- What model tier? (fast for most work, strong for reasoning)
If unclear, ask using AskUserQuestion.
Step 2: Choose the location
| Scenario | Location |
|----------|----------|
| Part of a forge module | agents/AgentName.md |
| Personal agent | User vault workspace |
Step 3: Check for naming conflicts
The name must be unique across all source directories.
Step 4: Write the agent file
Follow the frontmatter and body structure from Agent Conventions.
Step 5: Deploy
make install-agents
Step 6: Verify
The agent will be available as a subagent_type after restarting the session.
Validate Workflow
Step 1: Read the agent file
Step 2: Check frontmatter
- [ ]
namepresent and uses PascalCase - [ ]
namehas no spaces, hyphens, or abbreviations - [ ]
namematches the filename (without .md) - [ ]
descriptionfollows pattern:"Role -- capabilities. USE WHEN triggers." - [ ]
versionpresent
Step 3: Check body structure
- [ ] Starts with blockquote summary (
> ...) - [ ] Has Role section (2-3 sentences)
- [ ] Has Expertise section (4-6 items)
- [ ] Has Instructions with actionable numbered steps
- [ ] Has Output Format with structured template
- [ ] Has Constraints with scope boundaries
- [ ] Constraints include honesty clause
- [ ] No real PII in examples
- [ ] Total length is 50-80 lines
Step 4: Report
COMPLIANT or NON-COMPLIANT with specific issues and fixes.
Audit Workflow
Step 1: Scan all agent sources
ls agents/*.md
Step 2: Check each agent
Run the Validate workflow checklist against every agent. Report:
| Agent | Name OK | FM OK | Body OK | Issues | |-------|---------|-------|---------|--------| | Developer | Y | Y | Y | -- | | ... | ... | ... | ... | ... |
Step 3: Check for conflicts
- Duplicate
namevalues - Names that don't follow PascalCase
- For module agents: verify defaults.yaml lists all agents in roster
- For module agents: verify deployed model/tools match defaults.yaml
Step 4: Report summary
Total agents, compliant count, issues found, recommended fixes.
Constraints
- Never create an agent without
namein frontmatter - Always use PascalCase for agent names -- non-negotiable
- Model and tool config belongs in defaults.yaml, not agent frontmatter
- Agent descriptions must follow pattern:
"Role -- capabilities. USE WHEN triggers." - For council/team agents, include scope note in description
- After creating or modifying agents, deploy to see changes
Du fichier au premier essai
Le téléchargement contient exactement le contenu affiché sur cette fiche. Cette copie peut différer de la dernière version du dépôt source.
Consulter la source et ses fichiers annexesCe téléchargement contient uniquement SKILL.md. Les scripts, références, modèles et dépendances éventuels ne sont pas inclus. Récupérez les fichiers nécessaires depuis la source en conservant leur arborescence avant de poursuivre.
1. Télécharger le fichier
Télécharger SKILL.mdDepuis la racine d’un projet de test, enregistrez le fichier sous .skill-downloads/agent-builder-and-validator-mm78no4p/SKILL.md, ou utilisez la commande suivante. Ce dossier sert à examiner la skill avant son installation.
Commande pour macOS/Linux ou WSL : un shell POSIX et curl sont nécessaires. Sous Windows sans WSL, utilisez le bouton de téléchargement et créez le dossier manuellement.
mkdir -p '.skill-downloads/agent-builder-and-validator-mm78no4p' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/agent-builder-and-validator-mm78no4p/download' --output '.skill-downloads/agent-builder-and-validator-mm78no4p/SKILL.md.part' && mv '.skill-downloads/agent-builder-and-validator-mm78no4p/SKILL.md.part' '.skill-downloads/agent-builder-and-validator-mm78no4p/SKILL.md'2. Vérifier les prérequis
Lisez SKILL.md avant de l’utiliser. Si le fichier cite des scripts ou services externes, examinez-les et préparez les accès nécessaires dans votre environnement de test.
Aucune section de prérequis reconnue dans ce fichier. Cela ne signifie pas qu’il est autonome : les bibliothèques, outils et accès peuvent être cités ailleurs dans le contenu ou dans le dépôt source.
Les plateformes de la fiche sont des indications du catalogue. Les chemins ci-dessous suivent la documentation des outils ; ils ne prouvent pas que cette skill y a été exécutée. Aucune version minimale de ces outils n’est attestée pour cette fiche.
3. Charger la skill
Le fichier ne fournit pas un en-tête name/description exploitable pour cette procédure native. Le téléchargement reste disponible pour lecture ; utilisez le mode manuel ci-dessous.
Mode manuel ou autre outil : joignez SKILL.md à une conversation, ou ouvrez-le dans un agent capable de lire les fichiers. Ajoutez les ressources annexes nécessaires. Il n’existe pas de dossier universel reconnu par tous les outils.
4. Faire un premier essai
Utilisez une entrée courte et fictive : un endpoint d’API, un petit document ou un brief d’interface. Dans une nouvelle conversation, joignez le fichier ou donnez son chemin à l’agent, puis adaptez cette demande :
Lis .skill-downloads/agent-builder-and-validator-mm78no4p/SKILL.md et applique ses instructions à cet exemple : [décrire une entrée de test]. Indique les fichiers, dépendances ou accès qui manquent. Produis le résultat demandé par la skill sans inventer de données ni exécuter de script non examiné.Résultat attendu : une sortie correspondant aux instructions de la skill, ou une liste précise des prérequis manquants. Une simple confirmation de lecture ne valide pas le premier usage. Si une ressource externe est indisponible, ce parcours reste à tester.
Bonnes pratiques React Hook Form
Developpement
Maîtrisez React Hook Form : évitez les anti-patterns, gérez les abonnements, et traitez correctement reset, dirty state et entrées contrôlées.
Migration Emotion vers Mantine
Developpement
Migrer les styled-components Emotion vers des composants Mantine avec style props et modules CSS. Pour convertir .styled.tsx ou supprimer les imports @emotion.
Détecteur de dérive de périmètre
Developpement
Analyse les diffs git par rapport à une intention pour détecter la dérive de périmètre, fichiers non liés et PR trop larges, puis suggère de garder, diviser ou justifier.