jpskill.com
🛠️ 開発・MCP コミュニティ

superbuild

品質基準やテストを厳格に適用し、定義完了条件を守りながら、計画書に基づいて段階的に実行を進める際に活用できる、プロジェクトの着実な進捗を支援するSkill。

📜 元の英語説明(参考)

Use when executing implementation plans phase-by-phase with strict enforcement of quality gates, tests, and Definition of Done. Triggers on "build this plan", "execute plan", "implement phases", or when user provides a plan document to execute.

🇯🇵 日本人クリエイター向け解説

一言でいうと

品質基準やテストを厳格に適用し、定義完了条件を守りながら、計画書に基づいて段階的に実行を進める際に活用できる、プロジェクトの着実な進捗を支援するSkill。

※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。

⚡ おすすめ: コマンド1行でインストール(60秒)

下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。

🍎 Mac / 🐧 Linux
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o superbuild.zip https://jpskill.com/download/9310.zip && unzip -o superbuild.zip && rm superbuild.zip
🪟 Windows (PowerShell)
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/9310.zip -OutFile "$d\superbuild.zip"; Expand-Archive "$d\superbuild.zip" -DestinationPath $d -Force; ri "$d\superbuild.zip"

完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。

💾 手動でダウンロードしたい(コマンドが難しい人向け)
  1. 1. 下の青いボタンを押して superbuild.zip をダウンロード
  2. 2. ZIPファイルをダブルクリックで解凍 → superbuild フォルダができる
  3. 3. そのフォルダを C:\Users\あなたの名前\.claude\skills\(Win)または ~/.claude/skills/(Mac)へ移動
  4. 4. Claude Code を再起動

⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。

🎯 このSkillでできること

下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。

📦 インストール方法 (3ステップ)

  1. 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
  2. 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
  3. 3. 展開してできたフォルダを、ホームフォルダの .claude/skills/ に置く
    • · macOS / Linux: ~/.claude/skills/
    • · Windows: %USERPROFILE%\.claude\skills\

Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。

詳しい使い方ガイドを見る →
最終更新
2026-05-18
取得日時
2026-05-18
同梱ファイル
1

📖 Skill本文(日本語訳)

※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。

Superbuild: プラン実行エンジン

品質を厳格に強制し、テスト検証を行い、慣習的コミットを生成しながら、実装プランを段階的に実行します。

概要

Superbuild は、実装プランのための厳格な実行エンジンです。以下の点を強制します。

  • 段階的な実行 (先へスキップしない)
  • フェーズ完了前の完了定義 (Definition of Done) の検証
  • テストの存在と合格検証
  • Linter/formatter/typechecker の強制
  • フェーズごとの慣習的コミットメッセージの生成

これはプランニングスキルではありません。 プランを作成するには superplan を使用し、実行するには superbuild を使用してください。

重要なワークフロー

┌─────────────────────────────────────────────────────────────────────┐
│                      SUPERBUILD 実行フロー                       │
│                     (各フェーズで繰り返し)                          │
├─────────────────────────────────────────────────────────────────────┤
│                                                                     │
│  1. プランの取り込み    │  ユーザーがプランのドキュメントパスを提供              │
│         ↓          │  プランがない = 終了 (ユーザーに確認し、なければ終了)  │
│  2. フェーズの読み込み    │  すべてのフェーズを見積もりと共に出力              │
│         ↓          │  コンテキストが高い場合 → コンパクト化を最初に提案       │
│  3. フェーズの実行  │  一度に1つのフェーズ (またはマークされていれば並列)   │
│         ↓          │  並列フェーズにはサブエージェントを使用            │
│  4. DOD の強制    │  テストは存在するか?テストは合格するか?Linter?Formatter?   │
│         ↓          │  すべて合格 → 続行。いずれかが失敗 → 停止     │
│  5. プランの更新    │  タスクをチェックし、プランファイルの状態を更新   │
│         ↓          │  ⚠️  これはすべてのフェーズの後に発生します            │
│  6. コミットメッセージ     │  慣習的コミットを生成 (git 操作は絶対に行わない)  │
│         ↓          │  ユーザーがすべての git 操作を処理               │
│  7. 機能テスト│  テスト方法を説明。統合スクリプトを提供する │
│         ↓          │  スクリプトを自動作成しない。必ず最初に確認する   │
│  8. 停止           │  完全に停止。コンパクト化を提案。ユーザーを待つ。    │
│                    │  オーバーライド: --build-all フラグで続行          │
│                                                                     │
│  ════════════════════════════════════════════════════════════════   │
│  ステップ 3-8 は各フェーズで繰り返されます。プランは各フェーズ後に更新されます。  │
│  ════════════════════════════════════════════════════════════════   │
│                                                                     │
└─────────────────────────────────────────────────────────────────────┘

