/emdx:bootstrapfrom 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.
Ships in emdx. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole 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.
$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.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub arockwell/emdx --plugin emdx8 skills in this plugin
/investigateDeep-dive investigation into a topic — searches the KB, reads source code, identifies knowledge gaps, and produces a comprehensive analysis document saved to the KB with follow-up tasks./prioritizeAI-assisted task triage — analyze all ready tasks and recommend priorities based on epic progress, dependencies, category, and age./researchSearch the emdx knowledge base for existing research, analysis, and decisions before starting new work. Use when investigating a topic, starting a task, or looking for prior art./reviewRun quality checks on the emdx knowledge base — find stale docs, redundancies, contradictions, knowledge gaps, and code drift. Produces a prioritized action plan with specific fix commands./saveSave findings, analysis, or decisions to the emdx knowledge base. Use when you have research results, investigation notes, or decisions worth persisting across sessions./tasksManage tasks in the emdx knowledge base — add, prioritize, and track work items with epics and categories.Other plugins' skills for the same job