name: commit description: Stage relevant changes and create a git commit with a conventional-style message. Only runs when the user explicitly invokes /commit.
/commit
Create a git commit for the current changes.
Steps
- Run in parallel:
git status(no-uall)git diff(staged + unstaged)git log -n 10 --onelineto match the repo's commit style
- Review what would be committed:
- Skip files that likely hold secrets (
.env, credentials, keys). - Do not blanket-add with
git add -A/git add .— stage files by name. - If
$ARGUMENTSis non-empty, treat it as the commit message (or message hint) from the user.
- Skip files that likely hold secrets (
- Draft a concise 1–2 sentence commit message focused on the why. Follow this repo's existing style from
git log(the project uses short imperative subjects like "Improve SEO", "Add CLAUDE.md file"). - Stage the intended files:
- Run
git statusafter to confirm success. - Do not push. Do not amend. If a pre-commit hook fails, fix the root cause and create a new commit.
Guardrails
- Never use
--no-verify,--amend, or force flags. - Never commit
.env, credentials, or large binaries — warn the user instead. - If there is nothing to commit, say so and stop — do not create empty commits.
- Do not add a
Co-Authored-By: Claudetrailer. Commits should look authored solely by the user.
Skills similaires
Expert Next.js App Router
Developpement
Un skill qui transforme Claude en expert Next.js App Router.
Claude CodeCursoradvanced
890
234
3,180
Générateur de README
Developpement
Crée des README.md professionnels et complets pour vos projets.
claudeCursorWindsurfbeginner
259
72
1,083
Rédacteur de Documentation API
Developpement
Génère de la documentation API complète au format OpenAPI/Swagger.
claudeCursorWindsurfintermediate
156
44
943