skills/prd/SKILL.md
Generates a Product Requirements Document from a natural language app description. Asks clarifying questions, researches similar apps, defines scope, stack, architecture, and produces a structured PRD that can be decomposed into a campaign.
npx skillsauth add special-place-administrator/citadel_codex prdInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
PRD skill converts "I want an app that does X" into a structured document that a campaign orchestrator can execute. It does NOT build anything. It produces the spec that drives the build.
Greenfield mode: No existing source files, or user explicitly says "new app" / "from scratch."
Feature mode: The project already has source files. The user describes a feature to add, not a whole app ("add auth", "add a dashboard").
In feature mode:
Read the user's description. Determine mode (greenfield vs feature).
If any core aspects are unclear, ask up to 3 focused questions. Not a questionnaire. Just the questions that would change the architecture.
If the app concept has well-known existing implementations:
Skip this step if the concept is simple enough.
Produce a structured PRD. Write to .citadel/research/prd-{slug}.md:
# PRD: {App Name or Feature Name}
> Description: {One sentence}
> Author: {user}
> Date: {ISO date}
> Status: draft
> Mode: {greenfield | feature}
## Problem
{What problem does this solve? Why does the user want it?}
## Users
{Who uses this? One or two user types max.}
## Core Features
{Numbered list. Maximum 5 for v1. Each feature is one sentence.}
## Out of Scope (v1)
{Things the user might expect but should NOT be built yet.}
## Technical Decisions
- **Frontend**: {recommendation with reasoning}
- **Backend**: {recommendation with reasoning, or "none"}
- **Database**: {recommendation with reasoning, or "none"}
- **Auth**: {recommendation, or "none"}
- **Deployment**: {recommendation}
## Architecture
{High-level description. 3-5 sentences max. How the pieces connect.}
## Integration Points (feature mode only)
- **Existing files modified**: {list}
- **New files created**: {list}
- **Dependencies added**: {new packages, if any}
- **Patterns followed**: {existing patterns to match}
## End Conditions (Definition of Done)
- [ ] {machine-verifiable condition}
- [ ] {machine-verifiable condition}
## Open Questions
{Anything that couldn't be decided.}
Present the PRD summary to the user and ask for approval.
---HANDOFF---
- PRD: {app name}
- Document: .citadel/research/prd-{slug}.md
- Status: {approved | needs-revision}
- Next: Use the architect skill to produce a build plan
---
development
GitHub issue and PR investigator. Pulls open issues/PRs, classifies them, searches the codebase for root cause or reviews contributed code, proposes fixes with file:line references, and optionally implements fixes. Handles both issues and pull requests.
development
Generate and verify tests — happy path, edge cases, error paths — using the project's own framework and patterns
development
Four-phase root cause analysis: observe, hypothesize, verify, fix. Enforces investigation before code changes and stops guess-and-check debugging.
testing
First-run experience for the harness. Detects the project stack, scaffolds the .citadel/ state directory, generates configuration, runs one real task as a demo, and prints a reference card of all available skills. Gets someone from install to first `do` command in 5 minutes.