Agent Harness Construction Skill
- Installs
- 1.4k
- Repo stars
- 315k
- Repo updated
- Dec 1, 2026
This is a copy of agent-harness-construction by affaan-m - installs and ranking accrue to the original listing.
TL;DR
agent-harness-construction is an AI agent skill that designs action spaces, tool schemas, observation formats, and error-recovery contracts so coding agents complete complex tasks more reliably.
Install if
Developers building custom agent harnesses who need deterministic tool contracts and structured error recovery beyond default IDE tool lists.
Skip if
Teams only consuming prebuilt MCP servers without customizing action spaces, schemas, or observation formats.
npx skills add https://github.com/affaan-m/ECC --skill agent-harness-constructionTry it first through the Skillselion MCP - nothing to install, nothing on disk.
1. Add the remote connector:
claude mcp add --transport http skillselion https://mcp.skillselion.com/mcp2. Ask your agent:
Use Skillselion load_skill to load skill:affaan-m/ecc#agent-harness-construction (Agent Harness Construction) and follow it.Try it first through the Skillselion MCP - nothing to install, nothing on disk.
1. Add this URL as a custom connector (Claude.ai, ChatGPT or Cursor):
https://mcp.skillselion.com/mcp2. Ask your agent:
Use Skillselion load_skill to load skill:affaan-m/ecc#agent-harness-construction (Agent Harness Construction) and follow it.On this page
- What agent-harness-construction covers
- agent-harness-construction by the numbers
- What does the Agent Harness Construction skill produce?
- What files ship with agent-harness-construction?
- Which skills are related to agent-harness-construction?
- How does agent-harness-construction compare?
- Agent Harness Construction skill FAQ
- More in this repo
What agent-harness-construction covers
- 4-part quality model: action space, observation, recovery, and context budget
- Action Space Design rules using stable names, narrow schemas, and deterministic outputs
- Granularity Rules distinguishing micro-tools, medium tools, and macro-tools
- Standardized Observation Design requiring status, summary, next_actions, and artifacts
- Error Recovery Contract with root-cause hint, safe retry, and explicit stop condition for every error path
agent-harness-construction by the numbers
| All-time installs | 1,418 | skills.sh registry |
|---|---|---|
| Repo stars | ★ 315k | GitHub |
| Repo last updated | December 1, 2026 | GitHub |
| Repository | affaan-m/ECC ↗ | |
Data as of Dec 3, 2026 (Skillselion catalog sync)
What does the Agent Harness Construction skill produce?
Tool JSON schemas, observation response templates, granularity guidelines, and error-recovery contracts for an agent harness.
- tool schema definitions
- observation response template
- error-recovery contract
What files ship with agent-harness-construction?
エージェントハーネス構築
エージェントの計画、ツール呼び出し、エラーからの回復、完了への収束を改善する場合にこのスキルを使用します。
コアモデル
エージェントの出力品質は以下によって制約されます:
- アクション空間の品質
- 観測の品質
- 回復の品質
- コンテキストバジェットの品質
アクション空間の設計
- 安定した明示的なツール名を使用する。
- 入力スキーマファーストで絞り込んだものにする。
- 決定論的な出力形状を返す。
- 分離が不可能な場合を除き、キャッチオールツールは避ける。
粒度ルール
- 高リスク操作(デプロイ、マイグレーション、権限)にはマイクロツールを使用する。
- 一般的な編集・読み取り・検索ループには中規模ツールを使用する。
- ラウンドトリップのオーバーヘッドが支配的なコストである場合のみマクロツールを使用する。
観測の設計
すべてのツールレスポンスに含めるべき内容:
status: success|warning|errorsummary: 一行の結果next_actions: 実行可能なフォローアップartifacts: ファイルパス / ID
エラー回復コントラクト
すべてのエラーパスに含めるべき内容:
- 根本原因のヒント
- 安全なリトライ指示
- 明示的な停止条件
コンテキストバジェット管理
- システムプロンプトを最小限かつ不変に保つ。
- 大きなガイダンスはオンデマンドで読み込まれるスキルに移動する。
- 長いドキュメントをインラインで挿入するより、ファイルへの参照を優先する。
- 任意のトークン閾値ではなく、フェーズの境界でコンパクト化する。
アーキテクチャパターンガイダンス
- ReAct: 不確実なパスを持つ探索的タスクに最適。
- 関数呼び出し: 構造化された決定論的フローに最適。
- ハイブリッド(推奨): ReAct 計画 + 型付きツール実行。
ベンチマーク
追跡すべき指標:
- 完了率
- タスクあたりのリトライ数
- pass@1 および pass@3
- 成功タスクあたりのコスト
アンチパターン
- セマンティクスが重複するツールが多すぎる。
- 回復ヒントのない不透明なツール出力。
- 次のステップなしのエラーのみの出力。
- 無関係な参照でコンテキストを過負荷にする。
Which skills are related to agent-harness-construction?
How does agent-harness-construction compare?
Pick agent-harness-construction over MCP server scaffolding skills when the problem is tool semantics and recovery design, not SDK wiring.
Agent Harness Construction skill FAQ
Who is the Agent Harness Construction skill for?
Developers building custom agent harnesses who need deterministic tool contracts and structured error recovery beyond default IDE tool lists. Skip if: Teams only consuming prebuilt MCP servers without customizing action spaces, schemas, or observation formats.
When should I use agent-harness-construction?
Agent task completion is low because tools are too coarse, observations lack structure, or error paths give no actionable recovery steps.
What should every agent tool response include?
agent-harness-construction requires every tool response to include status (success, warning, or error), a one-line summary, next_actions with executable follow-ups, and artifacts listing file paths or IDs so agents can chain steps deterministically.
When should agent-harness-construction use micro-tools?
agent-harness-construction reserves micro-tools for high-risk operations such as deploys, migrations, and permission changes, while medium tools cover edit-read-search loops and macro tools appear only when round-trip overhead dominates total cost.
Add a agent-harness-construction badge
Show developers this skill is listed on Skillselion. Paste this into your README.