Tech Lead's Club - Spec-Driven Development

Development

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 each check's test. Use when (1) planning features, (2) implementing with verification and atomic commits, (3) validating an implementation against a spec. Triggers on "specify feature", "discuss feature", "design", "tasks", "implement", "validate", "verify work", "UAT", "record decision", "pause work", "resume work". Do NOT use for pure architecture decomposition analysis or standalone technical design documents.

npx @tech-leads-club/agent-skills install --skill tlc-spec-driven

Why teams use it

Coding agents tend to fail in two quiet ways: they fill product gaps with guesses, and they report "done" because their own tests pass. tlc-spec-driven addresses both with files and exit codes rather than reminders. Each feature lives under .specs/features/<name>/, and the agent moves forward only when a gate script exits 0. validate_spec.py runs before you see the spec, validate_tasks.py before you see the tasks, check_commit.py before each commit, and validate_verification.py before the feature counts as finished. The scripts use only the Python standard library, so they work the same in any stack.

The other distinctive piece is the split between who builds and who judges. After the last task, check_proofs.py runs each check's test with the project's own test command at HEAD and records the output in proofs.md. Then a fresh sub-agent that never saw the author's reasoning asks of each test: would it still pass if the requirement were false? When the request comes with a design capture, a second sub-agent retakes the screen at the capture's size and compares them item by item.

Depth scales with the work. A three-file change gets a one-line spec and no task list. A multi-component feature gets a design doc, a coverage matrix built from the repo's test config, and optional batch workers. The benchmark page measured the v3 line ("TLC 3.*") with Opus 4.8 planning and Sonnet 4.6 implementing: a 0.94 mean across three runs, a 0.93–0.95 range, and 0.90 test completeness. The current release is 4.1.0, so those numbers describe an earlier version.

How a session goes

Specify feature: when a member's card charge fails, suspend their paid access and show them why on the billing page. Mockup attached.

  1. The agent sizes the request as small, medium, large or complex. The size decides whether Design and Tasks run at all.
  2. It loads confirmed lessons (lessons.py list --status confirmed), reads the decisions log in .specs/STATE.md, and briefly scans the code involved.
  3. It asks about product decisions and goes through nine implicit-requirement areas, such as idempotency, auth and data expiry. Each area becomes a requirement or an "N/A because...". Answers to open questions go into context.md.
  4. It saves the mockup to captures/ as binding and writes spec.md with EARS criteria, requirement IDs and an assumptions table. It runs validate_spec.py, then stops for your approval. Your reply is written into the file in your own words.
  5. For large or complex work, it writes design.md and adds hard-to-reverse choices to STATE.md as AD-NNN entries.
  6. It writes tasks.md with one deliverable per task, gate commands, and a ## Checks list that gives each criterion one proof. It runs validate_tasks.py and stops for approval again.
  7. Execute starts with validate_tasks.py --execute, which confirms both approvals and runs the build once. A build that is already red stops the agent before any change. Above about eight tasks, it offers sub-agent batches and waits for your answer.
  8. For each task, it writes tests from the spec, runs the gate, marks the task done, checks the commit message with check_commit.py, and commits once.
  9. At the end, it walks the screens and saves the screenshots, runs check_proofs.py, and dispatches both reviewers. It fixes findings in one pass, runs a second round, and clears validate_verification.py. Then it records lessons with lessons.py add. Pushing or deploying needs a separate yes from you.

What's in the folder

  • references/specify.md, discuss.md: the spec template, EARS patterns, the implicit-requirement table, the closure gate, capture rules, and the context.md template.
  • references/design.md, tasks.md: the design template with its risks table, plus the coverage matrix, gate tiers and proof syntax used for tasks.
  • references/implement.md, coding-principles.md: the per-task cycle, rules against weakening tests, the setup for a commit-msg hook, and the voice rules for generated documents.
  • references/validate.md, verify-screens.md, sub-agents.md: the Verifier's brief, how the screen inventory works, batch packing with worked examples, and a model tier for each role.
  • references/memory.md, lessons.md: the STATE.md format, how a pause and resume are checked against git, and the lesson signal types.
  • scripts/validate_spec.py, validate_tasks.py, validate_verification.py: the structural gates. Exit code 1 blocks the next step.
  • scripts/check_proofs.py: runs the proofs one at a time with no timeout and writes proofs.md. On Windows it runs them in Git Bash.
  • scripts/check_commit.py: checks Conventional Commits format and can also run as a git hook.
  • scripts/lessons.py: promotes a lesson after it recurs in two features and prunes candidates older than 45 days.
  • scripts/lean_config.py: shared parsing that reads both the spec.md/tasks.md and the plan.md/checks.md file layouts.
  • scripts/selftest.py + fixtures/: breaks a worked billing example on purpose and requires every gate to catch each break.

