/jcodemunch:jcodemunchfrom jCodeMunch
Guides when to use jCodemunch MCP tools for symbol-level code navigation vs. built-in tools. Covers dependency tracing, refactor planning, and dead code auditing.
Ships in jCodeMunch. 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.
Load this skill when navigating code, investigating dependencies, planning refactors, or assembling task context. The jcodemunch MCP server provides symbol-aware retrieval and graph relationships that regex and full-file reads cannot reproduce.
Read it.The policy block already enumerates the canonical decision tree. What follows is procedural advice for how to use those tools, not a duplicate listing.
Neither step is needed for a task the built-in tools already answer.
resolve_repo({"path": "."}) — confirms the repo is indexed and queryable. If indexed: false, run index_folder.plan_turn({"repo": "...", "query": "..."}) — gets a confidence verdict + recommended files. Obey the confidence:
high → go directly to the recommended symbols.medium → explore the recommended files, cap supplementary reads.low → the capability likely doesn't exist; report the gap, do not keep searching hoping it appears.When you need one symbol out of a large file, this reads less than the whole file:
get_file_outline(file_path) → see the symbol layout first.get_symbol_source(symbol_id) → fetch just the function body you need.get_context_bundle(symbol_id) → if you also need its imports/types.get_file_content(file_path, start_line, end_line) → last resort, only for ranges that aren't symbol-shaped.Each does something distinct; pick by question:
find_importersfind_references (import graph only)check_references (imports + every content match, is_referenced yes/no)get_blast_radiusget_call_hierarchycheck_rename_safecheck_delete_safe (8 verdict tiers)find_similar_symbolsWhen a task spans multiple tools, prefer the orchestrator:
assemble_task_context({"task": "natural-language task"}) auto-classifies into one of six intents (explore / debug / refactor / extend / audit / review) and packs a token-budgeted, source-attributed capsule. Each entry carries stage + source_tool so you can see provenance.Avoid:
Read-then-Grep-then-Glob chains for a question about relationships (who references this, what breaks). The index answers those in one call._meta.verdict.evidence_ref holds an absent: token, or _meta.absence_evidence.citable is true. Report the gap. A no_implementation_found verdict is not proof on its own: read the note, re-index if it names the index, and search again.get_file_outline would do.find_references + get_symbol_source + ...) separately when assemble_task_context or get_context_bundle produces the whole capsule in one call.register_edit({"paths": [...]}) invalidates caches and refreshes the index for those files.If multiple agent sessions share this repo, get_watch_status surfaces watcher_holder per repo (pid, client_id, started_at, age_seconds). When watched_by_another_process: true, our watcher is intentionally idle — another process is keeping the index fresh.
The server can narrow the exposed tool list to suit the model you report. It is optional: pass your model id, exactly as your runner prints it, as plan_turn's model parameter, or call announce_model({"model": "..."}) once. The family is read from the id, so any current id works.
The full canonical reference (with decision-tree bullet points matching the always-on preamble) follows. This restatement is intentional — when the skill is loaded the agent shouldn't need to also have the preamble in context.
jCodemunch-MCP indexes this repository's symbols and how they relate. Use it where it is the cheaper route, and the built-in tools (Grep, Glob, Read) where they are.
Read are often as cheap. Take whichever is fewer steps.Read before Edit/Write will succeed.Before the first jCodemunch call in a session (skip it when the task needs none):
resolve_repo { "path": "." } — confirm the project is indexed. If not: index_folder { "path": "." }suggest_queries — optional, when the repo is unfamiliarFinding code:
search_symbols (add kind=, language=, file_pattern=, decorator= to narrow)search_symbols(decorator="X") to find symbols with a specific decorator (e.g. @property, @route); combine with set-difference to find symbols lacking a decorator (e.g. "which endpoints lack CSRF protection?")search_text (supports regex, context_lines)search_columnsReading code:
get_file_outlineget_symbol_source (single ID → flat object; array → batch)get_context_bundleget_file_content (last resort)Repo structure:
get_repo_outline → dirs, languages, symbol countsget_file_tree → file layout, filter with path_prefixRelationships & impact:
find_importersfind_referencescheck_referencesget_dependency_graphget_blast_radiusget_call_hierarchyget_changed_symbolsfind_dead_codeget_class_hierarchyFor a broad task, when you do not know where to start:
plan_turn { "repo": "...", "query": "your task description" } — get confidence + recommended files. It is one call; skip it when you already know where to look.high → go directly to recommended symbols, max 2 supplementary readsmedium → explore recommended files, max 5 supplementary readslow → the feature likely doesn't exist. Report the gap to the user. Do NOT search further hoping to find it.assemble_task_context { "repo": "...", "task": "..." } returns a single token-budgeted, source-attributed context capsule. It auto-classifies the task (explore / debug / refactor / extend / audit / review), auto-extracts anchor symbols, and runs the intent-appropriate sequence of the tools below end-to-end — so you get the whole context in one request instead of chaining the primitives by hand. Prefer it over a manual chain when the task is well-defined; fall back to step 1's routing when you need to decide whether the feature exists first.Interpreting search results:
search_symbols proves absence only when the scan is citable: _meta.verdict.evidence_ref holds an absent: token, or, where _meta.verdict is not shown, _meta.absence_evidence.citable is true. A negative_evidence of no_implementation_found, a state of absent or an empty result is not proof on its own. When absence is proven:
related_existing files — they show what's nearby, not what existsabsence_citable: false, citable: false, or neither field present). Read the note or absence_blocked_by; if it names the index, re-index, then search again.verdict: "low_confidence_matches": examine the matches critically before assuming they implement the featureverdict: "no_exact_match": no symbol has the name you searched; the rows only share words with it. Do not treat any row as that symbol; if you expected it to exist, re-indexAfter editing files:
register_edit with edited file paths to invalidate caches and keep the index freshregister_edit with all paths to batch-invalidateToken efficiency:
_meta contains budget_warning: stop exploring and work with what you have. Results are never silently shortened — the warning is advisory, and what you got is completeget_session_context to check what you've already read — avoid re-reading the same filesYour jcodemunch-mcp server can narrow the exposed tool list to suit the model you are running as. It is off unless adaptive_tiering is enabled in the server's config, and while it is off a model id changes nothing. Where it is on, pass your model id, exactly as your runner prints it, as model="<your-model-id>" on a plan_turn call you are already making, or call announce_model(model="...") once.
The server reads the model's family from the id (Opus, Sonnet, Haiku, GPT, o1, Llama), so any current id works and none needs listing here.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub jgravelle/jcodemunch-mcp --plugin jcodemunchOther plugins' skills for the same job