LLM Skills
~/catalogue/debugging et maintenance//prp-commit

Smart commit

/prp-commit

Validation rapide avec ciblage de fichiers en langage naturel : décrivez ce que vous souhaitez valider en français courant

affaan-maffaan-m
252.2k
20 mai 2026
MIT License
// contenu du skill

description: "Quick commit with natural language file targeting — describe what to commit in plain English"

argument-hint: "[target description] (blank = all changes)"


Smart Commit

Adapted from PRPs-agentic-eng by Wirasm. Part of the PRP workflow series.

Input: $ARGUMENTS


Phase 1 — ASSESS

bash
git status --short

If output is empty → stop: "Nothing to commit."

Show the user a summary of what's changed (added, modified, deleted, untracked).


Phase 2 — INTERPRET & STAGE

Interpret $ARGUMENTS to determine what to stage:

InputInterpretationGit Command
(blank / empty)Stage everythinggit add -A
stagedUse whatever is already staged(no git add)
*.ts or *.py etc.Stage matching globgit add '*.ts'
except testsStage all, then unstage tests`git add -A && git reset -- '*/.test.' '/.spec.' '/test_' 2>/dev/null \
only new filesStage untracked files only`git ls-files --others --exclude-standard \
the auth changesInterpret from status/diff — find auth-related filesgit add <matched files>
Specific filenamesStage those filesgit add <files>

For natural language inputs (like "the auth changes"), cross-reference the git status output and git diff to identify relevant files. Show the user which files you're staging and why.

bash
git add <determined files>

After staging, verify:

bash
git diff --cached --stat

If nothing staged, stop: "No files matched your description."


Phase 3 — COMMIT

Craft a single-line commit message in imperative mood:

{type}: {description}

Types:

  • feat — New feature or capability
  • fix — Bug fix
  • refactor — Code restructuring without behavior change
  • docs — Documentation changes
  • test — Adding or updating tests
  • chore — Build, config, dependencies
  • perf — Performance improvement
  • ci — CI/CD changes

Rules:

  • Imperative mood ("add feature" not "added feature")
  • Lowercase after the type prefix
  • No period at the end
  • Under 72 characters
  • Describe WHAT changed, not HOW
bash
git commit -m "{type}: {description}"

Phase 4 — OUTPUT

Report to user:

Committed: {hash_short}
Message:   {type}: {description}
Files:     {count} file(s) changed

Next steps:
  - git push           → push to remote
  - /prp-pr            → create a pull request
  - /code-review       → review before pushing

Examples

You sayWhat happens
/prp-commitStages all, auto-generates message
/prp-commit stagedCommits only what's already staged
/prp-commit *.tsStages all TypeScript files, commits
/prp-commit except testsStages everything except test files
/prp-commit the database migrationFinds DB migration files from status, stages them
/prp-commit only new filesStages untracked files only
// source originale publique
affaan-m/ECC
/commands/prp-commit.md
Licence : MIT License
Projet indépendant, non affilié à Anthropic. Ce skill reste la propriété de son auteur original.
// installer ce skill
Collez cette commande dans votre terminal à la racine de votre projet :
mkdir -p .claude/commands && curl -o ".claude/commands/prp-commit.md" "https://raw.githubusercontent.com/affaan-m/ECC/main/commands/prp-commit.md"
Ensuite dans Claude Code, tapez /prp-commit pour l'activer.
open_in_newVoir la source originale
// sauvegarder
Sauvegarde disponible après connexion.
loginSe connecter pour sauvegarder
// informations
Créateuraffaan-m
Étoiles 252.2k
LicenceMIT License
Mis à jour20 mai 2026
Format.md
AccèsGratuit
// similaires

Skills Debugging et maintenance

Voir toutarrow_forward