claude/skills/llm-agent-tool-calling-optimization/SKILL.md
Use when LLM agents use server-side search tools (web_search, x_search) with excessive execution time, sequential iterative searching behavior, or need to constrain tool call budgets with parallel execution.
npx skillsauth add dragonkid/dotfiles llm-agent-tool-calling-optimizationInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
LLM agents tend to perform iterative sequential searches when calling server-side tools, causing linear time growth. Force parallel execution through prompt constraints and explicit tool call budgeting.
Force parallel execution through prompt constraints with explicit numeric limits:
# Add to system prompt
## Search Constraints (CRITICAL)
- Maximum N total searches: up to X tool_a + up to Y tool_b
- Plan ALL search queries upfront, then execute them in ONE parallel batch
- Do NOT add follow-up searches based on initial results
- Use OR operators to combine multiple intents into single queries
Before (4 separate searches):
After (1 consolidated search):
Priority: Check SDK/API parameters first.
SDK supports time range (e.g., from_date, to_date): Use SDK parameters directly (hard constraint).
SDK does not support time range: Add soft constraints in prompt:
## Time Constraints
- Focus on events from {search_from_date} onwards
- Skip/ignore any search results dated before {search_from_date}
Analyze API response for these indicators:
server_side_tools_used: Number of tool callsoutputs blocks: Indicates multi-round callsreasoning_tokens: Usually not the main bottlenecktools
Use when user wants to manage TODO items - adding tasks, listing pending items, marking done, removing, or searching. Triggers on /todo command or TODO-related requests.
tools
Use when creating a new skill, updating an existing skill, or troubleshooting skill frontmatter, gating, or slash command registration issues in OpenClaw.
tools
手动触发自我改进与记忆维护。分析近期 memory 文件,维护工作区文件,提出改进提案。触发方式:/self_improve 或用户说"自我改进"、"self improve"。
testing
测试 OpenClaw 配置中 LLM provider 的可用性。触发方式:/provider_check 或用户问"测试 provider 可用性"、"检查 provider 状态"、"provider 健康检查"。