From reviw-plugin
Automates full GitHub PR workflow from worktrees: commits changes with Prettier, pushes, creates PR, monitors/fixes CI failures, handles Copilot review comments autonomously. Invoke via /pr.
npx claudepluginhub kazuph/reviw --plugin reviw-pluginThis skill uses the workspace's default tool permissions.
worktreeでの実装完了後、PR作成からレビュー対応まで全て自律的に完結させる。
Creates isolated Git worktrees for feature branches with prioritized directory selection, gitignore safety checks, auto project setup for Node/Python/Rust/Go, and baseline verification.
Executes implementation plans in current session by dispatching fresh subagents per independent task, with two-stage reviews: spec compliance then code quality.
Dispatches parallel agents to independently tackle 2+ tasks like separate test failures or subsystems without shared state or dependencies.
worktreeでの実装完了後、PR作成からレビュー対応まで全て自律的に完結させる。 途中でユーザーに確認を求めない。全部終わってから報告する。
gh 認証済みgit wt で作成済み)# 現在のブランチとworktree確認
git branch --show-current
git status
# 未コミットの変更があればコミット(prettier実行後)
npx prettier --write <changed-files>
git add <files> && git commit -m "..."
# ビルド確認
npm run build
# 初回push(-u でトラッキング設定)
git push -u origin <branch-name>
# 2回目以降のpush(カレントブランチのみ)
git push origin HEAD
# PR作成(ghのデフォルトに任せる = GitHubリポのデフォルトブランチがbase)
gh pr create --head <branch-name> \
--title "..." \
--body "$(cat <<'EOF'
## Summary
- ...
## Test plan
- [ ] ...
🤖 Generated with [Claude Code](https://claude.com/claude-code)
EOF
)"
重要: git push ではなく必ず git push origin HEAD を使う。worktreeで git push するとデフォルトブランチもpush試行してエラーになる。
# CI完了まで待機(sleepしてからチェック)
sleep 90 && gh pr checks <PR番号>
# 失敗していたらログ確認
gh run view <run-id> --log-failed | tail -40
npx prettier --write→コミット→git push origin HEAD→再度CI監視# レビューコメント確認(CIパス後30-90秒で付く)
sleep 60 && gh api repos/{owner}/{repo}/pulls/<PR番号>/comments \
--jq '.[] | "[\(.path):\(.line)] \(.body[0:200])"'
gh api repos/{owner}/{repo}/pulls/<PR番号>/comments/<id>/replies -f body="対応済み。"ローカルのdevサーバー(worktree内で npm run dev)でブラウザ確認。
Preview環境のデプロイを待つ必要はない。
全て終わったら以下を含めて報告:
PR #XX: <URL>
| 項目 | 状態 |
|------|------|
| CI | 全チェックパス |
| Copilotレビュー | N件対応済み / 追加指摘なし |
| テスト | N件パス |
| 検証 | ローカル/Preview で確認済み |
git push を使わない(git push origin HEAD を使う)git wt list は禁止("list" というworktreeが作成されてしまう)git wt(引数なし)を使うgit worktree list を使う