Agent Skill
2/7/2026fix-reviews
Detects PRs with changes requested and spawns fixer agents. Use when addressing review feedback.
N
ncukondo
0GitHub Stars
1Views
npx skills add ncukondo/search-hub
SKILL.md
| Name | fix-reviews |
| Description | Detects PRs with changes requested and spawns fixer agents. Use when addressing review feedback. |
name: fix-reviews description: Detects PRs with changes requested and spawns fixer agents. Use when addressing review feedback.
Fix Review Requests
レビューで修正要求(changes requested)のあるPRを検出し、修正エージェントを起動します。
Current PRs Needing Fixes
!gh pr list --state open --json number,headRefName,title,reviewDecision --jq '.[] | select(.reviewDecision == "CHANGES_REQUESTED") | "PR #\(.number): \(.title) (\(.headRefName))"' 2>/dev/null
Steps
1. Detect PRs with Changes Requested
gh pr list --state open --json number,headRefName,title,reviewDecision
Filter: reviewDecision == "CHANGES_REQUESTED"
2. Get Review Comments
For each PR:
gh pr view <pr-number> --comments
gh api repos/{owner}/{repo}/pulls/<pr-number>/reviews --jq '.[] | select(.state == "CHANGES_REQUESTED") | .body'
3. Verify Worktrees
Check/create worktree for each PR:
git worktree add /workspaces/search-hub--worktrees/<branch-dir> <branch-name>
4. Spawn Fixer Agents
Pane limit: max 4 fixers (main + 4 fixers = 5 panes). Before spawning, check current pane count:
tmux list-panes | wc -l # Must be < 5
If more PRs than available slots, fix sequentially — wait for one to finish before spawning the next.
For each PR:
./scripts/spawn-worker.sh <branch-name> <task-keyword> &
Or if task keyword is unknown:
./scripts/set-role.sh <worktree-dir> implement./scripts/launch-agent.sh <worktree-dir> "<fix instructions>"
5. Apply Layout
./scripts/apply-layout.sh
6. Start Orchestration (optional)
./scripts/orchestrate.sh --background
Output
Report:
- List of spawned agents (PR number, branch, pane ID)
- Summary of requested changes for each PR
Notes
- If no PRs need fixes, report that and exit
- Include full review comments in fix instructions
- Use separate text and Enter when sending tmux keys (with sleep 1 between)
Skills Info
Original Name:fix-reviewsAuthor:ncukondo
Download