Domain

/prd

---

$ golems-cli skills install prd
Good
89% best pass rate
9 assertions
3 evals

Updated 2 weeks ago


name: prd description: Use when planning a feature, starting a new project, or asked to create a PRD. Generates JSON-based PRD for Ralph. Adding stories uses update.json pattern. Covers PRD, create PRD, plan feature, Ralph stories. NOT for: running Ralph (user runs externally).

Create PRDs for autonomous AI implementation via Ralph loop.


The Job

  1. Ask 3-5 clarifying questions (use AskUserQuestion tool)
  2. Find git root: git rev-parse --show-toplevel
  3. Discover relevant skills for this project (see below)
  4. Create JSON output:
    • prd-json/index.json - Story order (stats computed automatically)
    • prd-json/stories/{US-XXX}.json - One file per story
  5. Create prd-json/AGENTS.md with skills section
  6. Create progress.txt at git root
  7. STOP and say: "PRD ready. Run Ralph to execute."

🛑 DO NOT IMPLEMENT - Ralph handles that externally.


Skill Discovery (CRITICAL for Ralph)

Before creating stories, determine which skills are relevant for THIS project:

Step 1: Check Project Context

# What's in this project?
[ -f "convex.json" ] && echo "HAS_CONVEX=true"
[ -f ".linear" ] || grep -q "linear" package.json 2>/dev/null && echo "HAS_LINEAR=true"
[ -d "src/components" ] || [ -d "app" ] && echo "HAS_UI=true"
[ -f "playwright.config.ts" ] && echo "HAS_PLAYWRIGHT=true"

Step 2: Match Skills to Project

UNIVERSAL (always include):

SkillWhy
/ralph-commitAtomic commits with criterion check
/coderabbitCode review before commits (iterate until clean)
/context7Look up library docs when unsure about APIs
/githubGit operations, PRs, issues
/create-prPush and create PRs
/catchupContext recovery after long breaks

PROJECT-SPECIFIC (include if detected):

If Project Has...Include SkillWhy
convex.json/convexDev server, deploy, functions
.linear or Linear in deps/linearIssue tracking
UI (/app, /components)/braveBrowser automation
1Password secrets/1passwordSecrets management
Complex PRD (10+ stories)/prd-managerBulk story operations
Needs isolation/worktreesBranch isolation

DO NOT INCLUDE (meta skills, not for Ralph):

  • /prd, /skills, /writing-skills, /ralph-install, /example-*

Step 3: List Available Skills (Reference)

# See all installed skills
ls -1 ~/.claude/commands/*/SKILL.md 2>/dev/null | while read f; do
  skill=$(dirname "$f" | xargs basename)
  desc=$(awk '/^description:/{gsub(/^description: *"?/, ""); gsub(/"$/, ""); print}' "$f")
  echo "/$skill: $desc"
done

Step 4: Include ONLY Relevant Skills in AGENTS.md

Don't dump all skills - only include ones this project will actually use. Ralph should see a focused list, not 20+ skills.


Story Prefix = Model Selection (CRITICAL)

Ralph routes stories to AI models based on the prefix. Wrong prefix = wrong model = failed story.

PrefixModelWhen to Use
US-SonnetSimple features, UI, CRUD. < 5 criteria, 1-3 files. Clear implementation path.
BUG-SonnetBug fixes, error handling, regressions.
V-HaikuVerification only (checking criteria, no code changes).
TEST-HaikuWriting tests only, no production code.
MP-OpusComplex infra, algorithms, multi-file refactors, architectural decisions. > 6 criteria, 4+ files.
AUDIT-OpusDeep code review, security, architecture.

Decision rule: If any criterion says "approach chosen", "design decision", or requires choosing between strategies — use MP-, not US-. Sonnet struggles with open-ended design. When in doubt, use MP-.

Config: ~/.config/golems/config.jsonmodels object. Default fallback: opus.