← ClaudeAtlas

df-context-storelisted

Dark Factory Stage 0.5 — scaffold a repo's in-repo agent inner-loop substrate (read-first context store + single-responsibility agents + checkable hand-off contracts + commit gate) from the proven template, populate it from the real codebase, and verify it. Use when bootstrapping a repo for DF work, running a DF build, or adding the agent substrate to an existing repo. Triggers on "context store", "agent substrate", "inner loop", "bootstrap agents", "df stage 0.5".
OneDro1d/dark-factory · ★ 0 · AI & Automation · score 73
Install: claude install-skill OneDro1d/dark-factory
# df-context-store — plant the inner-loop substrate (DF Stage 0.5) Goal: give the repo a **persistent, in-repo, read-first agent substrate** so analysis is done once and reused, hand-offs can't silently degrade, and nothing ships unverified. This is the inner-loop complement to the heavy DF build stages — the build injects rigor at the seams; this is what *lives in the repo* and binds every future session. It runs between Stage 0 (Frame) and Stage 1 (PO), and again on demand to refresh. Template (source of truth): the `substrate-template/` directory bundled alongside this skill (`skills/df-context-store/substrate-template/`). ## Procedure 1. **Emit the payload.** Copy `substrate-template/dotclaude/` into the target repo as `.claude/` (agents + context store + `hooks/` + `contract-check` + `commit-sync` + `AGENT-CONTRACTS.md`). Don't overwrite an existing populated store — merge. 2. **Populate from source, don't invent.** - `.claude/context/SERVICE-MAP.md` — the structural map (services/db/queue/API + flows), generated from the real codebase (use `service-mapper`). - `.claude/context/DATA-FLOW.md` — the data-transform view: data nodes (schema/origin/**authority**/class), the transform graph (`pure|effect`), and the validation rules (`LOCAL` reject / `GLOBAL` reconcile). Populate nodes + authority from source; leave rules you can't yet cite as marked skeletons. - Leave `FINDINGS.md`/`DECISIONS.md` as clean skeletons that accumulate as the