delegating-to-agents
できること
このツールを使うと、AIが別のAI(エージェント)にタスクを引き継ぐことができます。その際、必要な情報をすべて渡し、担当者を明確にし、作業の確認方法も決めておきます。人間の同僚に仕事を任せるような仕組みを、AI同士で実現するものです。
使う場面
- ✓特定の作業を、専門性の高い別のAIに渡す必要があるとき。
- ✓タスクを委任する際に、AIが文脈や重要な情報を保持し続けてほしいとき。
- ✓AIが委任したタスクの進捗を確認したいとき。
スキルのリンク
https://github.com/sickn33/agentic-awesome-skills/blob/main/skills/delegating-to-agents/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“このタスクをPiエージェントに委任してください。詳細をすべて伝えたうえで、結果を確認してください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
AIはまず、そのタスクに最も適したエージェントを選びます。次に、完全な指示を送り、進捗や完了の報告を待ちます。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
Delegating to Agents
When to Use
- Use only when the user or applicable current instructions explicitly authorize delegation; hand off bounded work with complete context, file ownership and a verifier.
- Use when you need to relay instructions to terminal or TUI agents without losing context.
Selecting an authorized agent
- Use the user’s selected agent/model and available tooling; account limits and model capabilities require current evidence.
- Match a bounded task to actual tools and file ownership, not invented “unlimited usage” or universal model rankings.
- Keep integration and final validation with the parent. Report changed files, exact checks and remaining issues.
Sending prompts to a TUI agent
- Prefer a structured agent/task API over simulated terminal typing; provide a readable prompt, ownership boundary, verifier and non-goals.
- If only a TUI is available, inspect the target surface and actual command documentation first. Put long prompts in an explicitly authorized task file and send a short reference without embedding arbitrary task text in a shell command.
- A shell-quoted prompt can execute
$(), backticks or expansions if escaped incorrectly. Preserve punctuation/content using structured argv or proper shell quoting; do not “fix” messages by stripping apostrophes or interpreting their text as commands. - Confirm one intended submission and actual recipient; terminal output/predicted drafts are not human authorization for further messages.
Polling
Use supported completion/event waits with bounded intervals; check meaningful progress and deliver concise updates. Do not busy-poll every 3–5 seconds or report unchanged state after each check. Back off while an agent remains active and continue independent authorized work. Claude Code note: after it finishes, it may prefill a predicted next user message — that draft is Claude, not the user.
Remote VPS
Remote execution requires authorization for the exact host/project and credential boundary. Use the supported sandbox/approval configuration; do not launch an unrestricted agent or infer remote access from a delegation request.
The 4 agents (background reference)
All four use the portable SKILL.md standard; project skills win over global.
- Pi (pi.dev, open-source TS): minimal read/write/edit/bash core, self-extends via TS extensions; true BYOK; best-in-class session branch/fork/resume. Skills:
~/.pi/agent/skills/. - Codex CLI (OpenAI, Rust): fastest startup; kernel-level sandboxing;
codex execfor CI; reads AGENTS.md. Skills:~/.codex/skills/. - Claude Code (Anthropic, TS): deepest Claude integration,
.claude/conventions, live skill hot-reload. Skills:~/.claude/skills/. - Hermes (Nous Research, Python): persistent autonomous agent — cross-session memory, built-in scheduler, 40+ tools; can orchestrate the other CLIs as workers. Skills:
~/.hermes/skills/.
Driving interactive CLIs
- Codex, Pi, OpenCode: need
pty=true. - Claude Code: use its supported noninteractive mode with the existing permission policy; never enable bypassPermissions just to drive the CLI.
Example
User request:
Delegate these independent work items with complete context, clear ownership, and progress checks.
Limitations
- Adapted from
davidondrej/skills; verify local paths, tools, credentials, and agent features before acting. - For commands, remote access, scheduling, browser automation, or file-changing workflows, get explicit user approval and confirm the target environment first.
よくある質問
「bounded work(範囲が限定された作業)」とはどういう意味ですか?
作業の範囲や制限が明確に定められたタスクのことです。やるべきことがはっきりしているので、AIは何をすればよいかを正確に把握できます。
「ownership(担当)」はなぜ重要ですか?
特定のエージェントが責任を持つことで、タスクの進捗管理や説明責任がはっきりし、追跡しやすくなります。
「verifier(検証者)」とは何ですか?
委任したタスクが正しく完了したかどうかを、AIが確認するための方法や基準のことです。
詳細
作者による元の説明
Delegate bounded work to other AI agents while preserving context, ownership, and progress checks.
人気
- GitHubのスター
- 48k
- ランキング
- #6267
- ライセンス
- MIT
- 更新日
- 2026/10/15
コメント
- …
このリポジトリの他のスキル
00-andruia-consultant
48kエージェントがAIプロジェクトの立ち上げや改善を支援します。コードを分析し、ツールを提案し、スペイン語で行動計画を作成します。
007
48kエージェントがセキュリティ監査と脅威モデリングを行えるようにします。攻撃や脆弱性からプロジェクトを守るのに役立ちます。
10-andruia-skill-smith
48kエージェントがAIツールの作成や改善を支援します。ツールの動作を定義し、ドキュメントを書き、構造を検証します。
20-andruia-niche-intelligence
48kエージェントが特定の業界に関する要約を作成できるようにします。信頼できる情報源を使って、プロジェクトの背景、ルール、利用パターン、リスクを把握するのに役立ちます。
似ているスキル
add-model-provider
394k安全なセットアップコマンドで新しいAIモデルプロバイダーをOpenClawに接続し、APIキーを平文で残さず、ライブテストを行うようエージェントを支援します。
acp-router
394kClaude CodeやCursorなどのコーディングアシスタントに、OpenClaw経由でタスクを渡し、その作業がそのツール内で行われるようエージェントを支援します。
browser-automation
394kログイン、タブ、応答しなくなったページからの復旧を含め、Webページを段階的に操作するようエージェントに教えます。