Chuyển đến nội dung
Skillpedia
Công việc và dự án7.1k · #13539

tlc-spec-driven

Skill này làm gì

Skill này để AI lên kế hoạch và xây một tính năng theo giai đoạn: đặc tả, thiết kế, chia thành tác vụ và thực thi. Nó điều chỉnh độ sâu theo công việc và hỏi mọi câu hỏi về sản phẩm trước khi đặc tả được phê duyệt. Phù hợp với lập trình viên muốn công việc tính năng cẩn thận và có thể truy vết.

Khi nào nên dùng

  • ✓Khi bạn muốn một tính năng mới được lên kế hoạch với yêu cầu có thể kiểm thử trước khi xây.
  • ✓Khi một tính năng đủ lớn để cần đặc tả, thiết kế và danh sách tác vụ.
  • ✓Khi bạn muốn mỗi yêu cầu được gắn với bài kiểm thử chứng minh nó.

Liên kết skill

https://github.com/tech-leads-club/agent-skills/blob/main/packages/skills-catalog/skills/(development)/tlc-spec-driven/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/tech-leads-club/agent-skills/blob/main/packages/skills-catalog/skills/(development)/tlc-spec-driven/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Lên kế hoạch và xây một tính năng cho phép người dùng xuất hóa đơn của họ thành CSV, với các yêu cầu có thể kiểm thử và danh sách tác vụ.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

AI viết đặc tả theo kiểu có cấu trúc và có thể kiểm thử, chỉ thêm thiết kế khi phạm vi cần, chia công việc thành các tác vụ nhỏ, rồi xây và kiểm thử từng tác vụ.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

Tech Lead's Club - Spec-Driven Development

Plan and implement features 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

Critical Rules (read before acting)

Loading this skill's files. Reference files live under references/ in this skill's own directory (where this SKILL.md resides). Resolve them relative to the skill directory, never the workspace root. When a step tells you to read a reference, read it to the end before acting.

Running this skill's scripts. Every scripts/*.py lives under that same skill directory: run python3 <skill-dir>/scripts/<name>.py ..., never python3 scripts/... from the project root. Project data under .specs/ is read and written relative to the project root (pass --root when the cwd is elsewhere). Run a script rather than read it: its messages say what to change. On Windows, where python3 may be the Microsoft Store alias, run python or py -3.

Execution contract - every task, non-negotiable (holds even if you do not open the reference files):

  1. Ask, then stop for approval. Every gray area that is the user's - scope, product behaviour, a departure from a binding source - is asked before the spec is presented; an assumption never stands in for one. Approving the spec and approving the tasks are the two stops for a human. When nobody is there to answer, end your turn with the questions. Each approval is written as **Approved**: <date> - user: "<their words>" in spec.md and tasks.md; one the user did not give is never written. Every answer goes into its file in the turn it arrives - the chat does not survive a compaction.
  2. Tests derive from the spec's acceptance criteria and assert spec-defined outcomes - they never mirror the implementation.
  3. The gate must pass before a task is done - the test runner decides, not self-assessment. One atomic commit per task, with tasks.md marked complete before it - and inside it when the repo tracks .specs/; where the repo ignores .specs/, the commit holds only the code and its tests, and never forces them in. Never batch tasks; never weaken, skip, or delete tests to make them pass.
  4. Every criterion has a check, and every check a proof. tasks.md ## Checks holds one claim per criterion with the project's own test command that selects its test - tests that run together share one **Run <name>**: line, and each check names the line its test prints (Proof: run <name> | <line>). After the LAST task, check_proofs.py runs each group and lone proof once at HEAD, one at a time, with the build; then a fresh Verifier (author ≠ verifier) runs always, never prompted - it judges whether each check's test would fail if the claim were false, tries examples nobody named, and finds assertions looser than their criterion. Done means every finding is closed by a commit and validate_verification.py exits 0.
  5. A screen is held to its design. A capture that comes with the request binds unless the user called it inspiration; its criterion cites the capture file. Each state a capture draws is saved as captures/<capture>.running.png from a browser window at the capture's size - an image resized afterwards shows another layout - and a fresh screens sub-agent retakes and judges it (verify-screens.md).
  6. Where rules run. Every rule that changes what a user sees - including filtering, searching, sorting and counting - runs in a layer the repo's tests reach.
  7. Blast radius: approving a spec or tasks authorizes local implementation and local commits only. git push, force-push, deploy, production DB changes, and other remote or destructive operations need an explicit go-ahead for that action.

Deterministic gates run before human review - not from memory. A non-zero exit means STOP and fix:

When Command
Before presenting the spec validate_spec.py <feature> - EARS criteria, filled assumptions, requirement IDs, and with captures: binding or quoted, cited, shown, departures approved
Before presenting the tasks validate_tasks.py <feature> - granularity, dependencies, Tests and Gate per task, ## Checks with a proof e
Câu hỏi thường gặp

Mọi tính năng có cần đủ bốn giai đoạn không?

Không. AI bỏ qua các giai đoạn mà phạm vi không cần.

Nó có hỏi trước khi viết không?

Có. Nó hỏi mọi quyết định sản phẩm trước khi đặc tả được phê duyệt.

Yêu cầu được viết thế nào?

Theo kiểu có cấu trúc và có thể kiểm thử, với một kiểm tra cho mỗi yêu cầu.

Chi tiết

Mô tả gốc của tác giả

Feature planning and implementation with 4 adaptive phases (Specify, Design, Tasks, Execute). Auto-sizes depth by complexity. Asks every product decision before the spec is approved, writes testable requirements in EARS notation, atomic tasks with a gate and a commit each, and one check per criterion with the test that proves it. Captures that come with the request bind, and each screen is judged against them. Ships deterministic Python scripts so the gates are enforced by code, not memory; the project's own tests run once at the end, and an independent Verifier (author != verifier) judges eac

repo: tech-leads-club/agent-skills

Độ phổ biến

Sao GitHub
7.1k
Vị trí xếp hạng
#13539
Giấy phép
—
Cập nhật
2/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự