Chuyển đến nội dung
Skillpedia
Triển khai và đám mây (DevOps)48k · #6004

tool-use-guardian

Skill này làm gì

Đây là trợ lý giúp đảm bảo các công cụ mà AI dùng hoạt động đúng. Nó thử lại các lệnh gọi thất bại, sửa các phản hồi bị hỏng và học xem công cụ nào không đáng tin cậy.

Khi nào nên dùng

  • ✓Khi một công cụ trả về dữ liệu chưa đầy đủ hoặc bị sai định dạng.
  • ✓Khi một công cụ phản hồi quá chậm hoặc tạm thời bị chặn.
  • ✓Khi một chuỗi tác vụ thất bại giữa chừng.

Liên kết skill

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/tool-use-guardian/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/tool-use-guardian/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Thử gọi lại công cụ tra cứu thời tiết, nó đang trả về lỗi.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Trước khi dùng công cụ, nó kiểm tra mọi thứ đã đúng chưa. Nếu công cụ thất bại, nó cố sửa hoặc gọi lại, rồi học từ lỗi để tránh các vấn đề tương tự sau này.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

Tool Use Guardian

Overview

The reliability wrapper every AI agent needs. Monitors tool calls, auto-retries failures, fixes truncated responses, and learns which tools are unreliable — so you never lose your chain of thought.

Free forever. Built by the Genesis Agent Marketplace.

Install

npx skills add christopherlhammer11-ai/tool-use-guardian

When to Use This Skill

  • Use when tool calls return truncated or malformed JSON
  • Use when APIs timeout or rate-limit your agent mid-task
  • Use when a multi-step chain breaks partway through
  • Use when you need automatic retry logic without writing it yourself
  • Use for any agent workflow that depends on external tool reliability

How It Works

Step 1: Pre-Call Validation

Before every tool call, Guardian validates:

  • Required parameters are present and correctly typed
  • The tool is not marked as "unreliable" from previous failures
  • Request size is within known limits

Step 2: Failure Classification

When a tool call fails, Guardian classifies the failure into one of 9 categories:

Failure Type Recovery Action
Truncated JSON Re-fetch with pagination or smaller chunks
API Timeout Retry once with simpler request, then decompose
Rate Limit (429) Exponential backoff, max 3 retries
Auth Expired Flag for user intervention
Mid-chain Break Resume from last successful checkpoint
Error-as-200 Detect {"error": "..."} disguised as success
Schema Mismatch Attempt auto-coercion, warn if lossy
Network Failure Retry with jitter, max 2 attempts
Unknown Error Log full context, escalate to user

Step 3: Chain Protection

For multi-step tool chains, Guardian maintains checkpoints. If step 4 of 7 fails, it resumes from step 4 — never restarts from scratch.

Step 4: Learning

Guardian tracks failure patterns per tool. After 3+ failures of the same type, it marks the tool as unreliable and suggests alternatives.

Best Practices

  • ✅ Let Guardian wrap all external tool calls automatically
  • ✅ Review Guardian's reliability reports to identify flaky tools
  • ✅ Use checkpoint recovery for long chains
  • ❌ Don't disable retry logic for rate-limited APIs
  • ❌ Don't ignore repeated failure warnings

Related Skills

  • @recallmax - Long-context memory enhancement (also free from Genesis Marketplace)

Links

Limitations

  • Use this skill only when the task clearly matches the scope described above.
  • Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
  • Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
Câu hỏi thường gặp

Điều gì xảy ra nếu một công cụ thất bại?

Nó cố sửa phản hồi, gọi lại công cụ, hoặc nhận ra công cụ không đáng tin cậy và gợi ý một công cụ khác.

“Chain of thought” là gì?

Đó là chuỗi các bước mà AI thực hiện để hoàn thành tác vụ. Nếu một bước thất bại, AI có thể bị lạc hướng. Trợ lý này giúp chuỗi đó tiếp tục chạy.

Có an toàn khi dùng không?

Có, nó được thiết kế để làm cho các tương tác của AI với công cụ khác đáng tin cậy và an toàn hơn.

Chi tiết

Mô tả gốc của tác giả

FREE — Intelligent tool-call reliability wrapper. Monitors, retries, fixes, and learns from tool failures. Auto-recovers from truncated JSON, timeouts, rate limits, and mid-chain failures.

repo: sickn33/agentic-awesome-skills

Độ phổ biến

Sao GitHub
48k
Vị trí xếp hạng
#6004
Giấy phép
MIT
Cập nhật
15/10/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự