963 markdown files reformatted with the repository's pinned prettier so pnpm format:check covers the folded tree like every other repo file. The formatter's embedded-language pass also normalized code fences (TS semicolons, closed HTML tags in examples, lowercased CSS hex colors, one renumbered list that skipped an index). Alphanumeric token deltas vs the fold commit were audited file-by-file; all are formatter-equivalent markup normalizations plus the four sanitized skills.
2.4 KiB
2.4 KiB
Common Review Scenarios
Detailed workflows for specific review use cases.
Scenario 1: Quick Review Request
Trigger: User provides PR URL and requests review.
Workflow:
- Run
fetch_pr_data.pyto collect data - Read
SUMMARY.txtandmetadata.json - Scan
diff.patchfor obvious issues - Apply critical criteria (security, bugs, tests)
- Create findings JSON with analysis
- Run
generate_review_files.pyto create review files - Direct user to review
pr/review.mdandpr/human.md - Remind user to use
/showto edit, then/sendor/send-decline
Scenario 2: Thorough Review with Inline Comments
Trigger: User requests comprehensive review with inline comments.
Workflow:
- Run
fetch_pr_data.pywith cloning enabled - Read all collected files (metadata, diff, comments, commits)
- Apply full
review_criteria.mdchecklist - Identify critical issues, important issues, and nits
- Create findings JSON with
inline_commentsarray - Run
generate_review_files.pyto create all files - Direct user to:
- Review
pr/review.mdfor detailed analysis - Edit
pr/human.mdif needed - Check
pr/inline.mdfor proposed comments - Use
/showto open in VS Code - Use
/sendor/send-declinewhen ready - Optionally post inline comments from
pr/inline.md
- Review
Scenario 3: Security-Focused Review
Trigger: User requests security-specific review.
Workflow:
- Fetch PR data
- Focus on
review_criteria.mdSection 5 (Security) - Check for: SQL injection, XSS, CSRF, secrets exposure
- Examine dependencies in metadata
- Review authentication/authorization changes
- Report security findings with severity ratings
Scenario 4: Review with Related Tickets
Trigger: User requests review against linked JIRA/GitHub ticket.
Workflow:
- Fetch PR data (captures ticket references)
- Read
related_issues.json - Compare PR changes against ticket requirements
- Verify all acceptance criteria met
- Note any missing functionality
- Suggest additional tests if needed
Scenario 5: Large PR Review (>400 lines)
Trigger: PR contains more than 400 lines of changes.
Workflow:
- Suggest splitting into smaller PRs if feasible
- Review in logical chunks by file or feature
- Focus on architecture and design first
- Document structural concerns before line-level issues
- Prioritize security and correctness over style