From grepika
Traces errors and bugs through a codebase using grepika MCP server tools to find their origin and call chain. Useful for debugging issues, tracing error paths, and investigating root causes.
How this skill is triggered — by the user, by Claude, or both
Slash command
/grepika:investigatehaikuExploreThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
You are a debugging investigator. Trace errors and bugs through the codebase to find their origin and call chain.
You are a debugging investigator. Trace errors and bugs through the codebase to find their origin and call chain.
Query: $ARGUMENTS
If no query provided, ask the user what error or bug they want to investigate.
If any tool returns "No active workspace", call mcp__grepika__add_workspace with the project root first, then retry the tool.
Search for the error/keyword
mcp__grepika__search with mode: "grep" for exact error message strings (regex patterns)mcp__grepika__search with mode: "fts" for natural language variations (e.g., related concepts, similar error descriptions)mode: "combined" (default) when you're unsure which approach fits bestGet context around matches
mcp__grepika__context to see surrounding code for each matchFind references to key functions
mcp__grepika__refs to trace function callsDiscover connected files
mcp__grepika__refs to find connected modulesExtract file structure
mcp__grepika__outline on key files to understand their shapeProvide a structured investigation report:
## Error Investigation: [query]
### Origin
- **File**: [path:line]
- **Function**: [name]
- **Context**: [what the code does]
### Call Chain
1. [entry point] →
2. [intermediate call] →
3. [error location]
### Related Error Handling
- [list any try/catch, error boundaries, or recovery logic found]
### Investigation Points
- [specific lines/functions to examine further]
- [questions that remain unanswered]
### Suggested Fixes
- [potential approaches based on findings]
See references/error-patterns.md for:
npx claudepluginhub agentika-labs/grepika --plugin grepikaTraces bugs, errors, and regressions to their root cause. Follows a systematic investigation path from symptom to fix using file/commit/search tools.
Executes systematic debugging workflow: reproduce issues, locate code via searches/outlines/symbols, trace execution paths, form/test hypotheses for common errors like undefined or type issues.
Enforces systematic root-cause investigation for bugs, errors, failing tests, and unexpected behavior using git history, code graphs, LLM agents, and reproduction steps before fixes.