|
| 1 | +--- |
| 2 | +name: update-docs |
| 3 | +description: Update all supplementary documents (TABLE, ROADMAP, PATTERNS) to reflect the current state of oss/ reports. Use when the user asks to update, refresh, or sync documentation. |
| 4 | +allowed-tools: Bash(bash:*), Read, Write, Edit, Glob, Grep |
| 5 | +--- |
| 6 | + |
| 7 | +# Documentation Updater |
| 8 | + |
| 9 | +Bring all supplementary documents in `docs/` up to date with the current `oss/` reports. |
| 10 | + |
| 11 | +## Step 1: Run the audit |
| 12 | + |
| 13 | +Run `bash scripts/audit-docs.sh` to identify gaps between `oss/` reports and documentation. |
| 14 | + |
| 15 | +Save the output for reference throughout the remaining steps. |
| 16 | + |
| 17 | +## Step 2: Regenerate TABLE.md |
| 18 | + |
| 19 | +Run `bash scripts/generate-table.sh` to rebuild `docs/TABLE.md` from scratch. This is fully automated and always produces the correct result. |
| 20 | + |
| 21 | +## Step 3: Update ROADMAP.md |
| 22 | + |
| 23 | +Read `docs/ROADMAP.md` and identify projects missing from it (listed in the audit output). |
| 24 | + |
| 25 | +For each missing project: |
| 26 | +1. Read its `oss/{project}/README.md` to understand its architectural complexity |
| 27 | +2. Determine difficulty level: |
| 28 | + - Beginner: focused scope, clean codebase, straightforward architecture, single-purpose |
| 29 | + - Intermediate: multiple subsystems, distributed components, sophisticated data structures |
| 30 | + - Advanced: massive-scale distributed systems, novel algorithms, complex consensus/scheduling |
| 31 | +3. Add a row to the appropriate difficulty table: `| [{name}](../oss/{project}/README.md) | {why} |` |
| 32 | +4. Check if the project fits any existing Learning Path. If so, add it there too. |
| 33 | + |
| 34 | +Follow the existing writing style. Keep "Why Start Here" / "What You'll Learn" descriptions to one concise sentence. |
| 35 | + |
| 36 | +## Step 4: Update PATTERNS.md |
| 37 | + |
| 38 | +Read `docs/PATTERNS.md` to understand the documented patterns. |
| 39 | + |
| 40 | +For each project NOT yet referenced in PATTERNS.md: |
| 41 | +1. Read its `oss/{project}/README.md`, especially Core Components and Key Design Decisions |
| 42 | +2. Identify which documented patterns the project uses (Plugin Architecture, Pipeline, Event-Driven, WAL, LSM-Tree, Raft, MVCC, Middleware, Work-Stealing, Declarative Reconciliation, Actor Model, Distributed Snapshots, Content-Addressable Storage) |
| 43 | +3. Add a row to each matching pattern table: `| [{name}](../oss/{project}/README.md) | {implementation details} |` |
| 44 | +4. If the project uses a pattern not yet documented and at least 3 projects share it, create a new pattern section |
| 45 | + |
| 46 | +Keep implementation details concise (2-3 sentences) and specific to the project. Reference actual module names, interfaces, or techniques. |
| 47 | + |
| 48 | +## Step 5: Verify |
| 49 | + |
| 50 | +Run `bash scripts/audit-docs.sh` again and confirm: |
| 51 | +- TABLE.md: 0 errors |
| 52 | +- ROADMAP.md: 0 warnings (all projects covered) |
| 53 | +- PATTERNS.md: coverage improved |
| 54 | + |
| 55 | +## Rules |
| 56 | + |
| 57 | +- Write entirely in English |
| 58 | +- Do NOT use markdown bold syntax (`**`) anywhere |
| 59 | +- Follow the existing format and writing style of each document |
| 60 | +- Use relative links: `../oss/{project}/README.md` |
| 61 | +- Do not add projects that do not exist under `oss/` |
| 62 | +- Prioritize accuracy over coverage. If unsure about a project's patterns or difficulty, read its report first |
0 commit comments