Arch docs
Overview
Create or refresh architecture and file-structure documentation from the current repo state.
Base statements on observable files and configs, and record unknowns as verification tasks.
Workflow
- Inspect the repo
- Read
README.md and AGENTS.md.
- Scan layout with
ls -1 and ls -1 ./docs/.
- Use
rg --files to get a fuller inventory when needed.
- Identify languages, build tooling, entry points, and main executables.
- Check common manifests (
pyproject.toml, pip_requirements.txt, package.json,
Cargo.toml, go.mod, Makefile) when present.
- Locate core logic, scripts, and tests.
- Check
.gitignore for generated artifacts and caches.
- Run
git status -suno to see uncommitted changes.
- Update policy
- Remove stale details.
- Keep accurate sections and restructure for clarity when needed.
- State facts only; do not invent details.
- If unclear, add a verification task in the "Known gaps" section.
- Apply style and consistency
- Follow
docs/MARKDOWN_STYLE.md and docs/REPO_STYLE.md.
- Use present tense, concrete paths, and relative links.
- Link file and folder names to their repo paths when mentioned, so they are
clickable for details. Markdown links are created using the syntax
link text, where "link text" is the clickable text that appears in the
document, and "URL" is the web address or file path the link points to. This
allows users to navigate between different content easily. Use file-path link
text so readers know the exact filename (good:
docs/MARKDOWN_STYLE.md, bad:
Style Guide for Markdown). Only include a backticked
path when the link text is not the path.
- Prefer short, scannable bullets.
- Only include commands verifiable from repo files.
- Avoid non-ASCII characters unless explicitly required by existing docs.
- Prefer ISO-8859-1 only when the repo already uses it.
- Write
docs/CODE_ARCHITECTURE.md
- Title: "Code architecture"
- Sections to include when applicable:
- Overview
- Major components (what, where, key dependencies)
- Data flow (primary use case end-to-end)
- Testing and verification (only if verifiable)
- Extension points (where to add code/modules/integrations)
- Known gaps (verification tasks only)
- Write
docs/FILE_STRUCTURE.md
- Title: "File structure"
- Sections to include when applicable:
- Top-level layout (key dirs/files with one-line purpose)
- Key subtrees (large directories that need clarification)
- Generated artifacts (what/where/git ignored)
- Documentation map (docs location and root docs)
- Where to add new work (code/tests/docs/scripts/data)
Repository structure
When showing a directory tree, use ASCII only. Do not use box drawing characters.
- Allowed:
|, +-, `-, spaces
- Not allowed: box-drawing characters such as U+251C, U+2500, U+2502, U+2514
Example (ASCII only):
site_docs/
+- index.md
+- biochemistry/
| `- topic01/
| `- index.md
`- genetics/
`- topic01/
`- index.md
mkdocs.yml
- Wrap up
- Save both files.
- Ensure
README.md links to docs/CODE_ARCHITECTURE.md and
docs/FILE_STRUCTURE.md (add links if missing).
- Update
docs/CHANGELOG.md with the change; create a minimal stub only when
doc changes were made and the file is missing.
- Summarize what changed and what could not be verified.
- Note that docs-only changes do not require tests unless otherwise requested.
Notes
- Prefer to trim and correct existing docs before rewriting from scratch.
- If the repo lacks needed evidence, add a "Known gaps" bullet with a verification task.
Example requests
- "Update the architecture and file structure docs for this repo."
- "Create CODE_ARCHITECTURE.md and FILE_STRUCTURE.md based on current files."
- "Refresh the docs/FILE_STRUCTURE.md map after adding new folders."
1---2name: arch-docs3description: Arch docs4---5# Arch docs67## Overview89Create or refresh architecture and file-structure documentation from the current repo state.10Base statements on observable files and configs, and record unknowns as verification tasks.1112## Workflow13141. Inspect the repo15 - Read `README.md` and `AGENTS.md`.16 - Scan layout with `ls -1` and `ls -1 ./docs/`.17 - Use `rg --files` to get a fuller inventory when needed.18 - Identify languages, build tooling, entry points, and main executables.19 - Check common manifests (`pyproject.toml`, `pip_requirements.txt`, `package.json`,20 `Cargo.toml`, `go.mod`, `Makefile`) when present.21 - Locate core logic, scripts, and tests.22 - Check `.gitignore` for generated artifacts and caches.23 - Run `git status -suno` to see uncommitted changes.242. Update policy25 - Remove stale details.26 - Keep accurate sections and restructure for clarity when needed.27 - State facts only; do not invent details.28 - If unclear, add a verification task in the "Known gaps" section.293. Apply style and consistency30 - Follow `docs/MARKDOWN_STYLE.md` and `docs/REPO_STYLE.md`.31 - Use present tense, concrete paths, and relative links.32 - Link file and folder names to their repo paths when mentioned, so they are33 clickable for details. Markdown links are created using the syntax34 [link text](URL), where "link text" is the clickable text that appears in the35 document, and "URL" is the web address or file path the link points to. This36 allows users to navigate between different content easily. Use file-path link37 text so readers know the exact filename (good:38 [docs/MARKDOWN_STYLE.md](docs/MARKDOWN_STYLE.md), bad:39 [Style Guide for Markdown](docs/MARKDOWN_STYLE.md)). Only include a backticked40 path when the link text is not the path.41 - Prefer short, scannable bullets.42 - Only include commands verifiable from repo files.43 - Avoid non-ASCII characters unless explicitly required by existing docs.44 - Prefer ISO-8859-1 only when the repo already uses it.454. Write `docs/CODE_ARCHITECTURE.md`46 - Title: "Code architecture"47 - Sections to include when applicable:48 - Overview49 - Major components (what, where, key dependencies)50 - Data flow (primary use case end-to-end)51 - Testing and verification (only if verifiable)52 - Extension points (where to add code/modules/integrations)53 - Known gaps (verification tasks only)545. Write `docs/FILE_STRUCTURE.md`55 - Title: "File structure"56 - Sections to include when applicable:57 - Top-level layout (key dirs/files with one-line purpose)58 - Key subtrees (large directories that need clarification)59 - Generated artifacts (what/where/git ignored)60 - Documentation map (docs location and root docs)61 - Where to add new work (code/tests/docs/scripts/data)6263## Repository structure6465When showing a directory tree, use ASCII only. Do not use box drawing characters.6667- Allowed: `|`, `+-`, `` `-``, spaces68- Not allowed: box-drawing characters such as U+251C, U+2500, U+2502, U+25146970Example (ASCII only):7172```text73site_docs/74+- index.md75+- biochemistry/76| `- topic01/77| `- index.md78`- genetics/79 `- topic01/80 `- index.md81mkdocs.yml82```83846. Wrap up85 - Save both files.86 - Ensure `README.md` links to `docs/CODE_ARCHITECTURE.md` and87 `docs/FILE_STRUCTURE.md` (add links if missing).88 - Update `docs/CHANGELOG.md` with the change; create a minimal stub only when89 doc changes were made and the file is missing.90 - Summarize what changed and what could not be verified.91 - Note that docs-only changes do not require tests unless otherwise requested.9293## Notes9495- Prefer to trim and correct existing docs before rewriting from scratch.96- If the repo lacks needed evidence, add a "Known gaps" bullet with a verification task.9798## Example requests99100- "Update the architecture and file structure docs for this repo."101- "Create CODE_ARCHITECTURE.md and FILE_STRUCTURE.md based on current files."102- "Refresh the docs/FILE_STRUCTURE.md map after adding new folders."