git-commit

Installation
SKILL.md

Git Commit

Workflow

Use this workflow before running git commit.

  1. Inspect repository state with git status --short.
  2. Inspect staged changes with git diff --cached --stat and git diff --cached.
  3. If there are unstaged changes, determine whether they are relevant to the requested commit. Do not stage unrelated changes without explicit user intent.
  4. Verify that no .env file is staged. If any .env file is staged, stop and unstage it unless the user explicitly asks for a different non-secret env example file.
  5. Verify .env is ignored by checking .gitignore or the repository's ignore rules. If it is missing, add an ignore entry only when doing so is within the user's requested change scope; otherwise mention it before committing.
  6. Scan staged changes for likely secrets, credentials, tokens, private keys, and hardcoded connection strings. Stop if a likely secret is present.
  7. Run the smallest relevant verification for the staged changes when practical, such as focused tests, lint, typecheck, or build. If verification cannot be run, mention why in the final response.
  8. Create the commit only after the staged diff, safety checks, and message are aligned.

Safety Checks

Treat these as blockers unless the user explicitly resolves them:

Installs
2
Repository
freckie/skills
First Seen
Jul 9, 2026