ステップ 1: プランの取り込み

必須: プランドキュメントを提供する必要があります。

実装プランの実行をお手伝いします。

プランのドキュメントを提供してください:
1. プランファイルへのパス (例: docs/feature-plan.md)
2. プランの内容を直接貼り付け

どちらが良いですか?

確認後もプランが提供されない場合: すぐに終了します。

プランのドキュメントがないと実行できません。

プランを作成するには、最初に `superplan` スキルを使用してください:
  /superplan

その後、完成したプランを持って戻ってきてください。

[終了 - これ以上の操作はありません]

例外はありません。 即興で対応しないでください。その場でプランを作成しないでください。プランのドキュメントなしに進めないでください。

ステップ 2: すべてのフェーズを読み込む

プランを取り込んだ後:

  1. すべてのフェーズを出力 し、見積もりと依存関係を表示します
  2. コンテキストの使用状況を確認 - 高い場合は、最初にコンパクト化することを提案します
プランをロードしました: [Feature Name]
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

| フェーズ | 名前 | 見積もり | 依存関係 | 並列処理 | 状態 |
|-------|------|------|------------|---------------|--------|
| 0 | Bootstrap | 5 | - | - | ⬜ |
| 1 | Setup | 3 | 0 | - | ⬜ |
| 2A | Backend | 8 | 1 | 2B, 2C | ⬜ |
| 2B | Frontend | 5 | 1 | 2A, 2C | ⬜ |
| 2C | Tests | 3 | 1 | 2A, 2B | ⬜ |
| 3 | Integration | 5 | 2A,2B,2C | - | ⬜ |

合計: 29 ポイント | 並列フェーズ: 2A, 2B, 2C

⚠️  コンテキスト使用に関する注意
コンテキストが高い場合は、続行する前にコンパクト化を検討してください。
大規模なプランは、フェーズごとに大量のコンテキストを消費します。

フェーズ 0 を実行する準備はできましたか?

ステップ 3: フェーズの実行

順次フェーズ

一度に1つずつ実行します。現在のフェーズが完了するまで、次のフェーズに進まないでください。

並列フェーズ

「並列処理」とマークされたフェーズの場合、サブエージェントまたは並列 Task ツール呼び出しを使用する必要があります

並列フェーズを実行中: 2A, 2B, 2C
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

3つの並列サブエージェントを起動しています...

[サブエージェント 2A: バックエンドの実装]
[サブエージェント 2B: フロントエンドの実装]
[サブエージェント 2C: テストの実装]

各サブエージェントは以下を返す必要があります:
- 実装ステータス
- 完了定義チェックリストのステータス
- 慣習的コミットメッセージ

重要: 各サブエージェントはコミットメッセージを返します。メインエージェントは、すべてのコミットメッセージをユーザーに伝える必要があります。

ステップ 4: 完了定義の強制

すべてのフェーズは、完了前にすべての品質ゲートに合格する必要があります。

品質ゲートチェックリスト

完了定義 - フェーズ [X]
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

[ ] 新しいコードのテストが存在する
[ ] すべてのテストに合格する (新規および既存)
[ ] Linter に合格する ([検出された linter])
[ ] Formatter に合格する ([検出された formatter])
[ ] Type checker に合格する ([検出された checker])
[ ] 新しい警告が発生していない
[ ] プランドキュメントが更新された (チェックボックス、ステータス)  ← コミットメッセージの前に

強制ルール

チェック 合格した場合 失敗した場合
テストが存在する 続行 停止 - 不足しているテストを指摘する
テストに合格する 続行 停止 - ユーザーに修正を依頼する
Linter 続行 停止 - ユーザーに修正を依頼する
Formatter 続行 停止 - ユーザーに修正を依頼する
Type checker 続行 停止 - ユーザーに修正を依頼する
プランが更新された コミットを生成 停止 - 最初にプランを更新する

停止とは、停止を意味します。 続行しないでください。自動的に修正することを提案しないでください。ユーザーに修正して再実行するように依頼してください。

失敗時の出力形式

いずれかのチェックが失敗した場合、以下を出力します:


⛔ 完了定義に失敗しました
━━━━━━━━━━━━━━━━━━━━━━━━━━━
問題: [テストがない | テストが失敗した | Linter エラー | など]
[失敗した内容の詳細]
修正してください、

(原文はここで切り詰められています)
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開

Superbuild: Plan Execution Engine

