Skill v1.0.0
currentAutomated scan100/100name: prd-generator description: > Create or read the PRD artifact. license: MIT metadata: author: Batuta version: "2.1" created: "2026-03-30" updated: "2026-04-15" bucket: define platforms: [claude, antigravity] allowed-tools: Read Write Glob
Purpose
The PRD is the single planning artifact in batuta-dots v15. It replaces the 5-artifact chain (explore + propose + spec + design + tasks) with ONE document that contains everything an implementation agent needs.
| Mode | Who | Where | When | |
|---|---|---|---|---|
| Write | CTO (Desktop) | Notion — child page of project | Before implementation | |
| Read | Claude Code | Notion MCP or local openspec/ | At implementation start |
PRD Template
# PRD — {nombre del cambio}## Problema{1 parrafo: que esta roto, para quien, por que importa}## Solucion{1-2 parrafos: que se va a construir, como funciona a alto nivel.Decisiones de tecnologia y arquitectura SI. Codigo NO.}## Criterio de exito-{condicion verificable 1}-{condicion verificable 2}-{condicion verificable 3}## Datos disponibles-{fuente 1}: {que es, donde esta, que contiene}-{fuente 2}: {que es, donde esta, que contiene}## Constraints-{restriccion critica 1}-{restriccion critica 2}## Fuera de alcance-{que NO se hace en este cambio}-{que se difiere para despues}
Reglas:
- Maximo 1-2 paginas. Si crece mas, dividir en cambios separados
- NO incluir: queries SQL, firmas de funciones, pseudocodigo, rutas de archivos
- SI incluir: decisiones de tecnologia, conocimiento de dominio, reglas de negocio
- Criterio de exito debe ser verificable por un agente (no subjetivo)
SPRINT mode (tarea clara, <3 archivos)
No necesita PRD formal. Directiva corta en Notion o mensaje directo:
DIRECTIVA: {nombre}PROBLEMA: {2-3 oraciones}QUE NECESITO: {resultado en terminos de capacidad}CRITERIO DE SALIDA: {condicion verificable}
For Claude Code: executing from a PRD
Step 1 — Locate PRD
- Notion MCP: search project child pages for "PRD" or "directiva"
- Local fallback:
openspec/changes/{change-name}/PRD.md - If neither: ask user
Step 2 — Validate
- [ ] Has problem statement
- [ ] Has verifiable success criteria
- [ ] Has "fuera de alcance"
- [ ] Does NOT contain code or SQL
If PRD contains implementation detail → flag: "PRD contiene implementacion. El CTO decide QUE, el agente decide COMO."
Step 3 — Execute
Implement using subagents with relevant skills. Update session.md each interaction. Write discoveries to Notion KB constantly.
Step 4 — Verify against PRD
Check each "Criterio de exito":
- All met → report success
- Any not met → report what's missing with evidence
What the CTO decides vs what the agent decides
| CTO (in the PRD) | Agent (during implementation) | |
|---|---|---|
| What technology (embeddings, LLM, OCR) | What functions to create | |
| What architectural approach | How to implement it | |
| What data exists and what it means | What queries to write | |
| What business rules apply | How to code the rules | |
| What pattern (CQRS, event sourcing) | How to structure files |
PRD Lifecycle
CTO writes PRD in Notion → Code reads via MCP → Implements↕ (discoveries go back to Notion KB constantly)If pivot: archive PRD as SUPERSEDED → CTO writes new PRD
Common Rationalizations
| Rationalization | Reality | |
|---|---|---|
| "Include code samples in the PRD for clarity" | The PRD is the CTO's WHAT, not the agent's HOW. Code in PRDs invites the CTO to design the implementation — which is the agent's job. The validation rule "PRD does NOT contain code or SQL" exists precisely because this rationalization is so common. | |
| "A longer PRD is more thorough" | The 1-2 page limit is a feature, not a constraint. PRDs that grow beyond 2 pages are usually trying to cover multiple changes — split them. | |
| "Skip 'Fuera de alcance' — it's obvious" | Scope creep happens because what's IN scope is documented but what's OUT is implicit. "Fuera de alcance" is mandatory to prevent the agent from gold-plating. | |
| "Success criteria can be subjective" | Criteria must be agent-verifiable. "User likes the result" is not a criterion; "Endpoint returns 200 with the expected JSON shape" is. | |
| "I'll add data sources later" | Without "Datos disponibles" the agent guesses about data shape and location, then writes code against assumptions. List the sources upfront. |
Red Flags
- PRD contains SQL queries, function signatures, or pseudocode
- PRD exceeds 2 pages
- "Criterio de exito" missing or non-verifiable (subjective language like "good", "fast", "easy")
- "Fuera de alcance" section missing or empty
- "Problema" section describes a solution instead of a problem
- "Solucion" section dictates implementation details (file paths, function names, exact algorithms)
- PRD is created locally instead of in Notion when CTO Desktop is the source
- Multiple changes bundled into one PRD
- "Datos disponibles" section omitted despite the change requiring data access
Verification Checklist
- [ ] PRD file exists in Notion (CTO source) OR
openspec/changes/{change-name}/PRD.md(local fallback) - [ ] Length is 1-2 pages — no longer
- [ ] All required sections present: Problema, Solucion, Criterio de exito, Datos disponibles, Constraints, Fuera de alcance
- [ ] No SQL queries, function signatures, or pseudocode in any section
- [ ] Every "Criterio de exito" entry is agent-verifiable (objective condition)
- [ ] "Fuera de alcance" explicitly lists what is NOT being built
- [ ] "Problema" describes a problem, not a solution
- [ ] "Solucion" stays at architectural/technology level (not implementation level)
- [ ] PRD covers exactly ONE change (not bundled)