/caddis:prd <feature or problem>from caddis
Capture requirements through structured discovery and write a PRD
Ships in caddis. Installing the plugin adds it to Claude Code.
Produce a Product Requirements Document for: $ARGUMENTS
If empty, ask what the feature/problem is and stop. Goal: turn a fuzzy idea into a crisp, testable spec
that /feature-plan can consume.
Interview the user to fill gaps. Ask only what you can't infer from the codebase / STACK.md. Cover:
Ask in small batches; stop interviewing once the spec is testable.
When the invocation contains the marker HEADLESS RUN RULES, or CADDIS_HEADLESS is set in
the environment (the caddis OSS launchers export it on claude's -p/--print) — a non-interactive
caller spawned this session and no human is present, so the Discovery interview above is suspended and
forbidden. This mode exists for one-line ideas: the card may be nothing more than a short title with
no description, and there may be no codebase or STACK.md to draw on. That is expected and still
fully actionable — a terse title is enough to write a complete draft PRD.
Absolute rules in this mode (they override everything above):
The same policy exists in
/caddis:feature-plan, and the two are deliberately NOT identical. Each is specialised to the artefact its command writes — where the output goes, and where an unresolved decision is recorded. Do not merge them, and do not replace either with a pointer: headless mode is precisely when no human is present and the session will not go and read another command to find its own rules.
## Open questions bullet (or [TECH-DECISION OPEN] inline). This section
may be long — that is good, not a problem. It is where all the things you would have asked go.artifact_dir/feature slug the caller
specifies (falling back to .caddis/prd/<feature-slug>.md); set feature: <slug> in the
frontmatter to that same slug. The frontmatter shape is unchanged from the interactive flow.json highlights block as the
final output — nothing after it. Keep summary ≤ 280 chars; open_questions = the count of bullets
under ## Open questions:
{"artifact":"<artifact_dir>/<slug>.md","summary":"<=280 chars>","open_questions":<int>}
The only acceptable final output in this mode is the written artifact plus its highlights block — never questions. Everything else — the PRD template, frontmatter, and section structure below — is identical in both modes; only the interview is skipped.
.caddis/prd/<feature-slug>.md---
type: prd
status: draft
feature: <feature-slug>
creation-agent: caddis
Original Author: Claude Code
Creation Date: <YYYY-MM-DDTHH:MM:SSZ>
Creating Model: <model-id>
---
# PRD — <feature>
**Created:** <ISO date> • **Status:** draft
## Problem
<who, what, why.>
## Goal & success criteria
- <measurable outcome>
## Functional requirements
- FR-1: <requirement — phrased so a test can verify it>
## Non-functional requirements
- NFR-1: <perf/security/a11y/...>
## Out of scope
- <explicitly excluded>
## Data
| Field / source | Shape | Notes |
|---|---|---|
## Edge cases & failure modes
- <empty / error / permission / boundary>
## Open questions
- <unresolved — needs a decision before planning>
Output the PRD path and the FR list. Suggest: "Next: /feature-plan <feature>." Don't design the
implementation here — PRD is the what, the plan is the how.
Create .caddis/prd/ if it doesn't exist.
What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
npx claudepluginhub saajunaid/caddis-plugin --plugin caddis44 commands in this plugin
/add-rules/add-rules — add canonical rules to a folderCreate canonical rules for ANY folder — write <folder>/AGENTS.md (from the folder template) + a <folder>/CLAUDE.md @import shim. For folders the stack-map generator doesn't cover./catchup/catchup — where are we?Where were we? A quick list of what this session was doing and what is still open/cloud-phases/caddis:cloud-phases — run plan phases in the cloud, then take them backOther plugins' commands for the same job