Execute implementation plans one phase at a time with strict quality enforcement, test verification, and conventional commit generation.

Overview

Superbuild is a rigid execution engine for implementation plans. It enforces:

  • Phase-by-phase execution (no skipping ahead)
  • Definition of Done verification before phase completion
  • Test presence and passing verification
  • Linter/formatter/typechecker enforcement
  • Conventional commit message generation per phase

This is NOT a planning skill. Use superplan to create plans, then superbuild to execute them.

Critical Workflow

┌─────────────────────────────────────────────────────────────────────┐
│                      SUPERBUILD EXECUTION FLOW                       │
│                     (REPEAT FOR EACH PHASE)                          │
├─────────────────────────────────────────────────────────────────────┤
│                                                                     │
│  1. INGEST PLAN    │  User provides plan document path              │
│         ↓          │  NO PLAN = EXIT (ask user, then exit if none)  │
│  2. READ PHASES    │  Output ALL phases with estimates              │
│         ↓          │  IF context high → suggest compact first       │
│  3. EXECUTE PHASE  │  One phase at a time (or parallel if marked)   │
│         ↓          │  USE SUB-AGENTS for parallel phases            │
│  4. ENFORCE DOD    │  Tests exist? Tests pass? Linter? Formatter?   │
│         ↓          │  ALL must pass → continue. ANY fail → STOP     │
│  5. UPDATE PLAN    │  Check off tasks, update status in plan file   │
│         ↓          │  ⚠️  THIS HAPPENS AFTER EVERY PHASE            │
│  6. COMMIT MSG     │  Generate conventional commit (NEVER git ops)  │
│         ↓          │  User handles all git operations               │
│  7. FUNCTIONAL TEST│  Explain how to test. Offer integration script │
│         ↓          │  NEVER auto-create scripts. ALWAYS ask first   │
│  8. STOP           │  Full stop. Suggest compact. Wait for user.    │
│                    │  OVERRIDE: --build-all flag continues          │
│                                                                     │
│  ════════════════════════════════════════════════════════════════   │
│  Steps 3-8 repeat for EACH PHASE. Plan updates after EVERY phase.  │
│  ════════════════════════════════════════════════════════════════   │
│                                                                     │
└─────────────────────────────────────────────────────────────────────┘

Step 1: Ingest Plan

REQUIRED: Plan document must be provided.

I'll help you execute your implementation plan.

Please provide the plan document:
1. Path to plan file (e.g., docs/feature-plan.md)
2. Paste the plan content directly

Which would you prefer?

If no plan provided after asking: EXIT immediately.

I cannot execute without a plan document.

To create a plan, use the `superplan` skill first:
  /superplan

Then come back with the completed plan.

[EXIT - No further action]

NO EXCEPTIONS. Do not improvise. Do not create plans on the fly. Do not proceed without a plan document.

Step 2: Read All Phases

After ingesting the plan:

  1. Output all phases with their estimates and dependencies
  2. Check context usage - if high, suggest compacting first
PLAN LOADED: [Feature Name]
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

| Phase | Name | Est. | Depends On | Parallel With | Status |
|-------|------|------|------------|---------------|--------|
| 0 | Bootstrap | 5 | - | - | ⬜ |
| 1 | Setup | 3 | 0 | - | ⬜ |
| 2A | Backend | 8 | 1 | 2B, 2C | ⬜ |
| 2B | Frontend | 5 | 1 | 2A, 2C | ⬜ |
| 2C | Tests | 3 | 1 | 2A, 2B | ⬜ |
| 3 | Integration | 5 | 2A,2B,2C | - | ⬜ |

Total: 29 points | Parallel phases: 2A, 2B, 2C

⚠️  Context Usage Advisory
If context is high, consider compacting before continuing.
Large plans consume significant context per phase.

Ready to execute Phase 0?

Step 3: Execute Phase

Sequential Phases

Execute one at a time. Do not proceed to next phase until current is COMPLETE.

Parallel Phases

For phases marked "Parallel With", MUST use sub-agents or parallel Task tool calls.

EXECUTING PARALLEL PHASES: 2A, 2B, 2C
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Launching 3 parallel sub-agents...

[Sub-agent 2A: Backend implementation]
[Sub-agent 2B: Frontend implementation]
[Sub-agent 2C: Test implementation]

Each sub-agent MUST return:
- Implementation status
- Definition of Done checklist status
- Conventional commit message

CRITICAL: Each sub-agent returns its commit message. Main agent MUST bubble up ALL commit messages to user.

Step 4: Enforce Definition of Done

