/codanna-toolset:x-rayfrom codanna-toolset
Explores codebases using semantic search and relationship mapping. Use when you need to understand code structure, find integration points, or trace dependencies.
Ships in codanna-toolset. 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.
Read when SKILL.md points to them.
LITERAL: "$ARGUMENTS"
OptimizedQuery: {written against INTENT}
SEARCH — codanna mcp semantic_search_with_context query:"<q>" limit:5
INSPECT — read source at a LOCATION (Read tool or sed -n 'A,Bp' file)
TRAVERSE — codanna retrieve describe <name|symbol_id:N> on a RELATIONSHIP
REFINE — return to SEARCH with a new OptimizedQuery
RESULT — one hit from SEARCH; carries SCORE, signature, doc, LOCATION, RELATIONSHIPS
SCORE — relevance ∈ [0,1]; focus on SCORE > 0.6
LOCATION — file_path:start_line-end_line
RELATIONSHIPS — calls, called_by, implements, defines
LOCATION src/io/exit_code.rs:108-120 →
file_path=<env.cwd>/src/io/exit_code.rs, offset=108, limit=13end_line - start_line + 1sed -n '108,120p' src/io/exit_code.rssymbol_id:N over name when shown — avoids ambiguityThis skill is EXPLORE, not ACT.
INTENT answered → present findings → await user direction. Do not transition to ACT inside this skill.
EXPLORE-legal: derives a read-only view, does not modify source.
When TRAVERSE reveals dense, multi-directional RELATIONSHIPS, visualize. All
pages share the design tokens with the sibling graph skill: dark by default,
light/dark toggle top-right, --light opens light.
# codanna >= 0.14 (has `codanna dump`): one index read, then the neighborhood in memory
node ${CLAUDE_SKILL_DIR}/visualize-dump.js <symbol_id:ID | name> [depth]
# older binaries: one `retrieve describe` per node (3D force view only)
node ${CLAUDE_SKILL_DIR}/visualize-graph.js <symbol_id:ID> [depth]
--3d keeps the 3D force view (the 5-second gestalt of a tangled
neighbourhood; --layout force|td|lr|radialout implies it); --all renders
the whole index and is always 3D (--bake / --no-bake control the
server-side pinned layout, on by default above 2000 nodes)--cap N per-level cap (default 5, 0 =
none), --from graph.jsonl reuses a saved dump, --binary PATH, --no-open,
--relation calls|defines|uses|implements|extends filters --all,
--self-contained inlines the 3D vendor libs (the DAG page always is).codanna/visualizations/graph-{name}-{timestamp}.htmlStructure and flow over the same dump:
# structure: collapsible left-to-right tree (drill-down); --radial for the poster IMAGE
node ${CLAUDE_SKILL_DIR}/visualize-tree.js [--root crate::indexing] [--depth N] [--kinds Function,Method,...] [--radial]
# dependencies on the structure: hierarchical edge bundling (Calls by default)
node ${CLAUDE_SKILL_DIR}/visualize-bundle.js [--root crate::indexing] [--depth N] [--relation calls|uses|implements|extends]
visualize-dump.js (call DAG); "how is this module organized / let me
explore" -> visualize-tree.js (expand/collapse like a file explorer -- the
NAVIGATION surface for structure); "which modules call which, inside one
scope, on a printable page" -> visualize-bundle.js --depth N (arcs
aggregate to collapsed leaves, width ~ log count; hover: callers blue,
callees red)--radial is a POSTER, not a navigation surface: one all-at-once image of a
scope's containment shape for docs, slides, and side-by-side scope
comparison. Without an explicit --depth it auto-collapses deep levels into
counted ancestors (<= ~1200 rendered leaves). Never reach for it when the
user wants to explore -- that is the collapsible tree's jobgraph skill
(node ${CLAUDE_SKILL_DIR}/../graph/graph.mjs): the disc is the living
whole-map these views zoom into. The division: the disc owns
whole-codebase RELATIONSHIP shape (edge webs, hubs, git-date timeline);
x-ray owns scoped CONTAINMENT structure and single-symbol neighbourhoods.
When both could answer, prefer the disc for whole-codebase questions and
x-ray for scoped ones -- never render both for one question--depth collapses deeper levels into counted labels; --root scopes to a
module prefix (edges crossing the root are dropped and counted); symbols
without a module path hang off their file path; Field/Variable/Parameter out
by default (--kinds to include)graph/dump.js (dump reader), graph/hierarchy.js (tree
builder + symbol-to-leaf map), the renderers under graph/, and
graph/theme.js + graph/tokens.mjs (design tokens; node >= 22.12)Approximate per-operation cost:
Prefer fewer high-value operations over many cheap ones. Three SEARCHes with deliberate REFINE beats ten with drift.
Add lang:rust (or lang:python, lang:typescript, …) to SEARCH to narrow by language in multi-language projects.
graph-view.html (opens in a new tab)graph/bundle-render.js (opens in a new tab)graph/collapse-render.js (opens in a new tab)graph/dag-render.js (opens in a new tab)graph/details.js (opens in a new tab)graph/dump.js (opens in a new tab)graph/hierarchy.js (opens in a new tab)graph/logo-cn.min.svg (opens in a new tab)graph/logo-cn.png (opens in a new tab)graph/logo-cn.svg (opens in a new tab)graph/publish.js (opens in a new tab)graph/qualify.js (opens in a new tab)graph/render.js (opens in a new tab)graph/server.js (opens in a new tab)graph/theme.js (opens in a new tab)graph/tokens.mjs (opens in a new tab)graph/tree-render.js (opens in a new tab)graph/vendor/d3.min.js (opens in a new tab)graph/vendor/three-bundle.min.js (opens in a new tab)visualize-bundle.js (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
2 skills in this plugin
npx claudepluginhub bartolli/codanna --plugin codanna-toolsetOther plugins' skills for the same job