Choosing between similar skills

  • tlc-spec-lean: one reviewed plan, vertical slices, one fresh review and one fix pass, with no per-task gates and no lessons store. Pick it for clear features. Pick this skill when you want atomic tasks and a gate on every phase.
  • tlc-plan + tlc-implement: the same ideas split across two skills. They fit when one person plans and another builds, or when a plan.md already exists. Pick this skill to keep the whole flow in one place.
  • technical-design-doc-creator: pick it when the design document itself is what you need. Here, design.md exists only to feed the tasks.

Works well with

  • tlc-discover comes first while a project is still vague. Its description sends clear features here.
  • spec-driven-eval comes after. It grades an implementation against the PRD and names this skill as the builder.
  • the-judge reviews the PR. The AI Dev Flow page places review after the build.

Recent changes

  • 2026-11-02 (catalog 0.17.19): the design template now sits inside one markdown fence.
  • 2026-10-31 (4.1.0): --execute runs the build before any change. check_commit.py prints the next step. Test runners that exit 0 on an empty filter now need a run proof.
  • 2026-10-30: proofs use the project's own test commands. The mutation scripts were removed, and the Verifier now judges each test in a ## Checks table. Windows support was also fixed.
  • 2026-10-25 (4.0.0): every product decision is asked before the spec, attached designs bind, and each criterion has a check. Approvals and dispatches are written to files so they survive context compaction.
  • 2026-06-25 (3.0.0, breaking): the flow was rebuilt around an independent verifier and a lessons layer. The megabrain alias and Quick mode were removed.

What Tech Lead's Club - Spec-Driven Development does

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 each check's test.

When to use it

  • (1) planning features
  • (2) implementing with verification and atomic commits
  • (3) validating an implementation against a spec. Triggers on "specify feature"
  • "discuss feature"
  • "design"
  • "tasks"
  • "implement"
  • "validate"
  • "verify work"
  • "UAT"
  • "record decision"
  • "pause work"
  • "resume work"

When not to use it

  • pure architecture decomposition analysis or standalone technical design documents

Install it for your agent

The command copies the skill folder into the agent's skills directory in your project. All 19 supported agents

  • Claude Code.claude/skills/tlc-spec-driven/
    npx @tech-leads-club/agent-skills install --skill tlc-spec-driven --agent claude-code
  • Cursor.cursor/skills/tlc-spec-driven/
    npx @tech-leads-club/agent-skills install --skill tlc-spec-driven --agent cursor
  • GitHub Copilot.github/skills/tlc-spec-driven/
    npx @tech-leads-club/agent-skills install --skill tlc-spec-driven --agent github-copilot
  • Windsurf.windsurf/skills/tlc-spec-driven/
    npx @tech-leads-club/agent-skills install --skill tlc-spec-driven --agent windsurf
  • Cline.cline/skills/tlc-spec-driven/
    npx @tech-leads-club/agent-skills install --skill tlc-spec-driven --agent cline

What's in the folder

24 files installed into tlc-spec-driven/

Instructions

  • SKILL.md

Scripts the agent runs

  • scripts/check_commit.py
  • scripts/check_proofs.py
  • scripts/fixtures/checks.md
  • scripts/fixtures/plan.md
  • scripts/fixtures/proofs.md
  • scripts/fixtures/verification.md
  • scripts/lean_config.py
  • scripts/lessons.py
  • scripts/selftest.py
  • scripts/validate_spec.py
  • scripts/validate_tasks.py
  • scripts/validate_verification.py

References loaded on demand

  • references/coding-principles.md
  • references/design.md
  • references/discuss.md
  • references/implement.md
  • references/lessons.md
  • references/memory.md
  • references/specify.md
  • references/sub-agents.md
  • references/tasks.md
  • references/validate.md
  • references/verify-screens.md
Full SKILL.md instructions

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:

WhenCommand
Before presenting the specvalidate_spec.py <feature> - EARS criteria, filled assumptions, requirement IDs, and with captures: binding or quoted, cited, shown, departures approved
Before presenting the tasksvalidate_tasks.py <feature> - granularity, dependencies, Tests and Gate per task, ## Checks with a proof each, **Build**:, a Run line and an expected line for each run proof
Before the first taskvalidate_tasks.py <feature> --execute - the same checks, the spec and tasks each approved in the user's words, and the **Build**: line run once: red before any change stops
Before each commitcheck_commit.py --message "<msg>" - it also prints what follows the last task
After the last task, and after the fixcheck_proofs.py <feature> - writes proofs.md
Before declaring the feature donevalidate_verification.py <feature> - proofs green at HEAD, clean tree, a ## Checks row judging each check, findings closed, pictures judged in round 1 or 2, walk logged, both approvals written
After editing a script or a templateselftest.py

