Agent Harness Construction
Structured guide for designing agent tool sets, action spaces, and observation formats that raise task completion rates.
- CCM score
- 62 of 100
- skills.sh installs
- 1.1K
- GitHub stars
- 312.6K
- last updated
- Jul 14, 2026
Own this skill? Claim it
What it does
- Covers the four limits on agent output: action space, observation, error recovery, and context budget quality
- Includes granularity rules for micro, medium, and macro tools, plus observation fields
status,summary,next_actions, andartifacts - Requires every error path to state a root cause hint, a safe retry instruction, and an explicit stop condition
- Provides a verified work-item flow using the
harness-adapter-documentation/v1validator, where a manualdonestatus does not count as evidence
Install
$ npx -y skills add affaan-m/ecc --skill agent-harness-construction -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Agent Harness Construction
Use this skill when you are improving how an agent plans, calls tools, recovers from errors, and converges on completion.
Core Model
Agent output quality is constrained by:
- Action space quality
- Observation quality
- Recovery quality
- Context budget quality
Action Space Design
- Use stable, explicit tool names.
- Keep inputs schema-first and narrow.
- Return deterministic output shapes.
- Avoid catch-all tools unless isolation is impossible.
Granularity Rules
- Use micro-tools for high-risk operations (deploy, migration, permissions).
- Use medium tools for common edit/read/search loops.
- Use macro-tools only when round-trip overhead is the dominant cost.
Observation Design
Every tool response should include:
status: success|warning|errorsummary: one-line resultnext_actions: actionable follow-upsartifacts: file paths / IDs
Error Recovery Contract
For every error path, include:
- root cause hint
- safe retry instruction
- explicit stop condition
Context Budgeting
Details
- Repository
- github.com/affaan-m/ecc
- Category
- AI Agents & LLM Apps
- First seen
- Jul 14, 2026
Questions
What does the agent-harness-construction skill do?
It helps you design and optimize an AI agent's action space, tool definitions, and observation formatting to raise completion rates. It guides how an agent plans, calls tools, recovers from errors, and converges on completion. Use it when defining or revising an agent's tool set or observation format.
How do I install the agent-harness-construction skill?
Run npx -y skills add affaan-m/ecc --skill agent-harness-construction -y inside your project. The command adds the skill so your agent can use its guidance on tool design and observation formats.
Which skills lead the AI Agents & LLM Apps category on Claude Marketplaces?
The other top skills in this category include microsoft-foundry, azure-ai, and the google-agents-cli skills. This skill focuses on harness design, covering tool granularity, observation fields, error recovery contracts, and context budgeting for agents.
Does agent-harness-construction include a way to verify that an agent's work is complete?
Yes, it describes an opt-in verified work-item flow that registers a deterministic artifact check and records failed and successful attempts. It starts with the harness-adapter-documentation/v1 validator and says a manual done status is not evidence that a validator passed.
More from affaan-m/ecc
All 257- Autonomous Agent Harness1.1K
- Continuous Learning V21.1K
- Security Review21.3K
- Video Editing19.2K
- Golang Patterns18.1K
- Backend Patterns17.8K
- Coding Standards17.6K
- Frontend Patterns17.6K
- Docker Patterns16.8K
- Golang Testing16.5K
- Python Patterns15.6K
- Springboot Patterns15.5K
- Api Design15.3K
- Market Research15.3K
- Postgres Patterns15.2K
- Frontend Slides15.2K
- Django Patterns15.2K
- Tdd Workflow15K
- Rust Testing14.8K
- Prompt Optimizer14.5K
- Java Coding Standards14.5K
- Django Security14.4K
- Python Testing14.3K
- Laravel Security14.3K
Similar to Agent Harness Construction
More AI Agents & LLM Appsai-agents-architectsickn33/agentic-awesome-skills1.5K installsArchitecture guidance for autonomous AI agents covering loops, tools, memory, planning, and multi-agent orchestration.
continuous-agent-loopaffaan-m/ecc12.2K installsPatterns for autonomous agent loops that gate on quality checks, evals, and recovery from failures.
agentic-engineeringaffaan-m/ecc12.8K installsEval-first agentic engineering workflow with decomposition rules, model-tier routing, and tool-result validation guidance.
agent-orchestration-plannerpatricio0312rev/skills290 installsMulti-step agent workflow design covering tool ordering, retries, fallbacks, state, and budget caps.