.claude/skills/implement-review-loop/SKILL.md
Implement code from a plan, create PRs with Graphite CLI (gt create/submit), wait for code reviews, and iterate on feedback. Use when the user says "implement", "implement the plan", "create PR", "review loop", or wants to go from plan to merged PR. This skill handles the full cycle - implement code, create branch with Graphite, submit PR, wait for reviews (without wasting tokens), read comments, fix code, and push updates.
npx skillsauth add harivansh-afk/rpi implement-review-loopInstall 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.
End-to-end workflow for implementing code from a plan, creating PRs with Graphite, and iterating on review feedback.
gt --version)gh --version)gt init if not)npx devin-review)Plan -> Implement -> Create Branch (gt) -> Submit PR -> Wait for Review -> Read Comments -> Fix -> Push -> Repeat
git add <specific-files>Create branch with auto-generated name from commit message:
gt create --all --message "feat: <description from plan>"
Submit the PR with auto-generated description:
gt submit --ai --stack
Or with manual title/description:
gt submit --edit-title --edit-description
Capture the PR URL from output for later use.
Run Devin Review for AI-powered code review:
cd /path/to/repo
npx devin-review https://github.com/owner/repo/pull/123
This creates an isolated worktree and sends diff to Devin for analysis.
Use the polling script to wait without consuming tokens:
./scripts/poll_pr_comments.sh owner/repo 123 --timeout 60 --interval 30
The script:
For CI checks:
./scripts/wait_for_checks.sh owner/repo 123 --timeout 15
Fetch all comments for review:
./scripts/fetch_pr_comments.sh owner/repo 123
This outputs:
For each comment:
Amend current commit and push:
gt modify --all
gt submit
Or create a new fixup commit:
gt create --all --message "fix: address review feedback"
gt submit
Repeat phases 4-6 until:
| Task | Command |
| -------------- | ---------------------------------------- |
| Create branch | gt create -am "feat: description" |
| Submit PR | gt submit --ai --stack |
| View PR | gt pr |
| Amend changes | gt modify -a |
| Push updates | gt submit |
| Poll comments | ./scripts/poll_pr_comments.sh repo pr |
| Fetch comments | ./scripts/fetch_pr_comments.sh repo pr |
| Devin review | npx devin-review <pr-url> |
Polls for new PR comments without consuming context:
./scripts/poll_pr_comments.sh <owner/repo> <pr-number> [--timeout <min>] [--interval <sec>]
Waits for GitHub checks to complete:
./scripts/wait_for_checks.sh <owner/repo> <pr-number> [--timeout <min>]
Fetches and formats all PR comments:
./scripts/fetch_pr_comments.sh <owner/repo> <pr-number> [--unresolved-only]
testing
facilitate pre-implementation setups for worktree setup
documentation
iterate on structure outline based on user feedback. if given a path to a document in .humanlayer/tasks/*/*-structure-outline.md, use this skill.
documentation
iterate on research document based on user feedback. This skill requires a path to a document and feedback from the human
documentation
iterate on .humanlayer/tasks/*/*-research-questions.md doc based on user feedback.