/julie:search-debugfrom julie
Diagnose why a Julie search returns unexpected results during Julie development. Analyze scoring factors, tokenization, and index health when dogfooding search quality.
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.
None: SKILL.md is the whole skill.
Diagnose why a Julie search returns unexpected results. Use this when a search misses an expected symbol, ranks it too low, or returns irrelevant results. This skill is for Julie dogfooding, not general plugin usage.
Run the exact search the user reported:
fast_search(query="<original_query>", limit=20, workspace="<workspace_id>")
fast_search returns mixed-kind results; each hit carries kind. Note what comes back, the top results, their scores, and what's missing. If the default response says "No lexical results. Showing semantic fallback candidates.", treat that as a semantic rescue, not a lexical hit.
If the report involves backend behavior, run the exact requested backend and compare backend="lexical", backend="semantic", and backend="hybrid". Explicit lexical stays pure lexical for bakeoffs; semantic and hybrid are symbol-only concept search.
Search for the expected symbol directly:
fast_search(query="<expected_symbol_name>", workspace="<workspace_id>")
If it doesn't appear at all, the symbol may not be indexed.
manage_workspace(operation="health", workspace_id="<workspace_id>", detailed=true)
Look for:
deep_dive(symbol="<expected_symbol>", depth="context", workspace="<workspace_id>")
Check:
get_context to see the centrality label (low/medium/high).NL_PATH_PENALTY_DOCS / NL_PATH_PENALTY_TESTS (0.95x); fixture paths get a steeper NL_PATH_PENALTY_FIXTURES (0.75x).Consider why the expected result might score lower than competitors:
Tokenization issues:
CodeTokenizer splits CamelCase and snake_case — getUserData becomes [get, user, data], get_user_data also becomes [get, user, data].Ranking issues:
Index issues:
manage_workspace(operation="refresh", workspace_id="<workspace_id>")Search Debug: "<query>"
Expected: <symbol_name> (<file>:<line>)
Current Results (top 5):
1. <symbol> (<file>) — why it scores high
2. <symbol> (<file>) — why it scores high
...
Expected Symbol Analysis:
Centrality: <high/medium/low>
Kind: <function/struct/etc>
Visibility: <pub/private>
File path: <path> (production/test/docs)
Diagnosis:
<Root cause — one of: tokenization mismatch, centrality gap, path penalty,
not indexed, wrong symbol kind, or genuinely correct ranking>
Scoring Factors at Play:
- Centrality boost: <applies/doesn't apply>
- NL path prior: <docs/tests penalty, fixtures penalty, or neutral>
- Tokenization: query "<query>" → tokens [<tokens>], symbol "<name>" → tokens [<tokens>]
- Index state: <current/stale/missing>
Recommendation:
<What to fix — scoring bug, tokenizer config, or "ranking is correct">
manage_workspace(operation="open", path="<path>") first, then pass the returned ID as workspace to scoped calls; use workspace_id only for management operations that require it.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
/dead-code-auditUse when auditing Julie for dead code, test-only code paths, stale helpers, graph gaps, or cleanup candidates before deleting, privatizing, or simplifying code./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./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).