بنقرة واحدة
pwrl-review
Review code changes through 4-phase micro-skill pipeline (scope, prepare, analyze, report)
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Review code changes through 4-phase micro-skill pipeline (scope, prepare, analyze, report)
التثبيت باستخدام 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.
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.
Extract actionable learnings from code, commits, tasks, documentation, errors, and reviews.
| name | pwrl-review |
| description | Review code changes through 4-phase micro-skill pipeline (scope, prepare, analyze, report) |
| argument-hint | [branch, PR number, or empty for current branch] |
Review code changes through a deterministic 4-phase pipeline: validate scope, prepare for review, analyze code quality/security/tests, and generate approval decision.
ask_user_question, ask_user, ask_user_input, vscode/askQuestions or any available extension/tool for user interaction for all decisionsProvide comprehensive code review through systematic analysis:
/pwrl-review
/pwrl-review feature/U2-email-validation
/pwrl-review origin/dev
Pure Skill Pipeline — Direct sequence of 4 micro-skills:
Input (branch/PR)
↓
Phase 1: pwrl-review-scope
├ Input: Source branch, requirements
├ Output: Scope artifact (scope_verdict, files_analyzed)
↓
Phase 2: pwrl-review-prepare
├ Input: Scope artifact
├ Processing: Diff gathering, baseline setup, tool configuration
├ Output: Prepare artifact (review_scope, tools_configured)
↓
Phase 3: pwrl-review-analyze
├ Input: Prepare artifact
├ Processing: Code quality, security, tests, docs, integration checks
├ Output: Analyze artifact (findings, issues_found by severity, integration_check)
↓
Phase 4: pwrl-review-report
├ Input: Analyze artifact
├ Processing: Format report, calculate verdict, get user approval
├ Output: Report artifact (verdict: approved/request-changes/rejected)
↓
COMPLETE
Each phase is orchestrated sequentially. The orchestrator calls the micro-skill, receives the output artifact, validates it with a quality gate, and passes it to the next phase.
Phase 1: Scope (pwrl-review-scope) — Validate branch scope and file categorization. Output: Scope artifact.
Phase 2: Prepare (pwrl-review-prepare) — Setup review environment and configure analysis tools. Output: Prepare artifact.
Phase 3: Analyze (pwrl-review-analyze) — Review code quality, security, tests, docs, integration. Output: Analyze artifact.
Phase 4: Report (pwrl-review-report) — Compile findings and determine approval verdict. Output: Report artifact.
Phase 5: Sync Status (pwrl-review-sync-status) — Post findings to GitHub PR with comment, formal review, and labels. Output: Sync confirmation.
Quality Gates: Run /pwrl-phase-checkpoint review N [artifact-path] to validate each phase. See pwrl-phase-checkpoint for validation rules.
Interaction mode (detailed | smart | yolo) is set in Phase 1 (via pwrl-review-scope Step 0) and read at the start of each subsequent phase. The mode is stored in the scope artifact's interactionMode field and propagated through every downstream phase.
detailed — Pause at every phase transition (Scope → Prepare → Analyze → Report → Sync); show generated artifacts; require explicit approval to proceed. Best for complex reviews, unfamiliar code, and high-stakes changes.smart — Phases run automatically; pause only when the next phase produces a HIGH-risk operation (e.g., posting a formal GitHub review, labeling a PR with a release-blocker). v1 simplification: behaves like Yolo with a single confirmation prompt at workflow start.yolo — Every phase runs automatically; only the final report is shown. Fastest. Best for routine, well-understood reviews.Future refinement: In Yolo mode, pwrl-review-report should auto-approve the review unless CRITICAL issues are found (currently it always asks). This behavior change is out of scope for plan 2026-06-29-001; see docs/learnings/pattern/interaction-mode-three-mode-propagation-2026-06-29.md §"Future Refinements".
Exception: Error recovery steps always pause the pipeline, regardless of mode.
See verdict-criteria.md for comprehensive approval matrices, quality score calculations, and decision logic for all verdicts (APPROVED, REQUEST CHANGES, REJECTED).
pwrl-review-scope/references/scope-validation-protocol.md — Phase 1 specificationpwrl-review-prepare/references/prepare-review-protocol.md — Phase 2 specificationpwrl-review-analyze/references/analyze-code-protocol.md — Phase 3 specificationpwrl-review-report/references/report-generation-protocol.md — Phase 4 specificationOptional tokens control review depth and execution mode:
depth:fast — Quick scan, minimal findings, no artifactsdepth:standard — Balanced review (default), prefer subagents if availabledepth:deep — Thorough audit with parallel subagents and artifactssubagents:on|off — Force subagent mode (default: auto)Tokens are stripped before interpreting remainder as branch/PR/commit/URL. Error if conflicting depth tokens provided.
For detailed implementation and workflow specifications for each phase, see:
Each micro-skill is complete and self-contained with its own workflow, error handling, and testing coverage.