- Home
- Skills
- Workflow Automation
- Plan-Build-Verify — Safe AI Coding with Approval & TDD
Works with the AI Agents you already use
Plan-Build-Verify — Safe AI Coding with Approval & TDD
Enforce a disciplined Planner → Builder → Verifier engineering pipeline with human approval gates, root-cause analysis, TDD, and independent verification—preventing unapproved AI edits or unverified fixes.
Free
Plan-Build-Verify — Safe AI Coding with Approval & TDD
Example session with this skill installed
Implement user authentication with JWT tokens across 5 files, including middleware, login route, token validation, and unit tests.
- Read your context and instructions
- Compiled the plan-build-verify
- plan.md (approved): Task Shape, Pre-existing Baseline, Acceptance Criteria, Invariants, Target Files, Verification Strategy
- build-summary.md (Fix-Round: 0): Changed Files, Deviations (None), Acceptance Criteria Mapping, [user/agent] Verification Output
- verification-report.md: Verdict: Pass, Invariant Results, Code Review Findings
Connects securely to your tools. The creator never sees your data.
About this skill
Stop letting AI agents rewrite half your codebase without permission—or claim "all tests pass" without running a single check.
When handling multi-file features, risky refactors, or tricky bugfixes, single-prompt coding often leads to scope creep, broken invariants, and endless trial-and-error loops. plan-build-verify enforces a strict three-phase engineering workflow with explicit human approval gates and evidence-backed verification.
How the Pipeline Works
- Planner (Read-Only Analysis) → Explores governance, baseline Git state, acceptance criteria, and invariants, then writes
plan.md(status: draft) and stops for your explicit approval. - Builder (Scoped Implementation) → Implements only within the approved plan scope using Root Cause Analysis (RCA) and TDD (
RED → GREEN → REFACTOR), optionally slicing work to subagents, and records raw test/lint outputs inbuild-summary.md. - Verifier (Independent Review) → Reviews modified files and command evidence against acceptance criteria and invariants, then issues a formal verdict (
Pass,Conditional Pass,Fail, orBlocked) inverification-report.md. Verifier never edits source code.
Key Guarantees
- Mandatory Human Approval Gate: No silent auto-proceed after planning; any edit to
plan.mdresets approval status. - Bounded Fix Budget (Max 2 Rounds): Prevents infinite retry loops (
Fix-Roundis cumulative perTask-ID). Expected TDDREDsteps and environmentBlockedstates do not consume budget. - Evidence-Based Verification: Every test, lint, and typecheck output is recorded with executor identity (
useroragent) and checked against your pre-existing Git baseline. - EDR & Locked-Down Environment Ready: Defaults to
user-executedmode (the agent gives consolidated commands for you to run).agent-executedandautomodes require explicit authorization. - Zero-Trust Artifact Contracts:
Task-ID,Plan-Revision, and append-onlyRound Logtrails prevent context drift across sessions or subagent handoffs. - Built-In Safety: Automatic
[REDACTED]secret scrubbing in artifacts, untrusted-content isolation, and zero unauthorizedgit commitorgit push.
When Not to Use
Skip this pipeline for trivial one-file edits, typo fixes, or zero-risk tweaks.
What's Included
SKILL.md: Complete Planner, Builder, and Verifier protocol (v3.3.1).references/reliable-engineering.md: Systematic Root Cause Analysis and TDD (RED → GREEN → REFACTOR) rules.references/subagent-dispatch.md: Task slicing, permission inheritance, write-collision prevention, and evidence aggregation.
Does not replace architectural judgment; Planner quality depends on codebase exploration depth. User-executed mode requires manual command execution. Fix budget (2 rounds) may need an explicit user reset for complex legacy refactors. Verifier cannot edit code—it only reports defects. No built-in support for non-Git VCS.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Free to use
No account required to browse
Trust & safety
Security scan
Security scan passed 9 days ago
- Free with an Agensi account
- Software
- User able to run shell commands (for user-executed mode)
Python 3.10+
orNode.js 18+ (for running verification commands)
Git
- Optional
Docker (for sandboxed execution)
pytest, ruff, mypy,orequivalent test/lint/typecheck tools
Requires an AI agent with native file read/write/search tools and a Git repository.
Permissions
What's inside
Frequently Asked Questions
New in Workflow Automation
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Workflow Automation.