一键导入
define-requirement
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 职业分类
Implement React table components with reflow-free text measurement using @chenglou/pretext. Use this skill when the user asks to build a table with dynamic row heights, virtualized scroll, resizable columns, inline editing, drag-to-reorder, or any table feature where accurate pre-render text measurement matters. Triggers on: "build a table", "add a table component", "virtualized table", "table with dynamic row heights", "resizable columns", "pretext table", "use pretext for a table", "table without reflow".
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.
Fixes one issue from the iteration issues list by reproducing, diagnosing, and resolving it. Invoked by: bun nvst fix issue.
| name | define-requirement |
| 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/state.json exists. If it does, read it to obtain current_iteration (and any other required fields). If it does not exist, ask the user to provide the required information:
000037)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..agents/flow/it_{current_iteration}_product-requirement-document.md..agents/state.json exists, update it: requirement_definition.status = "in_progress", requirement_definition.file = filename. If it does not exist (standalone mode), skip this step and notify the user: "Running standalone — state.json not found, skipping state update."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 the state update step (step 6).
Before saving:
.agents/flow/it_{current_iteration}_product-requirement-document.md.agents/state.json exists: requirement_definition.status = "in_progress", requirement_definition.file set. If absent (standalone): user notified "Running standalone — state.json not found, skipping state update."