Command Palette

Search for a command to run...

Назад к скиллам
скилл № 72184

Prd

Brainstorm, harden, and generate an executable PRD for Ralph from a description, idea file, or plan file.

БесплатноБез исполняемых скриптов
allieraysот allierays★ 38 звёзд на GitHub

Установить Prd в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

/prd - Generate PRD for Ralph

Generate executable stories for Ralph's autonomous development loop.

CRITICAL: This command does NOT write code. It produces .ralph/prd.json only.

User Input

$ARGUMENTS

Workflow

Step 1: Determine Input Type

If $ARGUMENTS is empty:

  1. Scan for existing source files:
    ls docs/ideas/*.md 2>/dev/null || echo "No idea files found"
    ls docs/plans/*.md 2>/dev/null || echo "No plan files found"
    
  2. If source files exist, use AskUserQuestion to let the user pick:
    • Question: "What should I build the PRD from?"
    • Header: "PRD source"
    • Options: List discovered idea/plan files (up to 3-4 most relevant), plus a "Describe a feature" option that says "Type a description directly (e.g., 'Add user logout button')"
    • If no source files found, skip AskUserQuestion and just say: "Describe the feature you'd like to build (e.g., /prd 'Add user logout button')"

If $ARGUMENTS looks like a plan file (plans/ prefix, docs/plans/ path, or full path to a plan file):

  • If it's a full path, use it directly
  • If it's plans/name or just a prefix, look for docs/plans/{name}.md
  • Proceed to "Read and Understand the Plan"

If $ARGUMENTS looks like an idea file reference (no spaces, matches docs/ideas/*.md):

  • If it's a full path, use it directly
  • If it's just a name like content-engine, check docs/ideas/content-engine.md first, fall back to docs/plans/content-engine.md
  • Proceed to "Read and Understand the Idea"

If $ARGUMENTS is a description (has spaces, is a sentence):

  • This is the quick PRD flow - no source file created
  • Good for small features that don't need documentation
  • Skip to "Confirm Understanding" below

Step 2a: Read and Understand the Idea (from file)

Read the idea file and summarize:

Say: "I've read {path}. Here's my understanding:

Feature: {name} Problem: {one line} Solution: {one line} Scope: {key items}

I'll now ask a few hardening questions before generating stories."

Proceed to Step 2.5.

Step 2b: Confirm Understanding (from description)

If working from a direct description, first explore the codebase briefly:

ls -la src/ app/ 2>/dev/null | head -20
cat package.json 2>/dev/null | jq '{name, dependencies}' || true
cat pyproject.toml 2>/dev/null | head -20 || true

Use the detected tech stack, test runners, and constraints when building each story — these go into each story's techStack, constraints, and testing.runner fields (not at the PRD root).

Then say: "I'll create a PRD for: {description}

Here's what I found in your codebase: [brief summary of tech stack, existing patterns]

I'll now ask a few hardening questions before generating stories."

Proceed to Step 2.5.

Step 2c: Read and Understand the Plan (from plan file)

Read the plan file and summarize:

Say: "I've read {path}. Here's my understanding:

Feature/Goal: {name} Approach: {summary of approach} Key Files: {files mentioned} Scope: {key items}

I'll now ask a few hardening questions before generating stories."

Proceed to Step 2.5.

Step 2.5: Harden the Requirements

This step runs for ALL input types (idea file, plan file, or description). Review what you already know from the input and ask ONLY about gaps — skip questions the input already answers.

Say: "Before I generate stories, I want to make sure we've covered the key areas:"

Scope & UX (always ask):

  • What's in scope vs out of scope?
  • Is this user-facing? What does the user see/do?
  • What are the edge cases?
  • Responsive design (if frontend): Must it work on mobile/tablet? What breakpoints? Any layout changes between screen sizes?

Security (ask if feature involves auth, user input, or sensitive data):

  • Authentication: Who can access this? Login required?
  • Passwords: How stored? (must be hashed, never plain text)
  • User input: What validation needed? (SQL injection, XSS)
  • Sensitive data: What should NEVER be in API responses?
  • Rate limiting: Should this be rate limited?

Scale (ask if feature involves lists, data, or APIs):

  • How many items expected? (10s, 1000s, millions?)
  • Pagination needed? What's the max per page?
  • Caching needed? How fresh must data be?
  • Database indexes: What will be queried/sorted frequently?

Migration (ask if feature involves restructuring or moving code):

  • Source → destination mapping: Where does code currently live? Where should it end up?
  • Phases: What's the logical order?
  • Verification: What commands prove each phase worked?

After presenting the hardening questions, use AskUserQuestion:

  • Question: "Answer the questions above, or proceed with sensible defaults?"
  • Header: "Hardening"
  • Options:
    • "Go with defaults" — "Proceed with sensible defaults for unanswered questions"
    • "Let me answer" — "I'll respond to the questions above"
  • If the user selects "Let me
Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл Prd?

Brainstorm, harden, and generate an executable PRD for Ralph from a description, idea file, or plan file.

Как установить скилл Prd?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл Prd запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить Prd с