一键导入
pwrl-review-sync-status
Post review findings back to GitHub PR with comments, formal reviews, and labels. Final phase of pwrl-review orchestrator.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Post review findings back to GitHub PR with comments, formal reviews, and labels. Final phase of pwrl-review orchestrator.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Extract, classify, deduplicate, structure, and save learnings from code, commits, tasks, and documentation
Create structured implementation plans with three tiers (Fast/Standard/Deep). Pure skill pipeline orchestrator—no agent routing.
Review code changes through 4-phase micro-skill pipeline (scope, prepare, analyze, report)
Execute implementation work efficiently through 4-phase micro-skill pipeline
Verify repository state and confirm session completion before committing.
Create a clear session commit with state and next steps. Orchestrates checkpoint and commit micro-skills, optionally chains to pwrl-learnings.
| name | pwrl-review-sync-status |
| description | Post review findings back to GitHub PR with comments, formal reviews, and labels. Final phase of pwrl-review orchestrator. |
| argument-hint | [report artifact from pwrl-review-report] |
Purpose: Final phase of review workflow. Takes the report artifact from Phase 4 and synchronizes all review findings back to GitHub:
Expects artifact from pwrl-review-report with:
report_id: YYYY-MM-DD-UNN-report
created: ISO-8601-timestamp
# Executive Summary
verdict: APPROVED | REQUEST CHANGES | REJECTED
critical_issues: [count]
major_issues: [count]
minor_issues: [count]
# Quality Scores
overall_score: [0-100]%
code_quality_score: [0-100]%
security_score: [0-100]%
test_coverage_score: [0-100]%
documentation_score: [0-100]%
# Detailed findings organized by category
code_quality_findings: [list]
security_findings: [list]
test_coverage_findings: [list]
documentation_findings: [list]
integration_findings: [list]
# Sign-off
approved_by: [user/reviewer]
approval_date: ISO-8601-timestamp
Plus: PR number or branch reference from original input context
Primary Output:
Status Output:
Check report artifact has:
report_idResolve PR context:
If validation fails:
Comment Header:
Quality Metrics Section:
📊 Code Quality: ████████░░ 85%
📊 Security: ██████████ 100%
📊 Test Coverage: ███████░░░ 75%
📊 Documentation: █████████░ 90%
─────────────────────────────
Overall Score: ████████░░ 87%
Findings Section:
Action Items (for REQUEST CHANGES only):
Next Steps:
Construct comment with formatted findings (Step 2)
Post to PR using GitHub API:
POST /repos/{owner}/{repo}/issues/{issue_number}/comments
{
"body": "[formatted comment]"
}
Handle errors:
Success: Store comment ID for potential updates/edits later
Review Action: Based on verdict (see review-verdict-mapping.md)
| Verdict | GitHub Action | Reason |
|---|---|---|
| APPROVED | APPROVE | Code ready to merge |
| REQUEST CHANGES | REQUEST_CHANGES | Issues found, please fix |
| REJECTED | REQUEST_CHANGES (blocking) | Major blockers, discuss first |
Post review using GitHub API:
POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews
{
"body": "[summary of review]",
"event": "APPROVE" | "REQUEST_CHANGES" | "COMMENT"
}
Review body: Brief summary (2-3 lines) of key findings
Handle errors:
Label Assignment Rules: (see review-verdict-mapping.md)
Auto-add labels:
review-approved (if APPROVED)review-changes-requested (if REQUEST CHANGES)review-rejected (if REJECTED)security-concerns (if security CRITICAL/MAJOR found)coverage-low (if coverage < threshold)docs-incomplete (if documentation issues found)build-failing (if integration check failed)Auto-remove old labels:
review-approved if new review is REQUEST CHANGES/REJECTEDreview-changes-requested if new review is APPROVEDcoverage-low if new coverage meets thresholdsecurity-concerns, docs-incomplete, build-failing (must be manually cleared)Label persistence:
Final Status Message:
✅ Review posted to GitHub PR #{number}
- Comment with findings: ✓
- Formal review (APPROVE/REQUEST_CHANGES): ✓
- Labels updated: ✓
- Ready for merge? [Based on verdict]
Completion Logging:
Next Action (by Verdict):
| Error | Recovery Strategy |
|---|---|
| PR not found | Return error; confirm PR number with user |
| Auth token invalid/expired | Request OAuth re-auth; provide link to GitHub settings |
| Rate limited | Wait and retry; inform user of delay |
| GitHub API unavailable | Fall back to local artifact save; suggest manual posting |
| Report artifact invalid | Return error; return to pwrl-review-report |
| Formatting fails | Use plain text fallback; post unformatted findings |
| Comment too large | Truncate to 60KB limit; link to full artifact |
| Label doesn't exist | Create label with standard format or skip |
| Already reviewed | Skip formal review; post comment only (avoid duplicates) |
Retry Policy:
Happy Path Tests:
Edge Cases:
Error Cases:
Output Validation:
GitHub Integration:
gh CLI or direct API access via libraryArtifacts:
External Services:
api.github.com (rate limits: 60 req/hr unauthenticated, 5000 req/hr authenticated)