Setup & Installation
Or with the ClawHub CLI, for registry-managed skill folders outside a full OpenClaw workspace:
Version History
Discovery-first flow: no-PRD users get guided discovery questions and automatic PRD generation
What This Skill Does
PIV (Plan, Implement, Validate) is a workflow orchestrator for multi-phase software development. It manages a loop of PRD creation, PRP generation, codebase analysis, and execution across spawned sub-agents, each with fresh context. Discovery Mode handles projects with no existing PRD by guiding the user through scoping questions first.
It automates coordination of planning, execution, and validation across isolated sub-agents so you don't manually track phase state or re-prompt between steps.
When to use it
- Breaking a new feature into validated development phases
- Auto-generating a PRD from a conversational project description
- Running a debug loop when a phase fails validation checks
- Analyzing an existing codebase before writing implementation plans
- Coordinating multiple sub-agents across a sequential multi-phase build
Example Workflow
Here's how your AI assistant might use this skill in practice.
User asks: /piv /path/to/my-project
- 1Checks for an existing PRD in the project's PRDs/ folder
- 2Enters Discovery Mode if none found, asks scoping questions, then generates a PRD
- 3Spawns a research sub-agent to analyze the codebase and generate a PRP for phase 1
- 4Spawns an executor sub-agent to implement phase 1 per the PRP
- 5Spawns a validator sub-agent to verify requirements, commits on PASS, or runs up to 3 debug cycles on failure
Each phase committed to git with a validation report and WORKFLOW.md updated to reflect phase status