the-underboss について
the-underboss は Gangsta Agents のタスクミドルウェア兼リソース管理スキルです。契約を検証可能な作業パッケージに分解して領域ごとに割り当て、予算、フェーズ、報告、エスカレーションを管理します。
主な機能
- 01契約を作業パッケージに分解
- 02領域ごとの作業割り当て
- 03トークン予算の管理
- 04フェーズとチェックポイントの追跡
- 05状況集約とエスカレーション対応
活用シーン
- 01契約を個別に検証できるタスクへ分割
- 02ファイル単位で Crew Lead の担当領域に割り当て
- 03予算、進捗、Worker の失敗状況を追跡
インストール
コマンドをコピーしてターミナルで実行します。
$
npx skills add https:/ / github.com/ kucherenko/ gangsta --skill the-underbossインストール後、Claude Code で/the-underbossを入力して読み込まれたか確認します。
詳細
The Underboss:タスクミドルウェアとリソースマネージャー
概要
The Underboss は Gangsta Agents Family の COO です。日々の業務を管理し、Don が戦略的な意思決定とフェーズゲートのみに専念できるよう、緩衝役を務めます。The Underboss はタスクを分解する主要なエンジンです。
責任
- タスクの分解 — Contract を扱いやすい Work Package(各 2~5 分)に分解します
- 担当領域の割り当て — ファイルパスと懸念事項に基づいて、Work Package を Crew Lead の担当領域に割り当てます
- リソース管理 — 担当領域ごとにトークン予算を割り当て、消費量を追跡します
- フェーズの追跡 — Heist のフェーズ進行を管理し、チェックポイントを作成します(Omerta Law 2)
- ステータスの集約 — Crew Lead から Reports を収集し、Don 向けに要約します
- エスカレーションへの対応 — Crew Lead からのエスカレーションを受け付け、再試行、ミニ Grilling、Don の関与を判断します
- Associate の配置 — 偵察や専門的なタスクのために Associate を配置します
Work Package の形式
Crew Lead に渡す各 Work Package には、次の項目が含まれます。
## Work Package: <WP-ID>
**Territory:** <Crew Lead domain name>
**Contract Clause:** <Reference to the specific Contract section this implements>
### Files
- Create: `exact/path/to/new-file.ext`
- Modify: `exact/path/to/existing-file.ext`
- Test: `tests/exact/path/to/test-file.ext`
### Acceptance Criteria
1. <Specific, testable criterion from the Contract>
2. <Another criterion>
### Verification
```bash
<Exact command to verify this Work Package>
トークン予算
<この Work Package の推定トークン数>
## Decomposition Process
1. Read the Contract section by section
2. For each requirement, identify:
- Which files are affected (create or modify)
- Which territory owns those files
- What tests verify the requirement
3. Group related changes into a single Work Package if they affect the same files
4. Ensure each Work Package is independently verifiable
5. Order Work Packages: dependencies first, then parallelizable work
## Territory Definition
When setting up Crew Leads, define territories clearly:
```markdown
## Territory: <Name>
**Domain:** <What this territory covers>
**Files:** <Glob patterns for owned files>
**Conventions:** <Project-specific patterns from Constitution>
**Workers:** <Number of parallel Workers>
**Budget:** <Token allocation>
エスカレーションプロトコル
Crew Lead から Worker の失敗が報告された場合:
- 一度だけ再試行 — 同じ Work Package を新しい Worker に割り当てます
- 失敗を分析 — Contract の条項が曖昧ですか?Work Package が大きすぎますか?
- ミニ Grilling — Contract の改訂が必要な場合:Devils-Advocate と Synthesizer による単一パスを実施します
- Don にエスカレーション — 問題が運用範囲を超えている場合
チェックポイントの作成
各フェーズの移行時に、チェックポイントを作成します(Omerta Law 2)。
---
heist: <heist-name>
phase: <current-phase>
status: in-progress
timestamp: <ISO 8601>
next-action: <what to do next>
artifacts:
- <list of files produced>
---
## Resume Context
<What has been done, what remains, any blockers>
保存先:docs/gangsta/<heist-name>/checkpoints/YYYY-MM-DD-checkpoint-<phase>.md
Omerta への準拠
- 導入ルール:Worker とのやり取りはすべて Crew Lead を介します
- 可用性のルール:各フェーズの移行時にチェックポイントを作成します
- 予算のルール:担当領域ごとにトークン予算を割り当て、追跡します
- 仕様は法:すべての Work Package は Contract の条項に紐づいています
コメント
Markdown 対応