EVERY phase must pass ALL quality gates before completion.

Quality Gate Checklist

DEFINITION OF DONE - Phase [X]
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

[ ] Tests exist for new code
[ ] All tests pass (new AND existing)
[ ] Linter passes ([detected linter])
[ ] Formatter passes ([detected formatter])
[ ] Type checker passes ([detected checker])
[ ] No new warnings introduced
[ ] Plan document updated (checkboxes, status)  ← BEFORE commit message

Enforcement Rules

Check If PASS If FAIL
Tests exist Continue STOP - Point out missing tests
Tests pass Continue STOP - Ask user to fix
Linter Continue STOP - Ask user to fix
Formatter Continue STOP - Ask user to fix
Type checker Continue STOP - Ask user to fix
Plan updated Generate commit STOP - Update plan first

STOP means STOP. Do not proceed. Do not offer to fix automatically. Ask user to fix and re-run.

Failure Output Format

When any check fails, output:

⛔ DEFINITION OF DONE FAILED
━━━━━━━━━━━━━━━━━━━━━━━━━━━
Issue: [Missing tests | Tests failing | Linter errors | etc.]
[Details of what failed]
Please fix, then tell me to continue.
[EXECUTION HALTED]

See references/ENFORCEMENT-GUIDE.md for detailed failure message templates and output parsing patterns.

Step 5: Update Plan Document (EVERY PHASE)

⚠️ MANDATORY: This step executes after EVERY phase, not just at the end.

After ALL quality gates pass, BEFORE generating commit message, UPDATE THE PLAN FILE:

  1. Check off completed tasks (- [ ]- [x])
  2. Update phase status in overview table ()
  3. Mark DoD items complete (- [ ]- [x])
PLAN DOCUMENT UPDATED - Phase [X]
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

File: [plan-file-path]

Updates applied:
- Tasks: X/X items checked [x]
- DoD: X/X items checked [x]
- Status: ⬜ → ✅

The plan now reflects Phase [X] completion.

See references/PLAN-UPDATES.md for detailed patterns and error handling.

WHY EVERY PHASE:

  • Plan survives context compaction (conversation may not)
  • Progress visible to anyone reading the plan
  • Enables clean handoff between sessions
  • Creates audit trail in git history

DO NOT SKIP THIS STEP. If you find yourself generating a commit message without updating the plan first, STOP and update the plan.

Step 6: Generate Conventional Commit

After Definition of Done passes, generate commit message.

CRITICAL: OUTPUT ONLY. NEVER run git commands.

PHASE [X] COMPLETE - Conventional Commit Message
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

<type>(<scope>): <short summary>

<body - detailed description of changes>

Files changed:
- path/to/file1.ts (CREATE)
- path/to/file2.ts (MODIFY)
- path/to/file3.ts (DELETE)

<footer - issue refs, breaking changes>

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

⚠️  DO NOT COMMIT - Copy this message and run:
    git add . && git commit -m "..."

User handles all git operations.

Commit Types

Type When
feat New feature
fix Bug fix
refactor Code restructure (no behavior change)
test Adding/updating tests
docs Documentation
style Formatting (no code change)
chore Build, config, dependencies
perf Performance improvements

Git CLI Safe Commit Messages

CRITICAL: Commit messages must be safe for direct use with git commit -m.

AVOID: Double quotes, backticks, dollar signs, exclamation marks, backslashes, hash at line start SAFE: Letters, numbers, spaces, -, _, ., ,, :, (, ), /, '

See references/COMMIT-FORMAT.md for full character table and HEREDOC format for multi-line messages.

Parallel Phase Commits

When parallel phases complete, output ALL commit messages:

PARALLEL PHASES COMPLETE (2A, 2B, 2C)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

PHASE 2A - Commit Message:
━━━━━━━━━━━━━━━━━━━━━━━━━━
feat(api): implement user authentication endpoints
...

PHASE 2B - Commit Message:
━━━━━━━━━━━━━━━━━━━━━━━━━━
feat(ui): create login form component
...

PHASE 2C - Commit Message:
━━━━━━━━━━━━━━━━━━━━━━━━━━
test(auth): add authentication test coverage
...

⚠️  Create separate commits for each phase, or squash as appropriate.
    User handles all git operations.

Step 7: Functional Testing Instructions

After commit message, explain how to functionally test the phase.

FUNCTIONAL TESTING - Phase [X]
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

To manually verify this phase works:

1. [Step 1 - e.g., Start the development server]
   $ npm run dev

2. [Step 2 - e.g., Navigate to the feature]
   Open http://localhost:3000/[feature]

