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

auto-claude-build

Auto-Claudeは、ソフトウェア開発における構築作業を自動化するシステムで、エージェントの動きを理解したり、並行処理を管理したり、問題解決を支援したりするSkill。

📜 元の英語説明(参考)

Auto-Claude autonomous build system. Use when running builds, understanding agent workflow, managing parallel execution, or troubleshooting build issues.

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

一言でいうと

Auto-Claudeは、ソフトウェア開発における構築作業を自動化するシステムで、エージェントの動きを理解したり、並行処理を管理したり、問題解決を支援したりするSkill。

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

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

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

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

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

💾 手動でダウンロードしたい(コマンドが難しい人向け)
  1. 1. 下の青いボタンを押して auto-claude-build.zip をダウンロード
  2. 2. ZIPファイルをダブルクリックで解凍 → auto-claude-build フォルダができる
  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 自身は原文を読みます。誤訳がある場合は原文をご確認ください。

Auto-Claude Build System

自律的なビルドパイプラインとエージェントオーケストレーションの詳細です。

ビルドアーキテクチャ

エージェントパイプライン

Spec → Planner Agent → Coder Agent → QA Reviewer → QA Fixer → Complete
         │                 │              │            │
         ▼                 ▼              ▼              ▼
    impl_plan.json    Code Changes    QA Report    Fixed Code

エージェントの役割

Agent 目的 Model 思考トークン数
Planner サブタスクベースの実装計画を作成 Claude 5000
Coder サブタスクを実装、サブエージェントを生成可能 Claude None
QA Reviewer 受け入れ基準を検証 Claude 10000
QA Fixer QAレポートで報告された問題を修正 Claude None

ビルドの実行

基本的なビルド

cd apps/backend
source .venv/bin/activate

# specのビルドを実行
python run.py --spec 001

# イテレーション制限付き(テスト用)
python run.py --spec 001 --max-iterations 5

ビルドオプション

Option 説明
--spec SPEC ビルドするspec(番号またはフルネーム)
--max-iterations N ビルドのイテレーション制限
--skip-qa 自動QA検証をスキップ
--qa QA検証のみを実行

ビルドフロー

  1. 初期化

    • 分離のためにgit worktreeを作成
    • specと実装計画をロード
    • セキュリティサンドボックスをセットアップ
  2. 計画フェーズ

    • Planner agentがspecを分析
    • サブタスクの内訳を作成
    • 依存関係を割り当て
  3. 実装フェーズ

    • Coder agentがサブタスクを実装
    • 並行作業のためにサブエージェントを生成可能
    • リアルタイムで進捗状況を更新
  4. QAフェーズ

    • QA Reviewerが各受け入れ基準を検証
    • QAレポートを作成
    • 問題が見つかった場合、QA Fixerが修正を適用
    • 承認されるまでループ(最大50イテレーション)

エージェントの設定

Claude SDKクライアント

すべてのエージェントは、core/client.pyで設定されたClaude Agent SDKを使用します。

from core.client import create_client

client = create_client(
    project_dir=project_dir,
    spec_dir=spec_dir,
    model="claude-opus-4-5-20251101",
    agent_type="coder",  # or "planner", "qa_reviewer", "qa_fixer"
    max_thinking_tokens=None  # or 5000, 10000, 16000
)

セキュリティレイヤー

  1. Sandbox - OSレベルのbash分離
  2. ファイルシステム権限 - プロジェクトディレクトリに制限
  3. コマンド許可リスト - 承認されたコマンドのみ(security.pyを参照)

利用可能なツール

Tool 説明 Agents
Read, Write, Edit ファイル操作 すべて
Glob, Grep ファイル検索 すべて
Bash シェルコマンド(許可リスト) すべて
Context7 ドキュメント検索 すべて
Linear プロジェクト管理 すべて(有効な場合)
Graphiti メモリシステム すべて(有効な場合)
Electron/Puppeteer ブラウザテスト QAのみ

並列実行

サブエージェントの生成

Coder agentは、並行作業のためにサブエージェントを生成できます。

Main Coder Agent
├── Subagent 1: Frontend work
├── Subagent 2: Backend work
└── Subagent 3: Tests

設定:

  • 最大12のエージェントターミナル
  • それぞれが分離されたコンテキストで実行
  • 結果は自動的にマージ

Git Worktree戦略

main (あなたのブランチ)
└── auto-claude/{spec-name}  ← 分離されたworktree

主な原則:

  • specごとに1つのブランチ
  • すべての作業は分離されたworktreeで実行
  • 自動プッシュは行わない
  • ユーザーがマージのタイミングを制御

ビルドの監視

リアルタイムの進捗状況

# ビルドの進捗状況を監視
tail -f .auto-claude/specs/001-feature/build-progress.txt

