skills/ralph-prd-creator/SKILL.md
Create effective PRDs (Product Requirements Documents) for Ralph loops / Ralph Wiggum autonomous AI coding agents. Use whenever the user wants to create a PRD, task list, or specification for use with Ralph loops, Claude Code loops, Codex loops, or any autonomous agent loop. Also use when the user says 'create a PRD', 'write a task list for ralph', 'break this down into stories', 'plan this feature for autonomous coding', 'help me write acceptance criteria', 'prepare this for a ralph loop', or mentions creating prd.json. Also trigger when the user asks how to structure work for AI agents, wants to decompose a feature into agent-executable tasks, or needs help writing CLAUDE.md / AGENTS.md companion files for autonomous coding. Covers PRD schema, extracted constraints, machine-verifiable acceptance criteria, anti-criteria, quantified criteria, story invalidation tracking, quality gates, progress tracking, failure prevention, and companion file creation for DevOps/cloud-native/infrastructure projects.
npx skillsauth add mgajewskik/opencode-config ralph-prd-creatorInstall 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 machine-executable PRDs that drive autonomous AI coding loops to reliable completion. A Ralph PRD is not a traditional spec — it's a living data structure the agent reads, executes against, and updates every iteration.
The PRD defines the end state. The agent figures out how to get there. Describe WHAT done looks like with:
Do NOT describe HOW to implement it step by step.
Load these based on the task:
references/prd-schema.mdreferences/acceptance-criteria.mdreferences/story-decomposition.mdreferences/companion-files.mdreferences/failure-modes.mdreferences/example-prd.jsonRecover from the conversation first. Ask only for information still missing.
Extract these before writing the PRD:
EX-Q: quantitative limits and thresholdsEX-P: prohibitions and must-not rulesEX-R: mandatory requirementsEX-I: assumptions, conventions, and non-goalsThen ask for any missing high-impact gaps:
If the user provides a vague description ("build me a CLI tool"), use the interview technique: ask the agent-relevant questions the user hasn't thought about — error handling strategy, output formats, configuration approach, testing strategy.
Always load:
references/prd-schema.md — to use the correct JSON structurereferences/acceptance-criteria.md — to write verifiable story criteria for the user's stackLoad only when needed:
references/story-decomposition.md — when creating or resizing storiesreferences/companion-files.md — when creating companion filesreferences/failure-modes.md — when pressure-testing the PRD or reviewing an existing onereferences/example-prd.json — when the user wants an example or concrete patternCreate a compact root-level constraints block in prd.json with only decision-relevant items:
quantitative — explicit limits and thresholds from the conversationprohibitions — must-not rules and scope boundariesrequirements — hard requirements the agent must satisfyassumptions — implicit conventions, defaults, and non-goalsRules:
Follow the decomposition rules in references/story-decomposition.md:
dependsOn to enforce orderingFor each story, write criteria following references/acceptance-criteria.md:
acceptanceCriteria for what must happenantiCriteria for what must never happenquantitativeCriteria for budgets, thresholds, and numeric limits when the conversation or tooling supports themacceptanceCriteria on EVERY storyMinimum bar:
quantitativeCriteria empty rather than guessing.When a new story replaces or makes an earlier story obsolete, add supersedes to the new story.
Use it when:
Rules:
supersedes) rather than mutating history everywhere.supersedes only when the newer story fully replaces or invalidates the older one.supersedes for normal dependency flow; use it only for true invalidation or replacement.Create the supporting files per references/companion-files.md:
Run through this checklist before delivering:
constraints block captures the conversation's important thresholds, prohibitions, requirements, and assumptionsdependsOn creates a valid DAG (no circular dependencies)supersedes appears only where a later story truly replaces an earlier onebranchName is kebab-case and prefixed with ralph/"passes": falseOutput these files:
Present a summary: total stories, rough iteration range, dependency graph overview, extracted constraints summary, any superseded stories, and any risks or ambiguities the user should resolve before running.
When the user provides an existing PRD for review:
references/prd-schema.md and validate the JSON structurereferences/acceptance-criteria.md and check acceptance, anti-, and quantitative criteria for vagueness or loopholesreferences/story-decomposition.md and check story sizingreferences/failure-modes.md and scan for known anti-patternsThese are the most common mistakes. Check them first:
supersedesdocumentation
Create senior-level deep research dossiers and roadmap companions. Use when the user asks for a dossier, senior research, deep research, in-depth research, mental models for a topic, senior perspective on a topic, how something actually works, ramp up on a topic, architectural deep dive, tradeoffs, failure modes, or what a senior would notice. Produces current-directory research-* and roadmap-* markdown artifacts, not a tutorial or short summary.
development
Senior-level Knative and OpenShift Serverless guidance for Serving, Eventing, Functions, autoscaling, scale-to-zero, CloudEvents, RabbitMQ/Kafka sources, Lambda migration, Harbor/OCI images, debugging, operations, and production rollout. Use when working with Knative Service, Revision, Route, KPA, activator, queue-proxy, Broker, Trigger, Source, Sink, kn func, OpenShift Serverless, Kourier, eventing-rabbitmq, Knative Kafka, or serverless workloads on Kubernetes/OpenShift.
development
Senior-level RHEL-family Linux operations. Use when running, debugging, hardening, patching, installing, upgrading, or operating Red Hat Enterprise Linux, Rocky Linux, AlmaLinux, CentOS Stream, Fedora-as-upstream, or related enterprise Linux hosts: systemd, RPM/DNF, SELinux, NetworkManager, firewalld, storage, kernel/kdump, FIPS/STIG, Satellite, IdM, Podman, bootc, air-gapped fleets.
development
Senior-level Proxmox VE guidance for VM creation, templates, storage, ZFS, Ceph, networking, clusters, HA, PBS backups, debugging, upgrades, security, and production/homelab operations. Use when working with Proxmox, PVE, Proxmox VE, qm, pct, pvesm, pvecm, pmxcfs, HA manager, Proxmox Backup Server, VM migration, Proxmox incidents, or Ceph/ZFS/Corosync/VLAN bridges in a Proxmox VE context.