pp-review
Use after manual spec edits to re-check quality, or when review scores need improvement before finalization.
- License 许可
- MIT
- 最近更新
- 2026-11-13
- Stars
- ★ 2
- Forks
- 0
01 前言 Front Matter
- name
- pp-review
- description
- Use after manual spec edits to re-check quality, or when review scores need improvement before finalization.
- allowed-tools
- Read, Write, Edit, Glob, Grep, Agent
- argument-hint
- [feature-name]
- user-invocable
- true
03 SKILL.md 正文
Manual Review
Run a review round on an existing specification for: $ARGUMENTS
Instructions
Step 0: Read Configuration
- Read
.claude/planning-plugin.jsonfrom the current project directory - If the file does not exist, stop with a guidance message:
"Planning Plugin is not configured for this project. Run
/planning-plugin:pp-initto set up." - Extract
workingLanguage(default:"en"if field is absent) - Language name mapping:
en= English,ko= Korean,vi= Vietnamese
Communication language: All user-facing output in this skill (summaries, questions, feedback presentations, next-step guidance) must be in {workingLanguage_name}.
Step 1: Locate the Specification
- Read the progress file at
docs/specs/$ARGUMENTS/.progress/$ARGUMENTS.json - If the progress file exists and contains
workingLanguage, use that value (ignoreplanning-plugin.jsonfor existing specs) - Look for the spec directory at
docs/specs/$ARGUMENTS/{workingLanguage}/— verify that$ARGUMENTS-spec.mdexists inside it - If not found, search
docs/specs/for a matching feature directory - If still not found, list available specs and ask the user to choose
Step 2: Load Progress
Read the progress file at docs/specs/{feature}/.progress/{feature}.json.
If the status is finalized, warn the user:
"This spec is already finalized. Running a review will change its status back to 'reviewing'. Continue?"
If the user confirms, set reviewCycleStart in the progress file to the current value of currentRound (before incrementing). Then update the progress status to "reviewing" and increment currentRound.
If the status is not finalized, simply update the progress status to "reviewing" and increment currentRound (do not modify reviewCycleStart).
Also update the metadata blockquote at the top of {feature}-spec.md in the {workingLanguage} directory:
- Change
StatustoREVIEWING - Change
Last Updatedto the current timestamp (ISO 8601 format, e.g. 2026-03-04T09:00:00Z)
Step 3: Run Sequential Review
Planner review:
Agent(subagent_type: "planning-plugin:planner", prompt: "Review the functional specification at docs/specs/{feature}/{workingLanguage}/. The spec is split into multiple files — read all of them: {feature}-spec.md (overview, user stories, functional requirements, open questions), screens.md (screen definitions, error handling), test-scenarios.md. The spec is written in {workingLanguage_name}. Provide your review in {workingLanguage_name}. Return structured JSON review.")
Tester review (with planner context):
Agent(subagent_type: "planning-plugin:tester", prompt: "Review the functional specification at docs/specs/{feature}/{workingLanguage}/. The spec is split into multiple files — read all of them: {feature}-spec.md (overview, user stories, functional requirements, open questions), screens.md (screen definitions, error handling), test-scenarios.md. The spec is written in {workingLanguage_name}. Provide your review in {workingLanguage_name}. Planner feedback: {planner_summary}. Return structured JSON review focusing on areas the planner missed.")
Step 4: Present Feedback
Read ${CLAUDE_PLUGIN_ROOT}/templates/review-reception-rules.md and apply the review reception discipline.
Show combined feedback with:
- Scores from both reviewers
- Each issue presented with a technical assessment (per review-reception-rules.md):
- Flag issues that conflict with previous round decisions (check progress file's
roundsarray) - Flag issues where the reviewer may have misread the spec section
- Classify each suggestion's impact (improves spec / neutral / scope creep risk)
- Flag redundant issues (overlaps within same round or already addressed in prior rounds)
- Flag issues that conflict with previous round decisions (check progress file's
- New issues found (compared to previous rounds if available)
- Improvement trend (if previous rounds exist in progress file)
Response discipline: No performative agreement ("Great point!", "Excellent observation!"). Present technical assessments directly.
Step 5: Apply Changes
For each issue the user wants to address:
- Update the appropriate file in the {workingLanguage} spec directory based on which section the issue targets (e.g., FR issues →
{feature}-spec.md, screen/error handling issues →screens.md, open questions →{feature}-spec.md) - Record the decision in the progress file. Append an entry to the
roundsarray:
Each issue must include{ "round": 2, "plannerScore": 8, "testerScore": 7, "issues": [ { "id": "PL-003", "section": "screens.md > Screen: List View", "decision": "Accept", "suggestion": "Define an empty state with a call-to-action." } ] }id,section,decision(Accept/Reject/Modify/Defer), andsuggestion(original text, or user's modified version for Modify decisions) for verification gate traceability.
When applying changes, follow the review-reception-rules.md application discipline:
- Re-read the target section before applying
- If the suggestion would create inconsistency with other sections, note this to the user before applying
- If multiple accepted suggestions target the same section, apply them as a coherent edit rather than sequential independent patches
After all changes are applied, update the Last Updated field in the metadata blockquote of {feature}-spec.md (in the {workingLanguage} directory) to the current timestamp (ISO 8601 format, e.g. 2026-03-04T09:00:00Z).
Step 6: Next Steps
Convergence check — apply in strict priority order (first matching rule wins):
First, compute roundsInCycle: read reviewCycleStart from the progress file (if absent or null, treat as 0), then roundsInCycle = currentRound - reviewCycleStart.
- Both planner AND tester scores >= 8: Present 3 options: another round / finalize / stop for now
- Either score < 8 AND roundsInCycle < 3: Present 2 options only: another round / stop for now. Do NOT offer finalization. — "Tester score is below 8 (planner: X/10, tester: Y/10, cycle round N/3). Finalization is not available yet."
- roundsInCycle >= 3 with either score still < 8: Present 3 options: another round / finalize with caveats / stop for now — "After 3 rounds in this review cycle, scores are (planner: X/10, tester: Y/10). Remaining issues: ..."
Hard rule: Never suggest or offer finalization if any score is below 8 AND fewer than 3 rounds have been completed in the current review cycle. This rule cannot be overridden by score trends or other factors.
If another round: Go back to Step 3.
If finalize (only when available per convergence check above): Run Steps 6a → 6a.5 → 6b → 6c below to translate, verify, finalize, and optionally sync to Notion.
If done for now: Remind the user:
"The spec is in REVIEWING status. To finalize, run
/planning-plugin:pp-review {feature}again and select finalize when the convergence check passes." "Run/planning-plugin:pp-translate {feature}to sync translations."
If notionParentPageUrl is configured in .claude/planning-plugin.json, also remind:
"Run
/planning-plugin:pp-sync-notion {feature} --lang={workingLanguage}to update the Notion page. Note: translations may be out of sync — run/planning-plugin:pp-translate {feature}first if you want to sync all languages."
Step 6a: Translate (Finalize path)
Before launching translators, ask the user:
"Translation will sync the spec to all target languages. This launches parallel translator agents and may take several minutes. How would you like to proceed?"
- Translate and finalize — run translation now, then verify and finalize
- Skip translation and finalize — proceed directly to verification and finalization (run
/planning-plugin:pp-translate {feature}later to sync translations)- Cancel — go back to review options
If the user selects option 2 (skip), jump directly to Step 6a.5 (Pre-Finalization Verification). If the user selects option 3 (cancel), return to the Step 6 convergence options.
If the user selects option 1 (translate and finalize):
- Read
.claude/planning-plugin.jsonand extractsupportedLanguagesandworkingLanguage - Determine target languages:
supportedLanguagesminusworkingLanguage - For each target language, launch a translator agent in parallel:
Agent(subagent_type: "planning-plugin:translator", prompt: "Translate the spec directory at docs/specs/{feature}/{workingLanguage}/ to {target_language_name}. Read each markdown file ({feature}-spec.md, screens.md, test-scenarios.md) and write translated versions to docs/specs/{feature}/{target_lang}/. Source language: {workingLanguage}. Full translation.") - After all translators complete, update the progress file's
translationsfield: setsynced: trueandlastSyncedAtto the current timestamp for each target language
Step 6a.5: Pre-Finalization Verification (Finalize path)
Read ${CLAUDE_PLUGIN_ROOT}/templates/verification-rules.md and execute the verification gate.
- Read the progress file and collect all issues with "Accept" or "Modify" decisions from ALL rounds
- For each collected issue, read the relevant spec file section and verify the change is present in the text
- Present the verification summary showing verified/unverified counts with evidence (e.g.,
✓ PL-001: Found in {feature}-spec.md > FR-005) - If unverified items exist:
- Present each with its original suggestion
- Ask the user to: resolve now (apply the missing change) / defer (move to Open Questions) / dismiss (user explains how it was addressed differently)
- Record the resolution in the progress file
- Only proceed to Step 6b after all items are verified, deferred, or dismissed
This gate supplements the convergence check — both must pass before finalization.
Step 6b: Finalize (Finalize path)
- Update the metadata blockquote in
{feature}-spec.mdacross all language versions that have spec files ({workingLanguage} directory always exists; only include target language directories where{feature}-spec.mdactually exists — skip directories that are empty because translation was skipped):- Change
StatustoFINALIZED - Change
Last Updatedto the current timestamp (ISO 8601 format, e.g. 2026-03-04T09:00:00Z)
- Change
- Update the progress file: set
statusto"finalized" - Present a summary:
- Total review rounds completed
- Final scores from the last round
- Key decisions made during review
- Any remaining open questions
Step 6c: Notion Sync (Finalize path)
- Read
.claude/planning-plugin.jsonand checknotionParentPageUrl— if empty or missing, skip this step silently - Read progress file for existing Notion page data (
notionfield) - For each language (working language + all target languages where
{feature}-spec.mdactually exists inside the language directory — skip languages whose directories are empty because translation was skipped), sequentially launch the sync-notion agent:Agent(subagent_type: "planning-plugin:sync-notion", prompt: "Sync the {langName} specification for feature '{feature}' to Notion. feature: {feature}. lang: {lang}. langName: {langName}. specDir: docs/specs/{feature}/{lang}/. progressFile: docs/specs/{feature}/.progress/{feature}.json. notionParentPageUrl: {notionParentPageUrl}. existingPages: {JSON of notion.{lang} from progress or null}. Read the 3 spec files, prepare content, and create/update Notion pages.") - Include Notion page URLs from agent results in the finalization summary
After completing Steps 6a–6c, suggest next steps:
- If
docs/specs/_shared/en/screens.mdexists AND the feature'sscreens.mdcontains an active@layout:directive (not commented out):"Run
/planning-plugin:pp-design _sharedfirst to generate the shared layout DSL (if not already done), then/planning-plugin:pp-design {feature}to generate the feature DSL." - Otherwise:
"Run
/planning-plugin:pp-design {feature}to generate UI DSL and Stitch wireframes, then/planning-plugin:pp-prototype {feature}to generate the React prototype"
"Run
/planning-plugin:pp-review {feature}anytime to re-review" "Edit the {workingLanguage} spec directly and run/planning-plugin:pp-translate {feature}to sync translations" "Run/planning-plugin:pp-sync-notion {feature}to manually re-sync Notion pages"
04 同仓库更多 Skills
hp-shared
Shared conventions for every homepage-plugin agent and skill — stack, code conventions, state-file writes, check commands and how to report them. Preloaded into agents through their `skills:` frontmatter; not meant to be invoked by hand.
fe-shared
Shared conventions for every frontend-react-plugin agent and skill — code conventions, state files and locks, accepted deviations, design principles, build working directory, router-mode command matrix, TypeScript check. Preloaded into agents through their `skills:` frontmatter; not meant to be invoked by hand.
be-spring-shared
Shared conventions for every backend-springboot-plugin agent and skill — tech stack, CQRS architecture, naming, coding standards, TDD, commit and build rules, state files. Preloaded into agents through their `skills:` frontmatter; not meant to be invoked by hand.
pp-translate
Use after directly editing the working language spec to sync changes to other supported languages.
pp-sync-stitch
Use when wireframes were manually edited on the Stitch website and need to be re-fetched to the local project.
pp-sync-notion
Use when a specification needs to be published or re-synced to Notion after finalization or manual edits.