본문으로 건너뛰기
cccskills
무료GitHub에 공개

agent-tool-builder

Design tools for AI agents — clean function interfaces, typed schemas, informative errors, idempotency, and tool documentation. Use when giving an agent new capabilities or fixing flaky tool use.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(1)

  • SKILL.md3.8 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Agent Tool Builder

Tools are the agent's hands and senses. A well-designed tool is small, predictable, and self-documenting; a bad one is the source of most agent unreliability. Build tools like public APIs — because to the agent, they are.

Overview

The model sees only a tool's name, description, and schema. Everything else — side effects, latency, failure modes — is invisible until it bites. Good tool design therefore means: narrow scope, explicit schemas, errors that explain how to recover, and descriptions written for a reader that takes everything literally. Test each tool as a standalone function before the agent ever calls it.

When to use

  • Adding a new capability to an agent (search, database, file ops, API calls).
  • The agent misuses an existing tool: wrong arguments, wrong tool chosen, ignoring errors.
  • Consolidating several overlapping tools into one clean interface.
  • Writing tools that wrap internal APIs for agent consumption.

Core concepts

  • Single responsibility: one tool, one job. A search_orders tool beats a do_database_stuff tool every time.
  • Schema as documentation: typed parameters with descriptions, enums for fixed choices, sensible defaults. The schema is the primary instruction the agent reads.
  • Descriptive naming: get_customer_order_status, not query2. Names should make the right tool choice obvious.
  • Informative errors: errors should say what went wrong and what to try next ("order not found; try listing orders for this customer with list_orders").
  • Idempotency: repeated identical calls should be safe. Agents retry; design for it — use idempotency keys for writes.
  • Least privilege: each tool exposes only what the agent needs. A read-only variant for exploration, a write variant with stricter gating.

Practical workflow

  1. Write the tool's contract first: name, description, parameters, return shape, error cases — before any code.
  2. Implement it as a plain function with no agent-specific logic; test it standalone with representative inputs.
  3. Write the description for a literal-minded reader: what it does, when to use it, what the arguments mean, what errors mean.
  4. Add validation at the boundary: reject bad inputs with helpful messages rather than failing deep inside.
  5. Load-test the failure paths: timeouts, empty results, malformed data. The agent will hit all of them.
  6. Version the tool contract; log every call with arguments for debugging agent behavior.
Tool contract template:
NAME:   get_order_status
DOES:   Returns current status + tracking for one order.
ARGS:   order_id (string, required) — the ID from list_orders
RETURNS:{status, tracking_url, updated_at}
ERRORS: NOT_FOUND → use list_orders to find valid IDs
        AUTH     → credentials missing; escalate to user

Common pitfalls

  • Vague descriptions: "queries the database." The agent can't choose tools it doesn't understand. Describe inputs, outputs, and when to use it.
  • Mega-tools: one tool with a mode parameter doing five things. Split them; the agent picks tools, not modes.
  • Silent failures: returning empty results or generic errors. The agent will hallucinate around the gap — make errors loud and specific.
  • Non-idempotent writes: the agent retries a failed payment and charges twice. Design writes to be safely repeatable.
  • Leaking internals: stack traces and internal IDs in tool output. Sanitize; give the agent actionable information.
  • No logging: when the agent misbehaves you need the call history. Log every invocation with arguments and results.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Master 1Password: vaults, Watchtower, passkeys, SSH agent, CLI, and family/team administration. Use when getting full value from 1Password personally or administering it for others.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

aicodedecode/awesome-muse-skills242026년 10월 10일 업데이트

Create 3D visuals with modeling, texturing, lighting, rendering, and optimization for web and product.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

aicodedecode/awesome-muse-skills242026년 10월 10일 업데이트

Create 3D web experiences: scene setup, models, materials, lighting, animation, scroll-driven scenes, and performance budgets. Use when adding 3D to websites beyond basic demos.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

aicodedecode/awesome-muse-skills242026년 10월 10일 업데이트

Writing abstracts that get papers read — structured content, the 5-sentence core, and journal-specific constraints.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

aicodedecode/awesome-muse-skills242026년 10월 10일 업데이트

Learn effectively from courses and academies: choosing programs, studying actively, and converting courses into skills. Use when investing time/money in structured learning.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

aicodedecode/awesome-muse-skills242026년 10월 10일 업데이트

Audit designs for accessibility with WCAG checklists covering color, type, focus, motion, and content.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

aicodedecode/awesome-muse-skills242026년 10월 10일 업데이트

aicodedecode의 스킬 모두 보기

이 스킬의 문제 신고