Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Search Tool Hierarchy
.claude/skills/parcadei-search-hierarchy/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-16 | ✗→✓ | ▲ Improved | -2% | 0% |
| case-03 | ✓→✗ | ▼ Worse | -79% | 0% |
| case-10 | ✓→✗ | ▼ Worse | -28% | 0% |
| case-11 | ✓→✗ | ▼ Worse | -7% | 0% |
| case-12 | ✓→✗ | ▼ Worse | -33% | 0% |
Use the most token-efficient search tool for each query type.
Query Type?
├── STRUCTURAL (code patterns)
│ → AST-grep (~50 tokens output)
│ Examples: "def foo", "class Bar", "import X", "@decorator"
│
├── SEMANTIC (conceptual questions)
│ → LEANN (~100 tokens if path-only)
│ Examples: "how does auth work", "find error handling patterns"
│
├── LITERAL (exact identifiers)
│ → Grep (variable output)
│ Examples: "TemporalMemory", "check_evocation", regex patterns
│
└── FULL CONTEXT (need complete understanding)
→ Read (1500+ tokens)
Last resort after finding the right file| Tool | Output Size | Best For | |------|-------------|----------| | AST-grep | ~50 tokens | Function/class definitions, imports, decorators | | LEANN | ~100 tokens | Conceptual questions, architecture, patterns | | Grep | ~200-2000 | Exact identifiers, regex, file paths | | Read | ~1500+ | Full understanding after finding the file |
The grep-to-leann.sh hook automatically:
bash# STRUCTURAL → AST-grep ast-grep --pattern "async def $FUNC($$$):" --lang python # SEMANTIC → LEANN leann search opc-dev "how does authentication work" --top-k 3 # LITERAL → Grep Grep pattern="check_evocation" path=opc/scripts # FULL CONTEXT → Read (after finding file) Read file_path=opc/scripts/z3_erotetic.py
1. AST-grep: "Find async functions" → 3 file:line matches
2. Read: Top match only → Full understanding
3. Skip: 4 irrelevant files → 6000 tokens saved| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-13 | pass→pass | 14,002 | 9,400 | -33% | 1 | 1 | 0% | 2,170 | 1,975 | -9% | 0 | 0 | — |
case-02 | fail→fail | 12,032 | 9,388 | -22% | 1 | 1 | 0% | 2,152 | 1,190 | -45% | 0 | 0 | — |
case-01 | fail→fail | 10,182 | 7,178 | -30% | 1 | 1 | 0% | 1,880 | 1,253 | -33% | 0 | 0 | — |
case-03 | pass→fail | 23,275 | 3,905 | -83% | 1 | 1 | 0% | 4,050 | 841 | -79% | 0 | 0 | — |
case-04 | fail→fail | 2,692 | 8,190 | +204% | 1 | 1 | 0% | 241 | 1,260 | +423% | 0 | 0 | — |
case-05 | fail→fail | 9,659 | 26,949 | +179% | 1 | 1 | 0% | 1,879 | 990 | -47% | 0 | 0 | — |
case-06 | fail→fail | 12,164 | 6,125 | -50% | 1 | 1 | 0% | 2,241 | 1,059 | -53% | 0 | 0 | — |
case-07 | fail→fail | 9,913 | 28,341 | +186% | 1 | 1 | 0% | 1,638 | 939 | -43% | 0 | 0 | — |
case-08 | fail→fail | 12,229 | 8,506 | -30% | 1 | 1 | 0% | 2,078 | 1,428 | -31% | 0 | 0 | — |
case-09 | fail→fail | 16,708 | 5,561 | -67% | 1 | 1 | 0% | 2,709 | 798 | -71% | 0 | 0 | — |
case-10 | pass→fail | 9,653 | 4,261 | -56% | 1 | 1 | 0% | 1,131 | 815 | -28% | 0 | 0 | — |
case-11 | pass→fail | 6,659 | 11,050 | +66% | 1 | 1 | 0% | 1,012 | 941 | -7% | 0 | 0 | — |
case-12 | pass→fail | 7,582 | 5,081 | -33% | 1 | 1 | 0% | 1,270 | 852 | -33% | 0 | 0 | — |
case-14 | pass→pass | 11,299 | 2,823 | -75% | 1 | 1 | 0% | 1,819 | 1,063 | -42% | 0 | 0 | — |
case-15 | pass→pass | 10,769 | 5,872 | -45% | 1 | 1 | 0% | 1,826 | 1,494 | -18% | 0 | 0 | — |
case-16 | fail→pass | 12,236 | 8,956 | -27% | 1 | 1 | 0% | 2,073 | 2,038 | -2% | 0 | 0 | — |
case-17 | fail→fail | 6,308 | 8,513 | +35% | 1 | 1 | 0% | 1,283 | 1,007 | -22% | 0 | 0 | — |
case-18 | pass→fail | 4,765 | 3,032 | -36% | 1 | 1 | 0% | 813 | 728 | -10% | 0 | 0 | — |
case-19 | fail→fail | 14,826 | 4,902 | -67% | 1 | 1 | 0% | 2,819 | 1,140 | -60% | 0 | 0 | — |
case-20 | pass→pass | 7,381 | 3,489 | -53% | 1 | 1 | 0% | 1,422 | 1,209 | -15% | 0 | 0 | — |
case-21 | pass→pass | 7,330 | 6,712 | -8% | 1 | 1 | 0% | 1,455 | 1,347 | -7% | 0 | 0 | — |
case-22 | pass→pass | 3,176 | 2,023 | -36% | 1 | 1 | 0% | 567 | 986 | +74% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 22 cases were attempted, and 7 counted toward the lift figure. The other 15 produced results that are not comparable between the two arms, so they are excluded from the headline rather than averaged into it. The headline lift of -18 percentage points is the difference between those two pass rates over the 7 comparable cases. 5 cases got worse with the skill loaded, and they are included in that figure.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.