一键导入
paw-review-workflow
Orchestrates the PAW Review workflow, coordinating activity skills to analyze PRs and generate comprehensive review feedback.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Orchestrates the PAW Review workflow, coordinating activity skills to analyze PRs and generate comprehensive review feedback.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Shared git mechanics for PAW activity skills including branch naming conventions, strategy-based branching logic, and selective staging discipline.
Bootstrap skill for PAW workflow initialization. Creates WorkflowContext.md, directory structure, and git branch. Runs before workflow skill is loaded.
Workflow status activity skill for PAW workflow. Diagnoses workflow state, recommends next steps, explains PAW process, and optionally posts updates to Issues/PRs.
Pre-PR review activity skill for PAW workflow. Reviews implementation against spec before Final PR creation with configurable single-model, multi-model, or society-of-thought execution.
Implementation review activity skill for PAW workflow. Reviews implementation for quality, adds documentation, and returns structured verdict.
Implementation activity skill for PAW workflow. Executes plan phases with code changes, documentation phases, and PR review comment handling. One phase per invocation.
| name | paw-review-workflow |
| description | Orchestrates the PAW Review workflow, coordinating activity skills to analyze PRs and generate comprehensive review feedback. |
This workflow skill orchestrates the complete PAW Review process, coordinating activity skills through subagent execution to analyze pull requests and generate comprehensive review feedback.
These principles apply to ALL review stages. Activity skills reference these principles rather than duplicating them.
Every observation, finding, or claim MUST be supported by:
NEVER include speculation, assumptions, or subjective preferences without evidence.
All code-related claims require specific file:line citations:
[src/module.ts:45](src/module.ts#L45) for single lines[src/module.ts:45-52](src/module.ts#L45-L52) for rangesCRITICAL: Do not fabricate, invent, or assume information:
Understanding and baseline research stages document what exists—they do NOT:
Evaluation and critique happen in designated later stages only.
The review workflow assists human reviewers—it does NOT replace their judgment:
Each stage produces complete, well-structured artifacts:
Activity skills are executed via delegated agent sessions.
Every subagent MUST load their skill FIRST before executing any work:
paw-review-understanding)Delegation prompt must include: "First load the paw-review-<skill-name> skill, then execute the activity."
Upon completion, respond with artifact path and status (Success, Partial, or Blocked).
Always confirm the exact path where artifacts were written. Downstream stages depend on this.
The orchestrating agent MUST NOT manually create artifacts that belong to activity skills. Each stage's artifacts must be produced by delegating to the designated skill. Manual population bypasses defaults, validation, and skill-specific logic (e.g., specialist selection defaults, ReviewContext field normalization).
All review artifacts are stored in a consistent directory structure:
.paw/reviews/<identifier>/
├── ReviewContext.md # Stage: Understanding (initial)
├── ResearchQuestions.md # Stage: Understanding (initial)
├── CodeResearch.md # Stage: Baseline Research
├── DerivedSpec.md # Stage: Understanding (after research)
├── ImpactAnalysis.md # Stage: Evaluation (single-model mode)
├── GapAnalysis.md # Stage: Evaluation (single-model mode)
├── REVIEW-{SPECIALIST}.md # Stage: Evaluation (SoT mode, per specialist)
├── REVIEW-SYNTHESIS.md # Stage: Evaluation (SoT mode, synthesized findings)
├── CrossRepoAnalysis.md # Stage: Correlation (multi-repo only)
└── ReviewComments.md # Stage: Output (evolves: draft → assessed → finalized → posted)
ReviewComments.md Evolution:
**Final**: markers added by feedback skill (critique response)**Posted**: status added by github skillPR-<number> (e.g., PR-123)PR-<number>-<repo-slug> per PR (e.g., PR-123-my-api/, PR-456-my-frontend/)feature-new-auth)Repo-slug derivation: Last path segment of repository name, lowercase, special chars removed.
Example: acme-corp/my-api-service → my-api-service
Multi-repo detection: Use when multiple workspace folders are open in VS Code OR multiple PRs provided.
The workflow executes stages in sequence, with each stage producing artifacts consumed by downstream stages.
Skills: paw-review-understanding, paw-review-baseline
Sequence:
Run paw-review-understanding activity
ReviewContext.md, ResearchQuestions.mdRun paw-review-baseline activity
CodeResearch.mdRun paw-review-understanding activity (resume)
DerivedSpec.mdStage Gate: Verify ReviewContext.md, CodeResearch.md, DerivedSpec.md exist before proceeding.
Read Review Mode from ReviewContext.md to determine the evaluation path. If the value is not single-model, society-of-thought, or absent, report an error (Unknown Review Mode: <value>) and do not proceed.
Skills: paw-review-impact, paw-review-gap
Sequence:
Run paw-review-impact activity
ImpactAnalysis.mdRun paw-review-gap activity
GapAnalysis.mdStage Gate: Verify ImpactAnalysis.md, GapAnalysis.md exist before proceeding.
Engine: paw-sot (loaded into orchestrator session, not as subagent)
When Review Mode is society-of-thought, load the paw-sot skill directly and invoke it with a review context constructed from ReviewContext.md fields and understanding artifacts:
| Review Context Field | Source |
|---|---|
type | diff |
coordinates | Diff: git diff <base-commit>...<head-commit>; Artifacts: ReviewContext.md, CodeResearch.md, DerivedSpec.md paths |
output_dir | .paw/reviews/<identifier>/ |
specialists | Review Specialists value from ReviewContext.md |
interaction_mode | Review Interaction Mode value from ReviewContext.md |
interactive | Review Interactive value from ReviewContext.md |
specialist_models | Review Specialist Models value from ReviewContext.md |
perspectives | Review Perspectives value from ReviewContext.md |
perspective_cap | Review Perspective Cap value from ReviewContext.md |
After paw-sot completes orchestration and synthesis, proceed to the Output stage.
Error handling: If paw-sot skill cannot be loaded, report error to user — do not fall back to single-model silently.
Stage Gate: Verify REVIEW-SYNTHESIS.md exists before proceeding.
Skill: paw-review-correlation
Condition: Only run when multiple PRs/repositories detected. Skip for single-repo reviews.
Detection Criteria (any of):
PR-123-repo-a/, PR-456-repo-b/).git directories)related_prs entriesSequence:
paw-review-correlation activity
CrossRepoAnalysis.md (in primary repo's artifact directory)Stage Gate: Verify CrossRepoAnalysis.md exists before proceeding to Output stage.
Skip Behavior: For single-repo reviews, proceed directly to Output stage without running correlation.
Skills: paw-review-feedback, paw-review-critic, paw-review-github
The Output stage uses an iterative feedback-critique pattern to refine comments before posting to GitHub.
Sequence:
Run paw-review-feedback activity (Initial Pass)
ReviewComments.md with draft comments (status: draft)Run paw-review-critic activity
ReviewComments.mdRun paw-review-feedback activity (Critique Response)
**Final**: markers (status: finalized)Run paw-review-github activity (GitHub PRs only)
Stage Gate: Verify all comments have **Final**: markers before GitHub posting.
Human Control Point: The pending review is created but NOT submitted. Human reviewer:
Upon workflow completion, report:
.paw/reviews/<identifier>/)If multiple repositories or PRs are detected:
(See also: owner/other-repo#NNN)