Summary
当用户需要把想法、需求说明、产品需求、项目背景、Markdown、纯文本或本地文档整理成 DWF 工作流风格的需求文档时,必须使用本技能。它负责收集和澄清需求,按 references/requirements_template.md 生成目标 spec 目录下…
xiao0916/luckyxp-wf · Archived
当用户需要把想法、需求说明、产品需求、项目背景、Markdown、纯文本或本地文档整理成 DWF 工作流风格的需求文档时,?
npx skills add xiao0916/luckyxp-wf --skill dwf-requirement
当用户需要把想法、需求说明、产品需求、项目背景、Markdown、纯文本或本地文档整理成 DWF 工作流风格的需求文档时,必须使用本技能。它负责收集和澄清需求,按 references/requirements_template.md 生成目标 spec 目录下…
This repository is archived — consider an actively maintained alternative.
结构化开发工作流,强制按步骤执行:需求文档 → 设计稿 → 需求拆解 → 技术方案(提供多个方案供用户选…
7 installs为网页生成可预览的动画组件,目标框架由 AI 探测项目决定。当用户需要把预置的网页动画效果落地到 Re…
7 installs当开发、测试、文档生成、技能创建或修改、文件编辑、浏览器操作、截图、构建、校验、脚本运行、Power…
5 installsUse when 用户要启动、继续、恢复或重启 DWF 开发工作流,或需要编排 .dwf/state.json、specs 队列、…
5 installsRelated neighbors and high-traction skills in the same topics — useful to compare before installing.
Guidance for distinctive, intentional visual design when building new UI or reshaping an existi…
866.4K installsBrowser automation CLI for AI agents. Use when the user needs to interact with websites, includ…
810.4K installsReview UI code for Web Interface Guidelines compliance. Use when asked to "review my UI", "chec…
617.3K installsBuild, deploy, evaluate, optimize, fine-tune, and manage Microsoft Foundry agents, models, and …
576.5K installsDebug Azure production issues on Azure using AppLens, Azure Monitor, resource health, and safe …
568.9K installsOther skills from xiao0916/luckyxp-wf.
npx skills add xiao0916/luckyxp-wf
Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.
main
Files included with this skill beyond the listing page.
SKILL.md
9,243 B
SUMMARY.md
683 B
本技能用于把零散需求整理成 DWF 工作流的需求文档。它只负责需求捕获与需求文档生成;独立运行时不启动完整开发工作流,工作流模式下按 .dwf/state.json 继续当前阶段。
<HARD-GATE> 以下规则不可违反:
本技能默认只创建或更新目标 spec 目录下 01-需求/需求文档.md。不创建其它阶段文档或代码。
- 工作流模式:读取 .dwf/state.json,在 specs 数组中找 status: "active" 且 current_step: "requirements" 的 spec,以 .dwf/specs/{spec.name} 作为目标 spec 目录。 - 独立模式:.dwf/state.json 不存在或不存在满足条件的 active spec。用 question 询问用户目标目录,默认提议 .dwf/specs/{今日日期}-{seq}-feat-{从用户输入提取的描述},其中 seq 扫描 .dwf/specs/ 现有 spec 目录名中的最大序号 +1(无则 001),由用户确认或修改。
.dwf/state.json。独立模式只写目标 spec 目录下的需求文档与该 spec 的 meta.json(如该 spec 目录为本技能创建)。不要把项目推进到 design、breakdown、plans、todos 或 code。只有工作流模式下才在用户确认后更新 state.json 中该 spec 的 currentstep。
除目标 spec 目录下的 01-需求/ 外,不要主动创建 02-设计稿/、03-需求分析/、04-技术方案/、05-实现清单/。项目代码目录由用户/dwf-coding 决定,本技能不创建。
如果目标 spec 目录下 01-需求/需求文档.md 已存在,先读取并告知用户已有文档,询问是保留、修改还是替换。用户确认前不要覆盖。
除非用户明确要求使用其他语言,所有与用户的交互、需求澄清问题、生成文档、标题、标签、表格内容、说明文字、测试记录和产物说明都必须使用中文。代码、文件路径、命令、API 名、技术术语、第三方库名和用户提供的原文内容可以保留英文。
</HARD-GATE>
.dwf/state.json 是否存在,确定运行模式(见步骤 2)。lark-doc,网页文档使用 web-access。读取 .dwf/state.json:
specs 数组中找到 status: "active" 且 current_step: "requirements" 的 spec。目标 spec 目录为 .dwf/specs/{spec.name}/。- 如该目录下 01-需求/需求文档.md 已存在,先读取并按“已有文档处理”执行。 - 需求文档完成并经用户确认后,把该 spec 的 currentstep 更新为 "design"、把 requirements 追加到 confirmedstages,并同步其 meta.json 与顶层 updatedat。 - 遵循 dwf-orchestrator 的确认机制,不跳过用户确认。
.dwf/state.json 不存在,或不存在满足条件的 active spec。- 用 question 询问用户目标 spec 目录,默认提议 .dwf/specs/{今日日期}-{seq}-feat-{描述}(描述从用户输入提取,seq 扫描 .dwf/specs/ 现有 spec 目录名中的最大序号 +1,无则 001),由用户确认或修改。如用户选择别的目录,以用户输入为准。 - 如目标 spec 目录不存在,创建它及其下 01-需求/。 - 在该 spec 目录下写一份初始 meta.json(name 为目录名、status: "active"、currentstep: "requirements"、issharedcontext: false、shared_ref: null 等)。 - 不要创建 .dwf/state.json,不推进完整工作流。 - 需求文档完成后请求用户确认,确认后停止。
根据用户提供的信息选择处理方式:
lark-doc,网页文档使用 web-access。如果信息不足,按“一次一个问题”的方式追问。优先澄清会影响文档结构和验收标准的内容:
不要一次抛出大量问题。若可以基于上下文合理假设,先明确写入“假设”,并把不确定项放入“待确认事项”。
读取 references/requirements_template.md,按模板生成中文需求文档。保存到目标 spec 目录下:
{目标 spec 目录}/01-需求/需求文档.md
生成规则:
project、version、author、date、status 和 revision。status 默认为 draft。date 使用当前日期。version 初始为 1.0.0。revision 记录“初始版本”。FR-1、FR-2 编号。NFR-1、NFR-2 编号。生成文档后,向用户展示保存位置和简要摘要,并请求确认:
01-需求/需求文档.md,保持 status: draft,并再次请求确认。status 改为 confirmed,并在 revision 中追加确认记录。确认完成后:
currentstep 为 "design"、把 requirements 追加到 confirmedstages,同步 meta.json 与 updatedat,由 dwf-orchestrator 推进。如果目标文件已存在:
{目标 spec 目录}/01-需求/需求文档.md。- 保留现有文档,仅查看或总结。 - 基于现有文档修改。 - 替换为新需求文档。
修改已有文档时:
date。version 并追加 revision 条目。需求文档-v2.md 之类的新版本文件,除非用户明确要求。结束前确认:
01-需求/需求文档.md。.dwf/state.json。01-需求/ 外的其它阶段目录。current_step 为 design。