Skip to content
affaan-m avatar

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
View on GitHub

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, and artifacts
  • 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/v1 validator, where a manual done status does not count as evidence

Install

$ npx -y skills add affaan-m/ecc --skill agent-harness-construction -y

Installs 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:

  1. Action space quality
  2. Observation quality
  3. Recovery quality
  4. Context budget quality

Action Space Design

  1. Use stable, explicit tool names.
  2. Keep inputs schema-first and narrow.
  3. Return deterministic output shapes.
  4. 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|error
  • summary: one-line result
  • next_actions: actionable follow-ups
  • artifacts: 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

Similar to Agent Harness Construction

More AI Agents & LLM Apps