From sverklo-skill
Enables semantic code search, blast-radius analysis for refactors, risk-scored PR reviews, and health audits via local MCP server. Use for large codebases needing deep structural insights.
How this skill is triggered — by the user, by Claude, or both
Slash command
/sverklo-skill:sverklo-skillThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Sverklo is a local-first code intelligence MCP server. It gives you a dependency graph, semantic search, blast-radius analysis, and risk-scored PR review — all running on the user's machine. No API keys, no cloud, no data leaves the laptop.
Sverklo is a local-first code intelligence MCP server. It gives you a dependency graph, semantic search, blast-radius analysis, and risk-scored PR review — all running on the user's machine. No API keys, no cloud, no data leaves the laptop.
npm install -g sverklo
cd /path/to/project
sverklo init
sverklo init auto-detects the user's AI editor (Claude Code, Cursor, Windsurf, etc.), writes the MCP config, appends sverklo instructions to CLAUDE.md, and verifies the setup. Safe to re-run.
If something looks wrong after setup:
sverklo doctor
Once installed, sverklo tools appear as MCP tools prefixed with sverklo_. The index builds automatically on first use.
Use Sverklo when:
Use Grep when:
FEATURE_FLAG_X exist?")Use Read when:
Skip sverklo for codebases under ~50 source files — the overhead doesn't pay off. Just read everything directly.
Hybrid BM25 + vector + PageRank search. Use instead of Grep when you don't know the exact string.
sverklo_search query:"authentication middleware" top_k:5
Returns ranked code chunks with file paths, line numbers, and relevance scores. Results are ordered by structural importance (PageRank), not just text similarity.
When to reach for it: "Where is X handled?", "Find the code that does Y", any exploratory search where you'd otherwise grep for 10 different terms.
Walk the symbol graph and return all transitive callers, ranked by depth.
sverklo_impact symbol:"UserService.validate"
Returns every function and file that depends on the symbol, how deep the dependency chain goes, and a risk ranking. Essential before any rename, move, or signature change.
When to reach for it: Before refactoring, renaming, or deleting anything. "What breaks if I change this?"
Analyzes the current git diff and scores each changed file by risk: touched-symbol importance x test coverage x churn history.
sverklo_review_diff
Returns files sorted by risk, flags production changes with no corresponding test changes, identifies dangling references, and suggests what to read first.
When to reach for it: Reviewing any PR or diff. "What should I look at first?", "Are there untested changes?"
One-call structural analysis that surfaces god classes, hub files, dead code candidates, and complexity hotspots.
sverklo_audit
Returns a health report with specific files and symbols flagged, grouped by issue type.
When to reach for it: Onboarding to a new codebase, planning a refactor, or answering "what's the scariest part of this repo?"
Save decisions, patterns, and invariants pinned to the current git SHA. Recall them later with semantic search and staleness detection.
sverklo_remember content:"We use Postgres advisory locks instead of Redis for cross-worker mutexes — operational familiarity."
sverklo_recall query:"rate limiting strategy"
Memories survive across sessions. Stale memories (where the referenced code has changed) are flagged automatically.
When to reach for it: Recording architectural decisions, checking what was decided before, any context that should persist across coding sessions.
These are available once sverklo is connected:
| Tool | Use for |
|---|---|
sverklo_overview | PageRank-ranked codebase map — the most important files, not the biggest |
sverklo_lookup | Find any function/class/type by name (typo-tolerant) |
sverklo_refs | All references to a symbol — proves dead code with certainty |
sverklo_deps | File dependency graph, both directions |
sverklo_context | One-call onboarding: overview + code + saved memories |
sverklo_test_map | Which tests cover which changed symbols |
sverklo_diff_search | Semantic search restricted to the changed surface of a diff |
sverklo_ast_grep | Structural pattern matching across the AST |
sverklo_memories | List all saved memories with health metrics |
sverklo_status | Index health check |
sverklo_context — get the project overview, saved memories, and codebase mapsverklo_overview — see the most important files ranked by PageRanksverklo_audit — identify god nodes, hub files, and dead codesverklo_review_diff — get risk-scored file analysis and dangling referencessverklo_impact on any high-risk symbols — see the full blast radiussverklo_test_map — check which tests cover the changed codesverklo_impact on the symbol — see all callers and the blast radiussverklo_refs — find every reference with exact matchingsverklo_deps on the file — understand its dependency contextsverklo_test_map — identify which tests need updatingUserRepository.findActive."parseFoo actually used anywhere, or can I delete it?"npx claudepluginhub sverklo/sverklo --plugin sverklo-skillIndexes a codebase as a structural graph for querying callers, callees, inheritance, blast radius, and semantic code search. Useful for understanding code connectivity, impact analysis, and navigating unfamiliar repos.
Navigates large codebases via an MCP server providing outlines, symbol search, references, callers, git history, blame, and diffs without reading source files.