/julie:dead-code-auditfrom julie
Use when auditing Julie for dead code, test-only code paths, stale helpers, graph gaps, or cleanup candidates before deleting, privatizing, or simplifying code.
Ships in julie. 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; scripts run unread.
Use Julie's index as evidence, then verify with Julie tools before any edit. A zero-reference row is a lead, not a verdict.
This skill is for Julie development:
Do not use this as a blind deletion workflow. Dynamic dispatch, trait impls, CLI entry points, MCP handlers, generated fixtures, parser registries, macro usage, and cross-language extraction paths all create false positives.
manage_workspace(operation="status")
python3 .claude/skills/dead-code-audit/scripts/dead_code_inventory.py --workspace-id <workspace_id> --limit 40
Use --db <path> if the workspace's index is not under the default ~/.julie/indexes/<workspace_id>/ location (e.g. a standalone .julie/ project index). Use --json when another script will postprocess the result. The default report excludes fixtures, docs, examples, and data/config languages. Add --include-fixtures or --include-data-languages when that scope matters.
./target/debug/julie-server signals --workspace . --fresh --limit 40
Build debug first if needed. Keep this read-only.
Assign one label to each candidate:
| Label | Meaning |
|---|---|
delete | No product reachability, no external dispatch role, no useful test-only value |
make-private | Used in product code, but exported wider than needed |
merge-into-caller | Single product caller and no independent concept |
test-fossil | Product symbol exists only to satisfy tests |
graph-gap | Julie failed to link real product usage |
keep | Valid entry point, trait hook, registry item, dynamic target, or public surface |
needs-design-review | Risky or ambiguous enough to discuss before edits |
For every candidate before recommending deletion:
manage_workspace(operation="health", workspace_id="<workspace_id>", detailed=true)
If files changed since indexing, refresh or rebuild the debug index before trusting the report.
fast_search(query="<name>", file_pattern="<narrow path>", workspace="<workspace_id>")
fast_refs(symbol="<name>", include_definition=true, limit=200, workspace="<workspace_id>")
If the name is overloaded, disambiguate with the file path and rerun.
deep_dive(symbol="<name>", context_file="<path>", depth="context", workspace="<workspace_id>")
Look for trait implementations, #[cfg(test)], CLI/MCP registration, parser factory registration, annotation-driven entry points, and cross-language extractor contracts.
fast_search(query="<symbol-name>", limit=50, workspace="<workspace_id>")
Check strings, config, route names, command names, JSON/TOML/YAML keys, shell scripts, CI files, macro sites, and plugin manifests.
blast_radius(file_paths=["<path>"], include_tests=true, max_depth=2, workspace="<workspace_id>")
If the candidate lives in shared indexing, database, search ranking, workspace registry, parser extraction, or MCP handling code, escalate to design review before deletion.
new, run, handle, setup, and to_string are noisy here.reference_score = 0 means no scored incoming signal, not unused.Contains relationships are structure, not usage.test_role, is_test, decorators, impl metadata, and test linkage with context.Before editing code:
cargo xtask test devNever add a new test whose only purpose is to keep a questionable symbol alive.
Dead Code Audit: <scope>
Candidate: <symbol> at <path>:<line>
Evidence:
- inventory section: <section>
- fast_refs: <prod refs>, <test refs>
- deep_dive role: <entry point / helper / trait hook / unknown>
- blast_radius: <summary>
Decision: <label>
Action: <delete / make private / merge / keep / review>
Verification: <test command>
Confidence: <1-100>
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub anortham/julie-plugin --plugin julie6 skills in this plugin
/editingUse before making changes to existing files. Routes to Julie's edit_file tool without a Read + Edit loop. Trigger on fix, change, update, modify, refactor, rename, replace, add, remove, move, or any task involving an existing file./explore-areaOrient on a new codebase area using get_context for token-budgeted exploration. Use when the user asks "what does this module do", "explain this part", or wants to understand an unfamiliar area before making changes./impact-analysisAnalyze what would break if a symbol changes: finds callers, groups by risk level, assesses impact. Use when the user asks about blast radius, who uses a symbol, or is planning a refactor./search-debugDiagnose why a Julie search returns unexpected results during Julie development. Analyze scoring factors, tokenization, and index health when dogfooding search quality./web-researchFetch web pages and index them locally for token-efficient research. Use when you need to read documentation, articles, or any web content. Fetches via browser39, saves as markdown, indexes via Julie's filewatcher, then uses Julie tools for selective reading. Requires browser39 (binary release from GitHub).