name: vc:generate-context description: Generate or update the project's authoritative repository context at process/context/all-context.md. Use when repo context is missing, stale, or contradicted by code. metadata: author: flowser version: "1.0.0"
Generate Context
Use this skill to maintain process/context/all-context.md, the broad portable project knowledge layer shared by Codex and Claude. Use process/context/all-context.md as the context router before reading grouped docs.
Optional input: a package, app, feature, context group, or architectural area to refresh first.
Workflow
- Read
references/generate-context.mdfor the full context contract. - Determine mode:
- Full scan when
process/context/all-context.mdis missing. - Delta update when it exists.
- Full scan when
- Read
process/context/all-context.mdwhen present to identify relevant grouped context files. - Inspect current repo state, active plans, feature folders, package scripts, tooling, important architecture files, and relevant
process/context/**/*.mddocs. - Produce exactly one updated file:
process/context/all-context.md. - Include scan timestamp, repo HEAD if available, changes since last update, open questions, and source references.
- Validate the generated context:
node .claude/skills/vc-generate-context/scripts/validate-all-context.mjs - If routing or grouped context changed, also run:
node .claude/skills/vc-audit-context/scripts/validate-context-discovery.mjs
Rules
- Treat
process/context/as durable cross-agent knowledge. - Treat
process/context/all-context.mdas the durable routing protocol; do not replace it with generated prose. - Do not store agent-specific mechanics here unless they affect project workflow.
- Do not rewrite grouped context docs; if they are stale or mis-grouped, flag
audit-context. - Prefer concise, factual, path-specific documentation.
- Use
pnpmterminology for package management. - Treat validation failures as blockers before presenting context as refreshed.