Manage Project Docs
Treat documentation as durable project state, workflows as state transitions,
and executable checks as invariant proofs. Optimize for the repository owner
and future agents returning without conversational memory, not a public
audience unless the project is public.
Preserve authorization
- Read and obey the repository's existing agent instructions first.
- Treat discussion, exploration, critique, resume, and audit requests as
read-only unless the user explicitly requests changes.
- Treat a direct bounded change request as implementation authorization for
that change.
- Require an explicitly accepted spec before starting a new project or a
substantial, ambiguous, or cross-cutting feature.
- Never promote a draft spec to accepted on the user's behalf.
- Never change a normative contract merely to make implementation and prose
agree. Surface the conflict and request a decision.
Select one operation
| User need |
Operation |
Read |
| Start or retrofit a documentation system |
Bootstrap |
references/bootstrap.md |
| Return after lost context or prove the happy path |
Resume |
references/resume.md |
| Shape a material implementation slice |
Plan |
references/plan.md |
| Reconcile a completed implementation slice |
Close |
references/close.md |
| Compare documentation claims with live evidence |
Audit |
references/audit.md |
| Turn a recurring failure into a reusable guardrail |
Promote |
references/promote.md |
Read references/document-model.md when choosing
documents, assigning authority, resolving apparent contradictions, or deciding
which bundled templates to use. Do not load every workflow reference by
default.
Run the common preflight
- Locate the repository root and read its instruction files.
- Inspect version-control status without changing it.
- Inventory documentation by content and apparent purpose; do not infer a
document's authority from its filename.
- Identify the requested operation and whether it authorizes writes.
- Separate confirmed facts from proposals and unresolved questions.
- State the intended reads or changes before broad exploration.
Use the bundled resources
- Copy from
assets/templates/ only during an authorized bootstrap or
documentation change. Resolve every template marker; never overwrite an
existing document blindly.
- Run
scripts/check_docset.py REPO to check the universal core: required
front-door documents, unresolved placeholders, local Markdown links, spec
statuses, status freshness, and close-residue warnings. Use --help for
optional requirements and strong-claim review.
- Keep project-specific semantic proofs in the project itself. A generic
checker cannot prove wire behavior, privacy guarantees, state transitions,
schemas, or cross-repository conformance.
Maintain the continuity boundary
Keep these categories distinct:
- durable intent;
- current operational truth;
- normative invariants;
- historical decisions;
- proposed or accepted work;
- generated reference material.
When one fact appears in multiple categories or system layers, identify every
representation affected by a change and reconcile them together. Prefer an
honest unknown, historical, or proposed label over invented precision.
Finish visibly
Report:
- the operation performed;
- documents or claims inspected or changed;
- executable checks run and their results;
- unresolved contradictions, unknowns, or stale claims;
- the next authorized transition, if one exists.
Do not call the repository continuous merely because documents exist. Confirm
that the owner can find the current state, reach one successful use, and
identify what may happen next without reading a defense of the last session.
1---2name: manage-project-docs3description: Maintain repository documentation as a continuity protocol tied to code, tests, contracts, and operational truth. Use when Codex needs to bootstrap or retrofit project docs, resume work in a dormant or unfamiliar repository, draft an implementation spec, reconcile documentation before closing a material change, audit documentation against a live codebase, or promote a recurring failure into a reusable workflow or check.4---56# Manage Project Docs78Treat documentation as durable project state, workflows as state transitions,9and executable checks as invariant proofs. Optimize for the repository owner10and future agents returning without conversational memory, not a public11audience unless the project is public.1213## Preserve authorization1415- Read and obey the repository's existing agent instructions first.16- Treat discussion, exploration, critique, resume, and audit requests as17 read-only unless the user explicitly requests changes.18- Treat a direct bounded change request as implementation authorization for19 that change.20- Require an explicitly accepted spec before starting a new project or a21 substantial, ambiguous, or cross-cutting feature.22- Never promote a draft spec to accepted on the user's behalf.23- Never change a normative contract merely to make implementation and prose24 agree. Surface the conflict and request a decision.2526## Select one operation2728| User need | Operation | Read |29|---|---|---|30| Start or retrofit a documentation system | Bootstrap | [references/bootstrap.md](references/bootstrap.md) |31| Return after lost context or prove the happy path | Resume | [references/resume.md](references/resume.md) |32| Shape a material implementation slice | Plan | [references/plan.md](references/plan.md) |33| Reconcile a completed implementation slice | Close | [references/close.md](references/close.md) |34| Compare documentation claims with live evidence | Audit | [references/audit.md](references/audit.md) |35| Turn a recurring failure into a reusable guardrail | Promote | [references/promote.md](references/promote.md) |3637Read [references/document-model.md](references/document-model.md) when choosing38documents, assigning authority, resolving apparent contradictions, or deciding39which bundled templates to use. Do not load every workflow reference by40default.4142## Run the common preflight43441. Locate the repository root and read its instruction files.452. Inspect version-control status without changing it.463. Inventory documentation by content and apparent purpose; do not infer a47 document's authority from its filename.484. Identify the requested operation and whether it authorizes writes.495. Separate confirmed facts from proposals and unresolved questions.506. State the intended reads or changes before broad exploration.5152## Use the bundled resources5354- Copy from `assets/templates/` only during an authorized bootstrap or55 documentation change. Resolve every template marker; never overwrite an56 existing document blindly.57- Run `scripts/check_docset.py REPO` to check the universal core: required58 front-door documents, unresolved placeholders, local Markdown links, spec59 statuses, status freshness, and close-residue warnings. Use `--help` for60 optional requirements and strong-claim review.61- Keep project-specific semantic proofs in the project itself. A generic62 checker cannot prove wire behavior, privacy guarantees, state transitions,63 schemas, or cross-repository conformance.6465## Maintain the continuity boundary6667Keep these categories distinct:6869- durable intent;70- current operational truth;71- normative invariants;72- historical decisions;73- proposed or accepted work;74- generated reference material.7576When one fact appears in multiple categories or system layers, identify every77representation affected by a change and reconcile them together. Prefer an78honest `unknown`, `historical`, or `proposed` label over invented precision.7980## Finish visibly8182Report:8384- the operation performed;85- documents or claims inspected or changed;86- executable checks run and their results;87- unresolved contradictions, unknowns, or stale claims;88- the next authorized transition, if one exists.8990Do not call the repository continuous merely because documents exist. Confirm91that the owner can find the current state, reach one successful use, and92identify what may happen next without reading a defense of the last session.