Pdd build

From mikeyobrien/rho · View interactive version

Pdd build is an AI agent skill from the GitHub repository mikeyobrien/rho. Execute a completed PDD implementation plan step-by-step with validation gates.

How to use this skill

Skill file

PDD Build

Overview

This SOP takes a completed PDD project (design doc + implementation plan) and executes the implementation plan step-by-step using subagents. Each step is built by a subagent, then verified against user-defined "done" criteria before advancing. The user defines how completion is validated — automated tests, manual testing via tmux, browser validation via Playwriter, visual inspection, or any combination.

Parameters

Constraints for parameter acquisition:

Steps

1. Load and Parse the Implementation Plan

Read the PDD artifacts and prepare for execution.

Constraints:

2. Prepare the Build Context

Assemble the context documents that each subagent will need.

Constraints:

3. Execute Steps

Execute each implementation step using a subagent, then validate.

Constraints:

3a. Brief the Subagent
3b. Launch the Subagent
3c. Verify the Step

Automated tests:

Tmux manual testing:

Playwriter browser validation:

File verification:

Combination:

3d. Handle Failures

1. Analyze the failure — what went wrong?

2. Determine if it's a subagent error (bad code) or a design issue (spec is wrong)

3. For subagent errors: retry the step with additional context about the failure (max 2 retries)

4. For design issues: STOP and notify the user — do not attempt to fix design problems autonomously

5. Include the failure details and any error output in the retry prompt

3e. Update the Checklist

4. Integration Validation

After all steps are complete, validate the full system.

Constraints:

1. Identify which step(s) are affected

2. Determine the fix

3. Either fix directly or launch a targeted subagent

4. Re-validate after fixing

5. Report Results

Present a final summary to the user.

Constraints:

Examples

Example 1: CLI Extension with Tests

Project dir: .agents/planning/2026-02-10-review-extension
Validation strategy: Run `npm test` in the extension directory after each step.
For steps that add UI, also run `pi -e ./index.ts` in a tmux window and
execute the /review command to verify it works interactively.

Example 2: Browser UI with Playwriter

Project dir: .agents/planning/2026-02-10-review-extension
Validation strategy: After each step that changes the UI, use the playwriter
skill to open http://localhost:<port> and verify:
- The page loads without console errors
- Key elements are visible (sidebar, code viewer, buttons)
- Interactions work (click file, click line number, type comment)
For non-UI steps, verify files exist and code parses without errors.

Example 3: Full Manual Testing

Project dir: .agents/planning/2026-02-10-review-extension
Validation strategy: After each step, open a tmux split and run the
extension. Test it as a user would — try the happy path, try edge cases,
try to break it. Report what works and what doesn't. Use the notification
skill to alert me if a step fails after retries.

Example 4: Hybrid

Project dir: .agents/planning/2026-02-10-review-extension
Validation strategy:
- Steps 1-2: verify files exist and `npm install` succeeds
- Steps 3-6: use playwriter to check the browser UI renders
- Steps 7-8: use playwriter to test submit/cancel WebSocket flow
- Steps 9-10: run `pi -e ./index.ts` in tmux and test /review command
- Steps 11-12: full playwriter mobile viewport test + manual tmux test

Troubleshooting

Subagent Produces Wrong Code

Validation Is Flaky

Step Dependencies Are Wrong

Design Doc Has Gaps

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.