Synthèse automatique
Ce skill guide la rédaction, la révision et l'amélioration des commandes slash Claude Code qui délèguent à des agents ou des skills.
Points forts
- Pose une règle claire et mémorisable : les commandes délèguent, elles n'implémentent pas
- Distingue explicitement commande (invocation utilisateur) et skill (déclenchement automatique)
- Fournit des fichiers de référence détaillés (patrons de conception, processus en 7 étapes, exemples analysés)
- Couvre les éléments obligatoires et optionnels de la structure d'une commande, et les deux formats simple/détaillé
Limites
- Très centré sur l'écosystème Claude Code (champs frontmatter, /help, allowed-tools) et peu transposable tel quel
- Ne traite pas en détail la gestion des arguments ni le versionnement des commandes dans le texte visible
- Suppose que l'utilisateur dispose déjà d'agents ou de skills cibles à déléguer
À utiliser lorsqu'on crée une nouvelle commande slash, qu'on révise une commande existante trop complexe ou qu'on hésite entre commande et skill.
À éviter si l'on cherche à écrire directement la logique métier d'un skill ou d'un agent plutôt qu'une simple enveloppe de délégation.
Analyse de sécurité
SûrThe skill is a documentation/guidance file about authoring slash commands. It lists Bash among allowed tools, but contains no destructive commands, credential exfiltration, obfuscated payloads, or safety-disabling instructions. Execution risk is minimal.
Aucun point d'attention détecté
Comment cette analyse est faiteExemples
Create a /audit-bash slash command that delegates to the bash-audit skill to check shell scripts for security and portability issues.I want a reusable code-review workflow — should this be a slash command or a skill, and why?Review my .claude/commands/deploy.md — it has 60 lines of implementation logic. Help me turn it into a simple delegator.name: command-authoring description: Guide for authoring, creating, writing, building, reviewing, or improving slash commands that delegate to agents or skills. Use when designing /commands for user shortcuts, fixing existing commands, or learning command best practices. Helps design simple command files, choose delegation targets, handle arguments, and decide when to use commands vs skills. Also triggers when asking how to create commands, whether to use a command vs skill, or understanding command patterns. Expert in command patterns, best practices, and keeping commands focused. allowed-tools:
- Read
- Grep
- Glob
- Bash
- AskUserQuestion model: sonnet
Reference Files
Detailed command authoring guidance:
- command-design-patterns.md - Four design patterns with complete examples and when to use each
- command-creation-process.md - Step-by-step command creation workflow (7 steps)
- command-examples.md - Real command examples with analysis and best practices
About Commands
Commands are user-invoked shortcuts that provide explicit control over when capabilities are used. They're typed as /command-name and typically delegate to agents or skills.
Key characteristics:
- User-invoked - Typed explicitly as
/command-name(not auto-triggered) - Simple - Delegate to agents/skills rather than containing complex logic
- Focused - Single, clear purpose
- Explicit - User controls timing of invocation
- Discoverable - Shown in
/helpoutput
When to use commands:
- User wants explicit shortcut for frequent task
- Simple delegation pattern
- User should control timing
- Creating convenience wrapper for agent/skill
Core Philosophy
Commands Should Be Simple
Golden rule: Commands delegate, they don't implement.
Good command (simple delegation):
---
description: Audit shell scripts for best practices, security, and portability
---
# audit-bash
Audit shell scripts for best practices, security, and portability using the bash-audit skill.
Bad command (complex logic):
# bad-example
# DON'T DO THIS - complex logic in command
Read all shell scripts, run ShellCheck, analyze results, generate report...
[50 lines of implementation details]
Why keep it simple:
- Easier to maintain
- Clear delegation target
- Less prone to errors
- Follows single responsibility principle
Commands Are Explicit
Unlike skills (which auto-trigger), commands require user action.
Use commands when:
- User wants control over timing
- Action shouldn't happen automatically
- Frequently-used prompt that deserves shortcut
- Explicit workflow trigger
Use skills when:
- Should auto-trigger based on context
- User doesn't need to remember to invoke it
- Complex domain knowledge that enhances conversation
Delegation Pattern
Commands use descriptive delegation - see ../../references/delegation-patterns.md for complete validation criteria and patterns.
Command Structure
Required Elements
Every command must have:
- description field (in frontmatter) - Required for
/helpand model invocation - Command name heading (# command-name)
- Clear purpose - What the command does
Optional Elements
Depending on complexity:
- Usage section - How to invoke, with/without arguments
- What It Does - Detailed explanation
- Examples - Sample invocations
- Delegation - Which agent/skill it uses
- Use Cases - When to use the command
- Output - What to expect
Two Patterns
Pattern 1: Simple Delegator (6-10 lines)
- Just frontmatter + brief description
- Minimal documentation
- Clear delegation statement
Pattern 2: Documented Delegator (30-80 lines)
- Full usage instructions
- Examples and use cases
- Detailed delegation explanation
- What It Does section
Choose based on:
- Complexity of underlying agent/skill
- Whether arguments need explanation
- How often users will reference it
See command-design-patterns.md for detailed design patterns and examples.
See command-creation-process.md for step-by-step creation workflow.
Commands vs Skills Decision Guide
📄 See when-to-use-what.md for complete decision guide including agents and output-styles (shared)
Quick guide:
Use a Command when:
- User wants explicit control over timing
- Action should be deliberate, not automatic
- Frequently-used prompt deserves shortcut
- User-initiated workflow
- Simple wrapper around agent/skill
Use a Skill when:
- AI should auto-discover capability
- Complex domain knowledge
- Should trigger on user queries automatically
- Needs progressive disclosure with references/
- Automatic workflow assistance
Common Mistakes to Avoid
- Complex logic in command - Commands should delegate, not implement
- Missing description - Frontmatter description is required
- No delegation info - Unclear what agent/skill it uses
- Vague purpose - Command should have single, clear focus
- Too many arguments - Keep it simple, 0-2 args typically
- Not testing with /help - Verify command appears correctly
- Poor naming - Use descriptive, action-oriented names
See command-examples.md for complete examples with analysis.
Tips for Success
- Keep commands under 50 lines unless truly necessary
- Delegate, don't implement - let agents/skills do the work
- Test with
/helpto verify display - Use descriptive names - action verbs work well
- Document delegation target - make it clear what runs
- Make purpose immediately clear - no guessing
- Optional arguments are better - provide defaults
- Start simple - can always add documentation later
Related Skills
This skill is part of the authoring skill family:
- agent-authoring - Guide for creating agents
- skill-authoring - Guide for creating skills
- command-authoring - Guide for creating commands (this skill)
- output-style-authoring - Guide for creating output styles
For validation, use the corresponding audit skills:
- command-audit - Validate command configurations
- audit-coordinator - Comprehensive multi-faceted audits
Quick Start Checklist
Creating a new command:
- [ ] Identify what agent/skill to delegate to
- [ ] Choose descriptive name (kebab-case)
- [ ] Write clear description (50-150 chars)
- [ ] Decide: simple (6-10 lines) or documented (30-80 lines)?
- [ ] Create file at
~/.claude/commands/command-name.md - [ ] Add required frontmatter with description
- [ ] Document delegation target
- [ ] Test with
/helpand invocation - [ ] Verify arguments work correctly (if any)
Reference to Standards
For detailed standards and validation:
- Naming conventions - Use kebab-case for command names
- Frontmatter requirements - description field is required
- File organization -
~/.claude/commands/command-name.md
See audit-coordinator skill for comprehensive standards.
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/slash-command-authoring-mmbizju6/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/slash-command-authoring-mmbizju6' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/slash-command-authoring-mmbizju6/download' --output '.skill-downloads/slash-command-authoring-mmbizju6/SKILL.md.part' && mv '.skill-downloads/slash-command-authoring-mmbizju6/SKILL.md.part' '.skill-downloads/slash-command-authoring-mmbizju6/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
Après vérification, copiez le dossier complet dans le projet avec l’une des commandes ci-dessous, puis ouvrez une nouvelle session de l’outil. La commande s’arrête si un dossier du même nom existe déjà : comparez les fichiers avant de le remplacer.
Claude Code
test -f '.skill-downloads/slash-command-authoring-mmbizju6/SKILL.md' && test -s '.skill-downloads/slash-command-authoring-mmbizju6/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/command-authoring' && cp -R '.skill-downloads/slash-command-authoring-mmbizju6' '.claude/skills/command-authoring'OpenSkills
OpenSkills doit déjà être installé. La procédure locale install/read est contrôlée avec OpenSkills 1.5.0, qui exige Node.js ≥ 20.6.0. Aucun slug du catalogue n’est résolu automatiquement.
Installation officielle d’OpenSkillsopenskills install './.skill-downloads/slash-command-authoring-mmbizju6'openskills read 'slash-command-authoring-mmbizju6'La lecture doit afficher le contenu du fichier installé et son dossier de base. Elle ne lance ni la skill ni ses dépendances.
Pour un agent qui lit AGENTS.md, synchronisez ensuite l’index. Cette commande modifie AGENTS.md : relisez le diff avant de l’utiliser.
openskills syncMode 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/slash-command-authoring-mmbizju6/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.