tool-use-guardian – skill Viết lách & Nội dung cho agent AI
Phân loại lỗi công cụ, kiểm tra phản hồi và tiếp tục các quy trình có giới hạn bằng cơ chế retry an toàn khi replay và xử lý rõ ràng các kết quả ghi không xác định.
Cài skill tool-use-guardian bằng một lệnh
Chọn công cụ bạn đang dùng, copy lệnh và dán vào terminal. Skill sẽ nằm trong thư mục skills của công cụ đó và sẵn sàng dùng ở phiên làm việc tiếp theo.
Claude Code
mkdir -p ~/.claude/skills && curl -fsSL https://skill.dn1nguoi.com/z/tool-use-guardian-8bb2f.tgz | tar xz -C ~/.claude/skills
Gọi trong Claude Code: /tool-use-guardian – rồi mô tả công việc bạn muốn làm.
Codex
mkdir -p ~/.codex/skills && curl -fsSL https://skill.dn1nguoi.com/z/tool-use-guardian-8bb2f.tgz | tar xz -C ~/.codex/skills
Gọi trong Codex: $tool-use-guardian – rồi mô tả công việc bạn muốn làm.
Hermes Agent
mkdir -p ~/.hermes/skills && curl -fsSL https://skill.dn1nguoi.com/z/tool-use-guardian-8bb2f.tgz | tar xz -C ~/.hermes/skills
Gọi trong Hermes Agent: /tool-use-guardian – rồi mô tả công việc bạn muốn làm.
DeepSeek
mkdir -p ~/.deepcode/skills && curl -fsSL https://skill.dn1nguoi.com/z/tool-use-guardian-8bb2f.tgz | tar xz -C ~/.deepcode/skills
Gọi trong DeepSeek: /tool-use-guardian – rồi mô tả công việc bạn muốn làm.
Nội dung SKILL.md
Nội dung SKILL.md gốc bằng tiếng Anh.
Tool Use Guardian
Scope
This is a manual recovery procedure, not an installed wrapper, automatic monitor
or learned reliability service. No runtime, checkpoint store or telemetry is
bundled. Preserve the host's tool contracts and the user's action boundaries.
When to Use This Skill
- A tool response is incomplete, malformed, rate-limited or inconsistent.
- A workflow needs to resume without replaying completed mutations.
- A write timed out and its outcome must be reconciled before any further action.
Procedure
1. Record the tool, target, exact non-secret parameters, request identity, observed
error and any confirmed effects. Separate transport status from application
success. Do not log credentials, private payloads or full conversation context.
2. Validate parameters and responses against the actual tool schema. Do not
coerce an unknown identifier, invent missing fields, or repair truncated JSON
by guessing. Fetch complete bounded pages or request a smaller result.
3. Classify the operation before retrying: a read, a documented idempotent write
using the same operation key, or a potentially non-idempotent mutation. A
timeout or 429 does not prove that a mutation had no effect.
4. For replay-safe transient reads, follow documented Retry-After/backoff within
a deadline and at most three total attempts unless the tool contract is
stricter. Stop on authentication, permission, invalid-input and persistent
schema failures. Do not change credentials or scope to evade a failure.
5. For an uncertain write, use a supported read-only status lookup bound to the
same request/operation ID. Resume only after establishing its outcome. If
lookup is unavailable or ambiguous, preserve the uncertainty and request the
indispensable decision; never silently repeat a payment, message or delete.
6. Maintain a task-local checkpoint of confirmed completed steps and their
evidence. Before resuming a dependent step, verify its prerequisites still
hold. Do not replay earlier writes merely because a later step failed. Return
completed, failed and unknown steps separately.
Recovery Examples
| Observation | Bounded next action |
| --- | --- |
| Truncated read-only inventory | Fetch supported pages; reject incomplete inventory as completion evidence. |
| Read timed out | Retry within the read deadline and attempt cap; keep failures visible. |
| Mutation timed out | Inspect status by the original operation ID; do not submit a second mutation. |
| Authentication expired | Report required reauthentication through the supported host flow. |
| HTTP 200 with an error body | Apply the documented result schema; record application failure. |
| Schema mismatch | Retain the original result; investigate contract/version mismatch without lossy coercion. |
Step: publish-message, operation ID op-17
Observation: request timed out; no receipt returned.
Status lookup: unavailable.
Disposition: outcome unknown; no retry sent. Dependent announcement paused.Limitations
- These instructions cannot enforce retry safety or recover unknown remote state.
- Repeated failures are observations about this task, not proof a tool is globally
unreliable. Do not write a global denylist or persistent memory automatically.
- Checkpoints can become stale; verify the target state and authorization on resume.
- No automatic interception, free service, learning or guaranteed recovery is
established by the source links.
Declared source links
- https://github.com/christopherlhammer11-ai/tool-use-guardian
- https://genesis-node-api.vercel.app
- https://genesis-marketplace.vercel.app
Skill liên quan
- triage – Chuyển issue và PR bên ngoài qua máy trạng thái các vai trò phân loại: phân loại, xác…
- triage-validation – Kiểm chứng phát hiện trước khi viết bất kỳ báo cáo nào.
- turn-this-into-a-thread – Biến ý tưởng dài, bản ghi, bài báo hoặc bản nháp thành thread Twitter/X mà mỗi tweet đều…
- tutorial-engineer – Tạo hướng dẫn từng bước và nội dung giáo dục từ code. Chuyển các khái niệm phức tạp…
- unslop – Xử lý hậu kỳ văn bản do AI tạo ra qua CLI unslop để loại bỏ các mẫu viết của AI trước…
- unsloth-finetuning – Tinh chỉnh và hậu huấn luyện LLM bằng Unsloth Core trên một GPU tiêu dùng: ước lượng…
- using-neon – Neon là nền tảng Postgres serverless tách biệt compute và storage, cung cấp autoscaling…
- verify-citations – Kiểm chứng trích dẫn và tài liệu tham khảo trong tài liệu, báo cáo hoặc bài viết với…