Agent SkillsHmbown/Codewhale › fleet-manager

fleet-manager

GitHub

管理 Codewhale 集群运行和 Worker,通过分类状态(瞬态/任务/验证器失败)选择安全操作或升级。支持重启、检查日志及生成升级草稿,严格遵循权限边界,禁止直接读取敏感文件或发送未授权消息。

crates/tui/assets/skills/fleet-manager/SKILL.md Hmbown/Codewhale

Trigger Scenarios

需要管理或监控 Codewhale 集群运行时状态 Worker 运行异常需进行故障排查与分类 判断是否应重启 Worker 或升级给人类处理

Install

npx skills add Hmbown/Codewhale --skill fleet-manager -g -y
More Options

Non-standard path

npx skills add https://github.com/Hmbown/Codewhale/tree/main/crates/tui/assets/skills/fleet-manager -g -y

Use without installing

npx skills use Hmbown/Codewhale@fleet-manager

指定 Agent (Claude Code)

npx skills add Hmbown/Codewhale --skill fleet-manager -a claude-code -g -y

安装 repo 全部 skill

npx skills add Hmbown/Codewhale --all -g -y

预览 repo 内 skill

npx skills add Hmbown/Codewhale --list

SKILL.md

Frontmatter
{
    "name": "fleet-manager",
    "metadata": {
        "short-description": "Triage Codewhale fleet runs"
    },
    "description": "Use when managing, triaging, restarting, escalating, or summarizing Codewhale fleet runs and workers."
}

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, stop, 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.
  3. Review bounded evidence with codewhale fleet logs <worker-id> and codewhale fleet artifacts <worker-id>. 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:
    • 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/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>

Version History

  • aedb88b Current 2026-09-09 04:21

    将原有的 Pod 管理功能重构为 Fleet 管理,删除了 Pod 相关代码及兼容性 Shim,全面转向 Fleet 架构。

  • c7c3065 2026-09-03 05:46

    将公开接口表面从 Fleet 统一重构为 Pod,增强本地化支持并修复 TUI 兼容性。

  • b0e4926 2026-07-24 17:42

Same Skill Collection

crates/tui/assets/skills/batch/SKILL.md
crates/tui/assets/skills/best-of-n/SKILL.md
crates/tui/assets/skills/contributor-onboarding/SKILL.md
crates/tui/assets/skills/dataviz/SKILL.md
crates/tui/assets/skills/debug/SKILL.md
crates/tui/assets/skills/delegate/SKILL.md
crates/tui/assets/skills/dependency-update/SKILL.md
crates/tui/assets/skills/docx/SKILL.md
crates/tui/assets/skills/feishu/SKILL.md
crates/tui/assets/skills/frontend-design/SKILL.md
crates/tui/assets/skills/handoff/SKILL.md
crates/tui/assets/skills/help/SKILL.md
crates/tui/assets/skills/implement/SKILL.md
crates/tui/assets/skills/interview/SKILL.md
crates/tui/assets/skills/mcp-builder/SKILL.md
crates/tui/assets/skills/mcp-discovery/SKILL.md
crates/tui/assets/skills/pdf/SKILL.md
crates/tui/assets/skills/plan/SKILL.md
crates/tui/assets/skills/plugin-creator/SKILL.md
crates/tui/assets/skills/pptx/SKILL.md
crates/tui/assets/skills/research/SKILL.md
crates/tui/assets/skills/review/SKILL.md
crates/tui/assets/skills/security-review/SKILL.md
crates/tui/assets/skills/simplify/SKILL.md
crates/tui/assets/skills/skill-creator/SKILL.md
crates/tui/assets/skills/skill-installer/SKILL.md
crates/tui/assets/skills/test/SKILL.md
crates/tui/assets/skills/v4-best-practices/SKILL.md
crates/tui/assets/skills/verify/SKILL.md
crates/tui/assets/skills/webapp-testing/SKILL.md
crates/tui/assets/skills/xlsx/SKILL.md
docs/skills/codew-release-qa-sweep/SKILL.md
docs/skills/cw-dogfood/SKILL.md
docs/skills/cw-gates/SKILL.md
docs/skills/cw-handoff/SKILL.md
docs/skills/cw-land/SKILL.md
docs/skills/cw-orient/SKILL.md
docs/skills/cw-slice/SKILL.md
docs/skills/gh-assign-issues/SKILL.md
docs/skills/gh-close-issues/SKILL.md
docs/skills/gh-compile-issues/SKILL.md
docs/skills/gh-credit-harvest/SKILL.md
docs/skills/gh-file-issue/SKILL.md
docs/skills/gh-find-prs/SKILL.md
docs/skills/gh-treasure-hunt/SKILL.md
crates/tui/assets/skills/documents/SKILL.md
crates/tui/assets/skills/presentations/SKILL.md
crates/tui/assets/skills/spreadsheets/SKILL.md

Metadata

Files
0
Version
aedb88b
Hash
31293798
Indexed
2026-07-24 17:42

- 위키
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-09-16 11:48
浙ICP备14020137号-1 $방문자$