[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6NHB9818QRMHJWD6RW0KG03":3,"skill-same:01M6NHB9818QRMHJWD6RW0KG03":109},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":50,"commitSha":51,"skillDirectory":52,"forksCount":53,"repositoryHtmlUrl":49,"repositoryHomepageUrl":6,"ownerHtmlUrl":54,"ownerBlogUrl":55,"ownerDescription":56,"updatedAt":57,"install":58,"resources":71},"01M6NHB9818QRMHJWD6RW0KG03","brainharness-docs",null,"Organize project documentation by size, audience, and freshness. Trigger when setting up docs for a new project, restructuring existing documentation, slimming a bloated CLAUDE.md\u002FAGENTS.md, deciding where a doc should live, or on doc best practices questions. Also trigger when CLAUDE.md exceeds ~250 lines or docs are duplicated across files. Triggers on: organize docs, reorganize documentation, slim CLAUDE.md, AGENTS.md too long, where to put docs, docs structure, doc best practices, set up documentation, docs are messy, flatten docs, doc migration.","zning1994\u002Fbrainharness-docs","zning1994","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F6896818?v=4","01M6HYDJPB8RR1V6W50Y4GH0R2","ZHANG Ning","01M6NHB6JRGKF5RAM0R7RAPDJN",2,"MIT","https:\u002F\u002Fgithub.com\u002Fzning1994\u002Fbrainharness-docs\u002Fblob\u002Fmain\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"docs","brainharness docs","across","macos","project documentation","for","too long","long","trigger","live","project","windows","structure","organize","files","up","new project","doc","SET","documentation","2026-11-10 10:12:30",false,"---\nname: brainharness-docs\ndescription: >-\n  Organize project documentation by size, audience, and freshness. Trigger when\n  setting up docs for a new project, restructuring existing documentation, slimming\n  a bloated CLAUDE.md\u002FAGENTS.md, deciding where a doc should live, or on doc best\n  practices questions. Also trigger when CLAUDE.md exceeds ~250 lines or docs are\n  duplicated across files.\n  Triggers on: organize docs, reorganize documentation, slim CLAUDE.md, AGENTS.md\n  too long, where to put docs, docs structure, doc best practices, set up\n  documentation, docs are messy, flatten docs, doc migration.\nversion: 1.2.1\nmetadata:\n  author: zning1994\n  openclaw:\n    homepage: https:\u002F\u002Fgithub.com\u002Fzning1994\u002Fbrainharness-docs\n    os:\n      - macos\n      - linux\n      - windows\n---\n\n# BrainHarness Docs\n\nA practical guide for organizing project documentation so that every fact has one home,\nAI agents load only what they need, and humans can find things without grep.\n\n## Why This Matters\n\nPoor doc organization creates three problems that compound over time:\n\n1. **Drift** — the same fact copied into 3 files eventually becomes 3 different \"truths\"\n2. **Context waste** — a 2000-line CLAUDE.md burns AI tokens on every conversation, most of it irrelevant\n3. **Lost docs** — flat directories with 20+ files make everything hard to find\n\nThe fix is simple: organize by who reads it and whether it stays current.\n\n## Step 0: Root-Level Noise Audit\n\nBefore touching docs, clean non-documentation clutter from the project root.\nRoot-level noise (screenshots, recordings, debug logs, AI chat exports) is often\nthe biggest source of visual chaos — and it has nothing to do with documentation structure.\n\nRun `ls | wc -l` and capture the count. Then identify and relocate:\n\n| What to look for | Where it goes |\n|-----------------|---------------|\n| Screenshots, recordings (`.png`, `.mov`, `.mp4`) | `archive\u002Fmedia\u002F` or `screenshots\u002F` if curated |\n| Debug\u002Fbuild logs (`*.log`, `firebase-debug.log`) | `archive\u002F` or delete |\n| AI chat exports, temp markdown dumps | `archive\u002F` or delete |\n| One-off config experiments | `archive\u002F` or delete |\n\nDo this first — it dramatically reduces root-level item count and makes the real\nstructure visible before you start reorganizing docs.\n\n## Step 1: Assess Project Size\n\nAsk yourself (or the user) these questions:\n\n| Question | Small | Medium | Large |\n|----------|-------|--------|-------|\n| Source files | \u003C 5 | 5-50 | 50+ |\n| Has deployment target? | No | Yes | Yes, multiple |\n| Has API or database? | No | Yes | Yes |\n| Ongoing operations (cron, monitoring)? | No | Maybe | Yes |\n| Multiple services\u002Fcontainers? | No | No | Yes |\n\nPick the column that best matches. When in doubt, start smaller — you can always add structure later.\n\n## Step 2: Apply the Right Template\n\n### Small Project\n\nSingle-service tools, scripts, simple packages.\n\n```\nproject\u002F\n├── CLAUDE.md    # 50-100 lines: what it does, how to run, gotchas\n└── README.md    # For humans \u002F GitHub\n```\n\nNo `docs\u002F` directory needed. Everything fits in two files.\n\n### Medium Project\n\nMulti-component apps with deployment targets and external integrations.\n\n```\nproject\u002F\n├── CLAUDE.md    # 100-200 lines: constraints + doc index\n└── docs\u002F\n    ├── plans\u002F       # Implementation plans\n    ├── design\u002F      # Design specs\n    └── reference\u002F   # API tables, config reference, schema\n```\n\nAdd directories only when you have 2+ files that belong there. One API doc doesn't need\na `reference\u002F` folder — just put it in `docs\u002Fapi.md`.\n\n### Large Project\n\nSystems with operational burden: multiple services, cron jobs, monitoring, multi-environment deployment.\n\n```\nproject\u002F\n├── CLAUDE.md    # 200-250 lines: constraints + doc index + key gotchas\n└── docs\u002F\n    ├── README.md      # Documentation map\n    ├── reference\u002F     # API endpoints, DB schema, CLI commands, config reference\n    ├── runbooks\u002F      # Deploy, operations, troubleshooting, known issues\n    ├── guides\u002F        # How-to guides for users and operators\n    ├── product\u002F       # Roadmap, product direction\n    ├── design\u002F        # Design specs (frozen after implementation)\n    ├── plans\u002F         # Implementation plans (frozen after execution)\n    ├── research\u002F      # Investigation notes, audits, system reviews\n    ├── decisions\u002F     # Architecture Decision Records (ADRs)\n    └── archive\u002F       # Superseded docs, old logs, historical patches\n```\n\n### Multi-Repo \u002F Monorepo Workspace\n\nAn umbrella directory containing multiple independent repos (often not a git repo itself).\nThe key rule: **umbrella-level docs are for cross-repo concerns only**.\n\n```\nworkspace\u002F                          # NOT a git repo\n├── CLAUDE.md                       # Repo map + cross-repo conventions + doc index\n├── docker-compose.yml              # Cross-repo orchestration (lives at root)\n├── .env \u002F .env.example             # Shared secrets (lives at root)\n│\n├── repo-a\u002F                         # Independent git repo\n├── repo-b\u002F                         # Independent git repo\n│\n├── deploy\u002F                         # Cross-repo: nginx, infra configs, deploy scripts\n├── scripts\u002F                        # Cross-repo: shared tooling\n├── tools\u002F                          # Cross-repo: shared CLI utilities\n│\n├── docs\u002F                           # Cross-repo documentation ONLY\n│   ├── design\u002F                     #   System-wide architecture specs\n│   ├── research\u002F                   #   Cross-cutting investigations\n│   ├── runbooks\u002F                   #   Deploy, ops, incident response\n│   └── plans\u002F                      #   Cross-repo implementation plans\n│\n├── screenshots\u002F                    # Curated product screenshots (if needed)\n└── archive\u002F                        # Superseded docs + one-off media\n    ├── media\u002F                      #   Old screenshots, recordings\n    └── docs\u002F                       #   Outdated documents\n```\n\nKey differences from single-repo Large template:\n- Repo-specific docs stay **inside each repo** (e.g., `repo-a\u002Fdocs\u002F`)\n- Umbrella `docs\u002F` only holds docs that span multiple repos\n- Orchestration files (`docker-compose.yml`, `.env`) live at workspace root\n- `deploy\u002F` holds all infra\u002Fnginx configs — don't scatter them in root\n\n## Step 3: Apply the Core Principles\n\n### Principle 1: Single Source of Truth\n\nEvery fact lives in exactly one place. Other docs can *link* to it, never *copy* it.\n\n**Bad**: API endpoint table in CLAUDE.md AND roadmap.md AND usage-guide.md\n**Good**: API endpoint table in `docs\u002Freference\u002Fapi-endpoints.md`, others link to it\n\nWhen you change something, update the one canonical location. Not two files, not three — one.\n\n### Principle 2: CLAUDE.md Is an Instruction Manual, Not an Encyclopedia\n\nCLAUDE.md (or AGENTS.md) is loaded into every AI conversation. Keep it under 250 lines.\nThe reason is simple: every token in CLAUDE.md is consumed on every single conversation,\nwhether relevant or not. A bloated CLAUDE.md wastes context and money.\n\n**What belongs in CLAUDE.md:**\n- Behavioral constraints (naming conventions, rules, gotchas)\n- Architecture summary (what connects to what)\n- Documentation index (where to find details)\n- Key file paths\n\n**What does NOT belong:**\n- Full API tables → move to `reference\u002F`\n- Historical changelogs → move to `product\u002Froadmap.md`\n- Deployment procedures → move to `runbooks\u002F`\n- CLI command references → move to `reference\u002F`\n- Design specs → move to `design\u002F`\n\nIf CLAUDE.md is over 250 lines, extract the largest non-essential sections first.\n\n### Principle 3: Organize by Audience + Freshness\n\nTwo questions determine where any doc belongs:\n\n| Question | Options |\n|----------|---------|\n| **Who reads it?** | agent (AI), operator (maintainer), user (end-user), contributor |\n| **Does it stay current?** | canonical (kept updated), snapshot (frozen in time), archived (superseded) |\n\nThis maps directly to directories:\n\n| Directory | Status | Audience | Contains |\n|-----------|--------|----------|----------|\n| `reference\u002F` | canonical | agent, operator | Look-up tables: API, DB, CLI, config |\n| `runbooks\u002F` | canonical | operator | Deployment, ops, incident response |\n| `guides\u002F` | canonical | user, contributor | How-to instructions |\n| `product\u002F` | canonical | operator | Roadmap, direction, milestones |\n| `design\u002F` | snapshot | agent, contributor | Feature design specs |\n| `plans\u002F` | snapshot | agent, contributor | Implementation plans |\n| `research\u002F` | snapshot | operator | One-off investigations, audits |\n| `decisions\u002F` | snapshot | contributor | Architecture Decision Records |\n| `archive\u002F` | archived | — | Old\u002Fsuperseded docs |\n\n### Principle 4: No Cross-Doc Mirroring\n\nThis rule prevents drift:\n\n> After code or config changes, update the affected canonical doc only.\n> Do not mirror the same fact across multiple docs.\n\nIf you find yourself maintaining a rule like \"always update roadmap, deploy, known-issues,\nAND CLAUDE.md\" — that's a sign of mirroring. Pick one canonical location for each fact.\n\n## Document Metadata\n\nAdd this frontmatter to any non-trivial doc:\n\n```yaml\n---\nstatus: canonical | snapshot | archived\naudience: agent | operator | user | contributor\nlast_reviewed: YYYY-MM-DD\n---\n```\n\n- **canonical**: Must stay current. If code changes, this doc must be updated.\n- **snapshot**: True at time of writing. Never updated. Dated filename is its version.\n- **archived**: Superseded or obsolete. Kept for reference only.\n\n## Anti-Patterns to Watch For\n\n| Anti-Pattern | Why It's Bad | Fix |\n|-------------|-------------|-----|\n| Same fact in 3+ files | Guaranteed drift | Pick one canonical location, link from others |\n| 2000-line CLAUDE.md | Wastes AI context every conversation | Keep \u003C 250 lines, extract reference docs |\n| Flat `docs\u002F` with 20+ files | Can't find anything | Group by audience\u002Fpurpose |\n| Research notes in `docs\u002F` root | Pollutes navigation | Move to `research\u002F` or `archive\u002F` |\n| Chat logs in `docs\u002F` | Not documentation | Move to `archive\u002F` or delete |\n| \"Always update these 4 files\" rule | Creates busywork and drift | \"Update the one canonical source\" |\n| Empty directories \"for later\" | Confusing, no content to navigate | Create directories when you have content |\n| Flat `archive\u002F` dumping ground | Archive itself becomes a junk drawer | Use `archive\u002Fmedia\u002F` for images\u002Fvideo, `archive\u002Fdocs\u002F` for old text |\n\n## Migration Checklist\n\nWhen reorganizing existing docs:\n\n1. **Snapshot before state**: Run `ls | wc -l` at root and `docs\u002F`. Save the counts for a before\u002Fafter comparison.\n2. **Root-level noise audit**: Move stray media, logs, and temp files out of root first (see Step 0).\n3. **Measure docs**: Count lines in CLAUDE.md, count files in `docs\u002F`, identify duplicated facts.\n4. **Classify**: For each doc, determine audience + freshness status.\n5. **Create structure**: Make only the directories you need right now.\n6. **Check implicit references before moving**: `rg \u003Cfilename>` (or `grep -r \u003Cfilename>`) across the project to find references in `docker-compose.yml`, CI\u002FCD configs, `Makefile`, shell scripts, `.gitignore`, etc. Moving a file that is referenced by a config will cause silent runtime failures.\n7. **Move files**: Relocate docs to their new homes.\n8. **Update implicit references**: Fix all paths found in step 6 (docker volume mounts, script paths, etc.).\n9. **Extract from CLAUDE.md**: Pull reference tables, procedures, and specs into dedicated files.\n10. **Add doc index**: Update CLAUDE.md with a table pointing to where things moved.\n11. **Add metadata**: Put frontmatter on each non-trivial doc.\n12. **Remove duplicates**: Delete mirrored content, keep only the canonical copy.\n13. **Verify links**: Make sure markdown cross-references still work.\n14. **Show before\u002Fafter**: Compare root item count before vs. after. This validates the effort and gives the user a tangible result.\n\n## Example: CLAUDE.md Doc Index\n\nAfter extracting content, add a table like this to CLAUDE.md:\n\n```markdown\n## Documentation Index\n\n| What you need | Where to find it |\n|---------------|-----------------|\n| API endpoints | `docs\u002Freference\u002Fapi-endpoints.md` |\n| Database schema | `docs\u002Freference\u002Fdatabase-schema.md` |\n| Deployment guide | `docs\u002Frunbooks\u002Fdeploy.md` |\n| Known issues | `docs\u002Frunbooks\u002Fknown-issues.md` |\n| Roadmap | `docs\u002Fproduct\u002Froadmap.md` |\n```\n\nThis keeps CLAUDE.md as a routing table rather than trying to contain everything.\n","# BrainHarness Docs\n\nA practical guide for organizing project documentation so that every fact has one home,\nAI agents load only what they need, and humans can find things without grep.\n\n## Why This Matters\n\nPoor doc organization creates three problems that compound over time:\n\n1. **Drift** — the same fact copied into 3 files eventually becomes 3 different \"truths\"\n2. **Context waste** — a 2000-line CLAUDE.md burns AI tokens on every conversation, most of it irrelevant\n3. **Lost docs** — flat directories with 20+ files make everything hard to find\n\nThe fix is simple: organize by who reads it and whether it stays current.\n\n## Step 0: Root-Level Noise Audit\n\nBefore touching docs, clean non-documentation clutter from the project root.\nRoot-level noise (screenshots, recordings, debug logs, AI chat exports) is often\nthe biggest source of visual chaos — and it has nothing to do with documentation structure.\n\nRun `ls | wc -l` and capture the count. Then identify and relocate:\n\n| What to look for | Where it goes |\n|-----------------|---------------|\n| Screenshots, recordings (`.png`, `.mov`, `.mp4`) | `archive\u002Fmedia\u002F` or `screenshots\u002F` if curated |\n| Debug\u002Fbuild logs (`*.log`, `firebase-debug.log`) | `archive\u002F` or delete |\n| AI chat exports, temp markdown dumps | `archive\u002F` or delete |\n| One-off config experiments | `archive\u002F` or delete |\n\nDo this first — it dramatically reduces root-level item count and makes the real\nstructure visible before you start reorganizing docs.\n\n## Step 1: Assess Project Size\n\nAsk yourself (or the user) these questions:\n\n| Question | Small | Medium | Large |\n|----------|-------|--------|-------|\n| Source files | \u003C 5 | 5-50 | 50+ |\n| Has deployment target? | No | Yes | Yes, multiple |\n| Has API or database? | No | Yes | Yes |\n| Ongoing operations (cron, monitoring)? | No | Maybe | Yes |\n| Multiple services\u002Fcontainers? | No | No | Yes |\n\nPick the column that best matches. When in doubt, start smaller — you can always add structure later.\n\n## Step 2: Apply the Right Template\n\n### Small Project\n\nSingle-service tools, scripts, simple packages.\n\n```\nproject\u002F\n├── CLAUDE.md    # 50-100 lines: what it does, how to run, gotchas\n└── README.md    # For humans \u002F GitHub\n```\n\nNo `docs\u002F` directory needed. Everything fits in two files.\n\n### Medium Project\n\nMulti-component apps with deployment targets and external integrations.\n\n```\nproject\u002F\n├── CLAUDE.md    # 100-200 lines: constraints + doc index\n└── docs\u002F\n    ├── plans\u002F       # Implementation plans\n    ├── design\u002F      # Design specs\n    └── reference\u002F   # API tables, config reference, schema\n```\n\nAdd directories only when you have 2+ files that belong there. One API doc doesn't need\na `reference\u002F` folder — just put it in `docs\u002Fapi.md`.\n\n### Large Project\n\nSystems with operational burden: multiple services, cron jobs, monitoring, multi-environment deployment.\n\n```\nproject\u002F\n├── CLAUDE.md    # 200-250 lines: constraints + doc index + key gotchas\n└── docs\u002F\n    ├── README.md      # Documentation map\n    ├── reference\u002F     # API endpoints, DB schema, CLI commands, config reference\n    ├── runbooks\u002F      # Deploy, operations, troubleshooting, known issues\n    ├── guides\u002F        # How-to guides for users and operators\n    ├── product\u002F       # Roadmap, product direction\n    ├── design\u002F        # Design specs (frozen after implementation)\n    ├── plans\u002F         # Implementation plans (frozen after execution)\n    ├── research\u002F      # Investigation notes, audits, system reviews\n    ├── decisions\u002F     # Architecture Decision Records (ADRs)\n    └── archive\u002F       # Superseded docs, old logs, historical patches\n```\n\n### Multi-Repo \u002F Monorepo Workspace\n\nAn umbrella directory containing multiple independent repos (often not a git repo itself).\nThe key rule: **umbrella-level docs are for cross-repo concerns only**.\n\n```\nworkspace\u002F                          # NOT a git repo\n├── CLAUDE.md                       # Repo map + cross-repo conventions + doc index\n├── docker-compose.yml              # Cross-repo orchestration (lives at root)\n├── .env \u002F .env.example             # Shared secrets (lives at root)\n│\n├── repo-a\u002F                         # Independent git repo\n├── repo-b\u002F                         # Independent git repo\n│\n├── deploy\u002F                         # Cross-repo: nginx, infra configs, deploy scripts\n├── scripts\u002F                        # Cross-repo: shared tooling\n├── tools\u002F                          # Cross-repo: shared CLI utilities\n│\n├── docs\u002F                           # Cross-repo documentation ONLY\n│   ├── design\u002F                     #   System-wide architecture specs\n│   ├── research\u002F                   #   Cross-cutting investigations\n│   ├── runbooks\u002F                   #   Deploy, ops, incident response\n│   └── plans\u002F                      #   Cross-repo implementation plans\n│\n├── screenshots\u002F                    # Curated product screenshots (if needed)\n└── archive\u002F                        # Superseded docs + one-off media\n    ├── media\u002F                      #   Old screenshots, recordings\n    └── docs\u002F                       #   Outdated documents\n```\n\nKey differences from single-repo Large template:\n- Repo-specific docs stay **inside each repo** (e.g., `repo-a\u002Fdocs\u002F`)\n- Umbrella `docs\u002F` only holds docs that span multiple repos\n- Orchestration files (`docker-compose.yml`, `.env`) live at workspace root\n- `deploy\u002F` holds all infra\u002Fnginx configs — don't scatter them in root\n\n## Step 3: Apply the Core Principles\n\n### Principle 1: Single Source of Truth\n\nEvery fact lives in exactly one place. Other docs can *link* to it, never *copy* it.\n\n**Bad**: API endpoint table in CLAUDE.md AND roadmap.md AND usage-guide.md\n**Good**: API endpoint table in `docs\u002Freference\u002Fapi-endpoints.md`, others link to it\n\nWhen you change something, update the one canonical location. Not two files, not three — one.\n\n### Principle 2: CLAUDE.md Is an Instruction Manual, Not an Encyclopedia\n\nCLAUDE.md (or AGENTS.md) is loaded into every AI conversation. Keep it under 250 lines.\nThe reason is simple: every token in CLAUDE.md is consumed on every single conversation,\nwhether relevant or not. A bloated CLAUDE.md wastes context and money.\n\n**What belongs in CLAUDE.md:**\n- Behavioral constraints (naming conventions, rules, gotchas)\n- Architecture summary (what connects to what)\n- Documentation index (where to find details)\n- Key file paths\n\n**What does NOT belong:**\n- Full API tables → move to `reference\u002F`\n- Historical changelogs → move to `product\u002Froadmap.md`\n- Deployment procedures → move to `runbooks\u002F`\n- CLI command references → move to `reference\u002F`\n- Design specs → move to `design\u002F`\n\nIf CLAUDE.md is over 250 lines, extract the largest non-essential sections first.\n\n### Principle 3: Organize by Audience + Freshness\n\nTwo questions determine where any doc belongs:\n\n| Question | Options |\n|----------|---------|\n| **Who reads it?** | agent (AI), operator (maintainer), user (end-user), contributor |\n| **Does it stay current?** | canonical (kept updated), snapshot (frozen in time), archived (superseded) |\n\nThis maps directly to directories:\n\n| Directory | Status | Audience | Contains |\n|-----------|--------|----------|----------|\n| `reference\u002F` | canonical | agent, operator | Look-up tables: API, DB, CLI, config |\n| `runbooks\u002F` | canonical | operator | Deployment, ops, incident response |\n| `guides\u002F` | canonical | user, contributor | How-to instructions |\n| `product\u002F` | canonical | operator | Roadmap, direction, milestones |\n| `design\u002F` | snapshot | agent, contributor | Feature design specs |\n| `plans\u002F` | snapshot | agent, contributor | Implementation plans |\n| `research\u002F` | snapshot | operator | One-off investigations, audits |\n| `decisions\u002F` | snapshot | contributor | Architecture Decision Records |\n| `archive\u002F` | archived | — | Old\u002Fsuperseded docs |\n\n### Principle 4: No Cross-Doc Mirroring\n\nThis rule prevents drift:\n\n> After code or config changes, update the affected canonical doc only.\n> Do not mirror the same fact across multiple docs.\n\nIf you find yourself maintaining a rule like \"always update roadmap, deploy, known-issues,\nAND CLAUDE.md\" — that's a sign of mirroring. Pick one canonical location for each fact.\n\n## Document Metadata\n\nAdd this frontmatter to any non-trivial doc:\n\n```yaml\n---\nstatus: canonical | snapshot | archived\naudience: agent | operator | user | contributor\nlast_reviewed: YYYY-MM-DD\n---\n```\n\n- **canonical**: Must stay current. If code changes, this doc must be updated.\n- **snapshot**: True at time of writing. Never updated. Dated filename is its version.\n- **archived**: Superseded or obsolete. Kept for reference only.\n\n## Anti-Patterns to Watch For\n\n| Anti-Pattern | Why It's Bad | Fix |\n|-------------|-------------|-----|\n| Same fact in 3+ files | Guaranteed drift | Pick one canonical location, link from others |\n| 2000-line CLAUDE.md | Wastes AI context every conversation | Keep \u003C 250 lines, extract reference docs |\n| Flat `docs\u002F` with 20+ files | Can't find anything | Group by audience\u002Fpurpose |\n| Research notes in `docs\u002F` root | Pollutes navigation | Move to `research\u002F` or `archive\u002F` |\n| Chat logs in `docs\u002F` | Not documentation | Move to `archive\u002F` or delete |\n| \"Always update these 4 files\" rule | Creates busywork and drift | \"Update the one canonical source\" |\n| Empty directories \"for later\" | Confusing, no content to navigate | Create directories when you have content |\n| Flat `archive\u002F` dumping ground | Archive itself becomes a junk drawer | Use `archive\u002Fmedia\u002F` for images\u002Fvideo, `archive\u002Fdocs\u002F` for old text |\n\n## Migration Checklist\n\nWhen reorganizing existing docs:\n\n1. **Snapshot before state**: Run `ls | wc -l` at root and `docs\u002F`. Save the counts for a before\u002Fafter comparison.\n2. **Root-level noise audit**: Move stray media, logs, and temp files out of root first (see Step 0).\n3. **Measure docs**: Count lines in CLAUDE.md, count files in `docs\u002F`, identify duplicated facts.\n4. **Classify**: For each doc, determine audience + freshness status.\n5. **Create structure**: Make only the directories you need right now.\n6. **Check implicit references before moving**: `rg \u003Cfilename>` (or `grep -r \u003Cfilename>`) across the project to find references in `docker-compose.yml`, CI\u002FCD configs, `Makefile`, shell scripts, `.gitignore`, etc. Moving a file that is referenced by a config will cause silent runtime failures.\n7. **Move files**: Relocate docs to their new homes.\n8. **Update implicit references**: Fix all paths found in step 6 (docker volume mounts, script paths, etc.).\n9. **Extract from CLAUDE.md**: Pull reference tables, procedures, and specs into dedicated files.\n10. **Add doc index**: Update CLAUDE.md with a table pointing to where things moved.\n11. **Add metadata**: Put frontmatter on each non-trivial doc.\n12. **Remove duplicates**: Delete mirrored content, keep only the canonical copy.\n13. **Verify links**: Make sure markdown cross-references still work.\n14. **Show before\u002Fafter**: Compare root item count before vs. after. This validates the effort and gives the user a tangible result.\n\n## Example: CLAUDE.md Doc Index\n\nAfter extracting content, add a table like this to CLAUDE.md:\n\n```markdown\n## Documentation Index\n\n| What you need | Where to find it |\n|---------------|-----------------|\n| API endpoints | `docs\u002Freference\u002Fapi-endpoints.md` |\n| Database schema | `docs\u002Freference\u002Fdatabase-schema.md` |\n| Deployment guide | `docs\u002Frunbooks\u002Fdeploy.md` |\n| Known issues | `docs\u002Frunbooks\u002Fknown-issues.md` |\n| Roadmap | `docs\u002Fproduct\u002Froadmap.md` |\n```\n\nThis keeps CLAUDE.md as a routing table rather than trying to contain everything.\n",{"name":5,"version":44,"metadata":45,"description":7},"1.2.1",{"author":9,"openclaw":46},{"os":47,"homepage":49},[22,48,30],"linux","https:\u002F\u002Fgithub.com\u002Fzning1994\u002Fbrainharness-docs","main","84d62918f7caa36c8d6c1086b20d1eea17fc2848","",1,"https:\u002F\u002Fgithub.com\u002Fzning1994","https:\u002F\u002Fwww.zning.net.cn\u002F","Explore the Unknown, Shine the World. 触达未竟，慧响寰宇。","2026-10-04 05:22:33",{"source":8,"skillName":5,"commands":59,"prompt":69,"zipAvailable":70},[60,63,66],{"tool":61,"command":62},"npx","npx skills add zning1994\u002Fbrainharness-docs --skill brainharness-docs",{"tool":64,"command":65},"bunx","bunx skills add zning1994\u002Fbrainharness-docs --skill brainharness-docs",{"tool":67,"command":68},"pnpm","pnpm dlx skills add zning1994\u002Fbrainharness-docs --skill brainharness-docs","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fzning1994\u002Fbrainharness-docs\u002Fblob\u002Fmain\u002FSKILL.md",true,[72,78,84,88,92,96,101,105],{"path":73,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":76,"sourceHtmlUrl":77},".claude-plugin\u002Fplugin.json","REFERENCE","参考文档",574,"https:\u002F\u002Fgithub.com\u002Fzning1994\u002Fbrainharness-docs\u002Fblob\u002Fmain\u002F.claude-plugin\u002Fplugin.json",{"path":79,"resourceType":80,"resourceTypeDesc":81,"sizeBytes":82,"sourceHtmlUrl":83},".clawhubignore","OTHER","其他",279,"https:\u002F\u002Fgithub.com\u002Fzning1994\u002Fbrainharness-docs\u002Fblob\u002Fmain\u002F.clawhubignore",{"path":85,"resourceType":80,"resourceTypeDesc":81,"sizeBytes":86,"sourceHtmlUrl":87},".gitignore",128,"https:\u002F\u002Fgithub.com\u002Fzning1994\u002Fbrainharness-docs\u002Fblob\u002Fmain\u002F.gitignore",{"path":89,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":90,"sourceHtmlUrl":91},"CHANGELOG.md",1755,"https:\u002F\u002Fgithub.com\u002Fzning1994\u002Fbrainharness-docs\u002Fblob\u002Fmain\u002FCHANGELOG.md",{"path":93,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":94,"sourceHtmlUrl":95},"evals\u002Fevals.json",2615,"https:\u002F\u002Fgithub.com\u002Fzning1994\u002Fbrainharness-docs\u002Fblob\u002Fmain\u002Fevals\u002Fevals.json",{"path":97,"resourceType":97,"resourceTypeDesc":98,"sizeBytes":99,"sourceHtmlUrl":100},"LICENSE","许可证",1067,"https:\u002F\u002Fgithub.com\u002Fzning1994\u002Fbrainharness-docs\u002Fblob\u002Fmain\u002FLICENSE",{"path":102,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":103,"sourceHtmlUrl":104},"plugin.json",1102,"https:\u002F\u002Fgithub.com\u002Fzning1994\u002Fbrainharness-docs\u002Fblob\u002Fmain\u002Fplugin.json",{"path":106,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":107,"sourceHtmlUrl":108},"README.md",4308,"https:\u002F\u002Fgithub.com\u002Fzning1994\u002Fbrainharness-docs\u002Fblob\u002Fmain\u002FREADME.md",[110],{"skillNo":111,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":112,"categories":113,"keywords":114,"publishedAt":39},"01M6NHBQRW6ZP8AGQFV9P4B5D2","https:\u002F\u002Fgithub.com\u002Fzning1994\u002Fbrainharness-docs\u002Fblob\u002Fmain\u002Fskills\u002Fbrainharness-docs\u002FSKILL.md",[],[19,20]]