Knowledge base schema reference. Quick-lookup guide for KB file paths, naming conventions, and update triggers. Shows WHERE things live and WHEN to update them. For full file schemas and detailed structure, load /skill:scribe or read the templates in ~/Documents/Notes/templates/. This skill is a path reference, not a workflow executor.
Install
npx skillscat add loganmancuso-scout/dotfiles/schema Install via the SkillsCat registry.
Quick path reference for the KB system. For file schemas and workflows, load /skill:scribe.
Two-layer system:
<project-root>/README.md— human-facing deployment guide~/Documents/Notes/knowledge-base/projects/<project-slug>/context.md— AI-facing institutional memory~/Documents/Notes/knowledge-base/projects/<project-slug>/decisions/— Architecture Decision Records~/Documents/Notes/knowledge-base/projects/<project-slug>/sessions/— Work session logs~/Documents/Notes/knowledge-base/projects/<project-slug>/investigations/— Multi-session debugging
Project Identity Resolution
Determine <project-slug> in this priority order:
basenameof the nearest.gitroot (walk up from$PWD)basenameof$PWD(fallback for no-git sessions launched insideknowledge-base/projects/<slug>/)
File Paths
| File | Path |
|---|---|
| Context | ~/Documents/Notes/knowledge-base/projects/<project-slug>/context.md |
| README | <project-root>/README.md |
| Runbook | ~/Documents/Notes/knowledge-base/projects/<project-slug>/runbook.md |
| Gotchas | ~/Documents/Notes/knowledge-base/projects/<project-slug>/gotchas.md |
| Decision | ~/Documents/Notes/knowledge-base/projects/<project-slug>/decisions/YYYY-MM-DD-<slug>.md |
| Session | ~/Documents/Notes/knowledge-base/projects/<project-slug>/sessions/YYYY-MM-DD[-topic].md |
| Investigation | ~/Documents/Notes/knowledge-base/projects/<project-slug>/investigations/<slug>/notes.md |
| Scratch | ~/Documents/Notes/knowledge-base/projects/<project-slug>/sessions/SCRATCH-YYYY-MM-DD-topic.md |
| Inbox scratch | ~/Documents/Notes/knowledge-base/inbox/SCRATCH-YYYY-MM-DD-topic.md |
| Cross-project gotchas index | ~/Documents/Notes/knowledge-base/index/gotchas.md (pending retirement — see tagging.md) |
| KB structure reference | ~/Documents/Notes/knowledge-base/docs/structure.md |
| Tagging taxonomy reference | ~/Documents/Notes/knowledge-base/docs/tagging.md |
Templates live in ~/Documents/Notes/templates/ — always read the template before creating a new file.
Scratch Workspace
Use the KB as a scratch workspace when you need to think, plan, or offload context. Scratch files are temporary — they are not polished documentation.
When to create scratch files:
- Planning a complex multi-step task before presenting it to the user
- Parking intermediate analysis when your context window grows
- Exploring options or hypotheses before committing to an approach
Where: sessions/SCRATCH-YYYY-MM-DD-topic.md — prefix with SCRATCH- to signal temporary
After scratch work is done: extract key findings to proper session, decision, or context files, then delete the scratch file.
Update Triggers
| Trigger | Action |
|---|---|
| Gotcha discovered | Add to gotchas.md (create from template if missing); ensure context.md → ## Gotchas & Sharp Edges links to it |
| Significant decision | Create ADR in decisions/, index in context.md → ## Past Decisions |
| Work completed | Create session in sessions/, link in context.md → ## Recent Sessions |
| Architecture change | Update context.md → ## Architecture |
| Pattern identified | Update context.md → ## Key Patterns & Conventions |
| Question unresolved | Add to context.md → ## Open Questions |
| Operation documented | Update runbook.md (create from template if missing); ensure context.md → ## Maintenance Runbook links to it |
| Deployment steps change | Update README.md → ## Deployment Instructions |
| Known issue found/resolved | Update README.md → ### Known Issues |
| Any KB file created | Stamp type/, audience/, and topic/ tags per knowledge-base/docs/tagging.md |
Path Resolution
project-slug = basename(nearest .git) OR basename($PWD)
kb-root = ~/Documents/Notes/knowledge-base
projects-dir = ~/Documents/Notes/knowledge-base/projects
context-path = ~/Documents/Notes/knowledge-base/projects/<project-slug>/context.md
decisions-dir = ~/Documents/Notes/knowledge-base/projects/<project-slug>/decisions/
sessions-dir = ~/Documents/Notes/knowledge-base/projects/<project-slug>/sessions/
invest-dir = ~/Documents/Notes/knowledge-base/projects/<project-slug>/investigations/