What problem does it solve? AI agents often fail tasks because of poorly designed tool interfaces, opaque tool outputs, and unstructured error handling. This Skill provides a systematic framework for designing and optimizing an agent's action space, tool definitions, observation formats, and error recovery contracts so agents complete tasks more reliably. ## Core Features & Use Cases - Action Space Design: Guidelines for stable tool naming, schema-first narrow inputs, deterministic output shapes, and tool granularity rules (micro, medium, macro tools). - Observation & Recovery Contracts: Standard response fields (status, summary, next_actions, artifacts) and error paths with root cause hints, safe retries, and stop conditions. - Architecture & Benchmarking: Guidance on ReAct vs function-calling vs hybrid patterns, context budgeting, and metrics like completion rate, pass@1/pass@3, and cost per successful task. - Use Case: When building a coding agent that keeps failing on deployment tasks, apply this Skill to split risky operations into micro-tools, add structured error recovery hints to every tool response, and measure retries per task to verify improvement. ## Quick Start Use the agent-harness-construction skill to review my agent's tool definitions and redesign the observation format and error recovery contract.