visual-spec
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseVisual Spec Skill
Visual Spec技能
Analyzes visual specifications based on user input and turns brief business requests into structured requirement output.
基于用户输入分析视觉规格,将简短的业务需求转换为结构化的需求输出。
When to Use
适用场景
Invoke this skill when:
- Business side provided a very simple described requirements.
- User runs to start a new requirement analysis flow.
/vspec:new
在以下场景调用此技能:
- 业务方提供的需求描述非常简洁。
- 用户运行以启动新的需求分析流程。
/vspec:new
What This Skill Defines
此技能的核心功能
- Fill in details based on scenario-based-facilitation method.
- Design the data models.
- Generate UI mockups based on the details filled in.
- Generate business logic details in visual formats.
- 基于场景引导法补充需求细节。
- 设计数据模型。
- 根据补充的细节生成UI原型图。
- 以可视化格式生成业务逻辑细节。
Commands
命令说明
/vspec:new
/vspec:new/vspec:new
/vspec:newUse this command to create a new requirement analysis session.
Language:
- Read
/scheme.yaml(supportsselected.language,en,zh; default tojaif missing/invalid).en - If the command argument or input explicitly provides , use that value for this run and update
lang=<en|zh|ja>to it (update only that field).selected.languageshould be treated as an alias ofzh-CN.zh - When , all headings in
selected.language=enmust be English; normalize any non-English headings to:/specs/background/original.md,# Raw Requirement,# Summary,# Business Context,# Core Features,# Pages & Interactions,# Data Model,# Business Logic,# Risks & Assumptions.# Open Questions
Flow:
0. Ensure exists, and ensure subfolders exist:
/docs//docs/legacy//docs/current//docs/refine//docs/dependencies/- Do NOT create (it is deprecated). 0.2 If the user passes
/docs/change/in the command arguments, setlang=<en|zh|ja>/scheme.yamlto that value (update only that field, keep other fields and formatting unchanged).selected.languageshould be treated as an alias ofzh-CN. 0.5 Create editable project constraints so the user can tweak them early (do not overwrite if they already exist):zh - Create with defaults (prototype stack selection + catalog) if missing
/scheme.yaml - Create (same directory as
/prototype_ui_convention.md) if missing/scheme.yaml
- Ask the user to input the original requirement.
- When the user presses Enter, treat the input as the raw requirement source.
- Load the prompt file at .
prompts/vspec_new/background.md - Use that prompt to analyze the requirement and expand the business context.
- Write the raw requirement and background analysis output to . 5.5 Create
/specs/background/original.mdby copying/specs/background/question_and_answer.html(single-file HTML with inline CSS/JS) so the user can answer questions and write back to markdown.prompts/vspec_new/question_and_answer.html - Ask the user to answer the questions from the Open Questions section (use the section title in the selected language). The user should answer via (select
/specs/background/question_and_answer.htmlin the page and save back), then reply with a continuation signal (e.g./specs/background/original.md/继续). Then STOP. Do not load any subsequent prompts or generate any further artifacts before that.continue - After the user replies (answers or confirmed), load to analyze stakeholders.
prompts/vspec_new/stakeholders.md - Write the stakeholder result to (markdown table).
/specs/background/stakeholder.md - Load to analyze system user roles (direct users) and their work tasks.
prompts/vspec_new/roles.md - Write the roles result to .
/specs/background/roles.md - Load to extract key terms and definitions.
prompts/vspec_new/terms.md - Write the terms result to (markdown table).
/specs/background/terms.md - Load to analyze business workflows and generate PlantUML swimlane diagrams.
prompts/vspec_new/flows.md - Write the diagrams to .
/specs/flows/*.puml - Load to enumerate business scenarios by node combinations.
prompts/vspec_new/scenarios.md - Write the scenarios result to (markdown table).
/specs/background/scenarios.md - Load to create per-node detail folders and generate
prompts/vspec_new/details_pre_post.mdfor each node.pre_post.md - Load to generate
prompts/vspec_new/details_constraints.mdfor each node.constraints.md - Load to generate
prompts/vspec_new/details_variations.mdfor each node.variations.md - Load to generate
prompts/vspec_new/details_boundaries.mdfor each node.boundaries.md - Load to generate
prompts/vspec_new/details_symmetry.mdfor each node.symmetry.md - Ensure the per-node outputs are written under .
/specs/background/scenario_details/ - Load to analyze external dependency systems.
prompts/vspec_new/dependencies.md - Write the dependencies result to .
/specs/background/dependencies.md - Load to generate feature/function lists grouped by modules and external dependency systems.
prompts/vspec_new/functions.md - Write the function lists to .
/specs/functions/ - Load to generate question lists and required business materials.
prompts/vspec_new/questions.md - Write the questions result to (markdown list).
/specs/background/questions.md - Load to validate whether functions and scenario_details are complete (login/config/master-data/approval). If it outputs any issues, show the issue list and stop.
prompts/harness/post_new_verify.md - Return the structured analysis result and continue to the next requirement-design step.
使用此命令创建新的需求分析会话。
语言规则:
- 读取中的
/scheme.yaml字段(支持selected.language、en、zh;若缺失或无效则默认使用ja)。en - 如果命令参数或输入明确指定,则本次运行使用该值,并更新
lang=<en|zh|ja>字段(仅更新此字段)。selected.language视为zh-CN的别名。zh - 当时,
selected.language=en中的所有标题必须为英文;将非英文标题统一规范为:/specs/background/original.md、# Raw Requirement、# Summary、# Business Context、# Core Features、# Pages & Interactions、# Data Model、# Business Logic、# Risks & Assumptions。# Open Questions
流程:
0. 确保目录存在,并确保以下子目录存在:
/docs//docs/legacy//docs/current//docs/refine//docs/dependencies/- 请勿创建(该目录已废弃)。 0.2 如果用户在命令参数中传入
/docs/change/,将lang=<en|zh|ja>中的/scheme.yaml字段设置为该值(仅更新此字段,保留其他字段和格式不变)。selected.language视为zh-CN的别名。 0.5 创建可编辑的项目约束文件,方便用户提前调整(若已存在则不覆盖):zh - 若缺失,则创建包含默认配置(原型技术栈选择+目录)的文件
/scheme.yaml - 若(与
/prototype_ui_convention.md同目录)缺失,则创建该文件/scheme.yaml
- 请用户输入原始需求。
- 用户按下回车键后,将输入内容视为原始需求源。
- 加载提示词文件。
prompts/vspec_new/background.md - 使用该提示词分析需求并扩展业务背景。
- 将原始需求和背景分析结果写入。 5.5 复制
/specs/background/original.md(内嵌CSS/JS的单文件HTML)创建prompts/vspec_new/question_and_answer.html,以便用户回答问题并写回markdown文件。/specs/background/question_and_answer.html - 请用户回答“待确认问题”部分的问题(使用所选语言的章节标题)。用户需通过操作(在页面中选择
/specs/background/question_and_answer.html并保存),然后回复继续信号(如/specs/background/original.md/继续)。之后停止操作,在用户回复前请勿加载后续提示词或生成更多产物。continue - 用户回复(完成回答或确认)后,加载分析利益相关方。
prompts/vspec_new/stakeholders.md - 将利益相关方分析结果写入(markdown表格)。
/specs/background/stakeholder.md - 加载分析系统用户角色(直接用户)及其工作任务。
prompts/vspec_new/roles.md - 将角色分析结果写入。
/specs/background/roles.md - 加载提取关键术语及定义。
prompts/vspec_new/terms.md - 将术语提取结果写入(markdown表格)。
/specs/background/terms.md - 加载分析业务流程并生成PlantUML泳道图。
prompts/vspec_new/flows.md - 将流程图写入。
/specs/flows/*.puml - 加载通过节点组合枚举业务场景。
prompts/vspec_new/scenarios.md - 将场景枚举结果写入(markdown表格)。
/specs/background/scenarios.md - 加载创建每个节点的细节文件夹,并为每个节点生成
prompts/vspec_new/details_pre_post.md。pre_post.md - 加载为每个节点生成
prompts/vspec_new/details_constraints.md。constraints.md - 加载为每个节点生成
prompts/vspec_new/details_variations.md。variations.md - 加载为每个节点生成
prompts/vspec_new/details_boundaries.md。boundaries.md - 加载为每个节点生成
prompts/vspec_new/details_symmetry.md。symmetry.md - 确保每个节点的输出文件写入目录下。
/specs/background/scenario_details/ - 加载分析外部依赖系统。
prompts/vspec_new/dependencies.md - 将依赖分析结果写入。
/specs/background/dependencies.md - 加载生成按模块和外部依赖系统分组的功能列表。
prompts/vspec_new/functions.md - 将功能列表写入目录。
/specs/functions/ - 加载生成问题列表和所需业务材料清单。
prompts/vspec_new/questions.md - 将问题列表写入(markdown列表)。
/specs/background/questions.md - 加载验证功能和场景细节是否完整(包含登录/配置/主数据/审批)。若输出问题列表,则展示问题并停止操作。
prompts/harness/post_new_verify.md - 返回结构化分析结果,进入下一阶段的需求设计步骤。
/vspec:interview
/vspec:interview/vspec:interview
/vspec:interviewUse this command to generate an interview outline / survey questionnaire for user research and requirement validation.
Flow:
- Load .
prompts/vspec_interview/interview.md - Generate the questionnaire markdown and write it to .
/docs/current/interview_questionnaire.md
使用此命令生成用于用户研究和需求验证的访谈大纲/调查问卷。
流程:
- 加载。
prompts/vspec_interview/interview.md - 生成问卷markdown文件并写入。
/docs/current/interview_questionnaire.md
/vspec:i-word
/vspec:i-word/vspec:i-word
/vspec:i-wordUse this command to generate a Word-openable (single-file HTML) version of the interview questionnaire.
.docxFlow:
- Ensure exists; if missing, ask the user to run
/docs/current/interview_questionnaire.mdfirst./vspec:interview - Load .
prompts/vspec_interview/interview_word.md - Write the Word file to .
/docs/current/interview_questionnaire.docx
使用此命令生成可在Word中打开的格式(单文件HTML)访谈问卷。
.docx流程:
- 确保存在;若缺失,请用户先运行
/docs/current/interview_questionnaire.md。/vspec:interview - 加载。
prompts/vspec_interview/interview_word.md - 将Word格式文件写入。
/docs/current/interview_questionnaire.docx
/vspec:refine
/vspec:refine/vspec:refine
/vspec:refineUse this command to refine and update the requirement based on refine materials stored under , or based on one or more input files/directories provided as command arguments.
/docs/refine/Flow:
0. Ensure exists and is non-empty; if missing, stop and ask the user to run first.
/specs/details//vspec:detail- Read refine inputs:
- If command arguments are provided, treat them as refine input sources (files/directories).
- Otherwise:
- Prefer (if present).
/docs/refine/refine.md - If is missing, ask the user to paste the refinement content (what to change) in the prompt window, and treat that pasted content as the refine input.
/docs/refine/refine.md - You may additionally read as supporting materials when explicitly referenced/needed (prefer
/docs/refine/if present; else read files in name order)./docs/refine/file_list.md
- Prefer
- If is missing, stop immediately and do nothing.
prompts/vspec_refine/refine.md - Load to apply the refinement, update the canonical requirement, and update impacted artifacts.
prompts/vspec_refine/refine.md - Append the refinement result to , and update impacted
/specs/background/original.mdand/specs/details/accordingly; if/specs/prototypes/exists and is non-empty, sync-update impacted backend code as well./specs/backend/
使用此命令基于目录下的优化材料,或命令参数提供的一个/多个输入文件/目录,优化并更新需求。
/docs/refine/流程:
0. 确保目录存在且非空;若缺失,停止操作并请用户先运行。
/specs/details//vspec:detail- 读取优化输入源:
- 若提供命令参数,则将其视为优化输入源(文件/目录)。
- 若未提供命令参数:
- 优先读取(若存在)。
/docs/refine/refine.md - 若缺失,请用户在提示窗口粘贴优化内容(需修改的部分),并将粘贴内容视为优化输入源。
/docs/refine/refine.md - 当明确需要时,可额外读取下的支持材料(优先读取
/docs/refine/;若不存在则按文件名顺序读取文件)。/docs/refine/file_list.md
- 优先读取
- 若缺失,立即停止操作且不执行任何内容。
prompts/vspec_refine/refine.md - 加载应用优化,更新标准需求及受影响的产物。
prompts/vspec_refine/refine.md - 将优化结果追加到,并相应更新受影响的
/specs/background/original.md和/specs/details/目录;若/specs/prototypes/存在且非空,同步更新受影响的后端代码。/specs/backend/
/vspec:refine-q
/vspec:refine-q/vspec:refine-q
/vspec:refine-qUse this command to refine and update the requirement based on answered questions.
Flow:
- If is missing, stop immediately and do nothing.
/specs/background/questions.md - If contains no pending/unanswered questions, stop immediately and do nothing.
/specs/background/questions.md - Read and pick answered items.
/specs/background/questions.md - Load to merge answers into the canonical requirement.
prompts/vspec_refine/refine_q.md - Append the refinement result to .
/specs/background/original.md - Update to mark items that are treated as answered in this run:
/specs/background/questions.md- Wrap the answer and status values with (use the field names in the selected language) so answered items are visually highlighted.
<mark>...</mark>
- Wrap the answer and status values with
使用此命令基于已回答的问题优化并更新需求。
流程:
- 若缺失,立即停止操作且不执行任何内容。
/specs/background/questions.md - 若中没有待处理/未回答的问题,立即停止操作且不执行任何内容。
/specs/background/questions.md - 读取并筛选已回答的问题。
/specs/background/questions.md - 加载将回答合并到标准需求中。
prompts/vspec_refine/refine_q.md - 将优化结果追加到。
/specs/background/original.md - 更新,标记本次运行中已处理的回答项:
/specs/background/questions.md- 使用包裹回答内容和状态值(使用所选语言的字段名),使已回答项在视觉上突出显示。
<mark>...</mark>
- 使用
/vspec:more-q
/vspec:more-q/vspec:more-q
/vspec:more-qUse this command to generate more clarification questions and append them to .
/specs/background/questions.mdFlow:
- If is missing, stop and ask the user to run
/specs/background/questions.mdfirst./vspec:new - Load to generate additional questions (avoid duplicates and continue numbering).
prompts/vspec_more_q/more_q.md - Append the new items to (do not rewrite existing items).
/specs/background/questions.md - Provide a clear instruction for the user to answer the questions and then run .
/vspec:refine-q
使用此命令生成更多澄清问题并追加到。
/specs/background/questions.md流程:
- 若缺失,停止操作并请用户先运行
/specs/background/questions.md。/vspec:new - 加载生成额外问题(避免重复,延续编号)。
prompts/vspec_more_q/more_q.md - 将新问题追加到(不重写现有内容)。
/specs/background/questions.md - 向用户提供明确说明:回答问题后运行。
/vspec:refine-q
/vspec:detail
/vspec:detail/vspec:detail
/vspec:detailUse this command to expand requirement details based on the function list.
Language:
- Read
/scheme.yaml(supportsselected.language,en,zh; default tojaif missing/invalid).en - All generated spec documents under must use the selected language consistently (headings, tables, field descriptions, statuses, button names, messages).
/specs/
Flow:
- Read the feature/function list from .
/specs/functions/*- You must iterate every function row across all files under (not just core.md), so no module or external-system function is missed.
/specs/functions/
- You must iterate every function row across all files under
- Read supporting artifacts when available: ,
/specs/background/*,/specs/flows/*.puml,/specs/background/scenario_details/, and existing/specs/background/roles.md(if any)./specs/models/*.md - For each function (page or non-page job), first determine which detail artifacts are actually involved, then only generate those artifacts; do not generate documents for non-involved parts.
- Coverage requirement: for every function row you iterate, you must generate at least and
rbac.md. If you cannot, output an explicit error and stop (do not silently skip).data_permission.md - Step type requirement: you must determine the step type from the function row (e.g. terminal type / page vs backend vs job), and generate the corresponding logic artifacts; do not skip logic:
- For /
Web/Mobilesteps: always generateWeb+Mobileandpage_load.md.interaction.md - For steps: always generate
Backend(service logic: inputs/outputs, rules, states, APIs/events, errors, idempotency).service_logic.md - For steps: always generate
Job(job logic: trigger/schedule, data scope, retries/compensation, observability, failure handling).job_logic.md
- For
- Always generate the baseline docs:
- : RBAC permissions down to page areas and controls.
rbac.md - : data permission rules and scope.
data_permission.md
- Page-only:
- : page loading logic.
page_load.md - : page interaction logic.
interaction.md - : validation logic in matrix format (only for submit-type pages/actions; if the page has no submit/save/approve/reject/cancel/change actions, skip).
validation_matrix.md - : checks after submit (if the page has submit).
post_submit_check.md - : processing logic after submit (if the page has submit).
post_submit_processing.md - : post-submit return and navigation (if the page has submit).
post_submit_navigation.md
- Conditional (generate only if involved by the current function’s logic/scenarios/models/dependencies):
- : operation/audit logging (only when the business requires change history retention, compliance audit, or non-repudiation; otherwise skip).
logging_matrix.md - : decision matrix (决策矩阵) for operation availability under each status (if there is a status machine and operations vary by status/role).
decision_matrix.md - : notifications (if there is any notification requirement).
notification_matrix.md - : MQ topics/events/message schema/reliability details (if there is async events, queues, or cross-system eventing).
mq.md - : file import details (if there is any import entry/requirement).
file_import.md - : file export details (if there is any export entry/requirement).
file_export.md - : calculation formulas and metric semantics (if there are any calculations/metrics).
formula.md - : expression tree (HTML) (if there is multi-level nested branching logic).
expression_tree.md
- : numbering/code generation rules (if any codes/serial numbers are generated/assigned).
code_rules.md - : payment and refund details (if there is any payment/refund/settlement/reconciliation logic).
payment.md - : account/login details (if there is any non-SSO login/account/password flow).
auth.md - : judgemental matrix (判定矩阵) for multi-factor logic branching (if 2+ factors jointly decide outcomes).
judgemental_matrix.md - Module-level (generate at most once per module, and only if involved):
- : time-axis visualization (HTML) for overall flow impact analysis (only when there is long time-span logic that affects flow decisions, e.g. effective/expiry, deadlines, grace periods, cross-day rules).
timeline.md - : status list + transitions + PlantUML state diagram (overall; not per function).
state_machine.md - : non-functional requirements summary for the module (overall; not per function).
nfp.md - : scheduled jobs summary for the module (overall; not per function).
cron_job.md
- Coverage requirement: for every function row you iterate, you must generate at least
- Write only the generated (involved) detail documents:
- Per-function:
/specs/details/<module_slug>/<logic_type>/<function_slug>.(md|html) - Module-level:
/specs/details/<module_slug>/<logic_type>/<module_slug>.(md|html)
- Per-function:
- Load to generate a single-page viewer
prompts/vspec_detail/index.md:/specs/details/reader.html- Left: directory tree based on
/specs/details/ - Right: markdown-rendered reading pane
- Render PlantUML diagrams (do not show raw PlantUML text)
- Left: directory tree based on
使用此命令基于功能列表扩展需求细节。
语言规则:
- 读取中的
/scheme.yaml字段(支持selected.language、en、zh;若缺失或无效则默认使用ja)。en - 目录下生成的所有规格文档必须统一使用所选语言(标题、表格、字段描述、状态、按钮名称、提示信息)。
/specs/
流程:
- 从读取功能列表。
/specs/functions/*- 必须遍历下所有文件中的每一行功能(不仅仅是core.md),确保没有遗漏任何模块或外部系统功能。
/specs/functions/
- 必须遍历
- 读取可用的支持产物:、
/specs/background/*、/specs/flows/*.puml、/specs/background/scenario_details/,以及已有的/specs/background/roles.md(若存在)。/specs/models/*.md - 针对每个功能(页面或非页面任务),先确定实际涉及的细节产物,再仅生成这些产物;不为未涉及的部分生成文档。
- 覆盖要求:对于遍历的每一行功能,必须至少生成和
rbac.md。若无法生成,则输出明确错误并停止操作(不得静默跳过)。data_permission.md - 步骤类型要求:必须从功能行中确定步骤类型(如终端类型/页面 vs 后端 vs 任务),并生成对应的逻辑产物;不得跳过逻辑:
- 对于/
Web/Mobile步骤:必须生成Web+Mobile和page_load.md。interaction.md - 对于步骤:必须生成
Backend(服务逻辑:输入/输出、规则、状态、API/事件、错误、幂等性)。service_logic.md - 对于步骤:必须生成
Job(任务逻辑:触发/调度、数据范围、重试/补偿、可观测性、故障处理)。job_logic.md
- 对于
- 必须生成基线文档:
- :细化到页面区域和控件的RBAC权限。
rbac.md - :数据权限规则和范围。
data_permission.md
- 仅页面类步骤需生成:
- :页面加载逻辑。
page_load.md - :页面交互逻辑。
interaction.md - :矩阵格式的验证逻辑(仅适用于提交类页面/操作;若页面无提交/保存/审批/拒绝/取消/修改操作,则跳过)。
validation_matrix.md - :提交后的检查逻辑(若页面有提交操作)。
post_submit_check.md - :提交后的处理逻辑(若页面有提交操作)。
post_submit_processing.md - :提交后的返回与导航逻辑(若页面有提交操作)。
post_submit_navigation.md
- 条件生成(仅当当前功能的逻辑/场景/模型/依赖涉及到才生成):
- :操作/审计日志(仅当业务需要保留变更历史、合规审计或不可否认性时生成;否则跳过)。
logging_matrix.md - :各状态下操作可用性的决策矩阵(若存在状态机且操作因状态/角色而异)。
decision_matrix.md - :通知规则(若存在任何通知需求)。
notification_matrix.md - :MQ主题/事件/消息 schema/可靠性细节(若存在异步事件、队列或跨系统事件)。
mq.md - :文件导入细节(若存在任何导入入口/需求)。
file_import.md - :文件导出细节(若存在任何导出入口/需求)。
file_export.md - :计算公式和指标语义(若存在任何计算/指标)。
formula.md - :表达式树(HTML格式)(若存在多级嵌套分支逻辑)。
expression_tree.md - :编号/代码生成规则(若存在任何代码/序列号生成/分配逻辑)。
code_rules.md - :支付与退款细节(若存在任何支付/退款/结算/对账逻辑)。
payment.md - :账户/登录细节(若存在非SSO登录/账户/密码流程)。
auth.md - :多因素逻辑分支的判定矩阵(若2个及以上因素共同决定结果)。
judgemental_matrix.md
- 模块级生成(每个模块最多生成一次,仅当涉及到才生成):
- :时间轴可视化(HTML格式),用于整体流程影响分析(仅当存在影响流程决策的长周期逻辑时生成,如生效/过期、截止日期、宽限期、跨天规则)。
timeline.md - :状态列表+转换关系+PlantUML状态图(全局,而非每个功能单独生成)。
state_machine.md - :模块的非功能性需求汇总(全局,而非每个功能单独生成)。
nfp.md - :模块的定时任务汇总(全局,而非每个功能单独生成)。
cron_job.md
- 覆盖要求:对于遍历的每一行功能,必须至少生成
- 仅写入已生成的(涉及到的)细节文档:
- 每个功能:
/specs/details/<module_slug>/<logic_type>/<function_slug>.(md|html) - 模块级:
/specs/details/<module_slug>/<logic_type>/<module_slug>.(md|html)
- 每个功能:
- 加载生成单页查看器
prompts/vspec_detail/index.md:/specs/details/reader.html- 左侧:基于的目录树
/specs/details/ - 右侧:markdown渲染的阅读面板
- 渲染PlantUML图(不显示原始PlantUML文本)
- 左侧:基于
/vspec:doc
/vspec:doc/vspec:doc
/vspec:docUse this command to generate a Word document (Word-openable single-file in HTML format) that aggregates the requirement detail artifacts into a deliverable doc, and write it under .
.doc/docs/current/Language:
- Read
/scheme.yaml(supportsselected.language,en,zh; default tojaif missing/invalid).en - The generated Word document must use the selected language consistently (titles, headings, field labels, table headers).
Flow:
- Ensure exists.
/docs/current/ - Read the existing artifacts when available:
- Canonical requirement:
/specs/background/original.md - Function list:
/specs/functions/* - Detail specs:
/specs/details/** - Roles & permissions: ,
/specs/background/roles.md/specs/details/**/rbac.md - Data permission:
/specs/details/**/data_permission.md - Scenarios & flows: ,
/specs/background/scenarios.md,/specs/background/scenario_details/**/specs/flows/*.puml - Dependencies:
/specs/background/dependencies.md - Models:
/specs/models/*.md
- Canonical requirement:
- Load and generate the doc as a Word-openable single HTML file.
prompts/vspec_doc/doc.md - Write the output file to: .
/docs/current/requirement_detail.docx
使用此命令生成Word文档(可在Word中打开的单文件HTML格式),将需求细节产物汇总为可交付文档,并写入目录下。
.doc/docs/current/语言规则:
- 读取中的
/scheme.yaml字段(支持selected.language、en、zh;若缺失或无效则默认使用ja)。en - 生成的Word文档必须统一使用所选语言(标题、副标题、字段标签、表格表头)。
流程:
- 确保目录存在。
/docs/current/ - 读取可用的现有产物:
- 标准需求:
/specs/background/original.md - 功能列表:
/specs/functions/* - 细节规格:
/specs/details/** - 角色与权限:、
/specs/background/roles.md/specs/details/**/rbac.md - 数据权限:
/specs/details/**/data_permission.md - 场景与流程:、
/specs/background/scenarios.md、/specs/background/scenario_details/**/specs/flows/*.puml - 依赖:
/specs/background/dependencies.md - 模型:
/specs/models/*.md
- 标准需求:
- 加载并生成可在Word中打开的单HTML格式文档。
prompts/vspec_doc/doc.md - 将输出文件写入:。
/docs/current/requirement_detail.docx
/vspec:verify
/vspec:verify/vspec:verify
/vspec:verifyUse this command to generate models and a runnable prototype for validation.
Language:
- Read
/scheme.yaml(supportsselected.language,en,zh; default tojaif missing/invalid).en - Generate docs and all prototype UI copy in the selected language consistently.
/specs/models/
Flow:
0. Ensure exists and is non-empty; if missing, stop and output the prerequisite message: “Run /vspec:detail to generate /specs/details/ before /vspec:verify”.
/specs/details/- If exists and contains unanswered questions, ask the user to answer them before continuing (allow skip per question, but ensure none remains unanswered).
/specs/background/questions.md - Load to generate data models.
prompts/vspec_verify/model.md - Write model files to .
/specs/models/*.md - Generate a runnable page prototype based on functions, details, models, and roles; the prototype tech stack can be selected via (auto-created with defaults if missing).
/scheme.yaml- Load for the prototype generation rules (must follow
prompts/vspec_verify/prototype.mdstack; do not output html-only).scheme.yaml
- Load
- Write the prototype to .
/specs/prototypes/ - Load to validate whether the prototype frontend stack matches
prompts/harness/post_verify_stack_verify.md. If it outputs any issues, show the issue list and stop./scheme.yaml - Load to generate a scenario validation web page.
prompts/vspec_verify/validation.md - Write the validation page to and provide a
/specs/prototypes/entry for access.scenario.html - Load to generate an entry page and write it to
prompts/vspec_verify/entries.md(do not link it from any menu/header)./specs/prototypes/entries.html - Load to ensure mobile data selection uses a picker page (list-based), not dropdown Select. If it outputs any issues, show the issue list and stop.
prompts/harness/post_verify_mobile_selection_check.md - Load to validate money/price formatting (right aligned, 2 decimals, thousand separators). If it outputs any issues, show the issue list and stop.
prompts/harness/post_verify_price_format_check.md - Load to detect clickable UI elements that do nothing. If it outputs any issues, show the issue list and stop.
prompts/harness/post_verify_click_check.md - Load to validate the prototype completeness. If it outputs any issues, show the issue list and stop.
prompts/harness/post_verify_verify.md
使用此命令生成模型和可运行的原型以进行验证。
语言规则:
- 读取中的
/scheme.yaml字段(支持selected.language、en、zh;若缺失或无效则默认使用ja)。en - 下的文档和所有原型UI文案必须统一使用所选语言。
/specs/models/
流程:
0. 确保目录存在且非空;若缺失,停止操作并输出前置要求提示:“请先运行/vspec:detail生成/specs/details/,再运行/vspec:verify”。
/specs/details/- 若存在且包含未回答的问题,请用户先回答这些问题(允许跳过单个问题,但确保无未回答问题遗留)。
/specs/background/questions.md - 加载生成数据模型。
prompts/vspec_verify/model.md - 将模型文件写入。
/specs/models/*.md - 基于功能、细节、模型和角色生成可运行的页面原型;原型技术栈可通过选择(若缺失则自动创建默认配置)。
/scheme.yaml- 加载获取原型生成规则(必须遵循
prompts/vspec_verify/prototype.md指定的技术栈;不得仅输出html)。scheme.yaml
- 加载
- 将原型写入目录。
/specs/prototypes/ - 加载验证原型前端技术栈是否与
prompts/harness/post_verify_stack_verify.md匹配。若输出问题列表,则展示问题并停止操作。/scheme.yaml - 加载生成场景验证网页。
prompts/vspec_verify/validation.md - 将验证页面写入目录,并提供
/specs/prototypes/入口供访问。scenario.html - 加载生成入口页面并写入
prompts/vspec_verify/entries.md(请勿从任何菜单/页眉链接此页面)。/specs/prototypes/entries.html - 加载确保移动端数据选择使用选择器页面(基于列表),而非下拉选择框。若输出问题列表,则展示问题并停止操作。
prompts/harness/post_verify_mobile_selection_check.md - 加载验证金额/价格格式(右对齐、保留2位小数、千位分隔符)。若输出问题列表,则展示问题并停止操作。
prompts/harness/post_verify_price_format_check.md - 加载检测无响应的可点击UI元素。若输出问题列表,则展示问题并停止操作。
prompts/harness/post_verify_click_check.md - 加载验证原型完整性。若输出问题列表,则展示问题并停止操作。
prompts/harness/post_verify_verify.md
/vspec:qc
/vspec:qc/vspec:qc
/vspec:qcUse this command to run a quality check on the generated requirement artifacts under .
/specs/Note: The Pro edition supports broader quality checks (e.g. more post-run prototype/implementation verifications) and requires a paid plan.
Language:
- Read
/scheme.yaml(supportsselected.language,en,zh; default tojaif missing/invalid).en - The QC report must use the selected language consistently.
/specs/qc_report.md
Flow:
- Read built-in standard at .
prompts/vspec_qc/quality_standard.md - If a requirement quality error book exists under project , generate/update project root
qc/based on it.quality_standard.md - If project root exists, merge it as supplementary/overriding standard.
quality_standard.md - Load and generate a non-conformance checklist.
prompts/vspec_qc/qc.md - Write the report to .
/specs/qc_report.md
使用此命令对目录下生成的需求产物进行质量检查。
/specs/注意:专业版支持更全面的质量检查(如更多运行后原型/实现验证),需要付费订阅。
语言规则:
- 读取中的
/scheme.yaml字段(支持selected.language、en、zh;若缺失或无效则默认使用ja)。en - QC报告必须统一使用所选语言。
/specs/qc_report.md
流程:
- 读取内置标准。
prompts/vspec_qc/quality_standard.md - 若项目目录下存在需求质量错误手册,则基于该手册生成/更新项目根目录下的
qc/。quality_standard.md - 若项目根目录下存在,则将其合并为补充/覆盖标准。
quality_standard.md - 加载生成不符合项检查清单。
prompts/vspec_qc/qc.md - 将报告写入。
/specs/qc_report.md
/vspec:accept
/vspec:accept/vspec:accept
/vspec:acceptUse this command to generate acceptance test cases.
Language:
- Read
/scheme.yaml(supportsselected.language,en,zh; default tojaif missing/invalid).en - All acceptance documents under must use the selected language consistently.
/specs/acceptance/
Flow:
- Read ,
/specs/functions/*,/specs/background/scenarios.md,/specs/background/scenario_details/,/specs/background/roles.md./specs/models/*.md - Load to generate acceptance test cases covering core flows, exceptions, boundary, permissions, and data scope.
prompts/vspec_accept/accept.md - Write results to (one subfolder per function) and generate an index at
/specs/acceptance/./specs/acceptance/index.md
使用此命令生成验收测试用例。
语言规则:
- 读取中的
/scheme.yaml字段(支持selected.language、en、zh;若缺失或无效则默认使用ja)。en - 目录下的所有验收文档必须统一使用所选语言。
/specs/acceptance/
流程:
- 读取、
/specs/functions/*、/specs/background/scenarios.md、/specs/background/scenario_details/、/specs/background/roles.md。/specs/models/*.md - 加载生成覆盖核心流程、异常场景、边界情况、权限和数据范围的验收测试用例。
prompts/vspec_accept/accept.md - 将结果写入目录(每个功能对应一个子文件夹),并在
/specs/acceptance/生成索引。/specs/acceptance/index.md
/vspec:append-test
/vspec:append-test/vspec:append-test
/vspec:append-testUse this command to generate automation test code based on acceptance cases and specs.
Language:
- Read
/scheme.yaml(supportsselected.language,en,zh; default tojaif missing/invalid).en - Test case titles/descriptions should follow the selected language as much as possible.
Flow:
- Read ,
/specs/acceptance/,/specs/functions/*, and detect the existing test frameworks in the repository./specs/details/ - Load to generate automation tests using the existing frameworks and conventions.
prompts/vspec_test/test.md - Write test code to the project test directories (or if no standard exists) and ensure it can run with existing scripts.
/tests/ - Load to verify whether test coverage is sufficiently complete; if it outputs any issues, continue.
prompts/harness/post_append_test_coverage_check.md - If issues exist, rerun once focusing only on the missing items from the issue list, then rerun the coverage check.
/vspec:append-test - If issues still exist after the second coverage check, show the issue list and stop.
- This command generates/adds tests to improve coverage; it does not execute test commands.
使用此命令基于验收用例和规格文档生成自动化测试代码。
语言规则:
- 读取中的
/scheme.yaml字段(支持selected.language、en、zh;若缺失或无效则默认使用ja)。en - 测试用例标题/描述应尽可能遵循所选语言。
流程:
- 读取、
/specs/acceptance/、/specs/functions/*,并检测仓库中已有的测试框架。/specs/details/ - 加载使用现有框架和规范生成自动化测试代码。
prompts/vspec_test/test.md - 将测试代码写入项目测试目录(若无标准目录则写入),并确保可通过现有脚本运行。
/tests/ - 加载验证测试覆盖率是否足够完整;若输出问题列表,则继续操作。
prompts/harness/post_append_test_coverage_check.md - 若存在问题,重新运行一次,仅聚焦于问题列表中的缺失项,然后重新运行覆盖率检查。
/vspec:append-test - 若第二次覆盖率检查后仍存在问题,则展示问题列表并停止操作。
- 此命令生成/添加测试以提升覆盖率;不执行测试命令。
/vspec:impl
/vspec:impl/vspec:impl
/vspec:implUse this command to generate integrated frontend/backend code based on the specs.
Flow:
- Read ,
/specs/functions/*,/specs/details/,/specs/models/*.md, and detect the current frontend/backend stacks and code conventions./specs/background/dependencies.md - Load and implement backend-first: generate a runnable backend project under
prompts/vspec_impl/implement.md(health check + core APIs/services), then generate frontend integration after backend APIs are available./specs/backend/ - Write code only under with minimal diffs and keep it reviewable; backend must be under
/specs/and prototype frontend under/specs/backend/./specs/prototypes/ - Load to validate backend MVC structure and test coverage. If it outputs any issues, show the issue list and stop.
prompts/harness/post_impl_verify.md
使用此命令基于规格文档生成集成的前端/后端代码。
流程:
- 读取、
/specs/functions/*、/specs/details/、/specs/models/*.md,并检测当前的前端/后端技术栈和代码规范。/specs/background/dependencies.md - 加载,优先实现后端:在
prompts/vspec_impl/implement.md目录下生成可运行的后端项目(健康检查+核心API/服务),然后在后端API可用后生成前端集成代码。/specs/backend/ - 仅在目录下写入代码,尽量减少差异并保持可审阅性;后端代码必须写入
/specs/,原型前端代码写入/specs/backend/。/specs/prototypes/ - 加载验证后端MVC结构和测试覆盖率。若输出问题列表,则展示问题并停止操作。
prompts/harness/post_impl_verify.md
/vspec:upgrade
/vspec:upgrade/vspec:upgrade
/vspec:upgradeUse this command to upgrade/retrofit requirements based on materials stored under ( for legacy system, for new inputs), and regenerate the artifacts in the same structure as .
/docs//docs/legacy/docs/current/specs//vspec:newLanguage:
- Read
/scheme.yaml(supportsselected.language,en,zh; default tojaif missing/invalid).en - All regenerated artifacts must use the selected language consistently.
/specs/**
Flow:
- Ensure the input entry file exists at ; if missing, generate it with the expected input list template.
/docs/current/file_list.md - Read , then read the listed sources under
/docs/current/file_list.md(typically/docs/,/docs/legacy/*, optionally/docs/current/*,/docs/templates/*,/docs/texts/*) in order and extract structured information (functions, dependencies, UI style, roles/permissions, technical spec). Additionally, you must recursively scan/docs/assets/*and all its subdirectories and treat those documents as raw input materials (even if they are not explicitly listed yet); when you find legacy files not in/docs/legacy/, append them intofile_list.mdand then read them./docs/current/file_list.md - If exists, treat it as the current canonical requirement and use it as baseline for diff (inherit/new/change/deprecate).
/specs/background/original.md - Load and generate/update artifacts under
prompts/vspec_upgrade/upgrade.md, reusing/specs/output conventions./vspec:new - Sync extracted technical spec into so it can be used by
/scheme.yamland/vspec:verify./vspec:impl
使用此命令基于目录下的材料(用于遗留系统,用于新输入)升级/改造需求,并按照的输出结构重新生成下的产物。
/docs//docs/legacy/docs/current/vspec:new/specs/语言规则:
- 读取中的
/scheme.yaml字段(支持selected.language、en、zh;若缺失或无效则默认使用ja)。en - 重新生成的所有产物必须统一使用所选语言。
/specs/**
流程:
- 确保输入入口文件存在;若缺失,使用预期输入列表模板生成该文件。
/docs/current/file_list.md - 读取,然后按顺序读取
/docs/current/file_list.md下列出的源文件(通常为/docs/、/docs/legacy/*,可选/docs/current/*、/docs/templates/*、/docs/texts/*)并提取结构化信息(功能、依赖、UI风格、角色/权限、技术规格)。此外,必须递归扫描/docs/assets/*及其所有子目录,将这些文档视为原始输入材料(即使尚未明确列在/docs/legacy/中);若发现file_list.md中未列出的遗留文件,将其追加到file_list.md后再读取。/docs/current/file_list.md - 若存在,则将其视为当前标准需求,作为差异对比的基线(继承/新增/修改/废弃)。
/specs/background/original.md - 加载生成/更新
prompts/vspec_upgrade/upgrade.md下的产物,复用/specs/的输出规范。/vspec:new - 将提取的技术规格同步到,供
/scheme.yaml和/vspec:verify使用。/vspec:impl
/vspec:plan
/vspec:plan/vspec:plan
/vspec:planUse this command to break down requirements, estimate efforts, and schedule via a user story map.
Language:
- Read
/scheme.yaml(supportsselected.language,en,zh; default tojaif missing/invalid).en - Both and
/specs/plan/plan_estimate.mdmust use the selected language consistently./specs/plan/plan_schedule.html
Flow:
- Read ,
/specs/functions/*,/specs/background/roles.md,/specs/background/scenarios.md,/specs/details/./specs/background/dependencies.md - Load to generate estimates aligned to the function list.
prompts/vspec_plan/estimate.md - Write estimates to .
/specs/plan/plan_estimate.md - Load to generate the schedule and delivery map.
prompts/vspec_plan/schedule.md - Write schedule HTML to .
/specs/plan/plan_schedule.html
使用此命令拆解需求、估算工作量,并通过用户故事地图制定进度计划。
语言规则:
- 读取中的
/scheme.yaml字段(支持selected.language、en、zh;若缺失或无效则默认使用ja)。en - 和
/specs/plan/plan_estimate.md必须统一使用所选语言。/specs/plan/plan_schedule.html
流程:
- 读取、
/specs/functions/*、/specs/background/roles.md、/specs/background/scenarios.md、/specs/details/。/specs/background/dependencies.md - 加载生成与功能列表对齐的工作量估算。
prompts/vspec_plan/estimate.md - 将估算结果写入。
/specs/plan/plan_estimate.md - 加载生成进度计划和交付地图。
prompts/vspec_plan/schedule.md - 将进度计划HTML写入。
/specs/plan/plan_schedule.html
/vspec:mrd
/vspec:mrd/vspec:mrd
/vspec:mrdUse this command to generate a market research and product positioning pack (MRD): market landscape, competitor analysis, user positioning, and product design notes.
Flow:
- Ensure exists.
/docs/market/ - Read baseline artifacts when available: ,
/specs/background/original.md,/specs/background/roles.md,/specs/background/terms.md,/specs/background/scenarios.md,/specs/flows/*.puml, and/specs/background/dependencies.md(if any)./specs/functions/* - Load .
prompts/vspec_mrd/mrd.md - Write outputs to:
/docs/market/market.md/docs/market/competitors.md/docs/market/users.md/docs/market/product_design.md
使用此命令生成市场研究与产品定位包(MRD):市场格局、竞品分析、用户定位、产品设计说明。
流程:
- 确保目录存在。
/docs/market/ - 读取可用的基线产物:、
/specs/background/original.md、/specs/background/roles.md、/specs/background/terms.md、/specs/background/scenarios.md、/specs/flows/*.puml,以及/specs/background/dependencies.md(若存在)。/specs/functions/* - 加载。
prompts/vspec_mrd/mrd.md - 将输出写入以下文件:
/docs/market/market.md/docs/market/competitors.md/docs/market/users.md/docs/market/product_design.md
Prompt Files
提示词文件
- : the prompt used right after
prompts/vspec_new/background.mdreceives the raw requirement./vspec:new - : the prompt used by
prompts/vspec_interview/interview.mdto generate/vspec:interview./docs/current/interview_questionnaire.md - : the prompt used by
prompts/vspec_interview/interview_word.mdto generate/vspec:i-word(Word-openable single-file HTML)./docs/current/interview_questionnaire.docx - : the prompt used after the user answers
prompts/vspec_new/stakeholders.mdto generate待确认问题./specs/background/stakeholder.md - : the prompt used after stakeholder analysis to generate
prompts/vspec_new/roles.md./specs/background/roles.md - : the prompt used after roles analysis to generate
prompts/vspec_new/terms.md./specs/background/terms.md - : the prompt used after terms analysis to generate
prompts/vspec_new/flows.md./specs/flows/*.puml - : the prompt used after flows analysis to generate
prompts/vspec_new/scenarios.md./specs/background/scenarios.md - : the prompt used after scenarios analysis to generate per-node
prompts/vspec_new/details_pre_post.mdunderpre_post.md./specs/background/scenario_details/ - : the prompt used after Pre/Post to generate per-node
prompts/vspec_new/details_constraints.mdunderconstraints.md./specs/background/scenario_details/ - : the prompt used after Constraints to generate per-node
prompts/vspec_new/details_variations.mdundervariations.md./specs/background/scenario_details/ - : the prompt used after Variations to generate per-node
prompts/vspec_new/details_boundaries.mdunderboundaries.md./specs/background/scenario_details/ - : the prompt used after Boundaries to generate per-node
prompts/vspec_new/details_symmetry.mdundersymmetry.md./specs/background/scenario_details/ - : the prompt used after details analysis to generate
prompts/vspec_new/dependencies.md./specs/background/dependencies.md - : the prompt used after dependencies analysis to generate
prompts/vspec_new/functions.md./specs/functions/ - : the prompt used after functions analysis to generate
prompts/vspec_new/questions.md./specs/background/questions.md - : the prompt used by
prompts/vspec_more_q/more_q.mdto append more questions to/vspec:more-q./specs/background/questions.md - : the prompt used by
prompts/vspec_mrd/mrd.mdto generate market/user/competitor/product docs under/vspec:mrd./docs/market/ - : the prompt used by
prompts/vspec_refine/refine.mdto refine the requirement based on/vspec:refine.refine.md - : the prompt used by
prompts/vspec_refine/refine_q.mdto refine the requirement based on answered questions./vspec:refine-q - : the prompt used by
prompts/vspec_doc/doc.mdto generate a Word-openable/vspec:doc(HTML) requirement detail document under.docx./docs/current/ - : the prompt used by
prompts/vspec_verify/model.mdto generate/vspec:verify./specs/models/*.md - : the prompt used by
prompts/vspec_verify/prototype.mdto generate the stack-selected runnable prototype under/vspec:verify(must follow/specs/prototypes/).scheme.yaml - : the prompt used by
prompts/vspec_verify/validation.mdto generate the validation web page with a/vspec:verifyentry.scenario.html - : the prompt used by
prompts/vspec_detail/rbac.mdto generate RBAC detail docs./vspec:detail - : the prompt used by
prompts/vspec_detail/data_permission.mdto generate data permission detail docs./vspec:detail - : the prompt used by
prompts/vspec_detail/page_load.mdto generate page loading logic docs./vspec:detail - : the prompt used by
prompts/vspec_detail/interaction.mdto generate page interaction logic docs./vspec:detail - : the prompt used by
prompts/vspec_detail/index.mdto generate/vspec:detailas a markdown/PlantUML-rendered viewer./specs/details/reader.html - : the fixed HTML template used by
prompts/vspec_detail/index.htmlto stabilize/vspec:detailgeneration (directory tree + markdown renderer)./specs/details/reader.html - : the prompt used by
prompts/vspec_detail/timeline.mdto generate time-axis HTML docs./vspec:detail - : the prompt used by
prompts/vspec_detail/formula.mdto generate formula docs./vspec:detail - : the prompt used by
prompts/vspec_detail/expression_tree.mdto generate expression tree docs./vspec:detail - : the prompt used by
prompts/vspec_detail/code_rules.mdto generate numbering/code rules docs./vspec:detail - : the prompt used by
prompts/vspec_detail/judgemental_matrix.mdto generate decision matrix docs./vspec:detail - : the prompt used by
prompts/vspec_detail/validation_matrix.mdto generate validation matrix docs./vspec:detail - : the prompt used by
prompts/vspec_detail/post_submit_check.mdto generate post-submit checks docs./vspec:detail - : the prompt used by
prompts/vspec_detail/post_submit_processing.mdto generate post-submit processing docs./vspec:detail - : the prompt used by
prompts/vspec_detail/post_submit_navigation.mdto generate post-submit navigation docs./vspec:detail - : the prompt used by
prompts/vspec_detail/mq.mdto generate MQ message design docs./vspec:detail - : the prompt used by
prompts/vspec_detail/message_queue.mdto generate message queue design docs./vspec:detail - : the prompt used by
prompts/vspec_detail/cache.mdto generate cache design docs./vspec:detail - : the prompt used by
prompts/vspec_detail/service_logic.mdto generate backend service logic docs for/vspec:detailsteps.Backend - : the prompt used by
prompts/vspec_detail/job_logic.mdto generate job logic docs for/vspec:detailsteps.Job - : the prompt used by
prompts/vspec_detail/logging_matrix.mdto generate logging matrix docs./vspec:detail - : the prompt used by
prompts/vspec_detail/notification_matrix.mdto generate notification matrix docs./vspec:detail - : the prompt used by
prompts/vspec_detail/nfp.mdto generate non-functional requirements docs./vspec:detail - : the prompt used by
prompts/vspec_detail/file_import.mdto generate file import docs./vspec:detail - : the prompt used by
prompts/vspec_detail/file_export.mdto generate file export docs./vspec:detail - : the prompt used by
prompts/vspec_detail/cron_job.mdto generate scheduled job docs./vspec:detail - : the prompt used by
prompts/vspec_accept/accept.mdto generate acceptance test cases./vspec:accept - : the prompt used by
prompts/vspec_test/test.mdto generate automation test code./vspec:append-test - : the prompt used by
prompts/vspec_impl/implement.mdto generate integrated frontend/backend code./vspec:impl - : the prompt used by
prompts/vspec_upgrade/upgrade.mdto generate upgraded specs from/vspec:upgradeinputs./docs/ - : the prompt used by
prompts/vspec_plan/estimate.mdto generate/vspec:plan./specs/plan/plan_estimate.md - : the prompt used by
prompts/vspec_plan/schedule.mdto generate/vspec:plan./specs/plan/plan_schedule.html - : the prompt used by
prompts/vspec_qc/qc.mdto generate/vspec:qc./specs/qc_report.md - : built-in quality standard used by
prompts/vspec_qc/quality_standard.md./vspec:qc
- :
prompts/vspec_new/background.md收到原始需求后立即使用的提示词文件。/vspec:new - :
prompts/vspec_interview/interview.md用于生成/vspec:interview的提示词文件。/docs/current/interview_questionnaire.md - :
prompts/vspec_interview/interview_word.md用于生成/vspec:i-word(可在Word中打开的单文件HTML)的提示词文件。/docs/current/interview_questionnaire.docx - :用户回答“待确认问题”后,用于生成
prompts/vspec_new/stakeholders.md的提示词文件。/specs/background/stakeholder.md - :利益相关方分析完成后,用于生成
prompts/vspec_new/roles.md的提示词文件。/specs/background/roles.md - :角色分析完成后,用于生成
prompts/vspec_new/terms.md的提示词文件。/specs/background/terms.md - :术语分析完成后,用于生成
prompts/vspec_new/flows.md的提示词文件。/specs/flows/*.puml - :流程分析完成后,用于生成
prompts/vspec_new/scenarios.md的提示词文件。/specs/background/scenarios.md - :场景分析完成后,用于在
prompts/vspec_new/details_pre_post.md下生成每个节点的/specs/background/scenario_details/的提示词文件。pre_post.md - :前置/后置条件分析完成后,用于在
prompts/vspec_new/details_constraints.md下生成每个节点的/specs/background/scenario_details/的提示词文件。constraints.md - :约束条件分析完成后,用于在
prompts/vspec_new/details_variations.md下生成每个节点的/specs/background/scenario_details/的提示词文件。variations.md - :变体分析完成后,用于在
prompts/vspec_new/details_boundaries.md下生成每个节点的/specs/background/scenario_details/的提示词文件。boundaries.md - :边界分析完成后,用于在
prompts/vspec_new/details_symmetry.md下生成每个节点的/specs/background/scenario_details/的提示词文件。symmetry.md - :细节分析完成后,用于生成
prompts/vspec_new/dependencies.md的提示词文件。/specs/background/dependencies.md - :依赖分析完成后,用于生成
prompts/vspec_new/functions.md下内容的提示词文件。/specs/functions/ - :功能分析完成后,用于生成
prompts/vspec_new/questions.md的提示词文件。/specs/background/questions.md - :
prompts/vspec_more_q/more_q.md用于向/vspec:more-q追加更多问题的提示词文件。/specs/background/questions.md - :
prompts/vspec_mrd/mrd.md用于在/vspec:mrd下生成市场/用户/竞品/产品文档的提示词文件。/docs/market/ - :
prompts/vspec_refine/refine.md用于基于/vspec:refine优化需求的提示词文件。refine.md - :
prompts/vspec_refine/refine_q.md用于基于已回答问题优化需求的提示词文件。/vspec:refine-q - :
prompts/vspec_doc/doc.md用于在/vspec:doc下生成可在Word中打开的/docs/current/(HTML格式)需求细节文档的提示词文件。.docx - :
prompts/vspec_verify/model.md用于生成/vspec:verify的提示词文件。/specs/models/*.md - :
prompts/vspec_verify/prototype.md用于在/vspec:verify下生成符合技术栈要求的可运行原型的提示词文件(必须遵循/specs/prototypes/)。scheme.yaml - :
prompts/vspec_verify/validation.md用于生成带/vspec:verify入口的验证网页的提示词文件。scenario.html - :
prompts/vspec_detail/rbac.md用于生成RBAC细节文档的提示词文件。/vspec:detail - :
prompts/vspec_detail/data_permission.md用于生成数据权限细节文档的提示词文件。/vspec:detail - :
prompts/vspec_detail/page_load.md用于生成页面加载逻辑文档的提示词文件。/vspec:detail - :
prompts/vspec_detail/interaction.md用于生成页面交互逻辑文档的提示词文件。/vspec:detail - :
prompts/vspec_detail/index.md用于生成/vspec:detail(markdown/PlantUML渲染查看器)的提示词文件。/specs/details/reader.html - :
prompts/vspec_detail/index.html用于稳定/vspec:detail生成的固定HTML模板(目录树+markdown渲染器)。/specs/details/reader.html - :
prompts/vspec_detail/timeline.md用于生成时间轴HTML文档的提示词文件。/vspec:detail - :
prompts/vspec_detail/formula.md用于生成公式文档的提示词文件。/vspec:detail - :
prompts/vspec_detail/expression_tree.md用于生成表达式树文档的提示词文件。/vspec:detail - :
prompts/vspec_detail/code_rules.md用于生成编号/代码规则文档的提示词文件。/vspec:detail - :
prompts/vspec_detail/judgemental_matrix.md用于生成决策矩阵文档的提示词文件。/vspec:detail - :
prompts/vspec_detail/validation_matrix.md用于生成验证矩阵文档的提示词文件。/vspec:detail - :
prompts/vspec_detail/post_submit_check.md用于生成提交后检查文档的提示词文件。/vspec:detail - :
prompts/vspec_detail/post_submit_processing.md用于生成提交后处理文档的提示词文件。/vspec:detail - :
prompts/vspec_detail/post_submit_navigation.md用于生成提交后导航文档的提示词文件。/vspec:detail - :
prompts/vspec_detail/mq.md用于生成MQ消息设计文档的提示词文件。/vspec:detail - :
prompts/vspec_detail/message_queue.md用于生成消息队列设计文档的提示词文件。/vspec:detail - :
prompts/vspec_detail/cache.md用于生成缓存设计文档的提示词文件。/vspec:detail - :
prompts/vspec_detail/service_logic.md用于为/vspec:detail步骤生成后端服务逻辑文档的提示词文件。Backend - :
prompts/vspec_detail/job_logic.md用于为/vspec:detail步骤生成任务逻辑文档的提示词文件。Job - :
prompts/vspec_detail/logging_matrix.md用于生成日志矩阵文档的提示词文件。/vspec:detail - :
prompts/vspec_detail/notification_matrix.md用于生成通知矩阵文档的提示词文件。/vspec:detail - :
prompts/vspec_detail/nfp.md用于生成非功能性需求文档的提示词文件。/vspec:detail - :
prompts/vspec_detail/file_import.md用于生成文件导入文档的提示词文件。/vspec:detail - :
prompts/vspec_detail/file_export.md用于生成文件导出文档的提示词文件。/vspec:detail - :
prompts/vspec_detail/cron_job.md用于生成定时任务文档的提示词文件。/vspec:detail - :
prompts/vspec_accept/accept.md用于生成验收测试用例的提示词文件。/vspec:accept - :
prompts/vspec_test/test.md用于生成自动化测试代码的提示词文件。/vspec:append-test - :
prompts/vspec_impl/implement.md用于生成集成前端/后端代码的提示词文件。/vspec:impl - :
prompts/vspec_upgrade/upgrade.md用于基于/vspec:upgrade输入生成升级后规格文档的提示词文件。/docs/ - :
prompts/vspec_plan/estimate.md用于生成/vspec:plan的提示词文件。/specs/plan/plan_estimate.md - :
prompts/vspec_plan/schedule.md用于生成/vspec:plan的提示词文件。/specs/plan/plan_schedule.html - :
prompts/vspec_qc/qc.md用于生成/vspec:qc的提示词文件。/specs/qc_report.md - :
prompts/vspec_qc/quality_standard.md使用的内置质量标准文件。/vspec:qc
Suggested Workflow
建议工作流程
- Install this skill.
- Run .
/vspec:new - Ask the user to input the original requirement and wait for Enter.
- Load and start requirement analysis.
prompts/vspec_new/background.md - Ask the user to answer .
待确认问题 - Load and generate
prompts/vspec_new/stakeholders.md./specs/background/stakeholder.md - Load and generate
prompts/vspec_new/roles.md./specs/background/roles.md - Load and generate
prompts/vspec_new/terms.md./specs/background/terms.md - Load and generate
prompts/vspec_new/flows.md./specs/flows/*.puml - Load and generate
prompts/vspec_new/scenarios.md./specs/background/scenarios.md - Load and generate per-node
prompts/vspec_new/details_pre_post.mdunderpre_post.md./specs/background/scenario_details/ - Load and generate per-node
prompts/vspec_new/details_constraints.mdunderconstraints.md./specs/background/scenario_details/ - Load and generate per-node
prompts/vspec_new/details_variations.mdundervariations.md./specs/background/scenario_details/ - Load and generate per-node
prompts/vspec_new/details_boundaries.mdunderboundaries.md./specs/background/scenario_details/ - Load and generate per-node
prompts/vspec_new/details_symmetry.mdundersymmetry.md./specs/background/scenario_details/ - Load and generate
prompts/vspec_new/dependencies.md./specs/background/dependencies.md - Load and generate
prompts/vspec_new/functions.md./specs/functions/ - Load and generate
prompts/vspec_new/questions.md./specs/background/questions.md - Follow the generated analysis steps to continue the project.
- 安装此技能。
- 运行。
/vspec:new - 请用户输入原始需求并等待回车键。
- 加载开始需求分析。
prompts/vspec_new/background.md - 请用户回答“待确认问题”。
- 加载生成
prompts/vspec_new/stakeholders.md。/specs/background/stakeholder.md - 加载生成
prompts/vspec_new/roles.md。/specs/background/roles.md - 加载生成
prompts/vspec_new/terms.md。/specs/background/terms.md - 加载生成
prompts/vspec_new/flows.md。/specs/flows/*.puml - 加载生成
prompts/vspec_new/scenarios.md。/specs/background/scenarios.md - 加载在
prompts/vspec_new/details_pre_post.md下生成每个节点的/specs/background/scenario_details/。pre_post.md - 加载在
prompts/vspec_new/details_constraints.md下生成每个节点的/specs/background/scenario_details/。constraints.md - 加载在
prompts/vspec_new/details_variations.md下生成每个节点的/specs/background/scenario_details/。variations.md - 加载在
prompts/vspec_new/details_boundaries.md下生成每个节点的/specs/background/scenario_details/。boundaries.md - 加载在
prompts/vspec_new/details_symmetry.md下生成每个节点的/specs/background/scenario_details/。symmetry.md - 加载生成
prompts/vspec_new/dependencies.md。/specs/background/dependencies.md - 加载生成
prompts/vspec_new/functions.md下的内容。/specs/functions/ - 加载生成
prompts/vspec_new/questions.md。/specs/background/questions.md - 按照生成的分析步骤继续推进项目。
Output Goal
输出目标
- Clarify business objective and core user scenario.
- Identify key roles, page modules, and interaction flow.
- Extract entities and main data fields.
- Produce a visual-spec-oriented requirement draft for the next step.
- 明确业务目标和核心用户场景。
- 识别关键角色、页面模块和交互流程。
- 提取实体和主要数据字段。
- 生成面向视觉规格的需求草稿,供下一步使用。