speclite-flow-gate

speclite-flow-gate is a skill for Claude Code from flanliulf/SpecLite. It costs 81 tokens per session (883 once invoked), scanned A, original, MIT.

A workflow gate that checks whether a planned software story or larger epic matches its contract, implementation, and test evidence.

In plain words
What is it for?
Use it when starting or finishing a story or epic to produce a pass, equivalent pass, failure reason, or next-step recommendation.
Why use it?
It catches missing requirements, incorrect behavior, and unsupported completion claims before development or handoff continues.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it when starting or finishing a story or epic to produce a pass, equivalent pass, failure reason, or next-step recommendation.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/flanliulf/speclite/speclite-flow-gate
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add flanliulf/SpecLite --skill speclite-flow-gate
Clone the repo
git clone --depth 1 https://github.com/flanliulf/SpecLite

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for speclite-flow-gate

README.md
[![agentmods](https://agentmods.dev/badge/skills/flanliulf/speclite/speclite-flow-gate/github.svg)](https://agentmods.dev/skills/flanliulf/speclite/speclite-flow-gate)
Your own site
<a href="https://agentmods.dev/skills/flanliulf/speclite/speclite-flow-gate"><img src="https://agentmods.dev/badge/skills/flanliulf/speclite/speclite-flow-gate/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for speclite-flow-gate

Your own site · 80×15
<a href="https://agentmods.dev/skills/flanliulf/speclite/speclite-flow-gate"><img src="https://agentmods.dev/badge/skills/flanliulf/speclite/speclite-flow-gate.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 81 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 883 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00081 $0.00883
Opus 5 $0.00041 $0.00441
Sonnet 5 $0.00016 $0.00177
Haiku 4.5 $0.00008 $0.00088

Measured 8d ago against content hash f532dcfb1017, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

speclite-flow-gate scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

assets/source/speclite/sdlc-skills/4-implementation/speclite-flow-gate/SKILL.md · 39 lines

What it actually says

[Overview(技能说明)] SpecLite 实现阶段流程门控 Skill,用于在 Story/Epic 启动或完成时检查 planning contract、实际源码实现和测试证据是否一致,避免等到 speclite-dev-story 执行中途才 HALT。

[Core Capabilities(核心能力)] - Mode 驱动门控:支持 story-kickoffstory-completionepic-completionepic-kickoff 四种检查模式。 - Anchor 分类:区分 Contract AnchorFunctional AnchorEvidence AnchorGuidance Anchor,禁止把未契约化文件名当成唯一 hard gate。 - 等价实现裁决:当实现形态偏离 Story guidance 但 owning SPEC、源码路径和测试证据成立时,输出 PASS_EQUIVALENT。 - 失败类型定位:用 FAIL_CONTRACTFAIL_FUNCTIONFAIL_EVIDENCEDECISION_NEEDED 精确说明阻断原因。 - 报告生成:把 gate report 写入 {implementation_artifacts}/flow-gates/,供 sprint-statusdev-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 顺序做门控判断,并生成 assets/report-template.md 规定的报告。 5. 只有 PASSPASS_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。 - 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 管理版本。

Files

What ships with it

7 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 39 lines · 81 tokens per session scan A f532dcfb1017

Subscribe to this mod's changes

speclite-flow-gate is a skill published in the GitHub repository flanliulf/SpecLite (4 stars, last pushed 2mo ago), licensed MIT. It adds 81 tokens to every session and 883 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.