/major-ai-skills:direct-tool-selectionfrom major-ai-skills
Choose a task-specific tool from available capabilities when its documented behavior matches the requested operation.
Ships in major-ai-skills. 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.
When asked to locate or modify a specific piece of code ("Fix the JWT expiration check in the auth service"), unoptimized agents perform a multi-step Exploratory Probing Sequence:
list_dir("/") to explore folders.run_command("find src/ -name *auth*") to locate the file.view_file on the whole file.This 4-turn sequence wastes 3 full API roundtrips, incurs 15 to 20 seconds of latency, and burns 6,000+ context tokens before writing a single line of code.
The Direct Tool Selection Protocol maps user intents directly to the single highest-specificity tool on Turn 1 (e.g., executing grep_search(Query: "jwt.verify") immediately).
┌─────────────────────────────────────────────────────────────┐
│ Tool Selection Trajectory │
│ │
│ Exploratory Probing Loop (4 Turns / 6,500 Tokens): │
│ • Turn 1: `list_dir` ──► Dumps directory tree (800 tokens) │
│ • Turn 2: `run_command(find)` ──► Shell output (200 tokens)│
│ • Turn 3: `view_file` ──► Dumps entire file (3,500 tokens) │
│ • Turn 4: `replace_file` ──► Performs edit │
│ ↳ 4 Turns, 22 Seconds Latency │
│ │
│ Direct Tool Selection Protocol (1 Turn / 280 Tokens): │
│ • Turn 1: `grep_search("jwt.verify")` │
│ ↳ Pinpoints `src/auth.ts:42` with 1 exact tool call! │
│ • Turn 2: `replace_file_content` │
│ ↳ 2 Turns Total, 2.5 Seconds Latency (8.8x Faster!) │
└─────────────────────────────────────────────────────────────┘
Always map operational goals directly to their optimal specialized tool:
| Goal / Intent | ❌ Inefficient Exploratory Tool | 🟢 Optimal Direct Tool | Why |
|---|---|---|---|
| Find symbol / function | list_dir $\rightarrow$ run_command(cat) | grep_search(Query: "funcName") | Instantly returns exact filename & line number. |
| Inspect a known function | view_file (Full 1,000 lines) | view_file(StartLine: 40, EndLine: 80) | Reads only the 40 targeted lines. |
| Extract public webpage text | browser_subagent (Puppeteer) | read_url_content(Url: "...") | HTTP curl extraction is 50x faster than headless browser. |
| Edit existing code | write_to_file(Overwrite: true) | replace_file_content | Replaces target substring in $<50$ tokens. |
| Check git repo state | run_command("git status") | run_command("git status -s -b") | 90% fewer tokens than verbose git status. |
If you are searching for where a variable, error code, or API route is defined, invoke grep_search on Turn 1. Never explore the directory tree folder-by-folder.
If you need documentation, blog posts, or API reference text from a public URL, call read_url_content. Use browser_subagent only if the site requires interactive clicking, form submissions, or JavaScript authentication.
When grep_search returns match at line 142, call view_file(StartLine: 135, EndLine: 160). Never omit the start/end lines.
Executing 40 codebase search and bug-fix operations:
| Metric | Exploratory Multi-Turn Probing | Direct Tool Selection Protocol | Improvement |
|---|---|---|---|
| Average Turns per Task | 3.8 turns | 1.4 turns | 63.1% Fewer Turns |
| Tokens Consumed per Task | 7,400 tokens | 1,850 tokens | 75.0% Token Savings |
| Average Task Duration | 28.5 seconds | 4.2 seconds | 6.8x Faster Execution |
MANDATORY: Agents must select the single most specific tool on Turn 1. Never execute exploratory directory listing or shell searching if
grep_searchor line-boundedview_filecan target the exact symbol directly.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub alivirgo/major-ai-skills --plugin major-ai-skills412 skills in this plugin
/3d-slicerAutomate 3D Slicer research workflows with MRML, VTK/ITK, DICOM data, and Segment Editor. Use for software workflows, not clinical interpretation./abbreviated-git-statusInspect Git branch, staging, and working-tree changes with short or porcelain status output when a compact repository check is needed./ableton-liveAutomate Ableton Live sessions with Python MIDI Remote Scripts, Max for Live, AbletonOSC, and Link synchronization.Other plugins' skills for the same job
/act-as-a-personal-tutorExplain a subject step by step, assess prior knowledge, and use short exercises to check understanding before advancing.