wth461694678_text-block-timer/doc/text-block-timer-dev-skill/SKILL.md

7.3 KiB
Raw Blame History

skill_id skill_name version description author created updated tags triggers inputs outputs capabilities execution prerequisites scope dependencies runtime_commands
text-block-timer-dev-pipeline Text Block Timer 全流程开发 Skill 2.0 通过一句话需求,自动驱动从 PRD → UI Review → 数据设计 → 技术方案 → 架构 Review → 测试用例 → 编码开发 → 功能测试的全流程开发流水线。 适用于 Obsidian 插件 Text Block Timer 项目的功能开发。 frankthwang 2026-03-01 2026-03-01
obsidian-plugin
full-stack
dev-pipeline
typescript
pattern description
请基于 dev-skill-text-block-timer.md 执行开发流水线:* 完整流水线触发
pattern description
请执行开发流水线:* 完整流水线触发(简写)
pattern description
请从 Phase * 开始执行* 从指定阶段开始
pattern description
请只执行 Phase * 单阶段执行
pattern description
返工 Phase * 返工指定阶段
required optional
name type description
requirement string 用户的一句话需求描述
name type range default description
start_phase integer
1
8
1 起始阶段编号(默认从 Phase 1 开始)
name type range default description
end_phase integer
1
8
8 结束阶段编号(默认执行到 Phase 8
name type default description
skip_phases array<integer>
需要跳过的阶段编号列表
name type range default description
only_phase integer
1
8
null 仅执行指定的单个阶段
name type default description
existing_prd file_path null 已有的 PRD 文件路径(跳过 Phase 1 时必填)
name type default description
test_chain string null Phase 8 仅运行指定的测试链名称
files completion_marker
path phase description
doc/PRD-{{feature_name}}.md 1 产品需求文档
path phase description
doc/tech-design-{{feature_name}}.md 4 技术设计文档
path phase description
doc/test-cases-{{feature_name}}.md 6 测试用例文档
path phase description
src/**/*.ts 7 功能源码
path phase description
tests/e2e-timer-test.mjs 7 E2E 测试脚本
[🎉 全流程完成]
phase name role output tools
1 PRD 撰写 资深产品经理10 年经验) doc/PRD-{{feature_name}}.md
read_file
edit_file
phase name role output tools
2 UI/UX Review 资深 UI/UX 设计师8 年经验,桌面 + 移动端) 修改后的 PRD标注 [UX-优化]
read_file
replace_in_file
phase name role output tools
3 数据表需求设计 资深数仓工程师 + 数据分析师 数据 Schema 设计(嵌入技术方案或独立输出)
read_file
phase name role output tools
4 技术方案撰写 资深前端架构师8 年 TypeScript 大型项目) doc/tech-design-{{feature_name}}.md
read_file
codebase_search
edit_file
phase name role output tools branch_logic
5 架构 Review 全球顶级首席架构师15+ 年) Review 报告 + 修复后的技术方案
read_file
codebase_search
replace_in_file
→Phase6 | ⚠️→AutoFix→Phase6 | →回退Phase4
phase name role output tools
6 测试用例编写 产品经理 + QA 测试负责人 doc/test-cases-{{feature_name}}.md
read_file
edit_file
phase name role output tools
7 编码开发 资深全栈开发TypeScript / Obsidian API / CM6 / ECharts 源码 + E2E 测试脚本
read_file
codebase_search
edit_file
replace_in_file
multi_replace
terminal
phase name role output tools branch_logic
8 测试验证 自动化测试工程师 测试报告
terminal
read_file
全通过→完成 | 失败→修复→重试(≤3轮) | 3轮失败→BLOCKED
mode total_phases allow_skip allow_jump allow_single allow_rework auto_advance
sequential_phases 8 true true true true true
项目已构建通过npm run build 无报错)
Obsidian 开发环境可用(用于 E2E 测试)
project workspace
text-block-timer d:\work_frankthwang\text-block-timer-dev.obsidian\plugins\text-block-timer
execution_protocol reference_docs test_framework
doc/dev-skill-text-block-timer.md
path description
doc/architecture.md 项目整体架构分析
path description
doc/PRD-timer-sidebar.md 已有 PRD 参考Timer Sidebar
path description
doc/tech-design-timer-sidebar.md 已有技术设计参考
tests/e2e-timer-test.mjs
command effect
暂停 暂停当前阶段,等待进一步指示
command effect
继续 从暂停处恢复执行
command effect
返工 Phase N 回退到 Phase N 重新执行
command effect
跳过 跳过当前阶段,进入下一阶段
command effect
只测 [chain] Phase 8 只运行指定的测试链

Text Block Timer 全流程开发 Skill

本文件是 Skill 入口描述文件Agent 通过此文件识别 Skill 能力、触发条件和参数定义。 详细的执行协议(角色指令、步骤、模板、检查清单)请参阅 → dev-skill-text-block-timer.md

快速调用

完整流水线

请基于 dev-skill-text-block-timer.md 执行开发流水线:[一句话需求]

从指定阶段开始

请从 Phase 4 开始执行PRD 在 doc/PRD-xxx.md

单独执行某阶段

请只执行 Phase 1需求是[...]

返工某阶段

Phase 3 的数据表设计有问题,请基于以下反馈重做:[...]

跳过阶段

请跳过 Phase 2 和 Phase 3直接从 Phase 4 开始

流水线概览

graph LR
    U["🗣️ 需求"] --> P1["Phase 1<br/>PRD"]
    P1 --> P2["Phase 2<br/>UX Review"]
    P2 --> P3["Phase 3<br/>数据设计"]
    P3 --> P4["Phase 4<br/>技术方案"]
    P4 --> P5["Phase 5<br/>架构 Review"]
    P5 -->|"✅/⚠️"| P6["Phase 6<br/>测试用例"]
    P5 -->|"❌"| P4
    P6 --> P7["Phase 7<br/>编码开发"]
    P7 --> P8["Phase 8<br/>测试验证"]
    P8 -->|"失败"| P7
    P8 -->|"✅"| DONE["🎉 完成"]