Agent skill
address-pr-comments
Address GitHub PR review comments. Navigate to the correct worktree, make fixes, push updates.
Install this agent skill to your Project
npx add-skill https://github.com/nex-agi/weaver/tree/main/.claude/skills/address-pr-comments
SKILL.md
Address PR Comments Workflow (Worktree-Aware)
Input
PR number or branch name.
Workflow
Step 1: Find the Worktree
# Get PR branch
BRANCH=$(gh pr view <number> --repo nex-agi/weaver --json headRefName -q '.headRefName')
# Find the worktree for this branch
git worktree list | grep "$BRANCH"
cd <worktree-path>
Step 2: Fetch Unresolved Comments
gh api graphql -f query='
query {
repository(owner: "nex-agi", name: "weaver") {
pullRequest(number: <number>) {
reviewThreads(first: 50) {
nodes {
id isResolved
comments(first: 1) {
nodes { id databaseId body path line }
}
}
}
}
}
}'
Step 3: Classify & Address
| Category | Description | Action |
|---|---|---|
| A: Actionable | Code changes required | Make changes |
| B: Discussable | May skip if follows rules | Ask user |
| C: Informational | Resolve without changes | Acknowledge |
Step 4: Commit & Push
git add -A
git commit -m "chore(pr): address review comments for #<number>"
git push origin "$BRANCH"
Step 5: Reply & Resolve Threads
Reply to each comment via gh API, then resolve the thread.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
git-commit
Complete git commit workflow in a worktree. Includes review, staging, and message generation.
testing
Run linting and tests for Weaver SDK. Works in any worktree.
fix-issue
Fix a GitHub issue using git worktree for isolation. Fetches issue, creates worktree, plans and implements fix, then creates PR.
weaver-regression-test
Run the full Weaver provisioner regression test suite against the production service. Covers full_ft, LoRA, debug modes, and edge cases.
github-pr
Create a GitHub PR from a worktree branch. Use after committing changes.
code-review
Review code changes against Weaver SDK project standards before committing. Works in any worktree.
Didn't find tool you were looking for?