| id | 68 |
|---|---|
| title | Reorganize Documentation |
| status | ⛔ |
Move reference content out of CLAUDE.md into dedicated files. Make AGENTS.md use the include directive to keep agent configs in sync.
CLAUDE.md mixes development workflow, CLI design spec,
background material, and agent-config housekeeping.
Moving each concern to its natural home makes CLAUDE.md
shorter. The include directive (<?include ...
<?/include?>) lets AGENTS.md and
.github/copilot-instructions.md pull content from
shared files at fix-time. A single edit then spreads
to every file.
- Create
DEVELOPMENT.mdwith sections moved from CLAUDE.md (see below). - Create
docs/design/directory. Move CLI Design section todocs/design/cli.md. - Move
background/todocs/background/. - Move
guides/todocs/guides/. - Move
archetypes/todocs/design/archetypes/.
- Move "Build & Test Commands" from CLAUDE.md.
- Move "Project Layout" from CLAUDE.md.
- Move "Development Workflow" from CLAUDE.md. Reword: "New features are test-driven" becomes "Any change follows Red / Green TDD: write a failing test (red), make it pass (green), commit".
- Move "Code Style" from CLAUDE.md.
- Move "PR Workflow" from CLAUDE.md. Update the
gh apiexample to usegh repo view --json nameWithOwnerfor dynamic owner/repo lookup and--paginate.
- Add an include directive in CLAUDE.md that pulls
DEVELOPMENT.md so agents still see the development
info inline (
<?include/file: DEVELOPMENT.md/?>...<?/include?>). - Update "Merge Conflicts in PLAN.md and README.md"
to reference processing-instruction markers
(
<?name?>/<?/name?>) instead of old HTML-comment markers (<!-- name -->). - Rewrite "Cross-Platform Agent Config" to state that CLAUDE.md is the primary doc and mdsmith keeps the others in sync via include directives.
- Remove the "Config & Rules" section entirely.
- Replace the body of AGENTS.md with an include
directive (
<?include/file: .../?>...<?/include?>) that pulls relevant sections so it stays in sync automatically.
- Replace the body of
.github/copilot-instructions.mdwith an include directive (same<?include/<?/include?>approach).
- Update README.md to reference the new docs layout:
include DEVELOPMENT.md, and link to
docs/design/,docs/guides/,docs/background/, andplan/.
- Update internal links in moved files and inbound references from non-moved files so they resolve from the new locations.
- Update
.mdsmith.ymloverrides and ignore entries that reference old paths (background/,guides/,archetypes/). - Run
mdsmith fix .to regenerate all include and catalog sections. - Run
mdsmith check .and fix any diagnostics.
- CLAUDE.md includes DEVELOPMENT.md via an
<?include/<?/include?>directive - CLAUDE.md no longer contains Build & Test, Project Layout, Development Workflow, Code Style, CLI Design, PR Workflow, or Config & Rules as hand-maintained sections
- CLAUDE.md "Merge Conflicts" section references
<?...?>processing-instruction syntax - CLAUDE.md "Cross-Platform Agent Config" says CLAUDE.md is the primary source and mdsmith keeps others in sync
- AGENTS.md uses an
<?include/<?/include?>directive with afile:parameter -
.github/copilot-instructions.mduses an<?include/<?/include?>directive -
background/moved todocs/background/ -
guides/moved todocs/guides/ -
archetypes/moved todocs/design/archetypes/ - CLI Design lives in
docs/design/cli.md - DEVELOPMENT.md exists with the moved sections
- README.md includes DEVELOPMENT.md via an
<?include/<?/include?>directive - README.md links to
docs/design/,docs/guides/,docs/background/, andplan/ - All tests pass:
go test ./... -
golangci-lint runreports no issues -
mdsmith check .reports zero diagnostics