committinglisted
Install: claude install-skill qiaeru/skills-github
# Pre-commit / pre-push checklist
Run before every commit and push, including the ones that look trivial. Steps 2 to 5 edit the worktree (comments, docs, `CLAUDE.md`, CHANGELOG), so run them before staging anything; step 1 holds the rules the commit and the push then follow.
## 0. Read the repo profile first
This skill adapts to two axes declared in the repo's root `CLAUDE.md`, under a `## Repo profile` section, as literal tokens:
- `Lock: locked` or `Lock: free`
- `Docs language: en` or `Docs language: fr`
Read them before doing anything else. If the section is missing, infer what you can (a "main is protected" note or a PR-only history points to `locked`; the README language points to the docs language), state your assumption, ask the owner to confirm once, then write the four-line `## Repo profile` marker into the root `CLAUDE.md` yourself so the next run is deterministic (the block is in the `scaffolding-repos` skill, step 5). Reach for the full `scaffolding-repos` skill only if the repo also lacks its other generic files. When nobody can answer (an autonomous run, a scheduled task), do not stall: proceed on the inferred profile, and when the lock is uncertain treat it as `locked`, the cautious side (a branch and a pull request never harm a free repo, while a direct push to a protected `main` is rejected at best and lands unreviewed at worst). Leave the marker unwritten on an unconfirmed guess and flag the assumption in your final report so the owner can settle it.