Install
$ agentstack add skill-oubakiou-delegate-skills-delegate-imagegen ✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
About
delegate-imagegen
画像生成・画像編集を Codex 子プロセスへ委譲する。task_type=imagegen、既定モデル gpt-5。他 delegate と同じモデル解決を使うが、画像生成 capability bridge のため実行系は gpt* → Codex のみに限定し、Claude パスは使わない。
スクリプトパス
- Claude Code:
skill_dir=.claude/skills/delegate-imagegen - Codex:
skill_dir=.agents/skills/delegate-imagegen
以降のコマンド例は Claude Code の .claude/skills/delegate-imagegen を使う。Codex で使う場合は、同じ相対構造の .agents/skills/delegate-imagegen に読み替える。
モデル価格参照
コスト分析・単価比較が必要な場合のみ、/model-token-prices.json を読む。このデータは参照用であり、delegate の起動可否判定には使わない。
委譲する前に
この skill は、main agent が画像生成 capability を持たない場合、または画像生成に関する試行錯誤を worker 側へ隔離したい場合に使う。ユーザーが求める成果物が SVG / HTML / CSS / canvas / 既存デザインシステム内のコードで表現する方が適切なら、この skill ではなく通常の実装・編集として扱う。
ユーザーから出力先の明示がない場合、worker には DELEGATE_IMAGEGEN_OUTPUT_DIR の既定出力先へ保存させる。既存画像を編集する場合は、対象ファイルパス、保持すべき要素、変更点、許容されるスタイル変更を request に明記する。
実行フロー
- 準備: Objective / Scope / Context / Acceptance criteria / Verification / Constraints の Markdown を stdin で渡す。出力先指定がなければ Constraints に
DELEGATE_IMAGEGEN_OUTPUT_DIRの既定出力先を使う旨を書く。exit 3=前提不足 / exit 4=委譲サイクルなら中止。
out="$(printf '%s' "$req_md" | bash .claude/skills/delegate-imagegen/scripts/prepare-imagegen.sh "$PARENT_TASK_TYPE_CHAIN" "$REQUESTER_SESSION_ID")"(top-level 起動なら$PARENT_TASK_TYPE_CHAINは空でよい)model="$(printf '%s' "$out" | jq -r .model)"/request_file="$(printf '%s' "$out" | jq -r .request_file)"/response_file="$(printf '%s' "$out" | jq -r .response_file)"/run_dir="$(printf '%s' "$out" | jq -r .run_dir)"/observe_file="$(printf '%s' "$out" | jq -r .observe_file)"
- 実行系分岐:
modelがgpt*:bash .claude/skills/delegate-imagegen/scripts/delegate-imagegen-codex.sh "$model" "$request_file" "$response_file" "$run_dir" "$observe_file"。非対話モードの親(claude -p等)では子プロセス起動を必ずフォアグラウンドで実行し、委譲所要時間より長い Bash timeout(Claude Code ならBASH_DEFAULT_TIMEOUT_MS/BASH_MAX_TIMEOUT_MSまたは Bash tool の timeout 引数)を設定する。実行中の通常監視はobserve_fileからstate.phase/state.started_at/heartbeat.ts/heartbeat.stdout_bytes/heartbeat.stderr_bytes/heartbeat.last_stream_change_atだけをjqで読む。state.phaseはprepared | running | superseded | stalled | ended。prepared/supersededは dispatch されなかった observe(state.started_at == null、usageは未設定で jq では null 相当)なので、usage を集計する場合は分母から除外する。- それ以外: 画像生成 capability bridge として扱えないため中止する
- レスポンス読み取り:
bash .claude/skills/delegate-imagegen/scripts/read-response.sh "$response_file" auto。autoが大きな response と判定した場合は status + index + Summary section を返すので、Generated files / Verification / Blockers など必要 section だけ... "$response_file"で追加取得する。読了後、worker の本文を再要約しない。main のユーザー向け応答は生成ファイル一覧と短い結果だけに留める。 - 検証フェーズ:
Generated filesのパスが存在することを main 側で確認する。必要に応じて画像ファイルを開いて、Acceptance criteria と明らかに矛盾しないか確認する。
Worker report
worker の report Markdown は次の見出しを基本にする。
Summary: 生成・編集結果の短い説明Generated files: 作成・更新した画像ファイルのパスParameters: 使用したプロンプト、サイズ、枚数、参照画像、重要な生成条件Verification: ファイル存在確認、目視確認、失敗時の再試行内容Blockers: 生成不能・入力不足・安全上の制約・ツール不在
制約
DELEGATE_IMAGEGEN_MODEL→gpt-5の順でモデル解決する- Codex 限定で起動する。
gpt*以外に解決された場合は Claude パスへ落とさず中止する - ユーザーに画像生成モデル選択を求めない。必要な場合は環境変数で運用側が切り替える
- 出力先が明示されていなければ
DELEGATE_IMAGEGEN_OUTPUT_DIRの既定出力先に保存する - tasktypechain 内種別への再委譲はしない(別種別 delegate は可)
- main は worker の試行錯誤ログを echo / 再要約しない。生成ファイル一覧と短い結果だけを返す
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: oubakiou
- Source: oubakiou/delegate-skills
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet — be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.