Addresses PR review comments for Sprout Rails project. Fetches PR comments via gh CLI, systematically addresses each comment, runs rubocop on changed files, and runs relevant tests to ensure nothing broke. Use this when the user asks to address PR feedback or review comments.
This skill helps address PR review comments systematically while following Sprout's Rails conventions and ensuring code quality.
Follow these steps in order:
First, identify the current PR:
gh pr view --json number,title,url,comments,reviewThreads,files
If no PR is found for the current branch, ask the user for the PR number.
For each comment to address, make an attack plan (use subagents to plan the code change):
After making changes:
Run RuboCop on changed files:
git diff --name-only | grep '\.rb$' | xargs rubocop -a
Fix any remaining RuboCop issues:
rubocop -a again if neededIdentify and run relevant tests:
app/, run corresponding test filestest/with_seeds/services/test/with_seeds/controllers/test/with_seeds/models/rails test test/with_seeds/services/specific_service_test.rbAddress test failures:
cases/accounts/standard_lies seed (deprecated)After addressing all comments:
Summarize changes made:
Prepare for commit:
Remind about workflow:
User: "Address the PR feedback"
Skill actions:
gh pr viewgh CLI is not authenticated, provide instructions to run gh auth login