tlc-spec-lean
它能做什么
这是功能规划的精简版本:AI 撰写一份由人审阅的计划,然后把它转化为检查项,构建工作,并由独立的评审者进行验证。它跳过了详细的任务拆分。适合希望拥有快速且经过验证的功能开发流程的团队。
适用场景
- ✓当你希望用一份经过审阅的文档规划功能,而不是多份文档时。
- ✓当你希望在功能被宣布完成之前,由独立的评审者进行验证时。
- ✓当一项功能需要快速构建,而不需要冗长的任务拆分时。
技能链接
https://github.com/tech-leads-club/agent-skills/blob/main/packages/skills-catalog/skills/(development)/tlc-spec-lean/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请把新的搜索筛选功能规划成一份我可以审阅的文档,然后构建它并让它通过验证。”
每周 5 个新技能,1 分钟读完。
工作原理
AI 会撰写带有清晰标准和关键决策的计划,等待你审阅;然后把标准转化为检查项,进行构建,之后由独立的验证者核对证据。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Tech Lead's Club - Spec, Lean
Freeze the obligations. Free the plan. Prove it with someone who did not build it. Derived from tlc-spec-driven 3.3.0 (Felipe Rodrigues), tlc-plan, and tlc-implement.
┌──────┐ ┌────────┐ ┌───────┐ ┌────────┐
│ PLAN │ → │ CHECKS │ → │ BUILD │ → │ VERIFY │
└──────┘ └────────┘ └───────┘ └────────┘
read it obligations yours always
The common failure of a coding agent is a requirement that never became an active obligation, followed by a completion claim. What works against it is a small, frozen, external obligation set and a verifier that is not the author, so the budget goes there and not into choreographing the model. A human confirms what must be true and how it is being built in one document; only then does it become obligations with proofs. There is no task breakdown and no component catalogue: what is hard to reverse gets a one-way door with its literal shape, and the rest is decided while building.
Rules
These hold even if no reference file is read. Each one lives here; the references point back.
- Every check is one observable claim with a concrete value plus the proof that settles it: a test or command whose exit code decides, or, for a state a capture draws, a picture of it judged against the capture (rule 9).
- Tests assert what the checks say, not what the code happens to do. Do not write a test by reading the implementation.
- A test changes only with the claim it proves, and leaves with the code it proves, in the same commit. Changing a test to make a suite pass hides the failure it exists to show: a wrong check is a stop-and-ask.
- Checks are fixed once
validate_checks.pypasses; a check may be appended when the walk or the Verifier finds a missing obligation. In the plan,Landing,Surfaceand the stored shape are additive; the path andChanges underneathare kept true in the commit that changes them. - The Verifier is a fresh sub-agent, never the author, and it always runs, once per feature,
beside the screens sub-agent.
check_proofs.pysettles the mechanical part - every proof run and passing atHEAD, the build, the pictures, the walk - and the Verifier spends its time on judgement: it opens the test each check's proof selects and says whether that test would fail if the claim were false, then tries examples nobody named and assertions looser than their criterion. The work is done when every finding is closed by a commit andproofs.mdis green atHEAD. - A proof is the project's own test command; the skill knows no test runner. Tests that run
together go on one
Run <name>: <command>line, run once, and each check that reads it writesProof: run <name> | <the line the run prints when its test passes>, pass marker included, so a filter that selects nothing readsno test raninstead of a green exit code. A command run alone is judged by its exit code. The checks are the floor; an edge case or guard no check names is still the work. - The completion gate is a script:
validate_verification.pyexits 0. The final report opens with its last line; a red gate is said first, never left for the reader to find. - An approved spec authorizes local edits and local commits.
git push, deploy and production data changes need an explicit go-ahead for that action. - A state a capture draws is one picture. The author reaches that state and saves
<capture>.running.pngbeside the capture from a browser window at the capture's size - its pixel size over its scale: a wider window lays the page out differently, and resizing the image afterwards hides it. Nobody reopens the app to judge it: a screens sub-agent judges the file (verify-screens.md), and a picture whose text reads smaller than the capture's was resized and is retaken. It matches the capture except for what## Differences from the sourcelists. A state no capture draws, and an existing screen the feature does not change, are proven by a test or awalkproof, with no picture and no judge. - A capture, frame or live site that comes with the request binds unless the user called it
inspiration. A binding source is changed only by the user. Removing, renaming or departing
from something it draws is asked, recorded as a decision in
.specs/STATE.md, and listed in the plan's## Differences from the sourcewith `Confirmed: y - AD-NNN
常见问题
它会制作任务列表吗?
不会。它跳过详细的任务拆分,在构建过程中处理其余细节。
谁来验证工作?
由独立的验证者验证,而不是构建它的那个智能体。
它适用于独立的设计文档吗?
不适用。设计文档由其他技能处理。
详情
作者的原始描述
Spec-driven feature work that freezes obligations instead of the plan: one human-reviewed plan with EARS criteria, path, entities, interface and one-way doors, then proof-backed checks, then build, then an independent Verifier. Use when the user says "tlc-spec-lean", "plan feature", "specify feature", "write the checks", "build this plan", or "verify work". Do NOT use for standalone design documents unattached to a feature, architecture decomposition analysis, or work that already has a task list or checklist to execute.
热度
- GitHub 星标
- 7.1k
- 排名
- #13540
- 许可证
- —
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
component-common-domain-detection
7.1k帮你的智能体找出代码库中多个部分重复的业务逻辑,并建议如何合并。
component-flattening-analysis
7.1k帮你的智能体找出位置不当的代码,并整理杂乱的组件文件夹结构,让每个部分都放在应在的位置。
component-identification-sizing
7.1k帮你的智能体梳理代码库的各个组成部分并测量其规模,以找出应首先拆分的模块。
coupling-analysis
7.1k帮你的智能体检查代码库各部分之间的依赖有多紧密,并找出应优先放松的连接。