Contributing to GitFactory¶
How to propose a change: the session workflow, the local gates, and what a pull request needs — with the rules themselves kept in AGENTS.md.
GitFactory is built session by session with Claude Code, driven by the spec-driven AO-SDLC loop: work enters BACKLOG.md, graduates into specs/ packages, and ships one verified task at a time (see docs/AO-SDLC.md; the bootstrap era's seeds/ are history). Whether you're a human or an agent, the workflow is the same. Read AGENTS.md first — it holds the commands, the conventions and the golden rules, which are non-negotiable.
Prerequisites¶
- Node 22 (see
.nvmrc; CI pins the same).nvm useif you have nvm — or use the Docker service (docker compose up dev), which needs no local Node. - Python 3 for the stdlib gates in
tools/. - No backend, no database — the frontend is fully static (golden rule #1).
The workflow¶
- Pick or file the work.
python3 tools/pick_backlog_item.pychooses the top open item inBACKLOG.md; bring your own by filing it as aBL-*entry first (python3 tools/next_backlog_id.pymints the id). Trivial fixes need no spec — say why in the PR. - Spec it. Run
/specify→/clarify→/plan→/tasks→/implementone task at a time (or/evolvefor a whole cycle). Work to the spec's acceptance criteria — nothing more. - Close the loop. Park discoveries in the spec's
## Follow-ups Discoveredand mirror them intoBACKLOG.md(golden rule #11). - Run the gates listed in
AGENTS.md§ Stack & commands — at minimumcd app && npm test && npm run buildpluspython3 tools/spec_validator.py && python3 tools/backlog_lint.py. - Open a pull request on a
feature/,fix/,docs/,refactor/,test/orchore/branch with a Conventional Commits title, and fill in the checklist — it is the Definition of Done. - End the session with
/session-log(a draft post inblog/drafts/, plus adocs/DECISIONS.mdentry if a decision was made).
A PR gets bounced for breaking a golden rule: a hand-edited generated file, a tool grant or permission wider than its sinks need, an unguarded loop, a secret outside ${{ secrets.* }}, or untrusted text interpolated into a workflow. A new machine type follows the Definition of Done in golden rule #8 — run /add-machine for the checklist.
Claude Code tooling¶
Project commands live in .claude/commands/: the AO-SDLC chain (/specify, /clarify, /plan, /tasks, /implement, /evolve) plus /add-machine, /compile-check, and /session-log. Agents live in .claude/agents/ (the read-only golden-rules-reviewer and backlog-triager, plus the verifier acceptance tester), and .claude/settings.json registers hooks that block edits which break the spec/backlog gates. Use /compile-check to validate the compiler against the schema, the reference output, and the upstream claude-code-action inputs before shipping compiler changes.