tGD

AI-DRIVEN PDLC Β· 2026

The Agentic
PDLC Harness

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.

πŸ—ΊοΈMap
β†’
πŸ“‹Define
β†’
πŸ“Plan
β†’
⚑Develop
β†’
πŸ§ͺVerify
β†’
πŸ”ŽReview
β†’
πŸš€Release
Claude Code Codex CLI Gemini CLI OpenCode Pi Hermes

THE PROBLEM

AI agents can write code.
Nobody holds them accountable.

πŸ’¬ "Should work"

The agent claims success β€” but the tests never ran. No evidence, no proof, no accountability.

πŸ“ 500 lines before reading

It writes a novel before it has understood a single file of your codebase.

πŸ’₯ Broken PR, agent gone

No spec, no plan, no tests. It ships garbage and moves on to the next prompt.

The harness matters as much as the model.
β€” the principle behind tGD

THE SOLUTION

tGD is the harness
for AI-driven development.

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.

29
Skills
7
Stages
6
Platforms
3
Personas

Open source Β· Apache 2.0 Β· plain Markdown skills β€” no server, no telemetry, your code never leaves your tools.

HOW IT WORKS

Seven stages. Every output feeds the next.

πŸ—ΊοΈ
1 Β· MAP
Scan the codebase β†’ CONTEXT.md
tgd-core-context + codegraph
πŸ“‹
2 Β· DEFINE
PRD β†’ 0/2/3 design β†’ SPEC
tgd-define-interview β†’ tgd-define-spec + tgd-define-sketch
πŸ“
3 Β· PLAN
Context-grounded breakdown β†’ TASKS.md
planning β†’ jira-sync
⚑
4 Β· DEVELOP
Worktree + TDD β†’ src/ + tests/
tgd-develop-source β†’ tgd-develop-tdd
πŸ§ͺ
5 Β· VERIFY
Tests + UI evidence β†’ TEST-REPORT.md
debugging β†’ regression + design QA
πŸ”Ž
6 Β· REVIEW
Code + design conformance β†’ REVIEW.md
tgd-review-quality β†’ tgd-review-simplify
πŸš€
7 Β· RELEASE
Commit + CI β†’ CHANGELOG + METRICS
tgd-core-git β†’ tgd-release-ship
πŸ”
THE LOOP
Verify fails? Work goes back to Develop.
Nothing broken reaches Release.

HUMAN GATES

Agents do the work.
Humans hold the keys.

Every stage produces an artifact with a sign-off section. The next stage will not start until the right person checks the box.

PM β€” Product

Owns direction and acceptance.
Signs PRD.md and the final Release.

DESIGN β€” Experience

Approves direction in DESIGN.md and built-UI conformance in REVIEW.md.

DEV β€” Implementation

Owns code quality.
Signs TASKS.md, the code, and REVIEW.md.

QA β€” Evidence

Owns test quality and coverage.
Signs TEST-REPORT.md and REVIEW.md.

Release gate β€” all must be [x]
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

Context first. Spec before code.

/tgd-map

Scans your codebase β€” tech stack, architecture, patterns β€” and builds an offline knowledge graph.

β†’ CONTEXT.md

/tgd-define

Interviews for intent, writes the PRD, routes UI to 0/2/3 prototypes, gets direction approval, then finalizes the technical spec.

β†’ PRD.md Β· DESIGN.md (UI) Β· SPEC.md

/tgd-plan

Reads CONTEXT + PRD + approved DESIGN (UI) + SPEC and decomposes the work into atomic tasks with BDD acceptance criteria.

β†’ TASKS.md (Given/When/Then, [R] markers)
πŸ’‘ Each command refuses to run until the previous stage's artifact exists and is signed off β€” that's the pre-flight check.

COMMAND 4 Β· BUILD IT

/tgd-develop β€” isolated, routed, test-driven.

πŸ–οΈ Mandatory worktree isolation

Code is written in a Git worktree sandbox. A failed experiment? Delete the worktree β€” your plans are untouched.

πŸ”€ Smart execution routing

< 3 tasks β†’ the main agent implements directly.
β‰₯ 3 tasks β†’ parallel subagents with two-stage review: spec compliance, then code quality.

πŸ”΄πŸŸ’ TDD, not tests-after

Red β†’ Green β†’ Refactor for every task. The BDD criteria from TASKS.md become the tests.

Worktree
<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

/tgd-verify β€” the hard gate.

Tests are proof. Not confidence, not "looks right" β€” output.

1 Β· Run everything

Unit, integration, E2E, and design conformance. UI evidence is tied to the tested commit, viewport, and runtime state.

2 Β· Cross-feature regression

Reads REGRESSION-CATALOG.md and re-runs every [R] test from every previously shipped feature.

3 Β· Block on failure

Any red test stops the pipeline. Work goes back to Develop. No merge, no ship, no exceptions.

TEST-REPORT.md
## 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

Review the health. Release with a trail.

/tgd-review β€” five axes

1 Β· Correctness β€” does it do what SPEC says?
2 Β· Maintainability β€” can someone else read it?
3 Β· Security β€” OWASP + secrets management
4 Β· Performance β€” no N+1, no waste
5 Β· Test coverage β€” 80% unit Β· 15% integration Β· 5% E2E
β†’ REVIEW.md (QA + DEV; DESIGN signs UI conformance)

/tgd-release β€” faster is safer

Β· Atomic commits, CI green, staged rollout
Β· Regression catalog updated with this feature's [R] tests β€” the safety net grows
Β· ADRs for architectural decisions
Β· METRICS.md β€” KPI handoff for post-launch tracking
β†’ CHANGELOG.md Β· METRICS.md (PM signs)
πŸ€– Backed by three reviewer personas β€” code-reviewer Β· test-engineer Β· security-auditor β€” you (or the command) orchestrate them.

WHY IT COMPOUNDS

It's not a loop. It's a spiral.

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.

Feature 1 Feature 2 Feature 3 Feature 4 β€” higher still start
Three things accumulate on every loop β€” the pipeline never resets to zero:
πŸ›‘οΈ
Regression catalog
Every feature's acceptance tests join it. The safety net only ever gets denser.
πŸ—ΊοΈ
CONTEXT.md
Re-mapped each loop against the now-larger codebase β€” understanding deepens.
πŸ“ˆ
CHANGELOG + METRICS
A durable audit trail of what shipped and what it moved.
A cycle returns to the same place. tGD ratchets β€” every release raises the floor the next feature builds on.

TESTING STRATEGY

Three roles. One rule:
no shortcuts.

πŸ”¨ Builder

/tgd-develop

Writes tests alongside code.
Red β†’ Green β†’ Refactor.

πŸ” Inspector

/tgd-verify

Runs ALL tests + browser E2E.
Reproduce β†’ Localize β†’ Fix β†’ Guard.

πŸ•΅οΈ Auditor

/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

Thirty seconds to install.
One command to start.

Terminal
# 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

Platform support

Claude Code β€” native commands + skills
Codex CLI β€” prompt-based integration
Gemini CLI β€” native commands
OpenCode β€” auto-detected skills
Pi β€” TypeScript extension
Hermes Agent β€” Python plugin + hooks

One setup.sh detects what you have and links the right format for each.

READY TO SHIP?

Stop vibe-coding.
Start shipping.

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
⭐ Star on GitHub Apache 2.0 6 Platforms