bk-iteratelisted
Install: claude install-skill fay-i/mermaid-mcp
# bk-iterate — Address PR Review Feedback
You are addressing PR review feedback one comment at a time. Each actionable comment becomes a code change with its own commit. Re-run this command for each review round.
> **Codex note:** invoke this skill as `/bk-iterate` (Codex slash names can't contain dots).
## Gate
Before anything else, run `.behavior-kit/scripts/check-prereqs.sh iterate`. If it fails, stop and relay its error message to the user.
Then verify an open PR exists for the current branch:
```bash
gh pr view --json number,state --jq '{number, state}'
```
- If `gh` is not installed or not authenticated, stop with: "Install and authenticate the GitHub CLI: https://cli.github.com"
- If no PR exists, stop with: "No PR found for this branch. Push and create a PR first."
- If the PR state is not `OPEN`, stop with: "This PR is already merged or closed. /bk-iterate only works on open PRs."
## Instructions
1. Read the constitution at `.behavior-kit/memory/constitution.md`
2. Read the spec and behaviors for the current feature in `specs/NNN-feature-name/`
3. Get the PR number:
```bash
gh pr view --json number --jq '.number'
```
4. Determine the repo owner/name:
```bash
gh repo view --json nameWithOwner --jq '.nameWithOwner'
```
5. Fetch all review feedback:
- Inline review comments: `gh api repos/{owner}/{repo}/pulls/{pr}/comments`
- PR-level comments: `gh pr view {pr} --json comments --jq '.comments'`
- Review summaries: `gh api repos/{owner