Skip to content
Development
Skill

/agent-tool-contracts

Design agent tools and CLI surfaces—schemas, naming, errors, idempotency, and discoverability for LLM callers. Use when defining tools for agents, SDKs, or AI-native CLIs.

From plugin
awesome-agent-skill
27200 skills4 commands

Claude Code

$ npx -y skills add charlieviettq/awesome-agent-skill --skill agent-tool-contracts --agent claude-code

SKILL.md

agent-tool-contracts.SKILL.md
name: agent-tool-contracts
description: "Design agent tools and CLI surfaces—schemas, naming, errors, idempotency, and discoverability for LLM callers. Use when defining tools for agents, SDKs, or AI-native CLIs."
allowed-tools: Read, Glob, Grep

Agent tool contracts

Tool design rules

1. **Verb-noun names** — `search_issues`, `create_draft_pr` (not `doStuff`). 2. **Minimal parameters** — fewer required fields; sensible defaults in description. 3. **Explicit side effects** — "Creates...", "Deletes...", "Read-only" in description. 4. **Bounded output** — paginate or truncate; return summary + pointer for large data. 5. **Stable errors** — `{ "code": "NOT_FOUND", "message": "..." }`.

Schema quality

  • Types and enums for categorical fields.
  • Examples in parameter descriptions.
  • Reject unknown enums at validation layer.

Idempotency and safety

| Operation | Pattern | |-----------|---------| | Read | Safe to retry | | Create | Idempotency key or dedupe by natural key | | Update | Version or ETag when concurrent edits possible | | Delete | Soft delete or two-step confirm in description |

AI-native CLI (when applicable)

  • `--json` for machine output; stable field names.
  • Exit codes: 0 success, non-zero with stderr message.
  • `--dry-run` for mutating commands.

Review checklist

  • [ ] Description tells the model when NOT to use the tool
  • [ ] Errors actionable (what to fix, not internal codes only)
  • [ ] No overlapping tools with ambiguous choice
  • [ ] Integration test with representative agent prompts

Related

`mcp-builder` for MCP-specific packaging; `agent-evaluation` for measuring tool accuracy.

Read more
@charlieviettq
Ships withawesome-agent-skill

Curated skill pack for LLM agents in engineer and science workflow (Cursor & Claude ready).

Stars on GitHub

Momentum

stars in total
27
Star history of charlieviettq/awesome-agent-skill on GitHub, a chart by star-history.com

Other skills on awesome-agent-skill.

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills10d309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc12d293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react1d252k
@facebook@facebookInstall Skill

Questions about agent-tool-contracts.

Which coding agents can use agent-tool-contracts?
agent-tool-contracts installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.