Agent Skillsaiming-lab/MetaClaw › tool-selection-strategy

tool-selection-strategy

GitHub

指导智能体工作流中的工具选择策略,强调最小化、直接调用及避免冗余操作。提供决策启发式规则,优先使用轻量专用工具,并行处理独立读取,防止滥用重型工具。

memory_data/skills/tool-selection-strategy/SKILL.md aiming-lab/MetaClaw

Trigger Scenarios

决定调用哪个工具 优化智能体工具调用效率

Install

npx skills add aiming-lab/MetaClaw --skill tool-selection-strategy -g -y
More Options

Non-standard path

npx skills add https://github.com/aiming-lab/MetaClaw/tree/main/memory_data/skills/tool-selection-strategy -g -y

Use without installing

npx skills use aiming-lab/MetaClaw@tool-selection-strategy

指定 Agent (Claude Code)

npx skills add aiming-lab/MetaClaw --skill tool-selection-strategy -a claude-code -g -y

安装 repo 全部 skill

npx skills add aiming-lab/MetaClaw --all -g -y

预览 repo 内 skill

npx skills add aiming-lab/MetaClaw --list

SKILL.md

Frontmatter
{
    "name": "tool-selection-strategy",
    "category": "agentic",
    "description": "Use this skill when deciding which tools to call in an agentic workflow. Always choose the minimal, most direct tool for each step and avoid redundant or speculative tool calls."
}

Tool Selection Strategy

Principles:

  • Least tool principle: Use the most specific, lightweight tool that accomplishes the goal.
  • Read before writing: Always read a file before editing it to understand current state.
  • Avoid speculative calls: Don't call a tool "just to see what happens". Have a clear hypothesis.
  • Parallelize independent calls: If two reads don't depend on each other, fire them simultaneously.

Decision heuristic:

  1. Can I answer this from memory/context? No tool call needed.
  2. Is this a file operation? Use Read/Write/Edit tools.
  3. Is this a code search? Use Grep/Glob tools.
  4. Is this a system operation? Use Bash (last resort).

Anti-pattern: Using a heavy tool (Agent, Bash) when a lightweight dedicated tool suffices.

Version History

  • 922caf3 Current 2026-07-25 11:09

Same Skill Collection

memory_data/skills/agent-task-handoff/SKILL.md
memory_data/skills/async-communication-etiquette/SKILL.md
memory_data/skills/audience-aware-communication/SKILL.md
memory_data/skills/auth-and-authorization-patterns/SKILL.md
memory_data/skills/avoid-acting-on-assumptions/SKILL.md
memory_data/skills/avoid-hallucinating-specifics/SKILL.md
memory_data/skills/avoid-scope-creep/SKILL.md
memory_data/skills/clarify-ambiguous-requests/SKILL.md
memory_data/skills/codebase-navigation/SKILL.md
memory_data/skills/context-window-management/SKILL.md
memory_data/skills/data-validation-first/SKILL.md
memory_data/skills/debug-systematically/SKILL.md
memory_data/skills/do-not-retry-without-diagnosis/SKILL.md
memory_data/skills/git-workflow/SKILL.md
memory_data/skills/graceful-error-recovery/SKILL.md
memory_data/skills/idempotent-script-design/SKILL.md
memory_data/skills/input-validation-and-sanitization/SKILL.md
memory_data/skills/plan-before-multi-step-execution/SKILL.md
memory_data/skills/prioritize-by-impact/SKILL.md
memory_data/skills/professional-email-drafting/SKILL.md
memory_data/skills/robust-error-handling-in-scripts/SKILL.md
memory_data/skills/secrets-management/SKILL.md
memory_data/skills/secure-code-review/SKILL.md
memory_data/skills/source-evaluation/SKILL.md
memory_data/skills/sql-best-practices/SKILL.md
memory_data/skills/structured-logging-and-observability/SKILL.md
memory_data/skills/structured-progress-update/SKILL.md
memory_data/skills/structured-research-workflow/SKILL.md
memory_data/skills/structured-step-by-step-reasoning/SKILL.md
memory_data/skills/task-decomposition/SKILL.md
memory_data/skills/technical-writing-clarity/SKILL.md
memory_data/skills/test-before-ship/SKILL.md
memory_data/skills/uncertainty-acknowledgment/SKILL.md
memory_data/skills/verify-before-irreversible-action/SKILL.md
memory_data/skills/visualization-selection/SKILL.md

Metadata

Files
0
Version
922caf3
Hash
8d921647
Indexed
2026-07-25 11:09

Главная - Вики-сайт
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-20 16:03
浙ICP备14020137号-1 $Гость$