本文へ移動
cccskills
無料GitHub で公開日本語紹介

fleet-manager

Codewhale で並行実行するエージェントの状態やログを調べ、障害の種類と再試行条件を整理して、再起動・実行の再開・人への判断依頼を選び、対応記録をまとめます。

原文原文の説明を見る

Use when managing, triaging, restarting, escalating, or summarizing Codewhale fleet runs and workers.

インストール方法を見る

こんなときに便利

  • Codewhale の実行状況を確認したいとき
  • 一時的な障害の再起動を判断したいとき
  • 管理側の再起動後に実行を再開したいとき
  • 人への判断依頼を下書きしたいとき

日本語での紹介

できること

Codewhale で複数の作業を実行する fleet の管理を支援します。作業を担う worker の状態、ログ、成果物を調べ、一時的な障害、作業結果の不備、検証側の不具合、人の判断が必要な状態に分類します。その根拠から再起動や実行の再開などを選び、対応内容、成果物の参照先、次の担当者を記録します。

こんなときに便利

worker が停止した理由を整理したいときや、再試行してよいか判断する場面に向いています。管理エージェントの再起動後に実行を再開する場合や、作業結果と検証結果が食い違い、人への相談が必要な場合にも使えます。

使い方の例

  • 「fleet の状態を確認して、各 worker の障害を分類して」
  • 「この worker の再起動条件を確認し、対応結果を記録して」
  • 「人の判断が必要な問題について、相談文の下書きを作って」

注意点

Codewhale の専用コマンドまたは Runtime API を使います。再起動には再試行の残り回数や安全に繰り返せる条件の確認が必要です。Slack やメールなどへの送信は利用者または実行設定の明示的な許可がある場合に限り、許可がなければ下書きを作ります。

この紹介文は、公開されている SKILL.md をもとに AI(OpenAI Codex)が作成しました。正確な仕様は下の原文を確認してください。

含まれるファイル(1)

  • SKILL.md4.7 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Fleet Manager

Use this skill when acting as a manager agent for Codewhale fleet runs. Your job is to classify worker state, choose the narrowest safe typed action, and leave a ledgered receipt or a safe escalation draft.

Authority Boundary

  • Prefer typed fleet surfaces over shell spelunking: codewhale fleet status, inspect, logs, artifacts, interrupt, restart, resume, stop (stop requires --all), and the Runtime API endpoints.
  • Do not read .codewhale/fleet.jsonl, host logs, or remote files directly unless the typed command or API is missing required evidence.
  • Do not send Slack, webhook, PagerDuty, email, or chat messages unless the user or run config explicitly authorizes sending. Draft the message instead.
  • Never include secrets, tokens, webhook URLs, routing keys, full prompts, or oversized logs in a summary or escalation.

Triage Loop

  1. Identify the run and worker from the user request, run receipt, or fleet status output. If no worker is named, start with codewhale fleet status.
  2. Inspect the worker with codewhale fleet inspect <worker-id> or the matching Runtime API worker endpoint (GET /v1/fleet/workers/{worker_id}).
  3. Review bounded evidence with codewhale fleet logs <worker-id> and codewhale fleet artifacts <worker-id>, or the Runtime API equivalents (GET /v1/fleet/runs/{run_id}/receipts/{task_id}/evidence and GET /v1/fleet/runs/{run_id}/events/replay). Summarize artifact refs, not full payloads.
  4. Classify the state before acting:
    • transient failure: transport error, timeout, stale heartbeat, host unavailable, or retryable provider/network failure.
    • task failure: worker completed the task but the result is wrong, missing required artifacts, or reports a domain error.
    • verifier failure: scorer/verifier failed or disagrees with the worker result.
    • needs-human: missing authority, unsafe secret boundary, destructive action, repeated restart exhaustion, ambiguous product decision, or conflict between artifacts and verifier.
  5. Choose one typed action:
    • run has orphaned leases after a manager restart: codewhale fleet resume <run-id> (idempotent reconcile).
    • transient and retry budget remains: codewhale fleet restart <worker-id>.
    • transient but unsafe to retry: draft escalation and mark needs-human.
    • task failure: preserve artifacts, summarize the failure, and avoid restart unless the task spec says retrying can produce new evidence.
    • verifier failure: inspect scorer inputs and artifacts, then escalate if the verifier cannot be corrected through a typed action.
    • needs-human: do not restart automatically; draft a concise escalation.
  6. Record the result in the response: classification, action taken or drafted, evidence commands, artifact refs, and next owner.

