Prp Commit

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

Part of the PRP workflow series.

Input: $ARGUMENTS — natural language description of what to commit, or blank for all changes.

Steps:

  1. Assess: git status --short — if empty, stop: "Nothing to commit."
  2. Interpret & stage from $ARGUMENTS:
    • Blank → git add -A
    • staged → use already staged files
    • Glob (e.g. *.ts) → git add '*.ts'
    • except testsgit add -A && git reset -- '**/*.test.*' '**/*.spec.*'
    • Natural language (e.g. "the auth changes") → cross-reference git status + git diff, identify relevant files, show user which files and why, then stage them
  3. Verify staging: git diff --cached --stat
  4. Draft commit message in conventional commit format: type(scope): description — type: feat/fix/refactor/docs/chore/test
  5. Commit: follow project's commit signing/hook configuration (no --no-verify)
  6. Report: files staged, commit hash, message

Load skills: dog:git-workflow