.agents/skills/refine-pr-document/SKILL.md
Updates an existing product requirement document based on user feedback. Triggered by: bun nvst refine requirement.
npx skillsauth add lpng-plenge/frontend-IA refine-pr-documentInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Update it_{current_iteration}_product-requirement-document.md in place based on user feedback. The file must already exist; this skill does not create it from scratch.
Do NOT start implementing. Only update the document.
Two modes available — the agent asks at the start:
- Editor mode — apply specific changes requested by the user.
- Challenger mode — act as an independent critical reviewer: challenge assumptions, question scope, find gaps, and propose improvements. The user accepts or rejects each suggestion before anything is written.
state.json → get requirement_definition.file (e.g. it_000001_product-requirement-document.md)..agents/flow/{file}.create-pr-document.state.json — requirement_definition.status stays "in_progress".Act as a second agent reviewing the document with fresh eyes. Do not apply any change without explicit user approval.
Challenge areas — examine each (in order):
FR-N that contradicts another or contradicts an acceptance criterion.Challenger output format — one observation at a time:
CRITICAL: Present findings one at a time. After delivering one finding, stop and wait for the user to respond before moving on. Do not queue or batch findings.
For each finding, format it as:
Challenge [N/total]: <area name>
Finding: <what the issue is>
Suggestion: <proposed change>
Accept / Reject / Discuss?
Ask only what is needed to understand the requested change.
1. What would you like to change or add?
A. Replace or rewrite a user story
B. Add a new user story (must be MVP-justified)
C. Remove a user story
D. Tighten acceptance criteria
E. Update goals or non-goals
F. Other: [describe]
2. If adding a user story — is it strictly necessary for the MVP?
[Open answer — skip if not adding stories]
3. Anything else to update in this pass?
[Open answer — skip if none]
US-NNN and FR-N entries only if a story is removed; otherwise keep existing IDs stable.create-pr-document).Before saving:
US-NNN and FR-N numbering is consistent.agents/flow/it_{current_iteration}_product-requirement-document.mdstate.json not modified (status stays "in_progress")testing
Refines an existing test plan based on user feedback or adversarial challenge mode. Triggered by: bun nvst refine test-plan.
development
Refines an existing refactor plan based on user feedback or adversarial challenge mode. Triggered by: bun nvst refine refactor-plan.
development
Refines .agents/PROJECT_CONTEXT.md via editor mode or challenge mode. Challenge mode validates the document against the actual codebase and detects compliance issues. Triggered by: bun nvst refine project-context.
development
# refactor-prd (scaffold) <!-- TODO: Complete. All content in English. --> ## Objective TBD — Add refactor use cases to the iteration PRD (`it_<iteration>_PRD.json`), with associated regression tests if requested. ## Inputs TBD — `it_<iteration>_refactor_plan.md`, `it_<iteration>_PRD.json`. ## Outputs TBD — Updated `it_<iteration>_PRD.json`. ## Checklist TBD