Skip to content
Development
Skill

/write-a-prd

Creates PRD via interactive interview + codebase exploration + module design. Triggers: write PRD, product requirements, plan new feature, PRD interview.

From plugin
ai-toolkit
180117 skills44 agents

Claude Code

$ npx -y skills add softspark/ai-toolkit --skill write-a-prd --agent claude-code

SKILL.md

write-a-prd.SKILL.md
name: write-a-prd
description: "Creates PRD via interactive interview + codebase exploration + module design. Triggers: write PRD, product requirements, plan new feature, PRD interview."
user-invocable: true
effort: high
argument-hint: "[feature or problem description]"
allowed-tools: Read, Grep, Glob, Bash, Agent

Write a PRD

$ARGUMENTS

Create a PRD through structured interview, codebase exploration, and module design, then submit as a GitHub issue.

Usage

/write-a-prd [feature or problem description]

What This Command Does

1. **Gathers** detailed problem description from user 2. **Explores** the codebase to verify assertions and understand current state 3. **Interviews** relentlessly about every design branch until shared understanding 4. **Sketches** major modules — actively seeking deep modules (small interface, deep implementation) 5. **Writes** the PRD and submits as GitHub issue via `gh issue create`

Process

1. Gather Problem Description

Ask the user for a detailed description of:

  • The problem they want to solve
  • Any potential ideas for solutions
  • Who the users/actors are

2. Explore the Codebase

Use Agent (subagent_type=Explore) to understand:

  • Current architecture relevant to the feature
  • Existing patterns and conventions
  • Integration points
  • Related code that might be affected

3. Interview Relentlessly

Walk down each branch of the design tree, resolving dependencies between decisions one-by-one. For each question, provide your recommended answer.

Ask questions one at a time. If a question can be answered by exploring the codebase, explore instead of asking.

4. Sketch Modules

Identify major modules to build or modify. Look for opportunities to extract **deep modules** — modules that encapsulate significant functionality behind a simple, testable interface.

Check with the user:

  • Do these modules match their expectations?
  • Which modules need tests?

5. Write and Submit PRD

Use the template below. Submit as GitHub issue via `gh issue create`. Share the URL.

PRD Template

<prd-template>

Problem Statement

The problem from the user's perspective.

Solution

The solution from the user's perspective.

User Stories

Extensive numbered list:

1. As an <actor>, I want a <feature>, so that <benefit>

Cover ALL aspects of the feature.

Implementation Decisions

  • Modules to build/modify
  • Interface designs for those modules
  • Architectural decisions
  • Schema changes
  • API contracts

Do NOT include specific file paths or code snippets — they go stale quickly.

Testing Decisions

  • What makes a good test (external behavior, not implementation details)
  • Which modules to test
  • Prior art for tests in the codebase

Out of Scope

What is explicitly NOT part of this PRD.

Further Notes

Any additional context.

</prd-template>

Visual Companion (Optional)

When upcoming questions will involve visual content (mockups, layouts, diagrams), offer the browser companion:

> "Some of what we're working on might be easier to explain visually. I can show mockups and diagrams in a browser. Want to try it?"

**This offer MUST be its own message.** Do not combine with other questions. Wait for response.

If accepted, start the server and use it for visual questions only. Text/conceptual questions stay in terminal.

See [reference/visual-companion.md](reference/visual-companion.md) for details.

Rules

  • Interview relentlessly — don't settle for vague answers
  • No file paths or code snippets in the PRD (durability principle)
  • User stories must be extensive and cover all aspects
  • Submit immediately via `gh issue create` — don't ask for review
  • Deep modules over shallow modules
Read more
@softspark
Ships withai-toolkit

AI coding toolkit with machine-enforced safety, 116 skills, 44 agents, lifecycle hooks, persona presets, opt-in plugin packs, and benchmark tooling.

180117 skills44 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
180
Star history of softspark/ai-toolkit on GitHub, a chart by star-history.com

Other skills on ai-toolkit.

ai-toolkit-rules

ai-toolkit-rules

Mandatory engineering, security, testing, git, performance, quality, and response rules. Claude MUST load this skill for every…

mem-search

mem-search

Searches past coding sessions for observations, decisions, context. Triggers: mem-search, recall session, past work, prior…

a11y-validate

a11y-validate

Accessibility validator: WCAG 2.1 AA, EN 301 549, EAA. Triggers: a11y, accessibility, WCAG, EAA, ARIA, contrast, keyboard, screen…

agent-creator

agent-creator

Creates new specialized agents with frontmatter, tools, delegation. Triggers: new agent, create agent, agent scaffold,…

analyze

analyze

Analyzes code quality, complexity, patterns across codebase. Triggers: quality report, hotspot scan, code analysis, architecture…

api-patterns

api-patterns

API design: naming, versioning, pagination, idempotency, OpenAPI, error contracts and safe retries. Triggers: API design, REST,…

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills3w309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc3w293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react2w252k
@facebook@facebookInstall Skill

Questions about write-a-prd.

Which coding agents can use write-a-prd?
write-a-prd installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.