agentleFS
nex-aginex-agi/NexRL/.claude/skills/address-pr-comments/SKILL.md

address-pr-comments

Skill119 starsChanged 8 months agoApache-2.0View on GitHub

Address GitHub PR review comments. Navigate to correct worktree, make fixes, push updates.

  • Commits and pushes
Files
SKILL.md

Address PR Comments Workflow (Worktree-Aware)

Workflow

Step 1: Find the Worktree

PR_NUM=<number>
BRANCH=$(gh pr view $PR_NUM --repo "$REPO" --json headRefName -q '.headRefName')

# Find and enter the worktree
git worktree list | grep "$BRANCH"
cd <worktree-path>

Step 2: Fetch Unresolved Comments

gh api graphql -f query='
query {
  repository(owner: "china-qijizhifeng", name: "NexRL") {
    pullRequest(number: '$PR_NUM') {
      reviewThreads(first: 50) {
        nodes {
          id isResolved
          comments(first: 1) {
            nodes { id databaseId body path line }
          }
        }
      }
    }
  }
}'

Step 3: Classify & Address

  • A: Actionable → Make code changes
  • B: Discussable → Ask user for guidance
  • C: Informational → Resolve with acknowledgment

Step 4: Format, Lint & Test

python -m black <changed_files>
python -m isort <changed_files>
python -m pylint <changed_files> --rcfile=.pylintrc -rn -sn
python -m pytest tests/ -v --tb=short

Step 5: Commit & Push

git add -A
git commit -m "chore(pr): address review comments for #${PR_NUM}"
git push origin "$BRANCH"

Step 6: Reply & Resolve Threads

Reply to each addressed comment via gh API, then resolve the thread.

Step 7: Update Issue Status

ISSUE_NUM=$(echo "$BRANCH" | grep -oP 'issue-\K\d+')
if [ -n "$ISSUE_NUM" ]; then
  gh issue comment "$ISSUE_NUM" --repo china-qijizhifeng/NexRL \
    --body "📝 PR comments addressed and pushed."
fi

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

Reviews can't be read right now.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.