Agent Skills
› aiming-lab/MetaClaw
› tool-selection-strategy
tool-selection-strategy
GitHub指导智能体在工作流中高效选择工具的策略。遵循最小化工具原则,强调先读后写、避免推测性调用及并行执行,确保使用最轻量且直接的工具完成任务。
Trigger Scenarios
决定在智能体工作流中调用哪些工具
优化工具选择以减少冗余操作
Install
npx skills add aiming-lab/MetaClaw --skill tool-selection-strategy -g -y
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:
- Can I answer this from memory/context? No tool call needed.
- Is this a file operation? Use Read/Write/Edit tools.
- Is this a code search? Use Grep/Glob tools.
- 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


