Address 审查
- 作者仓库星标 0
- 作者仓库 skills-registry
Address Review
This skill pulls unresolved review comments from the current branch's PR and addresses them. It handles code changes, spec proposal approvals, and pushes fixes.
Process
Step 1: Identify the PR and Feature Folder
- Run
git branch --show-currentto get the current branch. - Derive the feature folder:
- Strip the
feat/prefix from the branch name. - Extract the first path segment (everything before the second
/) — this is the feature slug. - Feature folder =
spec/features/[slug]/ - Example:
feat/0023-payment-retry/eng-123-retry-endpoint→spec/features/0023-payment-retry/ - Example:
feat/0023-payment-retry→spec/features/0023-payment-retry/
- Strip the
- Use
gh pr view --json number,url,headRefNameto find the open PR for this branch. - If no PR is found, fail with a clear message.
Step 2: Pull Unresolved Comments
- Use
gh api repos/{owner}/{repo}/pulls/{number}/commentsto get all review comments. - Filter for unresolved/pending comments (not yet resolved by the author).
- Group comments by category:
Code Comments
General code review feedback — bugs, style, logic issues, suggestions.
Spec Proposal Comments
Comments that reference SPEC-PROPOSAL.md entries. Look for patterns like:
- "SPEC-PROPOSAL: approved" or "SP-001: approved" — reviewer approves the proposal
- "SPEC-PROPOSAL: rejected" or "SP-001: rejected" — reviewer rejects the proposal
- Other comments on SPEC-PROPOSAL.md lines
Step 3: Address Code Comments
For each unresolved code comment:
- Read the referenced file and line range.
- Understand the reviewer's concern.
- Fix the code to address the concern.
- If the fix requires test changes, update tests and ensure they pass.
- If the fix changes behavior covered by
spec://references, verify the references are still correct.
Step 4: Handle Spec Proposals
Read SPEC-PROPOSAL.md from the feature folder (if it exists).
For Approved Proposals
- Read the proposal entry (e.g. SP-001).
- Apply the proposed change to the actual spec file (e.g. update
REQUIREMENTS.md,ADR.md, orDESIGN.mdin the feature folder). - Remove the approved entry from
SPEC-PROPOSAL.md.
For Rejected Proposals
- Read the rejection reason from the review comment.
- Revert any code that was written assuming the proposed spec change.
- Adjust the implementation to work within the existing spec.
- Remove the rejected entry from
SPEC-PROPOSAL.md. - Update tests if the behavior changed.
Cleanup
If all entries in SPEC-PROPOSAL.md are resolved (approved or rejected), delete the file entirely.
Step 5: Run Tests
Run the full test suite (or at minimum, tests related to the changes) to ensure everything passes after the fixes.
Step 6: Commit and Push
- Stage all modified files.
- Commit with message:
fix(NNNN-slug): address review comments for {ISSUE-ID} - Push to the current branch.
Step 7: Report
Present a summary:
- Number of comments addressed
- Code changes made
- Spec proposals approved/rejected and files updated
- Whether SPEC-PROPOSAL.md was cleaned up
- Test results
- Suggest running
/address-reviewagain after the next review cycle - If all comments are resolved and PR is approved, remind the user to merge the PR manually
<!-- tomevault:4.0:skill_md:2026-05-22 -->Source: aqaliarept/sdd — distributed by TomeVault.
- 流狐分类
- 工程开发
- 作者声明 Agent
- 未找到明确声明;不据此推断已兼容或已测试
- 静态检查
- 88 / 100 · 启发式扫描,不代表运行安全
- 作者 / 版本 / 许可
- @tomevault-io · 未声明 license
- 流狐 Token 估算
- 低消耗
- 流狐接入估算
- 即装即用
- 是否需要外部 API Key
- 未发现要求
- 检测到的系统要求
- 未声明
- 底层运行要求
- 未声明
- 检测到的文件与系统行为
-
- 只读
- 允许写入 / 修改
- 检测到的网络行为
- 仅限本地
- 安装命令数
- 无(仅作为资料)
档案由构建时根据 SKILL.md 与安装命令自动衍生,可能与作者实际意图存在差异。
需要注意: 未限定 allowed-tools,默认拥有全部工具权限。
作者没有在当前 SKILL.md 中定义固定输出样例。 Process
Run git branch --show-current to get the current branch. Derive the feature folder: Strip the feat/ prefix from the branch name.
Use gh api repos/{owner}/{repo}/pulls/{number}/comments to get all review comments. Filter for unresolved/pending comments (not yet resolved by the author). Group comments by category:
For each unresolved code comment: Read the referenced file and line range. Understand the reviewer's concern.
Read SPEC-PROPOSAL.md from the feature folder (if it exists). For Approved Proposals Read the proposal entry (e.g. SP-001).
Run the full test suite (or at minimum, tests related to the changes) to ensure everything passes after the fixes.
# Address Review
This skill pulls unresolved review comments from the current branch's PR and addresses them. It handles code changes, spec proposal approvals, and pushes fixes.
## Process
### Step 1: Identify the PR and Feature Folder
1. Run `git branch --show-current` to get the current branch.
2. Derive the feature folder:
- Strip the `feat/` prefix from the branch name.
- Extract the first path segment (everything before the second `/`) — this is the feature slug.
- Feature folder = `spec/features/[slug]/`
- Example: `feat/0023-payment-retry/eng-123-retry-endpoint` → `spec/features/0023-payment-retry/`
- Example: `feat/0023-payment-retry` → `spec/features/0023-payment-retry/`
3. Use `gh pr view --json number,url,headRefName` to find the open PR for this branch.
4. If no PR is found, fail with a clear message.
### Step 2: Pull Unresolved Comments
1. Use `gh api repos/{owner}/{repo}/pulls/{number}/comments` to get all review comments.
2. Filter for unresolved/pending comments (not yet resolved by the author).
3. Group comments by category:
#### Code Comments
General code review feedback — bugs, style, logic issues, suggestions.
#### Spec Proposal Comments
Comments that reference SPEC-PROPOSAL.md entries. Look for patterns like:
- "SPEC-PROPOSAL: approved" or "SP-001: approved" — reviewer approves the proposal
- "SPEC-PROPOSAL: rejected" or "SP-001: rejected" — reviewer rejects the proposal
- Other comments on SPEC-PROPOSAL.md lines
### Step 3: Address Code Comments
For each unresolved code comment:
1. Read the referenced file and line range.
2. Understand the reviewer's concern.
3. Fix the code to address the concern.
4. If the fix requires test changes, update tests and ensure they pass.
… 作者原文负责流程事实;流狐只索引当前章节、要点、文件与命令。
章节 -> Process → Step 1: Identify the PR and Feature Folder → Step 2: Pull Unresolved Comments → Step 3: Address Code Comments → Step 4: Handle Spec Proposals → Step 5: Run Tests
要点 -> This skill pulls unresolved review comments from the current branch's PR and addresses them. · 1. Run git branch --show-current to get the current branch. · 1. Use gh api repos/{owner}/{repo}/pulls/{number}/comments to get all review comments. · 1. Read the referenced file and line range. · Read SPEC-PROPOSAL.md from the feature folder (if it exists). · 1. Read the proposal entry (e.g. · 1. Read the rejection reason from the review comment. · If all entries in SPEC-PROPOSAL.md are resolved (approved or rejected), delete the file entirely.
文件/命令 -> git branch --show-current · feat/ · spec/features/[slug]/ · feat/0023-payment-retry/eng-123-retry-endpoint · spec/features/0023-payment-retry/ · feat/0023-payment-retry · gh pr view --json number,url,headRefName · gh api repos/{owner}/{repo}/pulls/{number}/comments
内容 SHA-256 -> 4f4481b2a324
方法与流程
适用与边界
原文中的明确线索
git branch --show-current、feat/、spec/features/[slug]/、feat/0023-payment-retry/eng-123-retry-endpoint、spec/features/0023-payment-retry/、feat/0023-payment-retry、gh pr view --json number,url,headRefName、gh api repos/{owner}/{repo}/pulls/{number}/comments