.claude/skills/parallel-pr/SKILL.md
複数の独立PRをチーム×worktreeで並列作成する。タスク一覧を受け取り、worktree準備→チーム組成→エージェント起動→CI確認→クリーンアップまで一気に実行する。
npx skillsauth add team-mirai-volunteer/action-board Parallel PRInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
複数の独立したPRを、git worktree + エージェントチームで並列に作成するスキル。
ユーザーの指示からPR一覧を整理する:
| # | ブランチ名 | 作業内容 | 対象ファイル |
|---|-----------|---------|-------------|
| 1 | feat/xxx | ... | src/... |
PRの数に応じてエージェント数を決める(目安: 4-5が上限)。 1エージェントに1-2 PRを割り当てる。
エージェントごとにworktreeを作成する:
# {team} はチーム名の略称(例: test4, refactor2)
# {x} はエージェント識別子(a, b, c, d...)
git worktree add ../action-board-{team}-{x} -b {team}-{x}-base
mkdir -p ../action-board-{team}-{x}/.claude
cp .claude/settings.local.json ../action-board-{team}-{x}/.claude/
依存パッケージのインストール(全worktreeをバックグラウンドで並列実行):
cd ../action-board-{team}-{x} && pnpm install --frozen-lockfile
TeamCreate でチームを作成TaskCreate で各エージェントのタスクを作成(owner設定、in_progress)Task で各エージェントをバックグラウンドで起動:Task(
subagent_type: "general-purpose",
team_name: "{チーム名}",
name: "agent-{x}",
mode: "bypassPermissions",
run_in_background: true,
prompt: 下記テンプレート参照
)
あなはworktree-workerです。以下の手順で作業してください。
## 作業環境
- worktreeパス: {絶対パス}
- 全コマンドはこのworktreeディレクトリ内で実行すること
## 担当PR一覧
### PR 1
- ブランチ名: {branch}
- 作業内容: {description}
- 対象ファイル: {files}
### PR 2 (あれば)
- ...
## 作業手順
1. `git checkout -b {branch} develop` でブランチ作成
2. 対象ファイルを読んで理解
3. 実装・修正
4. 検証(テスト実行 or typecheck)
5. `pnpm run biome:check:write` でフォーマット
6. コミット(Co-Authored-By: Claude Opus 4.6 <[email protected]>)
7. `git push -u origin {branch}`
8. `gh pr create --base develop --title "{title}" --body "..."`
9. 次のPRがあれば `git checkout -b {next-branch} develop` で次へ
10. 全完了後、リーダーにメッセージで報告(PR番号・URL)
エージェントからの完了メッセージを待つ。全エージェント完了後:
# 全PRのCI状態を一括確認
for pr in {PR番号リスト}; do
echo "=== PR #$pr ==="
gh pr checks $pr
done
# 全PRのコメントを確認(CodeRabbitやレビューアからのフィードバック)
for pr in {PR番号リスト}; do
echo "=== PR #$pr comments ==="
gh pr view $pr --comments
done
CI失敗時の対応:
gh run rerun <run-id> --failed で再実行pnpm run biome:check:write して再pushPRコメント対応:
# 全エージェントにシャットダウン要求
SendMessage(type: "shutdown_request", recipient: "agent-{x}")
# worktree削除
git worktree remove ../action-board-{team}-{x}
git branch -D {team}-{x}-base
# チーム削除
TeamDelete
作成したPR一覧をまとめて報告:
| # | PR | タイトル | CI |
|---|-----|---------|-----|
| 1 | #XX | feat: ... | Passed |
../action-board-{name} 形式(CLAUDE.mdのルール)settings.local.json のコピーは必須(権限設定のため)data-ai
PRコメントやセッション発見を分析し、CLAUDE.md・skills・agents・memoryに学びを自動反映する振り返りスキル。セッション終了時やPRレビュー後に使う。
testing
Create, edit, improve, or audit AgentSkills. Use when creating a new skill from scratch or when asked to improve, review, audit, tidy up, or clean up an existing skill or SKILL.md file. Also use when editing or restructuring a skill directory (moving files to references/ or scripts/, removing stale content, validating against the AgentSkills spec). Triggers on phrases like "create a skill", "author a skill", "tidy up a skill", "improve this skill", "review the skill", "clean up the skill", "audit the skill".
testing
Host security hardening and risk-tolerance configuration for OpenClaw deployments. Use when a user asks for security audits, firewall/SSH/update hardening, risk posture, exposure review, OpenClaw cron scheduling for periodic checks, or version status checks on a machine running OpenClaw (laptop, workstation, Pi, VPS).
testing
Create, edit, improve, or audit AgentSkills. Use when creating a new skill from scratch or when asked to improve, review, audit, tidy up, or clean up an existing skill or SKILL.md file. Also use when editing or restructuring a skill directory (moving files to references/ or scripts/, removing stale content, validating against the AgentSkills spec). Triggers on phrases like "create a skill", "author a skill", "tidy up a skill", "improve this skill", "review the skill", "clean up the skill", "audit the skill".