From emdx
Bootstrap a knowledge base from a codebase. Reads source code, docs, git history, and CLAUDE.md to generate foundational KB documents covering architecture, components, patterns, history, and operations. Use when starting a new emdx KB for a project or rebuilding after data loss.
How this skill is triggered — by the user, by Claude, or both
Slash command
/emdx:bootstrapThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Generate foundational knowledge base documents by analyzing the current codebase. This creates the "EMDX about X" — a structured knowledge base that captures architecture, design decisions, patterns, conventions, and operational knowledge.
Generate foundational knowledge base documents by analyzing the current codebase. This creates the "EMDX about X" — a structured knowledge base that captures architecture, design decisions, patterns, conventions, and operational knowledge.
$ARGUMENTS — optional focus area (e.g., "architecture", "patterns", "all"). Defaults to "all".
Read the project's foundational documents to understand what exists:
# Check what's already in the KB
emdx find --recent 10 -s
emdx find --tags "architecture,gameplan" -s
# Read project docs
cat CLAUDE.md 2>/dev/null
cat README.md 2>/dev/null
ls docs/ 2>/dev/null
Also read:
pyproject.toml or package.json (dependencies, project metadata)git log --oneline --since="6 months ago" | head -50docs/Generate documents in these categories. Each document should be a self-contained knowledge article, not a reference manual. Write in the voice of someone explaining to a knowledgeable colleague.
For each major architectural choice, create a document explaining:
Save with: echo "<content>" | emdx save --title "<title>" --tags "architecture,bootstrap"
For each major component/service/module, create a document covering:
Save with: echo "<content>" | emdx save --title "<title>" --tags "component,bootstrap"
For each recurring pattern in the codebase, document:
Save with: echo "<content>" | emdx save --title "<title>" --tags "pattern,bootstrap"
Extract from CLAUDE.md's gotchas section, git blame for bug fixes, and test comments:
Save with: echo "<content>" | emdx save --title "<title>" --tags "gotcha,bootstrap"
For each operational task (release, debugging, deployment):
Save with: echo "<content>" | emdx save --title "<title>" --tags "runbook,bootstrap"
After saving all documents, run wikification to discover connections:
emdx maintain wikify --all --dry-run # Preview links
emdx maintain wikify --all # Create links
Report what was generated:
For large codebases, use the Agent tool to parallelize — launch multiple subagents that each handle one category or component, reading source code and saving docs independently.
npx claudepluginhub arockwell/emdx --plugin emdxAnalyzes source code to discover and extract implicit knowledge—architecture patterns, conventions, API contracts, config structures, codebase rules—into KB articles.
Creates a project-specific knowledge base document that primes AI with the project's tech stack, architecture, trusted sources, and structure. Triggered by phrases like 'set up knowledge base'.
Orchestrates parallel knowledge base generation from codebases using spatial analysis, map-reduce architecture, and sub-agents for concepts, architecture, modules, and patterns. Supports feature learning from archived features.