Restart vs Escalate

Restart only when all of these are true:

  • the failure is likely transient,
  • the task is idempotent or the run policy allows retry,
  • retry budget remains,
  • no secret, permission, or destructive action boundary is involved, and
  • the previous attempt produced enough receipt data to explain the restart.

Escalate when any of these are true:

  • restart budget is exhausted,
  • the worker requests secrets or new authority,
  • artifacts indicate data loss, corruption, or destructive side effects,
  • the verifier and task result conflict in a way you cannot resolve from typed evidence,
  • the same failure repeats after a restart, or
  • a human product or release decision is required.

Safe Escalation Draft

Use this shape for Slack/PagerDuty drafts. Keep logs to three short lines or an artifact ref.

Codewhale fleet needs attention
Run: <run-id>
Worker: <worker-id>
Task: <task-id or unknown>
Classification: <transient failure | task failure | verifier failure | needs-human>
Reason: <one sentence, no secrets>
Latest typed evidence: codewhale fleet inspect <worker-id>; codewhale fleet artifacts <worker-id>
Safe log excerpt: <3 lines max or "see artifact <ref>">
Requested decision: <restart approval | verifier review | task owner review | permission decision>

Post-Run Receipt

End every Fleet Manager response with a compact receipt:

Fleet receipt
Run: <run-id>
Workers checked: <count/list>
Classification: <state>
Action: <restart/interrupt/stop/resume/escalation draft/no-op>
Ledger expectation: <typed action should be recorded | draft only, no send>
Artifacts reviewed: <refs>
Follow-up owner: <manager | task owner | human>

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

batch

無料日本語概要

並行して進められる大きな目標を、範囲の明確な作業に分割するスキル。既存のエージェントや作業ツリーの仕組みで実行し、結果の統合と検証まで進めます。

  • 大きな目標を並行作業に分けたいとき
  • 複数エージェントの作業調整
  • 作業ツリーを分けて進めたいとき
codewhale-hq/Codewhale4.1万2026年10月19日 更新

best-of-n

無料日本語概要

設計や実装、説明、デバッグの複数案を独立に作り、共通の評価基準で比較します。コード案は作業場所を分けて検証し、採用候補と判断の根拠を提示するスキルです。

  • 複数の設計方針を比較したいとき
  • 同じ課題の実装案を評価したいとき
  • 説明やデバッグの方針を比較したいとき
codewhale-hq/Codewhale4.1万2026年10月19日 更新

codew-release-qa-sweep

無料日本語概要

Codewhaleのリリース前に、テスト・ビルド・バージョン整合性を順に点検し、端末画面の手動確認項目と実施結果を整理して、完了判断の根拠を残します。

  • 実際のリリースブランチで自動検査
  • リリース先へのPR取り込み可否の確認
  • 端末の応答性と入力操作の手動確認
codewhale-hq/Codewhale4.1万2026年10月19日 更新

computer-use

無料日本語概要

登録済みのコンピューターで、デスクトップアプリや独立したブラウザーを操作します。画面の状態を読み取り、入力やクリックの結果を確認しながら作業を進めるスキルです。

  • デスクトップアプリの画面で入力
  • 独立したブラウザーで作業したいとき
  • 作業に必要な画面撮影や録画
codewhale-hq/Codewhale4.1万2026年10月19日 更新

contributor-onboarding

無料日本語概要

Codewhaleの開発参加時に、手元のブランチと同期状況、ビルド、CIと同じ検証を確認するスキル。ローカルの履歴と変更履歴から更新内容も提示します。

  • 初めて開発に参加するとき
  • 作業中の変更と同期状況の確認
  • ビルドとCIの検証を実行したいとき
codewhale-hq/Codewhale4.1万2026年10月19日 更新

cw-dogfood

無料日本語概要

Codewhaleの変更を実製品で確かめるため、ビルド元の識別情報を付けた実行ファイルの作成・インストールから、実際の端末での動作確認と記録まで進めるスキル。

  • 端末UIの変更を実製品で確認したいとき
  • ローカルビルドを導入・確認したいとき
  • モデルの接続先や承認動作の確認
codewhale-hq/Codewhale4.1万2026年10月19日 更新

codewhale-hq のスキルをすべて見る

このスキルの問題を報告する