Skip a script only when no code-execution tool is available; then perform the same checks by reading the artifact.

Before Execute: read implement.md completely and run validate_tasks.py <feature> --execute, which also requires both approvals in the user's words; if a formal tasks.md packs into more than one task-budgeted batch (> ~8 tasks), present the sub-agent offer first (see Sub-Agent Delegation).

Auto-Sizing: The Core Principle

The complexity determines the depth, not a fixed pipeline. Before starting any feature, assess its scope and apply only what's needed:

ScopeWhatSpecifyDesignTasksExecute
Small≤3 files, one sentenceOne-liner spec (inline)SkipSkipImplement + verify inline
MediumClear feature, <10 tasksSpec (brief)Skip - design inlineSkip - tasks implicitImplement + verify
LargeMulti-component featureFull spec + requirement IDsArchitecture + componentsFull breakdown + dependenciesImplement + verify per task
ComplexAmbiguity, new domainFull spec + discuss gray areasResearch + architectureBreakdown + phase planImplement + interactive UAT

Rules:

  • Specify and Execute are always required - you always need to know WHAT and DO it
  • Design is skipped when the change is straightforward (no architectural decisions, no new patterns)
  • Tasks is skipped when there are ≤3 obvious steps (they become implicit in Execute); the checks then go in a ## Checks section at the end of spec.md
  • Discuss is triggered within Specify when the agent detects gray areas that need user input, or when the feature has any implicit-requirement dimension present (persistence/state, external calls, auth, payments, concurrency, state transitions)
  • Interactive UAT is triggered within Execute only for user-facing features with complex behavior

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 Structure

.specs/
├── STATE.md            # Project memory: Decisions log (AD-NNN) + Handoff snapshot
├── LESSONS.md          # Self-improving lessons playbook (rendered by scripts/lessons.py - do not hand-edit)
├── lessons.json        # Canonical lessons state (machine-owned)
└── features/
    └── [feature]/
        ├── spec.md          # Requirements with traceable IDs, Differences from the source, Sources
        ├── captures/        # binding design files, and <capture>.running.png pictures
        ├── context.md       # User decisions for gray areas (only when discuss is triggered)
        ├── design.md        # Architecture & components (only for Large/Complex)
        ├── tasks.md         # Atomic tasks, ## Checks with a proof each, ## Handoff
        ├── proofs.md        # written by check_proofs.py: every proof at HEAD, and each run's output
        ├── screens.md       # the screens sub-agent's inventory and verdict, per picture
        └── verification.md  # the Verifier's judgement of each check, and its findings closed by commits

Create artifacts lazily. Write each file only when its phase produces content - never scaffold empty context.md, design.md, or tasks.md up front. Absence is the correct state for a skipped phase.

Workflow

New feature:

  1. Specify → (Design) → (Tasks) → Execute (depth auto-sized)

Resume work - a new session, or after a compaction:

  1. Re-read this file, then the reference for the phase the files show. A summary keeps the task, not these rules.
  2. Read .specs/STATE.md Decisions and the feature's files - spec.md and tasks.md (their **Approved**: lines, marks and ## Handoff), proofs.md, verification.md, screens.md - and reconcile them against git: evidence wins over a note. Where each file puts you: memory.md.
  3. After a compaction in the middle of a run, continue when the files and git agree; stop only on a conflict. In a new session, propose the reconciled next step before writing code.

Context Loading Strategy

Load only what the current step needs:

  • .specs/STATE.md - Decisions section (read at Specify and Design, re-read on resume); Handoff section (read on resume only)
  • confirmed lessons - load at Specify and Design via python3 <skill-dir>/scripts/lessons.py list --status confirmed (lessons.md); confirmed only, never candidates
  • spec.md, context.md, design.md, tasks.md - when the step works from them

Never load several feature specs or several architecture docs at once.

Sub-Agent Delegation

Trigger: count total tasks. If the feature packs into more than one task-budgeted batch (> ~8 tasks) → offer sub-agents; if it fits a single batch (≤ ~8 tasks) → execute inline.

Offer-then-confirm - never auto-spawn. The user must accept before any batch worker is dispatched.