3. [Step 3 - e.g., Test the happy path]
   - Fill in [field1] with "test value"
   - Click [button]
   - Verify [expected result]

4. [Step 4 - e.g., Test error handling]
   - Submit empty form
   - Verify error message appears

Expected Results:
- [Result 1]
- [Result 2]

Integration Test Script Offer

ONLY if applicable. ALWAYS ask. NEVER auto-create.

Would you like me to write an integration test script for this phase?

This would:
- Automate the manual verification steps above
- Be saved to scripts/test-phase-[X].sh (or .py)
- Be runnable for regression testing

Options:
1. Yes, write the integration test script
2. No, manual testing is sufficient

[WAIT FOR USER RESPONSE]

If user says yes: Write script to scripts/ directory. If user says no: Continue to Step 8.

Step 8: Stop Execution

FULL STOP after each phase (unless --build-all override).

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
PHASE [X] EXECUTION COMPLETE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Summary:
- Definition of Done: ✅ All checks passed
- Plan Document: ✅ Updated (tasks and status checked off)
- Conventional Commit: ✅ Generated (user to commit)
- Functional Testing: ✅ Instructions provided

Progress:
| Phase | Status |
|-------|--------|
| 0 | ✅ Complete |
| 1 | ✅ Complete |
| 2A | ⬜ Next |
| 2B | ⬜ Pending |
| 2C | ⬜ Pending |
| 3 | ⬜ Pending |

💡 Context Management Suggestion
Consider compacting the conversation before the next phase
to preserve context for the remaining work.

[EXECUTION PAUSED]

To continue: "Continue to Phase 2A"
To compact first: Use /compact then return with "Resume superbuild"

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Context Compaction Behavior

CRITICAL: If this session resumes after context compaction:

  1. Complete ONLY the phase that was in-progress
  2. Output the commit message and functional test instructions
  3. STOP - Do not auto-continue to next phase
  4. Wait for explicit user instruction: "Continue to Phase X"

The todo list showing pending phases is NOT authorization to continue. Only explicit user instruction authorizes next phase execution.

POST-COMPACTION RESUME
━━━━━━━━━━━━━━━━━━━━━━

Detected: Session resumed after compaction
Phase in progress: [X]

Completing Phase [X]...
[finish work]

PHASE [X] COMPLETE
[commit message + functional test instructions]

[EXECUTION PAUSED]

Remaining phases: [list]
To continue: "Continue to Phase [Y]"

⚠️  I will NOT auto-continue. Awaiting your instruction.

Build-All Override

ONLY if user explicitly specifies.

⚠️  BUILD-ALL MODE DETECTED
━━━━━━━━━━━━━━━━━━━━━━━━━━

You've requested to build the entire plan without stopping.

This is NOT RECOMMENDED because:
- Context may be exhausted mid-build
- Errors compound across phases
- You lose ability to commit incrementally

Are you sure you want to continue?
1. Yes, build all phases (override safety)
2. No, execute phase by phase (recommended)

Rationalizations to Reject

Excuse Reality
"Let me just do the next phase too" NO. Stop after each phase.
"The tests are mostly there" NO. Tests must exist for ALL new code.
"It's just a small linting error" NO. All quality gates must pass.
"I'll commit later" NO. Generate commit message NOW.
"This phase doesn't need tests" NO. Every phase with code needs tests.
"Let me skip to the important part" NO. Execute phases in dependency order.
"I can fix the formatter later" NO. Formatter must pass before completion.
"The user wants to move fast" NO. Quality enforcement is non-negotiable.

Red Flags - STOP Immediately

If you catch yourself thinking any of these, STOP:

  • "This is taking too long, let me skip ahead"
  • "The user seems impatient, let me batch phases"
  • "Tests can come after the feature works"
  • "Linting is just style, not critical"
  • "I'll generate all commit messages at the end"
  • "The plan doesn't explicitly require tests"

All of these = violation of superbuild protocol.

Quality Commands by Stack

See references/ENFORCEMENT-GUIDE.md for stack-specific commands (JS/TS, Python, Go, Rust).

Summary: The Iron Rules

  1. No plan = No execution - Exit if plan not provided
  2. One phase at a time - Unless parallel phases (use sub-agents)
  3. All quality gates must pass - No exceptions
  4. Update plan after EVERY phase - Check off tasks, update status
  5. Generate commit message - Never run git commands
  6. Explain functional testing - Ask before writing scripts
  7. Full stop after phase - Unless --build-all override
  8. Suggest compact - Context management is critical

Superbuild is rigid by design. The enforcement protects code quality. Do not rationalize around it.