speclite-flow-gate
验证 SpecLite Story 与 Epic 的流程门控,检查 contract、functional 与 evidence anchors。用于用户要求 flow gate、story kickoff gate、epic gate、门控检查或防止 dev-story 前后锚点漂移。核心能力:执行四种 gate 模式、判定 PASS_EQUIVALENT、生成报告与交接建议。
- License 许可
- MIT
- 最近更新
- 2026-11-12
- Stars
- ★ 4
- Forks
- 0
01 前言 Front Matter
- name
- speclite-flow-gate
- metadata
- { "author": "fancyliu", "catalog": "speclite", "version": "1.1.0" }
- description
- 验证 SpecLite Story 与 Epic 的流程门控,检查 contract、functional 与 evidence anchors。用于用户要求 flow gate、story kickoff gate、epic gate、门控检查或防止 dev-story 前后锚点漂移。核心能力:执行四种 gate 模式、判定 PASS_EQUIVALENT、生成报告与交接建议。
- allowed-tools
- Read, Write, Grep, Glob, Bash
02 资源文件 7
- 资产文件assets/report-template.md1.2 KB
- 参考文档CHANGELOG.md1.1 KB
- 其他config.toml.example562 B
- 其他customize.toml266 B
- 参考文档references/regression-scenarios.md1.5 KB
- 参考文档references/workflow-details.md11.0 KB
- 参考文档SKILL.en.md3.9 KB
03 SKILL.md 正文
[Overview(技能说明)]
SpecLite 实现阶段流程门控 Skill,用于在 Story/Epic 启动或完成时检查 planning contract、实际源码实现和测试证据是否一致,避免等到 speclite-dev-story 执行中途才 HALT。
[Core Capabilities(核心能力)]
- Mode 驱动门控:支持 story-kickoff、story-completion、epic-completion、epic-kickoff 四种检查模式。
- Anchor 分类:区分 Contract Anchor、Functional Anchor、Evidence Anchor 和 Guidance Anchor,禁止把未契约化文件名当成唯一 hard gate。
- 等价实现裁决:当实现形态偏离 Story guidance 但 owning SPEC、源码路径和测试证据成立时,输出 PASS_EQUIVALENT。
- Foundation handoff 校验:在 story-kickoff 中读取项目提供的 foundation handoff source index、downstream prerequisite 与 future closure source,固化 v2 report 的 handoffContractVersion、foundationPrerequisiteStatus 与 closureOwnerCheckStatus,确保后续 Story 不引用错误 closure owner。
- 失败类型定位:用 FAIL_CONTRACT、FAIL_FUNCTION、FAIL_EVIDENCE、DECISION_NEEDED 精确说明阻断原因。
- 报告生成:把 gate report 写入 {implementation_artifacts}/flow-gates/,供 sprint-status、dev-story、CR 和 finalizer 消费。
- 流转建议:给出下一步动作,例如继续 dev-story、修订 Story、补测试证据、或先运行 Epic completion gate。
[Workflow(执行流程)]
1. 完整阅读 references/workflow-details.md;该文件是四种 gate mode、结果枚举、报告格式和 HALT 规则的权威定义。遇到等价实现或固定路径歧义时,同时读取 references/regression-scenarios.md。
2. 解析目标 mode 与目标对象:Story key、Story 文件路径、Epic 编号或下一 Epic 编号。
3. 加载 merged runtime config、sprint-status.yaml、目标 Story/Epic、owning SPECs、相关源码和测试证据。
4. 按 Contract -> Functional -> Evidence -> Guidance -> Foundation Handoff 顺序做门控判断,并生成 assets/report-template.md 规定的 v2 报告。
5. 只有 PASS 或 PASS_EQUIVALENT 允许后续 workflow 继续;其他结果必须先修正文档、实现或证据。
[Notes(注意事项)]
- 固定文件名只有在 owning SPEC 明确指定时才是 hard gate;否则必须先检查等价 functional implementation 和测试证据。
- 本 Skill 只生成 gate report,不修改源码、不推进 Story/Epic 状态、不替代 CR。
- 报告必须写入 {implementation_artifacts}/flow-gates/,文件名按 mode 和目标对象稳定生成。
- 报告开头的 YAML frontmatter 是 downstream hook、dev-story、CR 和 finalizer 的 machine-readable source;不得要求消费者解析 Markdown prose 判断 gate result、foundation prerequisite 或 closure owner;legacy v1 report 必须重新生成 v2。
- Guidance Anchor mismatch 不能直接判定 blocked;只能在确认 contract/function/evidence 缺失后输出失败。
- 中英文入口必须同步更新;新增 mode 或结果枚举时同步更新 references/workflow-details.md。
[Generation Metadata(生成信息)] 本 Skill 由 speclite-skill-creator 自动生成。如需修改,必须同步更新 SKILL.md 与 SKILL.en.md,并通过 skills-upgrade 管理版本。
04 同仓库更多 Skills
speclite-dev-story
暂无简介
speclite-code-review-01-reviewer
Fixture-owned installed skill entry for the minimal artifact loop.
speclite-skill-lint
只读检查 Skill 定义;用于 lint skill、check skill、检查技能或评估 Skill 规范。区分基础格式、Codex 适配和 SpecLite 约定,报告证据及未检查项;Agent 定义包转交 speclite-agent-lint。
speclite-skill-creator
创建或迭代 SpecLite workflow Skill;用于 create skill、新建技能、生成技能包或封装工作流。设计入口、辅助资源和验证用例;Agent 定义包转交 speclite-agent-creator。
speclite-html-ppt-generator
生成 SpecLite-owned 单文件 HTML PPT。用于用户要求创建 docs presentation、HTML PPT、网页 slides、Swiss Style deck、杂志风 deck,或其他可直接浏览器打开的介绍/分享型 deck。核心能力:使用本 Skill 内置模板、主题、layout 和 validator 生成横向翻页 HTML,并避免依赖外部个人 skill 路径。
speclite-docs-intro-ppt-creator
生成 SpecLite docs 下的介绍型 HTML PPT。用于用户要求把某个项目体系、系统设计、治理机制、理念或工作流总结成 docs presentation、HTML PPT、网页 slides、介绍 deck。核心能力:限定输出目录、基于事实材料规划叙事、调用 speclite-html-ppt-generator 生成单 HTML deck,并用确定性检查和浏览器抽样收口。