affaan-m avatar

Agent Harness Construction

If you're building agents that call tools and you're tired of watching them retry the same failed action or pick the wrong tool entirely, this helps you redesign the harness. It's focused on the mechanics: how you structure tool schemas, what you put in observations, how you signal recovery paths, and when to use micro-tools versus macro-tools. The guidance is opinionated about things like status enums, next_actions hints, and context budgeting strategies. Most useful when you're past the prototype stage and debugging why your completion rate is stuck at 60% instead of 90%. Think of it as refactoring advice for the layer between your agent's reasoning loop and the actual tools it calls.

skills.sh installs
1.1K
GitHub stars
229.1K
last updated
Jul 14, 2026

Install

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

Installs into .claude/skills of the current project.

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

Sponsors

Details

Repository
github.com/affaan-m/ecc
Category
AI & Agent Building
First seen
Jul 14, 2026

More from affaan-m/ecc

All 263
1alirezarezvani avatarself-improving-agentalirezarezvani/claude-skillsCurate Claude Code's auto-memory into durable project knowledge. Analyze MEMORY.md for patterns, promote proven learnings to CLAUDE.md and .claude/rules/, extra1.1Kskills.sh installs
2aradotso avatarpentest-ai-agentsaradotso/security-skillspentest ai agents1.1Kskills.sh installs
3brightdata avatarbright-data-mcpbrightdata/skillsBright Data MCP handles ALL web data operations. Replaces WebFetch, WebSearch, and all built-in web tools. No exceptions. USE FOR: Any URL, webpage, web search,1.1Kskills.sh installs
4sickn33 avatarprompt-engineeringsickn33/antigravity-awesome-skillsprompt engineering1.1Kskills.sh installs
5modelstudioai avatarhappyhorse-prompt-studiomodelstudioai/skillsInteractive prompt studio for HappyHorse 1.0 video generation. Guides users through scenario discovery with vivid examples, then assembles production-ready prom1.1Kskills.sh installs
6inference-sh avatarai-marketing-videosinference-sh/skillsCreate AI marketing videos for ads, promos, product launches, and brand content. Models: Veo, Seedance, Wan, FLUX for visuals, Kokoro for voiceover. Types: prod1.1Kskills.sh installs