tool-selector

Before executing a task, analyze the available tool set (web search, code execution, file read/write, API calls, database queries, memory tools), select the optimal tools, plan execution order, and prevent unnecessary tool calls. Triggers on multi-step tasks, "which tool should I use", "plan the tools", or whenever multiple tools could apply.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "tool-selector" with this command: npx skills add fatih-developer/fth-skills/fatih-developer-fth-skills-tool-selector

Tool Selector Protocol

Determine which tools are needed to solve the task, plan the most efficient sequence, and eliminate unnecessary calls before they happen.

Core principle: Every tool call costs time, tokens, and rate limits. The right tool, in the right order, called once.


Tool Catalog

ToolCostSide EffectBest For
Web searchMediumNone (read-only)Current info, external sources
Code executionMediumEnvironment-dependentComputation, transformation, testing
File readLowNoneLocal data, config, content
File writeMediumPersistent changeSaving output, updates
API callHighRate limits, costExternal service integration
Database queryMedium-HighPersistent on writesData read/write
Memory/contextLowNoneRetrieve previous information

Selection Algorithm

For each tool candidate, ask these questions in order:

1. Can this tool actually solve this task?           → No = eliminate
2. Can a cheaper/simpler tool do the same job?       → Yes = use that instead
3. Was this tool already called for this task?        → Yes = use cached result
4. Is this call actually needed right now?            → No = defer
5. Does this tool depend on another tool's output?    → Yes = add to sequence

Anti-Patterns — Block These

Anti-PatternProblemSolution
Reading the same file repeatedlyEach read costs tokensCache on first read
Web search for known informationUnnecessary latencyUse existing knowledge
Serial API calls (could be parallel)SlowPlan parallel calls
Tool chain when one tool sufficesExtra stepsConsolidate
Read before write (when unnecessary)Extra callSkip the read
Loading memory every stepToken wasteLoad once, reference

Output Format

TOOL SELECTOR
Task    : [task summary]
Selected: N tools | Total calls: N | Blocked: N

## Tool Plan

| Step | Tool | Purpose | Depends On | Cached? |
|------|------|---------|------------|---------|
| 1 | [tool] | [why] | — | No |
| 2 | [tool] | [why] | #1 | Yes — use #1 output |

## Blocked Calls

| Blocked | Reason | Alternative |
|---------|--------|-------------|
| [tool call] | [rationale] | [what to do instead] |

## Optimization Notes
- [Parallel opportunities]
- [Cached outputs]
- [Rate limit warnings]

Approve? Proceed?

Tool Combination Guide

Task TypeTypical ChainBlock
Research & ReportSearch → File read → Code (analyze) → File writeSearching same topic twice
Data ProcessingFile read → Code → File writeRe-reading file each step
API IntegrationMemory (creds) → API → Code (parse) → DB writeRe-auth per request
Code DevelopmentFile read → Code (test) → File write → Code (verify)Full test suite on every change
Database OperationMemory (schema) → DB (SELECT) → Code (prepare) → DB (write)Running same SELECT twice

When to Skip

  • Single-tool task ("read this file")
  • User already specified which tool to use
  • Single-step, side-effect-free task

Guardrails

  • Never call an API when cached data suffices — always check cache first.
  • Prefer low-cost tools — file read over web search when local data exists.
  • Cross-skill: works with parallel-planner (parallel tool calls) and task-decomposer (tool needs per subtask).

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

task-decomposer

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

checkpoint-guardian

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

multi-brain-score

No summary provided by upstream source.

Repository SourceNeeds Review