AI-DRIVEN PDLC Β· 2026
Your PDLC was built for humans. Now agents do the work.
tGD wraps your product development lifecycle in the gates your team already trusts β spec before code, tests before claims, human sign-off before release.
THE PROBLEM
The agent claims success β but the tests never ran. No evidence, no proof, no accountability.
It writes a novel before it has understood a single file of your codebase.
No spec, no plan, no tests. It ships garbage and moves on to the next prompt.
THE SOLUTION
A seven-stage pipeline that forces agents to read before writing, spec before coding, and test before claiming done β with a human sign-off at every gate.
Open source Β· Apache 2.0 Β· plain Markdown skills β no server, no telemetry, your code never leaves your tools.
HOW IT WORKS
HUMAN GATES
Every stage produces an artifact with a sign-off section. The next stage will not start until the right person checks the box.
Owns direction and acceptance.
Signs PRD.md and the final Release.
Approves direction in DESIGN.md and built-UI conformance in REVIEW.md.
Owns code quality.
Signs TASKS.md, the code, and REVIEW.md.
Owns test quality and coverage.
Signs TEST-REPORT.md and REVIEW.md.
PRD.md β - [x] PM β
DESIGN.md β - [x] DESIGN direction β (UI)
TASKS.md β - [x] DEV β
TEST-REPORT.md β - [x] QA β (regression 100%)
REVIEW.md β - [x] QA + DEV β
β - [x] DESIGN implementation β (UI)
One person can hold multiple roles β git is the only coordination tool.
COMMANDS 1β3 Β· DEFINE THE WORK
Scans your codebase β tech stack, architecture, patterns β and builds an offline knowledge graph.
Interviews for intent, writes the PRD, routes UI to 0/2/3 prototypes, gets direction approval, then finalizes the technical spec.
Reads CONTEXT + PRD + approved DESIGN (UI) + SPEC and decomposes the work into atomic tasks with BDD acceptance criteria.
COMMAND 4 Β· BUILD IT
Code is written in a Git worktree sandbox. A failed experiment? Delete the worktree β your plans are untouched.
< 3 tasks β the main agent implements directly.
β₯ 3 tasks β parallel subagents with two-stage review: spec compliance, then code quality.
Red β Green β Refactor for every task. The BDD criteria from TASKS.md become the tests.
<project>-jwt-auth/ β sandbox βββ src/ β βββ middleware/auth.ts β βββ routes/auth.ts βββ tests/ βββ auth.test.ts [R] βββ login.test.ts [R] Per task: 1. test first (red) 2. implement (green) 3. refactor β tests stay green
COMMAND 5 Β· PROVE IT
Tests are proof. Not confidence, not "looks right" β output.
Unit, integration, E2E, and design conformance. UI evidence is tied to the tested commit, viewport, and runtime state.
Reads REGRESSION-CATALOG.md and re-runs every [R] test from every previously shipped feature.
Any red test stops the pipeline. Work goes back to Develop. No merge, no ship, no exceptions.
## Summary
Total: 12 Passed: 12 Failed: 0
Regression: 5/5 β
Catalog: 19/19 β (cross-feature)
## Evidence
[R] test_valid_jwt β
[R] test_wrong_password β
test_empty_password β
screenshot: login-e2e.png β
Sign-off:
- [ ] QA: (pending)
COMMANDS 6β7 Β· SHIP IT
WHY IT COMPOUNDS
Each feature runs the full seven-stage pipeline β and leaves the codebase stronger than it found it. The next feature starts on that higher floor. A cycle returns to where it began; tGD ratchets.
TESTING STRATEGY
/tgd-develop
Writes tests alongside code.
Red β Green β Refactor.
/tgd-verify
Runs ALL tests + browser E2E.
Reproduce β Localize β Fix β Guard.
/tgd-review
Audits test quality.
80% unit Β· 15% integration Β· 5% E2E.
Why separate roles? The one who writes the code never gets to be the only one who judges it β separation is what prevents "lazy agent" behavior.
GETTING STARTED
# Clone & install (30s) $ git clone https://github.com/\ yhwangtw/tgd.git $ cd tgd && bash setup.sh # Start any agent $ claude Β· codex Β· gemini $ opencode Β· pi Β· hermes # Initialize, then build $ /tgd-map $ /tgd-define add user auth
One setup.sh detects what you have and links the right format for each.
READY TO SHIP?
tGD turns your AI agent from a code generator
into a disciplined engineering partner.
git clone https://github.com/yhwangtw/tgd.git cd tgd && bash setup.sh claude # then: /tgd-map