git-workflow
Installation
SKILL.md
Skill: Git Workflow
Safety rules (enforced by hook, learned here)
The git-safety hook blocks: push (any) · --force/--force-with-lease · --no-verify · reset --hard · clean -f · branch -D · deleting remote refs.
Why: repos may auto-deploy on push (Vercel/Actions) — push = production. "Work is done" is NOT authorization to publish. The human says push, or nothing is pushed. Authorized by the human? They set BERSERQIR_GIT_ALLOW=1 for that command.
Local commits are safe and encouraged (reversible). Stop at commit; list what's ready to push in your report.
Conventional commits
type(scope): subject — types: feat fix refactor test docs chore perf ci.
- Subject ≤72 chars, imperative ("add", not "added")
- Anchor discipline: reference
FEAT-…/ADR-NNN/DEBT-NNNin the body — commit messages are graph edges (core/skills/context-eng) - One logical change per commit; never mix refactor with behavior change