원클릭으로
address-review-comments
Address PR review comments following test-driven approach. Use when fixing issues raised in code reviews.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Address PR review comments following test-driven approach. Use when fixing issues raised in code reviews.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Create pull requests. Use when opening PRs, writing PR descriptions, or preparing changes for review.
Reference for StyleX style authoring patterns, constraints, and APIs. Use when generating StyleX output code, writing stylex.create() styles, applying stylex.props(), working with themes/variables, pseudo-classes, media queries, dynamic styles, or debugging StyleX-related transformation issues in the codemod.
Remove code duplication, extract shared patterns, and eliminate type casts and `any` types. Run after implementing new features.
| name | address-review-comments |
| description | Address PR review comments following test-driven approach. Use when fixing issues raised in code reviews. |
Address PR review comments using a test-driven approach: document the issue first, then fix it.
This playbook is tool-agnostic. Use the repository's approved git/PR workflow for your environment.
Requires: Ability to inspect PR review feedback (for example via gh or your environment's PR tooling).
# Get PR number for current branch
gh pr view --json number,url,reviewDecision,reviews
# Get detailed review comments
gh api repos/{owner}/{repo}/pulls/{pr_number}/comments
For each review comment:
This is the critical step. Before making any code changes, document the issue as a test:
Prefer (in order):
.input.tsx/.output.tsx test case, extend itsrc/__tests__/Test case example:
// In src/__tests__/transform.test.ts
describe("issue description", () => {
it("should handle the specific case mentioned in review", () => {
const source = `
// Minimal reproduction of the issue
import styled from "styled-components";
const Component = styled.div\`...\`;
`;
const result = transformWithWarnings(
{ source, path: "test.tsx" },
{ jscodeshift: j, j, stats: () => {}, report: () => {} },
{ adapter: fixtureAdapter },
);
// Assert the expected behavior
expect(result.code).not.toBeNull();
expect(result.code).toContain("expected output");
});
});
Verify the test fails:
pnpm test:run
The test should fail, confirming the issue exists.
Now implement the fix:
pnpm test:run
If you added a new test case or modified existing ones:
# For a specific test case
node scripts/regenerate-test-case-outputs.mts --only <case-name>
# Verify the output is correct
# Use your normal file-reading tool to inspect:
# test-cases/<case-name>.output.tsx
pnpm check
This runs:
git add <files>
git commit -m "fix: <description>
Addresses review comment: <brief summary>
"
git push -u origin <branch-name>
After pushing the fixes, resolve the review threads that the changes addressed. Leave threads open if they were not addressed, are ambiguous, or need reviewer confirmation.
Use thread-aware PR tooling when possible so you only resolve the intended review threads, then re-fetch review thread state to verify that the addressed threads are resolved.
After addressing review feedback, run the refactor-code-quality playbook to:
any and type assertions)This is especially important if the fix required changes across multiple files or added new helper functions.
# Run full validation again after refactoring
pnpm check