← スキル一覧に戻る

agent-contracts
by abhishekmmgn
agent skills
⭐ 0🍴 0📅 2026年1月20日
SKILL.md
name: agent-contracts description: framework for implementing "Contract-Adhering Agents." Use this to define precise task specifications, deliverables, and negotiation loops to reduce ambiguity in complex workflows.
Agent Contracts Strategy
Goal
Transform vague agent instructions into formal "Contracts" that specify deliverables, scope, and validation criteria, mirroring real-world service agreements to ensure reliability.
1. The Contract Data Model
Define tasks using a structured schema to eliminate ambiguity. A valid contract must include:
| Field | Description | Required |
|---|---|---|
| Task Description | Specific, unambiguous description of the objective. | Yes |
| Deliverables & Specs | Precise outcomes and the specific criteria (validators) that make the deliverable acceptable. | Yes |
| Scope | Detailed boundaries of what is included and, critically, what is out of scope. | No |
| Expected Cost/Duration | Constraints on resource usage or time. | Yes |
| Reporting | The feedback loop mechanism (e.g., "Update every 5 steps"). | Yes |
2. The Contract Lifecycle
Agents should not just "execute"; they should negotiate. Implement this lifecycle state machine:
- Submission: The requester submits a draft contract.
- Assessment: The agent analyzes feasibility, cost, and ambiguity.
- Negotiation/Revision:
- If ambiguous: Agent requests clarification (e.g., "Define 'brief summary'").
- If too costly: Agent rejects and suggests a narrower scope.
- Acceptance: Both parties agree on the specs.
- Execution: The agent generates a plan and executes tasks.
- Resolution: Deliverables are scored against the initial specifications.
3. Feedback & Iteration
Allow the agent to push back during the Assessment phase using these structured feedback categories:
- Underspecification: "The requirements for X are missing."
- Cost Negotiation: "I cannot complete this within the requested token limit."
- Risk: "This task requires access to restricted data I do not have."
4. Subcontracts (Task Decomposition)
- Concept: If a contract is too complex, the agent (Contractor) becomes a "Client" and generates Subcontracts for other agents.
- Mechanism: The agent decomposes the main deliverable into smaller, self-contained contracts, managing the flow and aggregation of results from sub-agents.
スコア
総合スコア
40/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です