One worker per task-budgeted batch (~7 tasks, whole phases): Phases stay the semantic/dependency unit; a batch is the execution unit - one or more consecutive whole phases packed to ~7 tasks. Walk phases in order, accumulate whole phases into the current batch until it reaches the budget, then start the next - never split a phase across workers. Each worker executes all its tasks in order (implement → gate → atomic commit), then reports a compact summary (tasks done, commit hashes, test counts, deviations). Batches run sequentially. Workers never spawn further sub-agents.

Verifier and screens sub-agent (always-on, never prompted): after the final task, the orchestrator runs check_proofs.py, then dispatches both in parallel over the same HEAD - the Verifier with validate.md, the screens sub-agent with verify-screens.md when a criterion cites a capture. Each dispatch - batch workers included - is written on the **Dispatched:** line of tasks.md ## Handoff before it is sent, so a compacted orchestrator waits instead of sending a second. Every finding is fixed in one pass; round 2 is check_proofs.py again and the screens sub-agent on the rows that differed, with **Round**: 2 in screens.md. No second Verifier and no third round; what still fails goes to the user. Then the gate, then lessons (lessons.md).

Model tier per role (only if the harness supports choosing a model per sub-agent): mechanical batches on a faster tier, core-domain batches and Design on a high-reasoning tier, the Verifier mid-to-high. Rubric in sub-agents.md.

Standalone fallback: without sub-agents, run validate.md and verify-screens.md each in a new session after the final commit and write self-verified in the report; the gate warns.

Commands

Feature-level (auto-sized):

Trigger PatternReference
Specify feature, define requirementsspecify.md
Discuss feature, capture context, how should this workdiscuss.md
Design feature, architecturedesign.md
Break into tasks, create taskstasks.md
Implement task, build, executeimplement.md
Validate, verify, test, UAT, walk me through itvalidate.md
Judge the screens against the designverify-screens.md

Memory:

Trigger PatternReference
Record decision, this is a project-level decisionmemory.md
Pause work, end session, I need to stopmemory.md
Resume work, continue, pick up where we left offmemory.md
Load lessons, what have we learned, apply past lessonslessons.md
Record lesson, distill lessons (runs after the gate)lessons.md

Knowledge

Facts you look up, decisions you ask. Look in the codebase and its conventions first, then the project docs and .specs/STATE.md, then library documentation, then the web. Never invent an API, a pattern or a behaviour: "I could not find documentation for this" beats a plausible fabrication, and anything you could not confirm is said to be uncertain.

Requires

NeedsForWithout it
Python 3.8+ (standard library only)every scriptthe gates do not run; the phases still apply
gitcheck_proofs.py (HEAD, clean tree)no HEAD check: say so in the report
Git for Windows (on Windows)check_proofs.py runs proofs in its bash, because proofs are POSIX shellproofs run in cmd.exe and the script warns
sub-agentsbatch workers, the Verifier and the screens sub-agentrun inline; verify in a new session and write self-verified
a model that reads imagesbinding captures and the screens sub-agentask the user to describe each state; hand the pictures to the user
a browser the agent can drivethe walk and the pictureshand the steps to the user

Test runners: none is built in. check_proofs.py runs the commands tasks.md names as the project runs them, one at a time, with no timeout; a run's own parallelism is whatever the project configured (tasks.md).

Output Behavior

Do the work; do not narrate the machinery. Produce the right artifact for the phase instead of announcing the phase. The user judges the output.

Write generated artifacts in a plain, decided voice. Specs, decisions, reports, commit messages and chat summaries follow the writing rules in coding-principles.md: lead with the verdict, state decisions definitively, cut filler and hedging. Section headings stay in English; prose follows the project; identifiers are never translated.

  • Your pathfinder for navigating unknown codebases. Investigates with precision, implements surgically, and never assumes — if it doesn't know, it says so. Maintains a .notebook/ knowledge base that grows across sessions, turning every discovery into lasting intelligence. Summons available skills, MCPs, and docs when the mission demands.

  • Behavioral guidelines to reduce common LLM coding mistakes.

  • Expert in Confluence operations using Atlassian MCP.

  • Write, review, and edit documentation files with consistent structure, tone, and technical accuracy.

  • Evaluate a repo agent harness (AGENTS.md, rules, skills, skill refs) for broken paths/commands, redundant instructions, and usefulness using a stack-agnostic dual-judge protocol with planted traps. HIGH PRIORITY questionnaires at top: Q1 optional docs, Q2 B/C budget before Track A (certainty/tokens). A always runs after Q2; B/C opt-in. ADRs/RFCs excluded from T2. Mixed apply uses 11-mixed-apply.md (KEEP/CUT).

  • Manage Jira issues via Atlassian MCP — search, create, update, transition status, and handle sprint tasks. Auto-detects workspace configuration.