Aller au contenu principal

Bibliothèque de commandes slash

Intermédiaire

Copiez-les dans .claude/commands/<name>.md (projet) ou ~/.claude/commands/<name>.md (personnel). Le nom de fichier devient la commande. Voir Commandes slash personnalisées pour le fonctionnement.

/commit — Conventional Commit à partir du diff indexé

---
description: Write a Conventional Commit message from the staged changes
---
Run `git diff --cached`. Write ONE Conventional Commit message (feat/fix/docs/
refactor/test/chore) describing the change. Output only the message.

/review — examiner un fichier ou un diff

---
description: Review code for bugs, edge cases, and clarity
---
Review the target for correctness bugs, missing edge cases, and clarity issues.
Report only real, high-confidence findings as a checklist. Target: $ARGUMENTS

/pr — rédiger une description de PR

---
description: Draft a pull request description from the branch diff
---
Compare against the default branch (`git diff main...HEAD`). Write a PR
description: what changed, why, and how it was verified. Use short sections.

/explain — expliquer le code en langage clair

---
description: Explain how something works
---
Explain $ARGUMENTS in plain language: what it does, how it flows, and any gotchas.
Read the relevant files first.

/scaffold — nouveau composant/module

---
description: Scaffold a new component following project conventions
---
Create a new $ARGUMENTS following this repo's existing patterns (structure,
naming, tests). Show a plan first, then create the files.

/changelog — résumer les changements récents

---
description: Summarize recent commits into a changelog entry
---
Run `git log --oneline -20`. Group the changes into Added / Changed / Fixed in
Keep a Changelog style.

:::tip Partagez-les sous forme de plugin Regroupez les commandes favorites de votre équipe (plus les hooks et les skills) dans un plugin pour que chacun les installe en une seule étape. :::

Suite