Notre avis
Génère des messages de commit concis conformes aux conventions du projet après avoir automatiquement indexé toutes les modifications et exécuté des vérifications de pré-commit (formatage, linting, tests).
Points forts
- Assure un style de message de commit cohérent
- Automatise la vérification pré-commit
- Indexe automatiquement toutes les modifications
- Utilise le mode impératif sans préfixes de commit conventionnel
Limites
- Nécessite une structure de projet Rust/Cargo
- Ne peut pas gérer les commits de fusion complexes ou les rebases interactifs
- Limitée à une chaîne d'outils spécifique (cargo fmt, clippy, test)
À utiliser lors de l'engagement de modifications dans un projet Rust qui suit les pratiques standard de formatage et de linting.
Ne pas utiliser pour des projets non Rust, ou lorsque vous avez besoin de sélectionner sélectivement des fichiers ou d'écrire des corps de commit plus longs et détaillés.
Analyse de sécurité
PrudenceThe skill uses powerful shell commands (git, cargo) for code quality enforcement and automated committing. While not destructive, it could stage unintended files or commit without user review, posing a moderate risk of accidental exposure or bad commits.
- •Automatically stages all changes with `git add -A`, potentially including unintended files.
- •Commits immediately after checks pass without user confirmation, which could inadvertently commit sensitive data.
Exemples
Commit all my changes with the message following the project convention.I have some unstaged changes. Run the pre-commit checks and commit everything.Stage all changes, fix any clippy warnings, and commit.name: commit description: Generate commit messages following project conventions. Use when committing changes or reviewing staged files. allowed-tools: Bash(git:*), Bash(cargo *), Read, Edit, Glob, Grep
Commit Message Generator
Instructions
- Run
git statusto check for all changes (staged, unstaged, untracked) - If there are unstaged or untracked files, run
git add -Ato stage all changes - Run
git diff --stagedto see what will be committed - If no changes to commit, inform the user and stop
Pre-commit Checks
-
Run lint and test checks before committing:
- Run
cargo fmt --checkto check formatting - Run
cargo clippy -- -D warningsto check for lint errors - Run
cargo testto run tests
- Run
-
If any checks fail:
- For formatting issues: Run
cargo fmtto auto-fix - For clippy warnings: Read the affected files and fix the issues
- For test failures: Investigate and fix the failing tests
- After fixes, run
git add -Ato stage the fixes - Re-run the failed checks to verify fixes
- For formatting issues: Run
-
Once all checks pass, generate a commit message following the rules below
-
Run
git commit -m "message"immediately (no confirmation needed)
Format
- Line 1: Summary (max 50 chars, imperative mood)
- Line 2: Blank
- Line 3+: Description (optional, explain what and why)
Rules
- Write in English
- Use imperative mood: "Add", "Fix", "Change" (not "Added", "Fixed")
- NO prefixes like feat:, fix:, docs:
- Be specific, avoid vague messages
Examples
❌ Bad
- Fix
- Bug fix
- Various changes
✅ Good
- Change audio capture buffer size to 20ms
- Add retry logic for P2P connection failures
- Remove unused audio codec parameters
Expert Next.js App Router
Developpement
Un skill qui transforme Claude en expert Next.js App Router.
Générateur de README
Developpement
Crée des README.md professionnels et complets pour vos projets.
Rédacteur de Documentation API
Developpement
Génère de la documentation API complète au format OpenAPI/Swagger.