tool-calling-tutor

tool-calling-tutor is a skill for Claude Code from WenyuChiou/awesome-agentic-ai-zh. It costs 62 tokens per session (2,315 once invoked), scanned A, original, MIT.

A troubleshooting guide for software agents that call functions or tools. It covers agents that skip tools, send incorrect arguments, loop endlessly, miss steps, or need a new function schema.

In plain words
What is it for?
It helps diagnose tool-selection failures, improve tool descriptions and schemas, and structure fixes for incorrect calls or repeated loops.
Why use it?
It helps identify whether the problem is the tool description, overlapping tool choices, the arguments, or the agent’s multi-step control flow.

Skill for Claude Code

Written for Claude Code: ${CLAUDE_SKILL_DIR} variable.

Good fit It helps diagnose tool-selection failures, improve tool descriptions and schemas, and structure fixes for incorrect calls or repeated loops.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/wenyuchiou/awesome-agentic-ai-zh/tool-calling-tutor
About the project

awesome-agentic-ai-zh is a trilingual learning roadmap for building and using AI agents, which are systems that pursue a goal by choosing steps, using tools, and responding to results. It guides beginners and experienced programmers through LLM basics, agent loops, multi-agent systems, reliability, and practical exercises. Its catalogue add-ons support workflows involving CLI agents such as Claude Code, Codex, and OpenCode.

WenyuChiou/awesome-agentic-ai-zh · 6,754 stars · on GitHub · wenyuchiou.github.io

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add WenyuChiou/awesome-agentic-ai-zh --skill tool-calling-tutor
Clone the repo
git clone --depth 1 https://github.com/WenyuChiou/awesome-agentic-ai-zh

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for tool-calling-tutor

README.md
[![agentmods](https://agentmods.dev/badge/skills/wenyuchiou/awesome-agentic-ai-zh/tool-calling-tutor/github.svg)](https://agentmods.dev/skills/wenyuchiou/awesome-agentic-ai-zh/tool-calling-tutor)
Your own site
<a href="https://agentmods.dev/skills/wenyuchiou/awesome-agentic-ai-zh/tool-calling-tutor"><img src="https://agentmods.dev/badge/skills/wenyuchiou/awesome-agentic-ai-zh/tool-calling-tutor/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for tool-calling-tutor

Your own site · 80×15
<a href="https://agentmods.dev/skills/wenyuchiou/awesome-agentic-ai-zh/tool-calling-tutor"><img src="https://agentmods.dev/badge/skills/wenyuchiou/awesome-agentic-ai-zh/tool-calling-tutor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 62 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,315 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00062 $0.02315
Opus 5 $0.00031 $0.01157
Sonnet 5 $0.00012 $0.00463
Haiku 4.5 $0.00006 $0.00231

Measured 12d ago against content hash a191709903cd, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

tool-calling-tutor scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (evals/check_evals.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

examples/stage-5/tool-calling-tutor/SKILL.md · 112 lines

How it starts

The opening of the file, as written. The whole thing — 112 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Tool Calling Tutor

You are now in the tool-calling debugging context. The user is building an agent that calls functions / tools, and something isn't working. Your job is to walk them through diagnosis + fix, not to write code for them.

Step 1 — Triage(first thing you do)

When the user mentions tool calling problems, first infer the route from an explicit symptom and briefly confirm it. Ask one multiple-choice question only when the symptom is not explicit:

  1. (a) LLM 不呼叫我的 tool — 模型直接用自然語言回答、完全沒觸發 tool_calls
  2. (b) Tool 被呼叫、但參數錯 — 呼叫對 tool,但 arguments 不對(型別錯、缺欄位、值不合理)
  3. (c) ReAct loop 跑不停 / 漏步 — 多步 loop 無限循環,或者中間漏一個 tool 沒呼叫
  4. (d) 我從零開始、還沒寫 schema — 用戶要新做一個 tool、想知道 schema 怎麼設計

明確的症狀不用重問;確認你推定的 route 後直接繼續。每個 branch 走的 reference 不同。

Step 2 — Branch by symptom

(a) LLM 不呼叫 tool → 看 description 與工具邊界

先檢查這 3 項:

  1. description 太籠統:寫的是「處理資料 / Convert a value / Search things」這種給人讀的 docstring,LLM 看不到「這個 tool 解什麼具體問題」。看 debug-flowchart.md Section A。
  2. 多 tool 邊界互相重疊:兩個 tool 的 description 都能套到 user query、LLM 選不出來、乾脆都不選。
  3. 問題本身用不到 tool:user query 是「介紹一下 Python」這種純知識題、tool list 裡也沒適合的、LLM 直接純文字回答是正確的。

怎麼修:把 description 從「做什麼」改寫成「何時用」。對照 schema-evolution.md 的 bad → good A/B。

(b) Tool 被呼叫、但參數錯 → 看 parameters schema

先檢查這 3 項:

  1. 參數型別全用 string{"value": {"type": "string"}} LLM 不知道要傳 number。改成 {"type": "number"}
  2. 沒有 required:模型可能漏傳必填欄位。明列 "required": ["value", "unit"]
  3. enum 該用沒用unit: string 讓 LLM 傳 "C" "Celsius" "celsius" 都有可能。改 "enum": ["celsius", "fahrenheit"]

對照 schema-evolution.md 的 4 個改進。

(c) ReAct loop 跑不停 / 漏步 → 看 control flow

跑不停的 3 個典型原因:

  1. 忘記把 assistant response 加回 messages——下輪 LLM 看不到自己上輪講過什麼、會無限重複
  2. tool message 沒帶 tool_call_id——LLM 無法配對哪個 result 對應哪個 call、可能重新發起 tool call
  3. 沒設 max_iter safety net——當 tool 結果寫得不好、LLM 會無限呼叫

Read the full file on GitHub · 112 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 112 lines · 62 tokens per session scan A a191709903cd

Subscribe to this mod's changes

tool-calling-tutor is a skill published in the GitHub repository WenyuChiou/awesome-agentic-ai-zh (6,754 stars, last pushed 3d ago), licensed MIT. It adds 62 tokens to every session and 2,315 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

error-translator

A Chinese-language assistant that translates English programming errors and explains what they mean. It covers common errors from languages and frameworks including Python, JavaScript, TypeScript, Java, and others.

laolaoshiren/claude-code-skills-zh · 28 tokens

eslint-fix

A project-aware assistant for finding and fixing ESLint errors, warnings, and configuration compatibility problems. ESLint is a tool that checks JavaScript and TypeScript code for style and common mistakes.

laolaoshiren/claude-code-skills-zh · 79 tokens

perf-profiler

A performance investigation guide that uses repeatable measurements and profiling evidence to find where software spends time or resources. Profiling records runtime activity such as CPU use, memory use, database work, or network delays.

laolaoshiren/claude-code-skills-zh · 78 tokens

log-analyzer

A log-analysis helper that reads application and system logs to find unusual patterns and likely causes. Logs are records of events such as errors, requests, warnings, and service activity.

laolaoshiren/claude-code-skills-zh · 24 tokens

detecting-process-injection-techniques

Detects and analyzes process injection techniques used by malware including classic DLL injection, process hollowing, APC injection, thread hijacking, and reflective loading. Uses memory forensics, API monitoring, and behavioral analysis to identify injection artifacts. Activates for requests involving process…

adriannoes/awesome-agentic-ai · 78 tokens

openskills-runtime-debug

Diagnose openskills-runtime execution failures in sandboxed paths (Landlock, seatbelt, native script execution, wasm execution) and produce root-cause-first findings with minimal-risk remediation steps.

Geeksfino/openskills · 44 tokens