PR レビュー対応ワークフローの自動化スキル。レビューコメント取得・コード修正・検証・コミット・Push の一連の流れを Python オーケストレーターで制御する。 以下の場合に使用: (1) PR レビューに対応するとき (2) 「レビュー対応」「レビューの修正」「review response」と指示されたとき (3) /respond-review で明示的に呼び出されたとき (4) レビューコメントに基づくコード修正が必要なとき
From review-workflownpx claudepluginhub utakatakyosui/c2lab --plugin review-workflowThis skill uses the workspace's default tool permissions.
references/config-example.mdreferences/fix-plan-format.mdDesigns and optimizes AI agent action spaces, tool definitions, observation formats, error recovery, and context for higher task completion rates.
Implements structured self-debugging workflow for AI agent failures: capture errors, diagnose patterns like loops or context overflow, apply contained recoveries, and generate introspection reports.
Compares coding agents like Claude Code and Aider on custom YAML-defined codebase tasks using git worktrees, measuring pass rate, cost, time, and consistency.
PR のレビューコメントを取得し、修正・検証・コミット・Push する一連のワークフローを自動化する。
1. VCS検出 → 2. レビュー取得 → 3. SubAgentで修正 → 4. 検証 → 5. コミット → 6. Push
全スクリプトは ${CLAUDE_PLUGIN_ROOT}/scripts/ に配置されている。
.jj ディレクトリの有無で jj/git を判定する。
python3 ${CLAUDE_PLUGIN_ROOT}/scripts/vcs.py [project_dir]
出力例:
{"vcs_type": "jj", "root_dir": "/path/to/repo", "current_branch": "main"}
gh CLI でインラインコメントとレビュー本文を取得し、スレッド単位にグループ化する。
python3 ${CLAUDE_PLUGIN_ROOT}/scripts/review_fetcher.py <PR_URL_or_number>
PR 参照形式:
https://github.com/owner/repo/pull/123owner/repo#123123(カレントリポジトリを自動検出).claude/review-workflow.local.md に定義された検証コマンドを順次実行する。
python3 ${CLAUDE_PLUGIN_ROOT}/scripts/verifier.py [project_dir]
修正計画(fix-plan.json)に基づいてレビューコメント単位でコミットする。
python3 ${CLAUDE_PLUGIN_ROOT}/scripts/committer.py /tmp/review-fix-plan.json [project_dir]
jj split + jj describe でコミット分割git add + git commit で個別コミットPush に必要な情報を出力する(実際の Push は行わない)。
python3 ${CLAUDE_PLUGIN_ROOT}/scripts/push.py [project_dir]
jj-safe-push スキルの使用を推奨プロジェクトの .claude/review-workflow.local.md に検証コマンドを定義する。
---
verify:
typecheck: "npx tsc --noEmit"
test: "npm test"
lint: "npx eslint . --max-warnings 0"
---
## プロジェクト固有メモ
このプロジェクトではレビュー対応時に以下に注意:
- MSW モックの更新を忘れない
- Figma デザインとの整合性を確認する
YAML frontmatter の verify セクションがスクリプトから読み取られる。Markdown 本文はスキル参照用のメモとして使用可能。
| 操作 | jj | git |
|---|---|---|
| コミット | jj split + jj describe | git add + git commit |
| Push | jj-safe-push スキル経由 | ユーザー確認後に git push |
| ブランチ検出 | jj log bookmarks | git branch --show-current |
SubAgent が出力する修正計画:
[
{
"thread_id": 123,
"summary": "型アノテーションの修正",
"files": ["src/components/UserCard.tsx"],
"commit_message": "fix: correct type annotation for user prop"
}
]
詳細は references/fix-plan-format.md を参照。