Works with the AI Agents you already use

    Plan-Build-Verify — Safe AI Coding with Approval & TDD

    by PocketAgent Lab

    1

    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

    Security scanned
    Plan-Build-Verify — Safe AI Coding with Approval & TDD

    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
    plan.md

    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

    1. 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.
    2. 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 in build-summary.md.
    3. Verifier (Independent Review) → Reviews modified files and command evidence against acceptance criteria and invariants, then issues a formal verdict (Pass, Conditional Pass, Fail, or Blocked) in verification-report.md. Verifier never edits source code.

    Key Guarantees

    • Mandatory Human Approval Gate: No silent auto-proceed after planning; any edit to plan.md resets approval status.
    • Bounded Fix Budget (Max 2 Rounds): Prevents infinite retry loops (Fix-Round is cumulative per Task-ID). Expected TDD RED steps and environment Blocked states do not consume budget.
    • Evidence-Based Verification: Every test, lint, and typecheck output is recorded with executor identity (user or agent) and checked against your pre-existing Git baseline.
    • EDR & Locked-Down Environment Ready: Defaults to user-executed mode (the agent gives consolidated commands for you to run). agent-executed and auto modes require explicit authorization.
    • Zero-Trust Artifact Contracts: Task-ID, Plan-Revision, and append-only Round Log trails prevent context drift across sessions or subagent handoffs.
    • Built-In Safety: Automatic [REDACTED] secret scrubbing in artifacts, untrusted-content isolation, and zero unauthorized git commit or git 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. 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. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 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

    Terminal / Shell
    Read Files
    Write Files
    Listed16 days ago
    Updated9 days ago

    What's inside

    Frequently Asked Questions

    Only for trivial one-file edits with no risk, and only with explicit user consent.

    A fix round starts (Fix-Round increments). Builder addresses only the reported issues within the approved scope, up to 2 fix rounds per task.

    No. Fix-Round is cumulative per Task-ID. Only an explicit user instruction resets it.

    The default user-executed mode works everywhere—the agent provides consolidated commands for you to run and never assumes shell access.

    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.

    Free