agent-claude-code-extension-builder
Skill28 starsChanged 14 days agoMITView on GitHub
Construction d'extensions et skills pour Claude Code — slash commands, hooks, intégration MCP et commandes personnalisées. Se déclenche avec "extension Claude Code", "skill Claude", "slash command", "Claude Code plugin", "custom command Claude". Also triggers on "build a Claude Code plugin", "custom slash command", "Claude Code hooks".
- Reads credentials
- Deletes or force-pushes
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 4 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 257
Never say "happy to help", "sure!", "great question", "let me", or similar.
- Distinctive: line 260
Stop when done. No summary, no recap, no trailing commentary.
- Distinctive: line 261
No politeness wrappers. Direct and blunt.
- Distinctive: line 264
No emoji unless asked.
≈ “Common” is an estimate: at least 1 in 5 of the 308,232 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Claude Code Extension Builder
Critères de décision — quel type d'extension créer ?
| Besoin | Type d'extension |
| Réutiliser un workflow de prompt | Skill (SKILL.md) |
| Déclencher une action sur événement Claude | Hook (.claude/settings.json) |
| Exposer un outil externe (DB, API, fs) | Serveur MCP |
| Composer plusieurs skills en une commande | Slash command custom |
Workflow en étapes
1. Analyser le besoin
- Identifier le workflow répétitif ou l'outil à connecter.
- Répondre à : déclenchement automatique ou à la demande ? sortie texte, fichier, ou action ?
- Choisir le type (tableau ci-dessus) avant toute implémentation.
2. Créer un Skill (SKILL.md)
Structure minimale obligatoire :
---
name: mon-skill # kebab-case, unique dans la collection
description: Une ligne, termine avec les phrases de déclenchement entre guillemets. Se déclenche avec "mot-clé A", "mot-clé B".
---
# Mon Skill
## Workflow
1. **Étape 1** — description actionnable.
2. **Étape 2** — ...
## Règles
- Règle 1 (obligatoire, concise).Bonnes pratiques :
name= identifiant technique → dossieragent-skills/<category>/<name>/SKILL.md.description: ≤ 2 phrases ; les triggers entre guillemets couvrent les synonymes naturels de l'utilisateur.- Corps : 80-180 lignes, pas de section
## Communication Rules(ajoutée automatiquement). - Langue : français, termes techniques en anglais.
Arborescence collection :
agent-skills/
dev/
mon-skill/
SKILL.md
devops/
...3. Configurer des Hooks
Les hooks interceptent les événements Claude Code pour automatiser des actions.
Fichier : .claude/settings.json (projet) ou ~/.claude/settings.json (global).
{
"hooks": {
"PreToolUse": [
{
"matcher": "Bash",
"hooks": [
{
"type": "command",
"command": "echo '[hook] commande bash interceptée'"
}
]
}
],
"PostToolUse": [
{
"matcher": "Write",
"hooks": [
{
"type": "command",
"command": "npx prettier --write $CLAUDE_TOOL_INPUT_FILE_PATH"
}
]
}
],
"Stop": [
{
"hooks": [
{
"type": "command",
"command": "node scripts/notify-slack.js"
}
]
}
]
}
}Événements disponibles : PreToolUse, PostToolUse, Notification, Stop.
Variables d'environnement injectées :
CLAUDE_TOOL_NAME— nom de l'outil utiliséCLAUDE_TOOL_INPUT_FILE_PATH— chemin fichier (si applicable)CLAUDE_SESSION_ID— id de session en cours
Cas d'usage typiques :
PostToolUse+Write→ auto-format, lint, tests unitaires.PreToolUse+Bash→ bloquer des commandes dangereuses (rm -rf).Stop→ notification Slack/Teams à la fin de chaque session.
4. Intégrer un serveur MCP
Configuration dans ~/.claude/claude_desktop_config.json :
{
"mcpServers": {
"mon-serveur": {
"command": "node",
"args": ["/chemin/vers/mon-serveur/index.js"],
"env": {
"API_KEY": "xxxx"
}
}
}
}Squelette de serveur MCP (Node.js + SDK officiel) :
import { Server } from "@modelcontextprotocol/sdk/server/index.js";
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
const server = new Server({ name: "mon-serveur", version: "1.0.0" }, {
capabilities: { tools: {} }
});
server.setRequestHandler("tools/list", async () => ({
tools: [{
name: "mon_outil",
description: "Description courte de l'outil",
inputSchema: {
type: "object",
properties: { param: { type: "string", description: "Paramètre" } },
required: ["param"]
}
}]
}));
server.setRequestHandler("tools/call", async (request) => {
if (request.params.name === "mon_outil") {
const result = await faireQuelqueChose(request.params.arguments.param);
return { content: [{ type: "text", text: result }] };
}
});
await server.connect(new StdioServerTransport());Vérifier la connexion :
claude mcp list # lister les serveurs configurés
claude mcp get mon-serveur # détails et outils exposés5. Créer une Slash Command custom
Les slash commands combinent plusieurs skills ou enchaînent des instructions complexes.
Emplacement : .claude/commands/<nom-commande>.md
# /mon-workflow
Effectue les étapes suivantes dans l'ordre :
1. Appelle le skill `code-review` sur les fichiers modifiés.
2. Génère un changelog depuis les commits non publiés.
3. Propose un bump de version sémantique.
Arguments : `$ARGUMENTS` (optionnels, transmis à chaque étape).Invoquer dans Claude Code : /mon-workflow ou /mon-workflow fix bug login.
6. Tester l'extension
# Lancer Claude Code en mode verbeux pour voir les hooks déclenchés
claude --debug
# Tester un skill manuellement
claude "utilise le skill mon-skill pour analyser ce fichier"
# Valider la structure frontmatter d'un SKILL.md
head -5 agent-skills/dev/mon-skill/SKILL.mdChecklist de validation :
- Les triggers déclenchent le skill et pas un autre.
- Le workflow est exécutable sans ambiguïté.
- Les hooks ne cassent pas les outils existants.
- Le serveur MCP répond dans
claude mcp get. - La slash command passe les arguments correctement.
Garde-fous / Anti-patterns / Pièges
| Anti-pattern | Conséquence | Correctif | ||
Triggers trop génériques ("aide", "code") | Déclenchements non voulus | Triggers spécifiques de 2-3 mots | ||
| Hook sans gestion d'erreur | Claude bloqué si le script plante | `command | trueoutry/catch` | |
| MCP server avec timeout élevé | Ralentissement de toutes les sessions | Timeout ≤ 5 s, async non-bloquant | ||
Sections ## Communication Rules dans le corps | Doublon cassant le skill | Supprimer — section auto-injectée | ||
name avec espaces ou majuscules | Problème de résolution du skill | Toujours kebab-case | ||
| Skill > 200 lignes | Dilution des instructions clés | Découper en sous-skills dédiés | ||
Pas de required dans le schema MCP | Paramètres silencieusement ignorés | Toujours déclarer required: [...] |
Bonnes pratiques 2026
- Versionner la collection skills dans Git avec un
CHANGELOG.mdpar skill modifié. - Un dossier = un skill : pas de SKILL.md racine regroupant plusieurs skills.
- Nommer les hooks de façon unique pour faciliter le debug (
"id": "format-on-write"). - Préférer
stdioauhttppour les serveurs MCP locaux (pas de gestion de port). - Documenter les dépendances dans le SKILL.md lui-même (ex:
# Prérequis : node ≥ 20, jq). - Tester en isolation : désactiver les autres hooks pour valider un hook seul.
Communication Rules — MANDATORY
- Ultra-concise. No filler, no preamble, no pleasantries.
- Never say "happy to help", "sure!", "great question", "let me", or similar.
- Tool first, talk second. Act before explaining.
- Result first. Lead with outcome, not process.
- Stop when done. No summary, no recap, no trailing commentary.
- No politeness wrappers. Direct and blunt.
- Minimum words. If one word works, do not use ten.
- No unsolicited explanations.
- No emoji unless asked.
In this repository347 other files it gives its agents.
- agent-a2a-protocol-guideSkill
- agent-agent-observabilitySkill
- agent-api-caller-subagentSkill
- agent-autogen-guideSkill
- agent-browser-agent-builderSkill
- agent-code-review-subagentSkill
- agent-coding-agent-builderSkill
- agent-conflict-resolverSkill
- agent-consensus-builderSkill
- agent-context-managerSkill
- agent-cost-optimizerSkill
- agent-crewai-expertSkill
- agent-customer-support-agentSkill
- agent-data-analyst-agentSkill
- agent-database-query-subagentSkill
- agent-deployment-guideSkill
- agent-email-agent-builderSkill
- agent-evaluation-frameworkSkill
- agent-file-processor-subagentSkill
- agent-handoff-designerSkill
- agent-hierarchy-designerSkill
- agent-human-in-the-loop-designerSkill
- agent-langgraph-designerSkill
- agent-load-balancerSkill
- agent-marketplace-creatorSkill
- agent-mcp-server-builderSkill
- agent-memory-designerSkill
- agent-message-protocolSkill
- agent-monitoring-setupSkill
- agent-multi-agent-orchestratorSkill
- agent-openai-assistants-builderSkill
- agent-pipeline-composerSkill
- agent-pool-managerSkill
- agent-prompt-tunerSkill
- agent-research-agent-designerSkill
- agent-result-aggregatorSkill
- agent-retry-strategistSkill
- agent-sales-agent-builderSkill
- agent-security-hardenerSkill
- agent-semantic-kernel-guideSkill
- agent-skill-creatorSkill
- agent-skill-routerSkill
- agent-spawnerSkill
- agent-state-synchronizerSkill
- agent-subagent-delegatorSkill
- agent-supervisor-builderSkill
- agent-task-decomposerSkill
- agent-testing-frameworkSkill
- agent-tool-calling-architectSkill
- agent-voice-agent-builderSkill
- agent-web-scraper-subagentSkill
- agent-workflow-automation-agentSkill
- ai-ml-anomaly-detection-builderSkill
- ai-ml-computer-vision-guideSkill
- ai-ml-dataset-builderSkill
- ai-ml-ml-experiment-trackerSkill
- ai-ml-model-fine-tunerSkill
- ai-ml-model-optimization-guideSkill
- ai-ml-nlp-pipeline-designerSkill
- api-gateway-kong-api-gatewaySkill
- The first 60 shown.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

