一键导入
create-pr-document
Gathers the requirement from the user and produces it_{iteration}_product-requirement-document.md. Triggered by: nvst define requirement.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Gathers the requirement from the user and produces it_{iteration}_product-requirement-document.md. Triggered by: nvst define requirement.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Drive interactive approval of the prototype by updating project context and roadmap artifacts after a completed iteration.
Validate the current iteration's PRD against the implemented code via the audit prototype skill.
Creates or updates .agents/PROJECT_CONTEXT.md with project conventions, tech stack, code standards, testing strategy, and product architecture. Triggered by: nvst create project-context.
Implements a single user story from the PRD: writes code and tests, follows project conventions. Invoked by: nvst create prototype.
Load the refactor plan from it_{iteration}_audit.json and invoke the agent to apply code changes.
Updates an existing product requirement document based on user feedback. Triggered by: nvst refine requirement.
| name | create-pr-document |
| description | Gathers the requirement from the user and produces it_{iteration}_product-requirement-document.md. Triggered by: nvst define requirement. |
| user-invocable | true |
Produce it_{current_iteration}_product-requirement-document.md in .agents/flow/ by interviewing the user about the feature or change they want to build.
Important: Do NOT start implementing. Just gather the requirement and write the document.
AGENTS.md, .agents/PROJECT_CONTEXT.md, and explore the codebase structure (main entry points, conventions, existing features) before starting the interview. This context will make your questions more relevant and the PRD better aligned with the project.state.json to get current_iteration (6-digit string, e.g. "000001")..agents/flow/it_{current_iteration}_product-requirement-document.md.state.json: requirement_definition.status = "in_progress", requirement_definition.file = filename.CRITICAL: Ask ONE question at a time. Wait for the user's answer before asking the next question. Do NOT present all questions at once.
Ask only questions where the initial prompt is ambiguous. Present lettered options so the user can reply with short codes (e.g. "1A").
Questions to ask (one by one, in order):
(Wait for answer, then ask question 2)
(Wait for answer, then ask question 3)
(Wait for answer, then ask question 4)
(Wait for answer, then ask question 5)
(Wait for answer, then generate the document)
# Requirement: [Feature or Change Name]
## Context
Brief description of the problem or opportunity this addresses.
## Goals
- [Specific, measurable objective]
- …
## User Stories
Each story must be small enough to implement in one focused session.
### US-001: [Title]
**As a** [actor], **I want** [capability] **so that** [benefit].
**Acceptance Criteria:**
- [ ] [Specific, verifiable criterion — not vague]
- [ ] [Another criterion]
- [ ] Typecheck / lint passes
- [ ] **[UI stories only]** Visually verified in browser
### US-002: …
## Functional Requirements
- FR-1: …
- FR-2: …
## Non-Goals (Out of Scope)
- …
## Open Questions
- …
FR-N) for easy cross-reference with it_{iteration}_PRD.json.CRITICAL: Do this at the end of the session, after you have written the PRD file and before you update state.json.
.agents/flow/it_{current_iteration}_product-requirement-document.md). If it contains a section ## Open Questions with one or more list items (lines starting with - or * or a number), treat each list item as an open question. Skip placeholders such as "None", "…", or "TBD" — only ask items that are real questions.state.json and finish).If there are no open questions (section missing or only placeholders), skip this block and go straight to updating state.json.
Before saving:
.agents/flow/it_{current_iteration}_product-requirement-document.mdstate.json → requirement_definition.status = "in_progress", requirement_definition.file set