Update documentation to reflect recent code changes on this branch.
Step 1 -- Gather context
Run git diff main...HEAD to see all changes on this branch.
If the diff is very large, also run git diff main...HEAD --stat for an overview.
Step 2 -- Read current docs
Read docs/architecture.md, docs/gene-transfusion.md, and README.md.
Step 3 -- Determine what needs updating
The three docs serve different audiences:
docs/architecture.md is a reference for AI agents and LLMs that work on this codebase.
It should be comprehensive and information-dense -- optimized for machine consumption,
not human readability. Include type signatures, interface definitions, package relationships,
and behavioral details that help an LLM understand the system quickly.
docs/gene-transfusion.md is a user-facing guide for the gene transfusion feature. It covers
extraction, gene JSON format, components, composed convergence, cross-language synthesis, and
CLI reference. Update it when gene-related code changes (internal/gene/*, attractor component
logic, scenario component field, CLI flags for --genes/--language).
README.md is for human developers. Keep it concise, user-friendly, and focused on
usage, quick start, and high-level concepts.
Common updates include:
- New packages, files, or interfaces added to the architecture doc
- New CLI flags or commands added to README
- Changed data structures or type definitions
- New capabilities, algorithms, or features
- Updated package dependency DAG
- Gene/component changes reflected in gene-transfusion.md
Step 4 -- Make changes
If documentation needs updates, make the changes directly. Keep the existing style and structure.
Only update sections that are affected by the code changes -- do not rewrite unrelated sections.
Step 5 -- Verify
Run make docs to sync any embedded code blocks (embedmd).
Run make docs-check to verify everything is in sync.
Step 6 -- Stage
If you made any changes, stage them: git add docs/ README.md
Do NOT commit, push, or create a PR. Leave the changes staged for the user to review.
If the documentation is already up-to-date and nothing needs changing, say so and do nothing.
Source: foundatron/octopusgarden — distributed by TomeVault.
1---2name: update-docs-233description: Update project documentation (architecture.md, gene-transfusion.md, README.md) to reflect recent code changes. Use after implementing features, fixing bugs, or refactoring code that affects documented behavior. Use when this capability is needed.4---56Update documentation to reflect recent code changes on this branch.78## Step 1 -- Gather context910Run `git diff main...HEAD` to see all changes on this branch.11If the diff is very large, also run `git diff main...HEAD --stat` for an overview.1213## Step 2 -- Read current docs1415Read `docs/architecture.md`, `docs/gene-transfusion.md`, and `README.md`.1617## Step 3 -- Determine what needs updating1819The three docs serve different audiences:2021- `docs/architecture.md` is a reference for AI agents and LLMs that work on this codebase.22 It should be comprehensive and information-dense -- optimized for machine consumption,23 not human readability. Include type signatures, interface definitions, package relationships,24 and behavioral details that help an LLM understand the system quickly.25- `docs/gene-transfusion.md` is a user-facing guide for the gene transfusion feature. It covers26 extraction, gene JSON format, components, composed convergence, cross-language synthesis, and27 CLI reference. Update it when gene-related code changes (internal/gene/*, attractor component28 logic, scenario component field, CLI flags for --genes/--language).29- `README.md` is for human developers. Keep it concise, user-friendly, and focused on30 usage, quick start, and high-level concepts.3132Common updates include:33- New packages, files, or interfaces added to the architecture doc34- New CLI flags or commands added to README35- Changed data structures or type definitions36- New capabilities, algorithms, or features37- Updated package dependency DAG38- Gene/component changes reflected in gene-transfusion.md3940## Step 4 -- Make changes4142If documentation needs updates, make the changes directly. Keep the existing style and structure.43Only update sections that are affected by the code changes -- do not rewrite unrelated sections.4445## Step 5 -- Verify4647Run `make docs` to sync any embedded code blocks (embedmd).48Run `make docs-check` to verify everything is in sync.4950## Step 6 -- Stage5152If you made any changes, stage them: `git add docs/ README.md`53Do NOT commit, push, or create a PR. Leave the changes staged for the user to review.5455If the documentation is already up-to-date and nothing needs changing, say so and do nothing.5657---58> Source: [foundatron/octopusgarden](https://github.com/foundatron/octopusgarden) — distributed by [TomeVault](https://tomevault.io).59<!-- tomevault:4.0:skill_md:2026-06-25 -->