affaan-m/ECC

agent-harness-construction

Design and optimize AI agent action spaces, tool definitions, and observation formatting for higher completion rates.

73Collecting
See how to use itView GitHub source
npx skills add https://github.com/affaan-m/ECC --skill "skills/agent-harness-construction"
Automated source guideDesignStandard source

Source checked Jul 28, 2026·Refresh due Oct 26, 2026

Reorganized from the pinned upstream SKILL.md

Source-grounded design guide: agent-harness-construction

Use this skill when you are improving how an agent plans, calls tools, recovers from errors, and converges on completion.

npx skills add https://github.com/affaan-m/ECC --skill "skills/agent-harness-construction"
Check the pinned source

The pinned source supports a structured brief, but not an expanded tutorial. Only detected inputs, outputs, and sections are shown.

240 source words · 9 usable sections

Design context

  • Keep system prompt minimal and invariant.
  • Move large guidance into skills loaded on demand.
  • Prefer references to files over inlining long documents.

Design process

Read agent-harness-construction through these 4 source sections

Sections are extracted automatically from the pinned SKILL.md and link back to the source.

01

Core Model

Agent output quality is constrained by: 1. Action space quality 2. Observation quality 3. Recovery quality 4. Context budget quality

SKILL.md · Core Model
Action space qualityObservation qualityRecovery quality
02

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.

SKILL.md · Action Space Design
Use stable, explicit tool names.Keep inputs schema-first and narrow.Return deterministic output shapes.
03

Granularity Rules

Use micro-tools for high-risk operations (deploy, migration, permissions).

SKILL.md · 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.
04

Observation Design

Every tool response should include: - status: success|warning|error - summary: one-line result - nextactions: actionable follow-ups - artifacts: file paths / IDs

SKILL.md · Observation Design
status: success|warning|errorsummary: one-line resultnextactions: actionable follow-ups

Design checklist

Verify each item before delivery

The source section “Core Model” has been checked.

The source section “Action Space Design” has been checked.

The source section “Granularity Rules” has been checked.

The source section “Observation Design” has been checked.

Choose a different workflow

When another Skill is the better fit

FAQ

What does the agent-harness-construction source document cover?

Use this skill when you are improving how an agent plans, calls tools, recovers from errors, and converges on completion.

How do I install agent-harness-construction?

The source record exposes this install command: npx skills add https://github.com/affaan-m/ECC --skill "skills/agent-harness-construction". Inspect the command and pinned source before running it.

Repository stars
234,327
Repository forks
35,711
Quality
73/100
Source repository last pushed

Quality breakdown

Based on traceable docs and repository signals; stars are not treated as quality.

73/100
Documentation19/30
Specificity17/25
Maintenance20/20
Trust signals17/25

Compare before choosing

Related Agent Skills and source variants

These links are selected from shared tasks, functions, stacks, platforms, and same-name variants. Compare the source owner, documentation, permissions, and maintenance signals.

agent-harness-construction by affaan-m

Review agent-harness-construction's use cases, installation, workflow, and original source instructions.

agent-harness-construction by affaan-m

Review agent-harness-construction's use cases, installation, workflow, and original source instructions.

ab-testing by coreyhaines31

When the user wants to plan, design, or implement an A/B test or experiment, or build a growth experimentation program. Also use when the user mentions "A/B test," "split test," "experiment," "test this change," "variant copy," "multivariate test," "hypothesis," "should I test this," "which version is better," "test two versions," "statistical significance," "how long should I run this test," "growth experiments," "experiment velocity," "experiment backlog," "ICE score," "experimentation program

churn-prevention by coreyhaines31

When the user wants to reduce churn, build cancellation flows, set up save offers, recover failed payments, or implement retention strategies. Also use when the user mentions 'churn,' 'cancel flow,' 'offboarding,' 'save offer,' 'dunning,' 'failed payment recovery,' 'win-back,' 'retention,' 'exit survey,' 'pause subscription,' 'involuntary churn,' 'people keep canceling,' 'churn rate is too high,' 'how do I keep users,' or 'customers are leaving.' Use this whenever someone is losing subscribers o

design-intelligence by event4u-app

Grounded design brief from the adopted corpus — style, WCAG-checked color tokens, typography, layout pattern, anti-patterns. Use on ui-design-brief or any which-style/palette/font/chart decision.

View original Skill.mdThis page is parsed directly from the repository SKILL.md without editorial rewriting. Collected: Jul 28, 2026 · about 2 min

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

  1. Keep system prompt minimal and invariant.
  2. Move large guidance into skills loaded on demand.
  3. Prefer references to files over inlining long documents.
  4. Compact at phase boundaries, not arbitrary token thresholds.

Architecture Pattern Guidance

  • ReAct: best for exploratory tasks with uncertain path.
  • Function-calling: best for structured deterministic flows.
  • Hybrid (recommended): ReAct planning + typed tool execution.

Benchmarking

Track:

  • completion rate
  • retries per task
  • pass@1 and pass@3
  • cost per successful task

Anti-Patterns

  • Too many tools with overlapping semantics.
  • Opaque tool output with no recovery hints.
  • Error-only output without next steps.
  • Context overloading with irrelevant references.
Source repo
affaan-m/ECC
Skill path
skills/agent-harness-construction/SKILL.md
Commit SHA
4e973d3eaf92
Repository license
MIT
Data collected