# 実装計画のステータスを確認
cat .auto-claude/specs/001-feature/implementation_plan.json | jq '.subtasks[] | {id, title, status}'

インタラクティブな制御

ビルド中:

  • Ctrl+C(1回)- 一時停止して指示を追加
  • Ctrl+C(2回)- 即時終了

ファイルベースの制御:

# 現在のセッション後に一時停止
touch .auto-claude/specs/001-feature/PAUSE

# 指示を追加
echo "Focus on the login flow" > .auto-claude/specs/001-feature/HUMAN_INPUT.md

# 再開
rm .auto-claude/specs/001-feature/PAUSE

ビルド成果物

ディレクトリ構造

.auto-claude/specs/001-feature/
├── spec.md                    # 仕様
├── implementation_plan.json   # ステータス付きのサブタスク計画
├── build-progress.txt         # リアルタイムの進捗ログ
├── qa_report.md              # QA検証結果
├── QA_FIX_REQUEST.md         # 修正する問題(拒否された場合)
├── graphiti/                  # メモリデータ(有効な場合)
└── worktree/                  # Git worktree情報

実装計画のステータス

{
  "subtasks": [
    {
      "id": 1,
      "title": "Create data model",
      "status": "complete",  // pending, in_progress, complete, blocked
      "started_at": "2024-01-01T10:00:00Z",
      "completed_at": "2024-01-01T10:05:00Z"
    }
  ]
}

QA検証

QA Reviewer

各受け入れ基準を検証します。

## QA Report

### Acceptance Criteria

- [x] User can log in with email → PASS
- [x] Error shown for invalid credentials → PASS
- [ ] Session persists across page refresh → FAIL: Session not being saved

### Issues Found
1. Session cookie not being set correctly in AuthProvider

QA Fixer

問題を自動的に修正します。

  1. QA_FIX_REQUEST.mdを読み込む
  2. 根本原因を分析
  3. 修正を実装
  4. 再検証をトリガー

QAループ

QA Reviewer → Issues? → No → Complete
                ↓
               Yes
                ↓
           QA Fixer
                ↓
           Re-validate
                ↓
           (Max 50 loops)

ビルドのトラブルシューティング

ビルドが停止

# 何が起こっているかを確認
tail -100 .auto-claude/specs/001-feature/build-progress.txt

# エラーを確認
grep -i error .auto-claude/specs/001-feature/build-progress.txt

# 強制的に再起動
rm .auto-claude/specs/001-feature/PAUSE
python run.py --spec 001

エージェントの回復

エージェントが停止した場合:

  1. リカバリモード
    • Coderにはリカバリプロンプト(coder_recovery.md)があります
    • su時にアクティブ化

(原文がここで切り詰められています)

📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開

Auto-Claude Build System

Deep dive into the autonomous build pipeline and agent orchestration.

Build Architecture

Agent Pipeline

Spec → Planner Agent → Coder Agent → QA Reviewer → QA Fixer → Complete
         │                 │              │            │
         ▼                 ▼              ▼            ▼
    impl_plan.json    Code Changes    QA Report    Fixed Code

Agent Roles

Agent Purpose Model Thinking Tokens
Planner Creates subtask-based implementation plan Claude 5000
Coder Implements subtasks, can spawn subagents Claude None
QA Reviewer Validates acceptance criteria Claude 10000
QA Fixer Fixes QA-reported issues Claude None

Running Builds

Basic Build

cd apps/backend
source .venv/bin/activate

# Run build for spec
python run.py --spec 001

# With iteration limit (for testing)
python run.py --spec 001 --max-iterations 5

Build Options

Option Description
--spec SPEC Spec to build (number or full name)
--max-iterations N Limit build iterations
--skip-qa Skip automatic QA validation
--qa Run QA validation only

Build Flow

  1. Initialization

    • Creates git worktree for isolation
    • Loads spec and implementation plan
    • Sets up security sandbox
  2. Planning Phase

    • Planner agent analyzes spec
    • Creates subtask breakdown
    • Assigns dependencies
  3. Implementation Phase

    • Coder agent implements subtasks
    • Can spawn subagents for parallel work
    • Updates progress in real-time
  4. QA Phase

    • QA Reviewer validates each acceptance criterion
    • Creates QA report
    • If issues found, QA Fixer applies fixes
    • Loop until approved (max 50 iterations)

Agent Configuration

Claude SDK Client

All agents use the Claude Agent SDK configured in core/client.py:

from core.client import create_client

client = create_client(
    project_dir=project_dir,
    spec_dir=spec_dir,
    model="claude-opus-4-5-20251101",
    agent_type="coder",  # or "planner", "qa_reviewer", "qa_fixer"
    max_thinking_tokens=None  # or 5000, 10000, 16000
)

