/emdx:investigatefrom emdx
Deep-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.
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.
Conduct a thorough investigation of: $ARGUMENTS
Search the KB multiple ways to find everything that already exists on this topic.
Keyword search:
emdx find "$ARGUMENTS" -s
Semantic search (catches conceptual matches that keyword search misses):
emdx find "$ARGUMENTS" --mode semantic
Tag-based search for related analysis and active work:
emdx find --tags "analysis" -s
emdx find --tags "active" -s
Recent documents (may contain ongoing work on this topic):
emdx find --recent 10 -s
Read any relevant documents found:
emdx view <id>
Important: emdx find does NOT support OR/AND/NOT operators. Run separate find commands for each angle of the topic. Break compound topics into individual searches.
Go beyond the KB and examine the actual codebase. Use Grep, Glob, and Read tools to find code related to the topic.
git log --oneline --all -- <relevant-paths> | head -20Focus on understanding:
Compare what the KB knows against what the codebase reveals. Identify:
Write a comprehensive analysis document with these sections:
# Investigation: <topic>
## Prior Knowledge
What the KB already contains on this topic. Reference specific document IDs.
Note any contradictions or outdated information found.
## Codebase Analysis
What the source code reveals. Include specific file paths, function names,
and code patterns. Explain the current state of implementation.
## Gaps Identified
What's missing from the KB. Rank by importance:
- Critical gaps (would cause someone to make a wrong decision)
- Important gaps (would slow someone down significantly)
- Minor gaps (nice-to-have documentation)
## Recommendations
Concrete next steps:
- Documents that should be created or updated
- Code changes worth considering
- Further investigations needed
- Tasks to create for follow-up work
Save the analysis document:
echo "<analysis document>" | emdx save --title "Investigation: $ARGUMENTS" --tags "analysis,active"
For each actionable recommendation, create a task:
emdx task add "Title describing the work" -D "Details from the investigation" --cat FEAT
Use appropriate categories:
FEAT for new features or capabilitiesFIX for bugs or issues discoveredARCH for refactoring or structural changesDOCS for documentation gapsTEST for missing test coverageIf there's an active epic related to the topic, add --epic <id>.
#42) and file paths (emdx/database/search.py:L45) throughoutWhat SKILL.md sets; muted values are Claude Code's defaults
8 skills in this plugin
/bootstrapBootstrap 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./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.npx claudepluginhub arockwell/emdx --plugin emdxOther plugins' skills for the same job