{"data":{"slug":"discovered-e6f9e62916be39994cdeb207b32e235474ea45681cee2bac","title":"Codebase Knowledge \u2014 Domain Knowledge Reader (v2.0.0)","summary":"Load cached domain knowledge before implementing any feature. Reads `_index.json` and affected `domains\/<slug>.md` files for fast, targeted context retrieval.","url":"https:\/\/skillshunter.net\/skills\/discovered-e6f9e62916be39994cdeb207b32e235474ea45681cee2bac","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/discovered-e6f9e62916be39994cdeb207b32e235474ea45681cee2bac","markdown_url":"https:\/\/skillshunter.net\/skills\/discovered-e6f9e62916be39994cdeb207b32e235474ea45681cee2bac.md","download_url":"https:\/\/skillshunter.net\/skills\/discovered-e6f9e62916be39994cdeb207b32e235474ea45681cee2bac\/download","category":{"slug":"software-development","name":"Software & Development"},"editor_note":"Before coding, read this skill, then `_index.json`, then the affected `domains\/<slug>.md` files. Ensure `documenter` is run to keep `_index.json` up to date with the latest commit information.","instructions":"---\nname: codebase-knowledge\nversion: 2.0.0\ndescription: \"Cached domain knowledge consumed BEFORE implementing any feature. Reads `.claude\/skills\/codebase-knowledge\/_index.json` (machine-readable, regenerated by `documenter`) for fast filter, then reads only the affected `domains\/<slug>.md` files. Avoids re-exploring the codebase every session.\"\n---\n\n# Codebase Knowledge \u2014 Domain Knowledge Reader (v2.0.0)\n\n**ALWAYS invoke BEFORE implementing any feature.**\n\nThis skill is the **read side** of the project memory layer maintained by the `documenter` and `domain-updater` agents. Its job is to load just enough context for the next change without re-discovering the whole codebase.\n\n## Storage layout (maintained by `documenter` v2.0.0)\n\n```\n.claude\/skills\/codebase-knowledge\/\n\u251c\u2500\u2500 SKILL.md                  # this file\n\u251c\u2500\u2500 TEMPLATE.md               # template for new domain files (no version \u2014 it is a template)\n\u251c\u2500\u2500 _INDEX.md                 # human-readable list of all domains\n\u251c\u2500\u2500 _index.json               # machine-readable index \u2014 SOURCE OF TRUTH for filter\n\u2514\u2500\u2500 domains\/\n    \u251c\u2500\u2500 <slug>.md             # one file per domain. \u2264 8 KB \/ ~2k tokens \/ 200 lines\n    \u2514\u2500\u2500 <slug>.archive.md     # commits\/wisdom older than the cap (read on demand only)\n```\n\n## Read protocol (token-efficient)\n\n| # | Step | Tool |\n|---|---|---|\n| 1 | **Resolve which domain(s) you need** by glob\/grep on the affected file paths against `.claude\/config\/domain-mapping.json` | Bash + jq |\n| 2 | **Read `_index.json` first** \u2014 one query gives you `last_commit`, `tags`, `connections` for every domain | `jq '.domains[] \\| select(.slug == \"auth\")' _index.json` |\n| 3 | **Read only the matched `domains\/<slug>.md`** files \u2014 never `cat domains\/*.md` (that defeats the budget) | Read |\n| 4 | **Follow `connections`** if the change crosses a domain boundary; read those neighbours too | Read |\n| 5 | **Skip `<slug>.archive.md`** unless `_index.json` flags `status: archived` and you actually need history | Read |\n\n## Domain file shape\n\nDefined by `documenter` v2.0.0 \u2014 see `TEMPLATE.md` in this folder for the canonical layout. Required sections:\n\n- YAML frontmatter (`domain \u00b7 tags \u00b7 owner \u00b7 last_commit \u00b7 last_date \u00b7 files_count \u00b7 connections \u00b7 status`)\n- TL;DR (\u2264 3 lines, front-loads boundary)\n- Files table (path \u2192 role)\n- Connections table (bidirectional: \u2192 and \u2190 rows)\n- Recent Commits (capped at 20)\n- Attention Points (capped at 10)\n- Problems & Solutions (capped at 5, append-only)\n\n## Workflow\n\n1. **Before coding** \u2014 read this skill, then `_index.json`, then the affected `domains\/<slug>.md` files.\n2. **During coding** \u2014 note any new connection, gotcha, or non-obvious decision (you do not write here directly).\n3. **After commit** \u2014 `documenter` maps files+commits, `domain-updater` records the wisdom you collected.\n\n## Rules\n\n1. **READ `_index.json` FIRST** \u2014 it is regenerated each commit; it is the cheapest way to filter.\n2. **NEVER `cat domains\/*.md`** \u2014 you will blow the context budget.\n3. **BIDIRECTIONAL CONNECTIONS** \u2014 if `auth.md` lists `\u2192 api`, then `api.md` MUST list `\u2190 auth`. If you spot a missing reverse edge, surface it for `domain-updater`.\n4. **ARCHIVE FILES ARE OPT-IN** \u2014 read `<slug>.archive.md` only when `_index.json` shows `status: archived` or when you need pre-cap history.\n5. **DO NOT EDIT DOMAIN FILES DIRECTLY** \u2014 only `documenter` and `domain-updater` write here. If something is wrong, fix the agent or report drift.\n6. **TRUST `last_commit`** \u2014 if `_index.json#last_commit` \u2260 HEAD, the documenter forgot to run; pause and fix instead of working with stale knowledge.\n\n## See Also\n\n- `documenter` v2.0.0 \u2014 writes to this layout (after every commit)\n- `domain-updater` v2.0.0 \u2014 writes session wisdom (Problems & Solutions, Attention Points)\n- `docs-tracker` v2.0.0 \u2014 file \u2192 domain mapping rules\n- `claude-md-compactor` v2.0.0 \u2014 keeps `CLAUDE.md` \u2264 20 KB; this layer keeps each domain \u2264 8 KB\n","use_cases":["Reviewing domain-specific knowledge before implementing a new feature","Identifying relevant files and connections based on domain mappings","Accessing recent commits and attention points for a domain"],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/0x57-1\/start-vibing-stacks\/blob\/6e398b34c4dfe73ac8f809216b218856b8e02ff4\/stacks\/_shared\/skills\/codebase-knowledge\/SKILL.md","source_commit":"6e398b34c4dfe73ac8f809216b218856b8e02ff4","license":null,"version":null,"listing_approved_at":"2026-12-03","created_at":"2026-12-02T09:11:00.000000Z","updated_at":"2026-12-03T16:20:08.000000Z","seo_title":"Codebase Knowledge Reader for Efficient Development","seo_description":"A tool for developers to quickly access domain-specific knowledge before implementing new features, ensuring efficient and informed coding.","seo_keywords":["codebase knowledge","domain knowledge reader","development tool","efficient coding","domain mapping"]}}