Skip to content
Back to skills

Agent Harness Construction

ASecurity

AI エージェントのアクション空間、ツール定義、観測フォーマットを設計・最適化して完了率を向上させます。

  • 3 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 12, 2026
ai-agentsgoreactgit

Security analysis

A100/100

Scanned September 12, 2026

npx -y skills add thedixitjain/the-mega-skill-library --skill agent-harness-construction --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Agent Harness Construction?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Agent Harness Construction
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/thedixitjain-agent-harness-construction/badge)](https://www.skillsdirectory.com/skills/thedixitjain-agent-harness-construction)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: agent-harness-construction
description: "AI エージェントのアクション空間、ツール定義、観測フォーマットを設計・最適化して完了率を向上させます。"
category: ai-agents-and-harness
source_repo: affaan-m/ECC
source_path: "docs/ja-JP/skills/agent-harness-construction/SKILL.md"
source_url: https://github.com/affaan-m/ECC/blob/HEAD/docs/ja-JP/skills/agent-harness-construction/SKILL.md
---
# エージェントハーネス構築

エージェントの計画、ツール呼び出し、エラーからの回復、完了への収束を改善する場合にこのスキルを使用します。

## コアモデル

エージェントの出力品質は以下によって制約されます:
1. アクション空間の品質
2. 観測の品質
3. 回復の品質
4. コンテキストバジェットの品質

## アクション空間の設計

1. 安定した明示的なツール名を使用する。
2. 入力スキーマファーストで絞り込んだものにする。
3. 決定論的な出力形状を返す。
4. 分離が不可能な場合を除き、キャッチオールツールは避ける。

## 粒度ルール

- 高リスク操作(デプロイ、マイグレーション、権限)にはマイクロツールを使用する。
- 一般的な編集・読み取り・検索ループには中規模ツールを使用する。
- ラウンドトリップのオーバーヘッドが支配的なコストである場合のみマクロツールを使用する。

## 観測の設計

すべてのツールレスポンスに含めるべき内容:
- `status`: success|warning|error
- `summary`: 一行の結果
- `next_actions`: 実行可能なフォローアップ
- `artifacts`: ファイルパス / ID

## エラー回復コントラクト

すべてのエラーパスに含めるべき内容:
- 根本原因のヒント
- 安全なリトライ指示
- 明示的な停止条件

## コンテキストバジェット管理

1. システムプロンプトを最小限かつ不変に保つ。
2. 大きなガイダンスはオンデマンドで読み込まれるスキルに移動する。
3. 長いドキュメントをインラインで挿入するより、ファイルへの参照を優先する。
4. 任意のトークン閾値ではなく、フェーズの境界でコンパクト化する。

## アーキテクチャパターンガイダンス

- ReAct: 不確実なパスを持つ探索的タスクに最適。
- 関数呼び出し: 構造化された決定論的フローに最適。
- ハイブリッド(推奨): ReAct 計画 + 型付きツール実行。

## ベンチマーク

追跡すべき指標:
- 完了率
- タスクあたりのリトライ数
- pass@1 および pass@3
- 成功タスクあたりのコスト

## アンチパターン

- セマンティクスが重複するツールが多すぎる。
- 回復ヒントのない不透明なツール出力。
- 次のステップなしのエラーのみの出力。
- 無関係な参照でコンテキストを過負荷にする。

---

**Source:** [`affaan-m/ECC`](https://github.com/affaan-m/ECC) → `docs/ja-JP/skills/agent-harness-construction/SKILL.md`

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…