← ClaudeAtlas

orient-commitlisted

Draft a git commit message documenting what changed and why, with the findings that drove it, for review before committing.
Chaitanya299/Orient · ★ 8 · Code & Development · score 66
Install: claude install-skill Chaitanya299/Orient
# orient-commit Draft a git commit message that documents what changed and why, present it for review, and commit only after explicit approval. ## 0. Secret gate (run first) Before anything else, refuse to commit a secret. From `git diff --staged`: - If a staged file is a `.env` (any name except `*.example`), STOP. - If the staged diff contains a secret literal — `AKIA[0-9A-Z]{16}`, `ghp_[A-Za-z0-9]{36}`, `sk-[A-Za-z0-9]{20,}`, or `-----BEGIN [A-Z ]*PRIVATE KEY-----` — STOP. On a match: name the file and line, tell the user to unstage it (`git restore --staged <file>`) and rotate the key. Never commit it, never work around this. ## 1. Determine what's staged Read `git diff --staged`. If nothing is staged, read `git diff` and `git status`, list the changed files, and ask which to stage. Never run `git add -A` unprompted. ## 1b. Reminder: is a dependency change worth an ADR? From `git diff --staged --name-only`: if a dependency or build manifest is staged — `package.json`, `go.mod`, `Cargo.toml`, `requirements.txt`, `pyproject.toml`, `Gemfile`, `pom.xml`, `build.gradle`, `composer.json`, `Dockerfile`, `docker-compose.yml` (lockfiles don't count) — and no ADR is staged in this commit, look at the diff. If it **added or swapped a dependency or datastore** (not a version bump or lockfile churn), name it and offer `orient-decide` before drafting. A routine bump → say so and continue. This is a list-based reminder, not a guarantee, and it never blocks the commit. ## 2. Draft