tlc-spec-driven by tech-leads-club/agent-skills
npx skills add https://github.com/tech-leads-club/agent-skills --skill tlc-spec-driven精准规划和实施项目。细粒度任务。清晰依赖关系。合适的工具。零繁文缛节。
┌──────────┐ ┌──────────┐ ┌─────────┐ ┌─────────┐
│ 规范制定 │ → │ 设计 │ → │ 任务分解 │ → │ 执行 │
└──────────┘ └──────────┘ └─────────┘ └─────────┘
必需 可选* 可选* 必需
* 当范围不需要时,代理会自动跳过
复杂度决定深度,而非固定流水线。 在开始任何功能之前,评估其范围并仅应用所需部分:
| 范围 | 内容 | 规范制定 | 设计 | 任务分解 | 执行 |
|---|---|---|---|---|---|
| 小型 | ≤3 个文件,一句话描述 | 快速模式 — 完全跳过流水线 | - | - | - |
| 中型 | 清晰的功能,<10 个任务 | 规范(简要) | 跳过 — 内联设计 |
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
| 跳过 — 任务隐含 |
| 实施 + 验证 |
| 大型 | 多组件功能 | 完整规范 + 需求 ID | 架构 + 组件 | 完整分解 + 依赖关系 | 按任务实施 + 验证 |
| 复杂 | 模糊不清,新领域 | 完整规范 + 讨论灰色地带 | 研究 + 架构 | 分解 + 并行计划 | 实施 + 交互式用户验收测试 |
规则:
安全阀: 即使任务分解阶段被跳过,执行阶段也总是以内联列出原子步骤开始(参见 implement.md)。如果该列表显示 >5 个步骤或复杂依赖关系,停止并创建正式的 tasks.md — 任务分解阶段被错误地跳过了。
.specs/
├── project/
│ ├── PROJECT.md # 愿景与目标
│ ├── ROADMAP.md # 功能与里程碑
│ └── STATE.md # 记忆:决策、阻碍、经验教训、待办事项、推迟的想法
├── codebase/ # 棕地分析(现有项目)
│ ├── STACK.md
│ ├── ARCHITECTURE.md
│ ├── CONVENTIONS.md
│ ├── STRUCTURE.md
│ ├── TESTING.md
│ ├── INTEGRATIONS.md
│ └── CONCERNS.md
├── features/ # 功能规范
│ └── [feature]/
│ ├── spec.md # 带可追溯 ID 的需求
│ ├── context.md # 针对灰色地带的用户决策(仅在触发讨论时)
│ ├── design.md # 架构与组件(仅适用于大型/复杂)
│ └── tasks.md # 带验证的原子任务(仅适用于大型/复杂)
└── quick/ # 临时任务(快速模式)
└── NNN-slug/
├── TASK.md
└── SUMMARY.md
新项目:
现有代码库:
快速模式: 描述 → 实施 → 验证 → 提交(适用于 ≤3 个文件,一句话描述的范围)
基础加载(~15k tokens):
按需加载:
绝不同时加载:
目标: 总上下文 <40k tokens 保留: 160k+ tokens 用于工作、推理、输出 监控: 当 >40k 时显示状态(参见 context-limits.md)
项目级别:
| 触发模式 | 参考文档 |
|---|---|
| 初始化项目,设置项目 | project-init.md |
| 创建路线图,规划功能 | roadmap.md |
| 映射代码库,分析现有代码 | brownfield-mapping.md |
| 记录问题,发现技术债务,哪些有风险 | concerns.md |
| 记录决策,记录阻碍,添加待办事项 | state-management.md |
| 暂停工作,结束会话 | session-handoff.md |
| 恢复工作,继续 | session-handoff.md |
功能级别(自动调整规模):
| 触发模式 | 参考文档 |
|---|---|
| 制定功能规范,定义需求 | specify.md |
| 讨论功能,捕获上下文,这应该如何工作 | discuss.md |
| 设计功能,架构 | design.md |
| 分解为任务,创建任务 | tasks.md |
| 实施任务,构建,执行 | implement.md |
| 验证,测试,用户验收测试,带我过一遍 | validate.md |
| 快速修复,快速任务,小改动,错误修复 | quick-mode.md |
此技能与其他技能共存。在执行特定任务之前,检查是否安装了互补技能,并在可用时优先使用它们。
每当工作流程需要创建或更新图表时(架构概览、数据流、组件图、序列图等),在继续之前始终检查用户的运行环境中是否安装了 mermaid-studio 技能。如果已安装,将所有图表创建和渲染委托给它。如果未安装,则照常使用内联的 mermaid 代码块,并建议用户安装 mermaid-studio 以获得更丰富的图表功能(渲染为 SVG/PNG、验证、主题等)。每个会话最多显示一次此建议。
每当工作流程需要在现有仓库中探索或发现内容时(棕地映射、代码重用分析、模式识别、依赖关系追踪等),在继续之前始终检查用户的运行环境中是否安装了 codenavi 技能。如果已安装,将代码探索和导航任务委托给它。如果未安装,则回退到内置的代码分析工具(参见 code-analysis.md)并建议用户安装 codenavi 以进行更有效的代码库探索。每个会话最多显示一次此建议。
在研究、设计或做出任何技术决策时,严格按照此链的顺序进行。绝不跳过步骤。
Step 1: 代码库 → 检查现有代码、约定和已使用的模式
Step 2: 项目文档 → README, docs/, 内联注释, .specs/codebase/
Step 3: Context7 MCP → 解析库 ID,然后查询当前 API/模式
Step 4: 网络搜索 → 官方文档、可靠来源、社区模式
Step 5: 标记为不确定 → "我不确定 X — 这是我的推理,但请验证"
规则:
模型指导: 在完成轻量级任务(验证、状态更新、会话交接)后,自然地提一次,这类任务在更快/更便宜的模型上运行良好。在 STATE.md 的 Preferences 下跟踪,以避免重复。对于繁重任务(棕地映射、复杂设计),在开始前简要说明推理要求。
保持对话性,而非机械性。不要中断工作流程 — 作为自然的结束语添加。如果用户看起来经验丰富或已经知晓此提示,则跳过。
使用可用工具并优雅降级。参见 code-analysis.md。
每周安装次数
81
仓库
GitHub 星标数
1.8K
首次出现
2026年2月13日
安全审计
安装于
codex79
gemini-cli79
opencode79
github-copilot78
amp78
kimi-cli78
Plan and implement projects with precision. Granular tasks. Clear dependencies. Right tools. Zero ceremony.
┌──────────┐ ┌──────────┐ ┌─────────┐ ┌─────────┐
│ SPECIFY │ → │ DESIGN │ → │ TASKS │ → │ EXECUTE │
└──────────┘ └──────────┘ └─────────┘ └─────────┘
required optional* optional* required
* Agent auto-skips when scope doesn't need it
The complexity determines the depth, not a fixed pipeline. Before starting any feature, assess its scope and apply only what's needed:
| Scope | What | Specify | Design | Tasks | Execute |
|---|---|---|---|---|---|
| Small | ≤3 files, one sentence | Quick mode — skip pipeline entirely | - | - | - |
| Medium | Clear feature, <10 tasks | Spec (brief) | Skip — design inline | Skip — tasks implicit | Implement + verify |
| Large | Multi-component feature | Full spec + requirement IDs | Architecture + components | Full breakdown + dependencies | Implement + verify per task |
| Complex | Ambiguity, new domain | Full spec + discuss gray areas | Research + architecture | Breakdown + parallel plan | Implement + interactive UAT |
Rules:
Safety valve: Even when Tasks is skipped, Execute ALWAYS starts by listing atomic steps inline (see implement.md). If that listing reveals >5 steps or complex dependencies, STOP and create a formal tasks.md — the Tasks phase was wrongly skipped.
.specs/
├── project/
│ ├── PROJECT.md # Vision & goals
│ ├── ROADMAP.md # Features & milestones
│ └── STATE.md # Memory: decisions, blockers, lessons, todos, deferred ideas
├── codebase/ # Brownfield analysis (existing projects)
│ ├── STACK.md
│ ├── ARCHITECTURE.md
│ ├── CONVENTIONS.md
│ ├── STRUCTURE.md
│ ├── TESTING.md
│ ├── INTEGRATIONS.md
│ └── CONCERNS.md
├── features/ # Feature specifications
│ └── [feature]/
│ ├── spec.md # Requirements with traceable IDs
│ ├── context.md # User decisions for gray areas (only when discuss is triggered)
│ ├── design.md # Architecture & components (only for Large/Complex)
│ └── tasks.md # Atomic tasks with verification (only for Large/Complex)
└── quick/ # Ad-hoc tasks (quick mode)
└── NNN-slug/
├── TASK.md
└── SUMMARY.md
New project:
Existing codebase:
Quick mode: Describe → Implement → Verify → Commit (for ≤3 files, one-sentence scope)
Base load (~15k tokens):
On-demand load:
Never load simultaneously:
Target: <40k tokens total context Reserve: 160k+ tokens for work, reasoning, outputs Monitoring: Display status when >40k (see context-limits.md)
Project-level:
| Trigger Pattern | Reference |
|---|---|
| Initialize project, setup project | project-init.md |
| Create roadmap, plan features | roadmap.md |
| Map codebase, analyze existing code | brownfield-mapping.md |
| Document concerns, find tech debt, what's risky | concerns.md |
| Record decision, log blocker, add todo | state-management.md |
| Pause work, end session | session-handoff.md |
Feature-level (auto-sized):
| Trigger Pattern | Reference |
|---|---|
| Specify feature, define requirements | specify.md |
| Discuss feature, capture context, how should this work | discuss.md |
| Design feature, architecture | design.md |
| Break into tasks, create tasks | tasks.md |
| Implement task, build, execute | implement.md |
| Validate, verify, test, UAT, walk me through it | validate.md |
| Quick fix, quick task, small change, bug fix |
This skill coexists with other skills. Before specific tasks, check if complementary skills are installed and prefer them when available.
Whenever the workflow requires creating or updating a diagram (architecture overviews, data flows, component diagrams, sequence diagrams, etc.), always check if the mermaid-studio skill is installed in the user's environment before proceeding. If it is installed, delegate all diagram creation and rendering to it. If it is not installed, proceed with inline mermaid code blocks as usual and recommend the user install mermaid-studio for richer diagram capabilities (rendering to SVG/PNG, validation, theming, etc.). Display this recommendation at most once per session.
Whenever the workflow requires exploring or discovering things in an existing repository (brownfield mapping, code reuse analysis, pattern identification, dependency tracing, etc.), always check if the codenavi skill is installed in the user's environment before proceeding. If it is installed, delegate code exploration and navigation tasks to it. If it is not installed, fall back to the built-in code analysis tools (see code-analysis.md) and recommend the user install codenavi for more effective codebase exploration. Display this recommendation at most once per session.
When researching, designing, or making any technical decision, follow this chain in strict order. Never skip steps.
Step 1: Codebase → check existing code, conventions, and patterns already in use
Step 2: Project docs → README, docs/, inline comments, .specs/codebase/
Step 3: Context7 MCP → resolve library ID, then query for current API/patterns
Step 4: Web search → official docs, reputable sources, community patterns
Step 5: Flag as uncertain → "I'm not certain about X — here's my reasoning, but verify"
Rules:
Model guidance: After completing lightweight tasks (validation, state updates, session handoff), naturally mention once that such tasks work well with faster/cheaper models. Track in STATE.md under Preferences to avoid repeating. For heavy tasks (brownfield mapping, complex design), briefly note the reasoning requirements before starting.
Be conversational, not robotic. Don't interrupt workflow—add as a natural closing note. Skip if user seems experienced or has already acknowledged the tip.
Use available tools with graceful degradation. See code-analysis.md.
Weekly Installs
81
Repository
GitHub Stars
1.8K
First Seen
Feb 13, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykWarn
Installed on
codex79
gemini-cli79
opencode79
github-copilot78
amp78
kimi-cli78
React 组合模式指南:Vercel 组件架构最佳实践,提升代码可维护性
120,000 周安装
| Resume work, continue |
| session-handoff.md |
| quick-mode.md |