Security Layers

  1. Sandbox - OS-level bash isolation
  2. Filesystem Permissions - Restricted to project directory
  3. Command Allowlist - Only approved commands (see security.py)

Available Tools

Tool Description Agents
Read, Write, Edit File operations All
Glob, Grep File search All
Bash Shell commands (allowlisted) All
Context7 Documentation lookup All
Linear Project management All (if enabled)
Graphiti Memory system All (if enabled)
Electron/Puppeteer Browser testing QA only

Parallel Execution

Subagent Spawning

The Coder agent can spawn subagents for parallel work:

Main Coder Agent
├── Subagent 1: Frontend work
├── Subagent 2: Backend work
└── Subagent 3: Tests

Configuration:

  • Up to 12 agent terminals
  • Each runs in isolated context
  • Results merged automatically

Git Worktree Strategy

main (your branch)
└── auto-claude/{spec-name}  ← isolated worktree

Key principles:

  • ONE branch per spec
  • All work in isolated worktree
  • No automatic pushes
  • User controls merge timing

Monitoring Builds

Real-time Progress

# Watch build progress
tail -f .auto-claude/specs/001-feature/build-progress.txt

# Check implementation plan status
cat .auto-claude/specs/001-feature/implementation_plan.json | jq '.subtasks[] | {id, title, status}'

Interactive Controls

During build:

  • Ctrl+C (once) - Pause and add instructions
  • Ctrl+C (twice) - Exit immediately

File-based control:

# Pause after current session
touch .auto-claude/specs/001-feature/PAUSE

# Add instructions
echo "Focus on the login flow" > .auto-claude/specs/001-feature/HUMAN_INPUT.md

# Resume
rm .auto-claude/specs/001-feature/PAUSE

Build Artifacts

Directory Structure

.auto-claude/specs/001-feature/
├── spec.md                    # Specification
├── implementation_plan.json   # Subtask plan with status
├── build-progress.txt         # Real-time progress log
├── qa_report.md              # QA validation results
├── QA_FIX_REQUEST.md         # Issues to fix (if rejected)
├── graphiti/                  # Memory data (if enabled)
└── worktree/                  # Git worktree info

Implementation Plan Status

{
  "subtasks": [
    {
      "id": 1,
      "title": "Create data model",
      "status": "complete",  // pending, in_progress, complete, blocked
      "started_at": "2024-01-01T10:00:00Z",
      "completed_at": "2024-01-01T10:05:00Z"
    }
  ]
}

QA Validation

QA Reviewer

Validates each acceptance criterion:

## QA Report

### Acceptance Criteria

- [x] User can log in with email → PASS
- [x] Error shown for invalid credentials → PASS
- [ ] Session persists across page refresh → FAIL: Session not being saved

### Issues Found
1. Session cookie not being set correctly in AuthProvider

QA Fixer

Automatically fixes issues:

  1. Reads QA_FIX_REQUEST.md
  2. Analyzes root cause
  3. Implements fix
  4. Triggers re-validation

QA Loop

QA Reviewer → Issues? → No → Complete
                ↓
               Yes
                ↓
           QA Fixer
                ↓
           Re-validate
                ↓
           (Max 50 loops)

Troubleshooting Builds

Build Stuck

# Check what's happening
tail -100 .auto-claude/specs/001-feature/build-progress.txt

# Check for errors
grep -i error .auto-claude/specs/001-feature/build-progress.txt

# Force restart
rm .auto-claude/specs/001-feature/PAUSE
python run.py --spec 001

Agent Recovery

If an agent gets stuck:

  1. Recovery Mode

    • Coder has recovery prompt (coder_recovery.md)
    • Activated when subtask fails multiple times
  2. Manual Intervention

    # Add human input
    echo "Skip the failing test for now" > .auto-claude/specs/001-feature/HUMAN_INPUT.md

Common Issues

Issue Solution
Timeout errors Increase API_TIMEOUT_MS in .env
Memory errors Reduce max_thinking_tokens
Tool failures Check security allowlist
Git conflicts Run --review and resolve manually

Advanced Configuration

Model Override

# Use different model
AUTO_BUILD_MODEL=claude-sonnet-4-5-20250929 python run.py --spec 001

Extended Thinking

Configure in agent creation:

  • ultrathink: 16000 tokens (spec creation)
  • high: 10000 tokens (QA review)
  • medium: 5000 tokens (planning)
  • None: disabled (coding)

Debug Mode

DEBUG=true DEBUG_LEVEL=3 python run.py --spec 001

Related Skills

  • auto-claude-spec: Spec creation
  • auto-claude-workspace: Workspace management
  • auto-claude-memory: Memory system
  • auto-claude-optimization: Performance tuning