git-flow — shared git core
Single source of truth for how agents do git in this plugin. Other git-using skills (kanban, schedule-tasks, prepare-pr, qa-check, git-move) follow this CORE and document only their own context-specific deltas. Edge cases and longer examples → reference.md.
CORE rules
- Default = commit to the default branch. An agent commits its work
directly to the default branch; the user reviews via commit history. Create a
feature/·fix/·chore/branch only when the user explicitly asks, OR when another skill defines its own branch model (kanban does — per-tasktask/<ID>branch; schedule-tasks runs an autonomous branch+park model). - Branch naming (when branches are used):
feature/<short>,fix/<short>,chore/<short>. - Who commits. Each sub-agent / teammate commits its OWN zone's changes when
it finishes that zone. End every commit message with a footer line naming the
zone:
Agent: <zone>(e.g.Agent: backend). ThisAgent: <zone>marker is the ONLY allowed trailer — do NOT addCo-Authored-By:,Generated with …, or any other signature. Prompt and execution evidence belongs in Kanban records, never extra Git trailers. - Commit message format.
<scope>: <imperative summary>. Subject ≤72 chars, imperative mood. Body optional (may be in Russian) — include it only when it adds meaning not visible from the diff. Keep the whole message readable. - Scopes (generic default set):
api | db | infra | docs | task. Projects extend/override this list in their ownCLAUDE.md(e.g. a Go-client project may addgoclient; a browser-extension project may addext). Do NOT treat project-specific scopes as the canonical set. - Staging — explicit paths only.
git add <path> …. Nevergit add .,git add -A,git add -u, orgit commit -a. (Resume-context exception → schedule-tasks documents it.) - Never force-push to the default branch. Never
git commit --no-verify. - Moving / renaming / deleting tracked files → use the
git-moveskill (git mv/git rm). Do not duplicate its mechanics. - PR. Title in English; body may be in Russian.
How other skills relate to git-flow
| Skill | Follows CORE + its delta |
|---|---|
| kanban | Per-task task/<ID> branch; each sub-agent commits its zone; orchestrator finalizes; OK → squash-merge to default + rename branch to done/<ID> (strip the task/ prefix — archive is done/<ID>, NOT done/task/<ID>). |
| schedule-tasks | Autonomous per-task task/<NAME> branch + park-commit model; finalization is the SAME as kanban (squash-merge to default, rename branch to done/<NAME>). Owns its autonomous park / commit-shape specifics. |
| prepare-pr | PR assembly — sanity-check diff, run the gate, draft description. Draft-only by default. |
| qa-check | Quality gate scoped by git diff; never auto-merge / auto-push. |
| git-move | Mechanics for git mv / git rm (rule 8). |
Each documents ONLY its context-specific deltas; everything else here is binding.