本文へスキップ
Skillpedia
エージェント280k · #129

agent-harness-construction

できること

このツールは、AIエージェントがツールをどのように使ってタスクを完了するかを整理し、改善するためのものです。エージェントが何をすべきか、どのように行うべきか、問題が起きたらどうすべきかを明確に理解できるようにし、成功の可能性を高めます。

使う場面

  • ✓AIエージェントが使えるツールを定義したり調整したりするとき。
  • ✓AIエージェントのタスク処理をより確実で効率的にしたいとき。
  • ✓AIエージェントがタスクでつまずいたり、エラーから回復できなかったりするとき。

スキルのリンク

https://github.com/affaan-m/ECC/blob/main/pi/core/skills/agent-harness-construction/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/affaan-m/ECC/blob/main/pi/core/skills/agent-harness-construction/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“AIエージェントが使うツールをどう整理すれば、迷子にならないようにできますか?”

毎週5つの新しいスキル。1分で読めます。

仕組み

エージェントがツールにどのように名前を付けるか、どんな情報を受け取るべきか、どんな情報を返すべきかについて、明確なルールを設定することで機能します。エラーの扱い方や、応答に含めるべき内容も指定します。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

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.
よくある質問

「マイクロツール」「ミディアムツール」「マクロツール」とは何ですか?

ツールの大きさの違いです。マイクロツールは小さく重要な処理向け、ミディアムツールはよくある処理向け、マクロツールは大きく時間のかかる処理向けです。

「Action Space Quality(アクション空間の品質)」とは何ですか?

AIエージェントが使えるツールの分かりやすさと整理の度合いを指します。良いアクション空間では、エージェントがどのツールを、どのように使うべきかを正確に把握できます。

「エラーリカバリー」が重要なのはなぜですか?

AIエージェントが失敗から立ち直るために重要です。エラーの根本原因と再試行の方法が分かっていれば、エージェントはあきらめずにタスクを完了できます。

詳細

作者による元の説明

Design and optimize AI agent action spaces, tool definitions, and observation formatting for higher completion rates. Use when defining or revising an agent's tool set, action space, or observation format.

repo: affaan-m/ECC

人気

GitHubのスター
280k
ランキング
#129
ライセンス
MIT
更新日
2026/10/15

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル