tool-design-output
Installation
SKILL.md
Tool Output Design
Every byte a tool returns is paid for in context tokens and in the agent's attention. The result is not a data dump; it is the next prompt the agent reads. Design it as one.
Procedure
- List what the agent needs to decide its next step. Only those fields are essential. Everything else is optional detail or a follow-up call.
- Define a flat, named shape for the result and keep it identical across calls.
- Decide the size policy: default summary, expansion flags, cursor pagination, truncation limits, and references for blobs.
- Add navigation:
hasMoreand cursor, GUI URLs, and a next-action hint. - Handle mixed outcomes with per-item status for anything that touches more than one item.