tool-contract-design
Use when defining or reviewing tool interfaces, skill payloads, executor-facing contracts, and structured request-response shapes in PonyBunny.
Files1
View on GitHubSKILL.md.claude/skills/tool-contract-design/SKILL.md
GitHubTool Contract Design
Use this skill when
- adding a tool
- changing a payload schema
- reviewing request/response design
- diagnosing tool mismatch bugs
Goals
- make tool usage explicit
- reduce ambiguity
- improve validation
- support safe execution and auditability
Process
- Define the tool purpose.
- Define caller expectations.
- Define input schema.
- Define output schema.
- Define error schema.
- Define side effects.
- Define audit fields.
- Define compatibility concerns.
Output contract
Return:
- purpose
- request schema
- response schema
- error schema
- side-effect notes
- validation rules
- compatibility notes