Project Coordination Docs
Overview
Use this skill to scaffold and maintain project-local coordination docs for parallel Codex work. The pattern separates stable project facts from active coordination state so separate Codex instances can share context without treating speculative WIP as canonical.
Workflow
- Inspect the repo first: read any existing
AGENTS.md, README.md, docs/, and active planning files.
- Choose a docs folder for the product, project, or lab area. Prefer
docs/<project-slug> when the repo has multiple products, or docs/project for a single-purpose repo.
- Run the scaffold script from the target repo root.
- Review generated docs and replace TODOs with project-specific facts only when they are known.
- For substantial implementation work, create a workstream file and add a row to
coordination/WORKSTREAMS.md before editing code.
- During and after work, keep
HANDOFF.md, TODO.md, DECISIONS.md, and relevant workstream files current.
Scaffold Command
Run from the repository root:
python3 ~/.codex/skills/project-coordination-docs/scripts/scaffold_coordination_docs.py \
--project-name "Project Name" \
--docs-dir docs/project-name \
--agents AGENTS.md
Useful options:
--purpose "One sentence project purpose"
--start-workstream "short feature name"
--owner "Codex"
--branch "codex/example-branch"
--dry-run
--force
--no-agents
The script creates missing files and skips existing files unless --force is passed. It appends or updates a marked block in AGENTS.md; it does not rewrite unrelated AGENTS.md content.
Document Model
Use canonical docs for settled facts and implemented behavior:
PROJECT_BRIEF.md: purpose, audience, boundaries, and success criteria.
ARCHITECTURE.md: implemented architecture, core flows, dependencies, and extension points.
DATA_MODEL.md: persistent state, API shapes, event contracts, and unsafe changes.
EVALS.md: verification posture, commands, fixtures, and gaps.
DECISIONS.md: append-only decisions when direction changes or recurring questions are settled.
Use dynamic docs for active state:
HANDOFF.md: latest manager-level snapshot and next recommended sequence.
TODO.md: active follow-ups and quality gates.
coordination/WORKSTREAMS.md: live dashboard of branches, owners, scope, dependencies, and status.
coordination/INTERFACES.md: shared contracts that parallel workers must coordinate around.
coordination/BLOCKERS.md: blockers, sequencing constraints, and resolved blockers.
coordination/CLOUD_WORKER_PROMPTS.md: copy-ready prompts for other Codex/cloud workers.
workstreams/WS-YYYY-MM-DD-short-name.md: one workstream brief per non-trivial branch.
Coordination Rules
- Do not put speculative WIP into canonical docs as if it already exists.
- Put proposals, partial branch state, blockers, and unresolved questions in
coordination/ or workstreams/.
- Update
coordination/INTERFACES.md before or alongside changes to shared schemas, API responses, artifact payloads, persistence events, retrieval contracts, memory contracts, or other cross-worker interfaces.
- Before starting non-trivial work, read the generated
README.md, coordination/WORKSTREAMS.md, relevant workstream files, coordination/INTERFACES.md, and relevant canonical docs.
- When finishing or pausing work, update the workstream status and handoff log, then update
HANDOFF.md, TODO.md, and DECISIONS.md as needed.
- Keep workstream files concrete: expected files, ownership boundaries, dependencies, acceptance evidence, and handoff notes.
Existing Repos
If a repo already has planning docs, preserve them. Use the scaffold to create only missing coordination files, then adapt the generated docs to reference the existing canonical sources. Avoid duplicating a long architecture document if the repo already has one; link to it from the generated README.md and AGENTS.md block instead.
1---2name: project-coordination-docs3description: Create and maintain reusable Codex coordination documentation for multi-agent project work. Use when starting a new project, feature area, lab, or substantial refactor that needs canonical docs, dynamic handoff/TODO/decisions files, workstream tracking, shared interface contracts, blockers, cloud-worker prompts, and AGENTS.md instructions so multiple Codex instances can coordinate safely.4---56# Project Coordination Docs78## Overview910Use this skill to scaffold and maintain project-local coordination docs for parallel Codex work. The pattern separates stable project facts from active coordination state so separate Codex instances can share context without treating speculative WIP as canonical.1112## Workflow13141. Inspect the repo first: read any existing `AGENTS.md`, `README.md`, `docs/`, and active planning files.152. Choose a docs folder for the product, project, or lab area. Prefer `docs/<project-slug>` when the repo has multiple products, or `docs/project` for a single-purpose repo.163. Run the scaffold script from the target repo root.174. Review generated docs and replace TODOs with project-specific facts only when they are known.185. For substantial implementation work, create a workstream file and add a row to `coordination/WORKSTREAMS.md` before editing code.196. During and after work, keep `HANDOFF.md`, `TODO.md`, `DECISIONS.md`, and relevant workstream files current.2021## Scaffold Command2223Run from the repository root:2425```bash26python3 ~/.codex/skills/project-coordination-docs/scripts/scaffold_coordination_docs.py \27 --project-name "Project Name" \28 --docs-dir docs/project-name \29 --agents AGENTS.md30```3132Useful options:3334```bash35--purpose "One sentence project purpose"36--start-workstream "short feature name"37--owner "Codex"38--branch "codex/example-branch"39--dry-run40--force41--no-agents42```4344The script creates missing files and skips existing files unless `--force` is passed. It appends or updates a marked block in `AGENTS.md`; it does not rewrite unrelated AGENTS.md content.4546## Document Model4748Use canonical docs for settled facts and implemented behavior:4950- `PROJECT_BRIEF.md`: purpose, audience, boundaries, and success criteria.51- `ARCHITECTURE.md`: implemented architecture, core flows, dependencies, and extension points.52- `DATA_MODEL.md`: persistent state, API shapes, event contracts, and unsafe changes.53- `EVALS.md`: verification posture, commands, fixtures, and gaps.54- `DECISIONS.md`: append-only decisions when direction changes or recurring questions are settled.5556Use dynamic docs for active state:5758- `HANDOFF.md`: latest manager-level snapshot and next recommended sequence.59- `TODO.md`: active follow-ups and quality gates.60- `coordination/WORKSTREAMS.md`: live dashboard of branches, owners, scope, dependencies, and status.61- `coordination/INTERFACES.md`: shared contracts that parallel workers must coordinate around.62- `coordination/BLOCKERS.md`: blockers, sequencing constraints, and resolved blockers.63- `coordination/CLOUD_WORKER_PROMPTS.md`: copy-ready prompts for other Codex/cloud workers.64- `workstreams/WS-YYYY-MM-DD-short-name.md`: one workstream brief per non-trivial branch.6566## Coordination Rules6768- Do not put speculative WIP into canonical docs as if it already exists.69- Put proposals, partial branch state, blockers, and unresolved questions in `coordination/` or `workstreams/`.70- Update `coordination/INTERFACES.md` before or alongside changes to shared schemas, API responses, artifact payloads, persistence events, retrieval contracts, memory contracts, or other cross-worker interfaces.71- Before starting non-trivial work, read the generated `README.md`, `coordination/WORKSTREAMS.md`, relevant workstream files, `coordination/INTERFACES.md`, and relevant canonical docs.72- When finishing or pausing work, update the workstream status and handoff log, then update `HANDOFF.md`, `TODO.md`, and `DECISIONS.md` as needed.73- Keep workstream files concrete: expected files, ownership boundaries, dependencies, acceptance evidence, and handoff notes.7475## Existing Repos7677If a repo already has planning docs, preserve them. Use the scaffold to create only missing coordination files, then adapt the generated docs to reference the existing canonical sources. Avoid duplicating a long architecture document if the repo already has one; link to it from the generated `README.md` and `AGENTS.md` block instead.