skills/prd/SKILL.md
Generate a Product Requirements Document (PRD) for a new feature. Use when planning a feature, starting a new project, or when asked to create a PRD. Triggers on: create a prd, write prd for, plan this feature, requirements for, spec out.
npx skillsauth add mdmagnuson-creator/yo-go 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.
Create detailed Product Requirements Documents that are clear, actionable, and suitable for implementation.
docs/project.json (if exists)docs/drafts/prd-[feature-name].mdImportant: Do NOT start implementing. Just create the PRD.
Before generating any PRD, read the project manifest to understand the stack:
cat docs/project.json 2>/dev/null || echo "NO_PROJECT_JSON"
If docs/project.json exists, extract key information:
| Field | Use For |
|-------|---------|
| stack.languages | Determine if "Typecheck passes" applies |
| stack.framework | Framework-specific acceptance criteria |
| apps | Understanding where code lives |
| styling.darkMode.enabled | Add dark mode verification for UI stories |
| testing.unit.framework | Add "Unit tests pass" criteria when appropriate |
| testing.e2e.framework | Know if E2E is available |
| linting.enabled | Add "Lint passes" criteria |
| features | Understand what capabilities exist |
| planning.considerations | Project-specific scope concerns to pass through (permissions, docs, AI tools, compliance, etc.) |
| agents.browserVerification | Whether to require visual verification |
Store this context for use when generating acceptance criteria.
If no project.json exists, use sensible defaults and note this in your output:
⚠️ No docs/project.json found. Using default acceptance criteria.
Run the bootstrap wizard to configure stack-specific criteria.
Ask only critical questions where the initial prompt is ambiguous. Focus on:
Also review planning.considerations from project.json (if present) and ask follow-up questions only for considerations that appear relevant to the requested feature.
Examples:
1. What is the primary goal of this feature?
A. Improve user onboarding experience
B. Increase user retention
C. Reduce support burden
D. Other: [please specify]
2. Who is the target user?
A. New users only
B. Existing users only
C. All users
D. Admin users only
3. What is the scope?
A. Minimal viable version
B. Full-featured implementation
C. Just the backend/API
D. Just the UI
This lets users respond with "1A, 2C, 3B" for quick iteration.
Generate the PRD with these sections:
Brief description of the feature and the problem it solves.
Specific, measurable objectives (bullet list).
Each story needs:
upfront or after-initial-buildEach story should be small enough to implement in one focused session.
Format:
### US-001: [Title]
**Description:** As a [user], I want [feature] so that [benefit].
**Documentation:** Yes/No (+ article slug if updating existing)
**Tools:** Yes/No (+ tool name if updating existing)
**Considerations:** [comma-separated ids from `planning.considerations`, or `none`]
**Credentials:** none | required (`service`, `credential type`, `timing: upfront|after-initial-build`)
**Acceptance Criteria:**
- [ ] Specific verifiable criterion
- [ ] Another criterion
- [ ] [Stack-specific criteria from project.json]
Generate acceptance criteria based on project.json settings:
| Story Type | Always Include | |------------|----------------| | All stories | Specific functional criteria | | Database/schema stories | Migration runs successfully |
| Condition | Add This Criterion |
|-----------|-------------------|
| stack.languages includes "typescript" | Typecheck passes |
| stack.languages includes "go" | go build succeeds |
| stack.languages includes "python" | mypy passes (if typed) |
| linting.enabled: true | Lint passes |
| Story has UI AND apps.*.type includes "frontend" | Verify in browser |
| Story has UI AND styling.darkMode.enabled: true | Works in both light and dark mode |
| Story has testable logic AND testing.unit.framework exists | Unit tests pass |
| capabilities.supportDocs: true AND user-facing story | Update/create support documentation |
| capabilities.ai: true AND chat-accessible story | Update/create AI agent tools |
For a UI story, the acceptance criteria would be:
**Acceptance Criteria:**
- [ ] Component renders correctly with mock data
- [ ] Clicking the button opens the modal
- [ ] Form validation shows errors for invalid input
- [ ] Typecheck passes
- [ ] Lint passes
- [ ] Verify in browser
- [ ] Works in both light and dark mode
- [ ] Update/create support documentation
For an API endpoint story, the acceptance criteria would be:
**Acceptance Criteria:**
- [ ] Endpoint returns 200 with valid request
- [ ] Endpoint returns 400 for invalid input
- [ ] go build succeeds
- [ ] Lint passes
- [ ] Unit tests pass
For a data processing story:
**Acceptance Criteria:**
- [ ] Function processes input correctly
- [ ] Handles edge cases (empty input, malformed data)
- [ ] mypy passes (if using type hints)
- [ ] Lint passes (ruff/flake8)
- [ ] Unit tests pass
planning.considerations)If project.json has planning.considerations, include a short section in the PRD named ## Scope Considerations.
For each consideration:
relevant/not relevant)scopeQuestionsacceptanceCriteriaHints, map those hints into applicable story acceptance criteriaExample:
## Scope Considerations
- permissions (required): relevant
- Roles affected: owner, admin, member
- Unauthorized behavior: return 403 with audit log
- Story coverage: US-002, US-004
- support-docs: relevant
- User-facing settings flow changed; update docs
- Story coverage: US-003
- ai-tools: not relevant
A story requires documentation if it affects anything users see or interact with:
Backend-only stories (database migrations, API internals, refactoring) do NOT require documentation unless they change observable behavior.
Check project.json: Only add documentation criteria if capabilities.supportDocs: true.
For user-facing stories in projects with support docs, add:
- [ ] Update/create support documentation
A story requires AI tools if the feature should be accessible via chatbot/AI assistant:
Check project.json: Only add tools criteria if capabilities.ai: true.
Stories that do NOT need tools:
For chat-accessible stories in projects with AI features, add:
- [ ] Update/create AI agent tools
And specify in the Tools field:
Yes (new: tool_name) — Needs a new toolYes (update: tool_name) — Updates an existing toolNo — No tools neededAnd specify in the Documentation field:
Yes (new) — Needs a new support articleYes (update: article-slug) — Updates an existing articleNo — No documentation needed (backend-only)Numbered list of specific functionalities:
Be explicit and unambiguous.
What this feature will NOT include. Critical for managing scope.
If context.designSystem is set in project.json, reference it:
See design system: [docs/design-system.md](docs/design-system.md)
Reference project.json for technical context:
stack.frameworkdatabase.type + database.clientapps.*.structureHow will success be measured?
Remaining questions or areas needing clarification.
Include this section whenever the PRD touches third-party services, hosted providers, or protected APIs.
Use a concise table:
## Credential & Service Access Plan
| Service | Credential Type | Needed For | Request Timing | Fallback if Not Available |
|---------|------------------|------------|----------------|---------------------------|
| Stripe | Secret API key | US-004, US-005 | upfront | Build UI and mocks first; delay live charge tests |
| SendGrid | API key | US-006 | after-initial-build | Implement local email preview and queue integration step |
Rules:
upfront when progress is blocked without access.after-initial-build when scaffold/UI/local logic can proceed without live credentials.No external credentials required for this PRD.The PRD reader may be a junior developer or AI agent. Therefore:
.md)docs/drafts/prd-[feature-name].md (kebab-case)# PRD: Task Priority System
## Introduction
Add priority levels to tasks so users can focus on what matters most. Tasks can be marked as high, medium, or low priority, with visual indicators and filtering to help users manage their workload effectively.
## Goals
- Allow assigning priority (high/medium/low) to any task
- Provide clear visual differentiation between priority levels
- Enable filtering and sorting by priority
- Default new tasks to medium priority
## User Stories
### US-001: Add priority field to database
**Description:** As a developer, I need to store task priority so it persists across sessions.
**Documentation:** No
**Tools:** No
**Acceptance Criteria:**
- [ ] Add priority column to tasks table: 'high' | 'medium' | 'low' (default 'medium')
- [ ] Generate and run migration successfully
- [ ] Typecheck passes
- [ ] Lint passes
### US-002: Display priority indicator on task cards
**Description:** As a user, I want to see task priority at a glance so I know what needs attention first.
**Documentation:** Yes (new: task-priority)
**Tools:** No
**Acceptance Criteria:**
- [ ] Each task card shows colored priority badge (red=high, yellow=medium, gray=low)
- [ ] Priority visible without hovering or clicking
- [ ] Typecheck passes
- [ ] Lint passes
- [ ] Verify in browser
- [ ] Works in both light and dark mode
- [ ] Update/create support documentation
### US-003: Add priority selector to task edit
**Description:** As a user, I want to change a task's priority when editing it.
**Documentation:** Yes (update: task-priority)
**Tools:** Yes (new: update_task_priority)
**Acceptance Criteria:**
- [ ] Priority dropdown in task edit modal
- [ ] Shows current priority as selected
- [ ] Saves immediately on selection change
- [ ] Typecheck passes
- [ ] Lint passes
- [ ] Verify in browser
- [ ] Works in both light and dark mode
- [ ] Update/create support documentation
- [ ] Update/create AI agent tools
### US-004: Filter tasks by priority
**Description:** As a user, I want to filter the task list to see only high-priority items when I'm focused.
**Documentation:** Yes (update: task-priority)
**Tools:** Yes (update: list_tasks)
**Acceptance Criteria:**
- [ ] Filter dropdown with options: All | High | Medium | Low
- [ ] Filter persists in URL params
- [ ] Empty state message when no tasks match filter
- [ ] Typecheck passes
- [ ] Lint passes
- [ ] Verify in browser
- [ ] Works in both light and dark mode
- [ ] Update/create support documentation
- [ ] Update/create AI agent tools
## Functional Requirements
- FR-1: Add `priority` field to tasks table ('high' | 'medium' | 'low', default 'medium')
- FR-2: Display colored priority badge on each task card
- FR-3: Include priority selector in task edit modal
- FR-4: Add priority filter dropdown to task list header
- FR-5: Sort by priority within each status column (high to medium to low)
## Non-Goals
- No priority-based notifications or reminders
- No automatic priority assignment based on due date
- No priority inheritance for subtasks
## Design Considerations
See design system: [docs/design-system.md](docs/design-system.md)
- Reuse existing badge component with color variants
- Follow color conventions for semantic states
## Technical Considerations
- **Framework:** Next.js 16
- **Database:** Postgres via Supabase
- **Migrations:** supabase/migrations/
- Filter state managed via URL search params
- Priority stored in database, not computed
## Success Metrics
- Users can change priority in under 2 clicks
- High-priority tasks immediately visible at top of lists
- No regression in task list performance
## Open Questions
- Should priority affect task ordering within a column?
- Should we add keyboard shortcuts for priority changes?
Before saving the PRD:
docs/project.json for stack contextcapabilities.supportDocs)styling.darkMode.enabled)capabilities.ai)planning.considerations reviewed and relevant items reflected in PRD scope## Scope Considerations section when considerations existConsiderations field with mapped idsupfront or after-initial-build)docs/drafts/prd-[feature-name].mdYou do NOT need to add a "Final Polish" story. When Developer completes all stories in a PRD, it automatically:
Support Article: Yes that don't yet have documentationThis ensures documentation, visual quality, and screenshots are always up to date without requiring a separate story for each PRD.
Additionally, during implementation (on each commit), the @critic agent automatically routes to @aesthetic-critic for UI changes, catching Critical visual issues early.
data-ai
Generate verification contracts before delegating tasks to sub-agents, defining how success will be measured. Triggers on: verification contract, delegation contract, task verification, contract-first delegation.
testing
Verify that Vercel environment variables point to the correct Supabase project for each environment to prevent staging/production cross-wiring. Triggers on: vercel supabase check, environment alignment, env var check, supabase environment.
development
Manage codebase and database vectorization for semantic search. Use when initializing, refreshing, or querying the vector index. Triggers on: vectorize init, vectorize refresh, vectorize search, semantic search, vector index, enable vectorization.
testing
Patterns for XCUITest UI tests for native Apple apps (macOS/iOS). Use when writing or reviewing XCUITest tests for Swift apps. Triggers on: XCUITest, xcuitest, native app testing, Apple UI tests, SwiftUI tests, AppKit tests, UIKit tests.