setup-ralph
Setup the Ralph autonomous AI coding loop - ships features while you sleep
What this skill does
<objective>
Set up the Ralph autonomous coding loop in any project. Ralph runs AI agents in a loop, picking tasks from a PRD, implementing one at a time, committing after each, and accumulating learnings until all tasks are complete.
**This skill ONLY sets up Ralph - you run the commands yourself.**
</objective>
<quick_start>
**Setup Ralph interactively (recommended):**
```bash
/setup-ralph -i
```
**Setup for specific feature:**
```bash
/setup-ralph -f 01-add-authentication
```
**What this does:**
1. Creates `.claude/ralph/` structure in your project
2. Runs setup script to create all Ralph files
3. (If -i): Brainstorms PRD with you interactively
4. Transforms PRD into user stories (prd.json)
5. Shows you the command to run Ralph (you run it yourself)
**After setup, you run:**
```bash
bun run .claude/ralph/ralph.sh -f <feature-name>
```
</quick_start>
<critical_rule>
๐ NEVER run ralph.sh or any execution commands automatically
๐ NEVER execute the loop - only set up files and show instructions
โ
ALWAYS let the user copy and run commands themselves
โ
ALWAYS end by showing the exact command to run
</critical_rule>
<when_to_use>
**Use this skill when:**
- Starting a new feature that can be broken into small stories
- Setting up Ralph in a new project
- Creating a new feature PRD interactively
**Don't use for:**
- Simple single-file changes
- Exploratory work without clear requirements
- Major refactors without acceptance criteria
</when_to_use>
<parameters>
| Flag | Description |
|------|-------------|
| `<project-path>` | Path to the project (defaults to current directory) |
| `-i, --interactive` | Interactive mode: brainstorm PRD with AI assistance |
| `-f, --feature <name>` | Feature folder name (e.g., `01-add-auth`) |
**Examples:**
```bash
/setup-ralph /path/to/project -i # Interactive PRD creation
/setup-ralph . -f 01-add-auth # Setup for specific feature
/setup-ralph -i -f 02-user-dashboard # Interactive with specific name
```
</parameters>
<state_variables>
| Variable | Type | Description |
|----------|------|-------------|
| `{project_path}` | string | Absolute path to target project |
| `{ralph_dir}` | string | Path to .claude/ralph in project |
| `{feature_name}` | string | Feature folder name (e.g., `01-add-auth`) |
| `{feature_dir}` | string | Path to task folder |
| `{interactive_mode}` | boolean | Whether to brainstorm PRD interactively |
| `{prd_content}` | string | PRD markdown content |
| `{user_stories}` | array | User stories extracted from PRD |
| `{branch_name}` | string | Git branch for the feature |
</state_variables>
<entry_point>
Load `steps/step-00-init.md`
</entry_point>
<step_files>
| Step | File | Purpose |
|------|------|---------|
| 00 | `step-00-init.md` | Parse flags, run setup script, create structure |
| 01 | `step-01-interactive-prd.md` | Interactive PRD brainstorming and creation |
| 02 | `step-02-create-stories.md` | Transform PRD into user stories (prd.json) |
| 03 | `step-03-finish.md` | Show run command (user runs it themselves) |
</step_files>
<scripts>
| Script | Purpose |
|--------|---------|
| `scripts/setup.sh` | Creates all Ralph files in the project |
</scripts>
<execution_rules>
1. **Progressive Loading**: Load one step at a time
2. **Script Execution**: Use scripts/setup.sh to create files atomically
3. **Interactive Mode**: If -i flag, run brainstorming conversation
4. **State Persistence**: Track progress in feature_dir/progress.txt
5. **Resume Support**: Detect existing PRD.md and resume from there
6. **NEVER RUN RALPH**: Only setup and show commands - user runs them
</execution_rules>
<success_criteria>
โ
Ralph structure created at {project_path}/.claude/ralph
โ
Feature folder created with PRD.md, prd.json, progress.txt
โ
User stories properly formatted in prd.json
โ
Clear run command provided to user (they run it themselves)
</success_criteria>
Related in General
modeling-omnistudio-epc-catalog
IncludedSalesforce Industries CME EPC product-modeling skill for Product2-based catalog creation. Use when creating EPC products, configuring product attributes, building offer bundles with Product Child Items, or reviewing EPC DataPack JSON metadata for product catalog changes. TRIGGER when: user creates or updates Product2 EPC records, AttributeAssignment payloads, AttributeMetadata/AttributeDefaultValues, Offer bundles, or ProductChildItem relationships. DO NOT TRIGGER when: designing OmniScripts/FlexCards/Integration Procedures (use building-omnistudio-omniscript, building-omnistudio-flexcard, or building-omnistudio-integration-procedure), implementing Apex business logic (use generating-apex), or troubleshooting deployment pipelines (use deploying-metadata).
relationship-science-coach
IncludedUse this skill for direct, practical adult relationship coaching: couples conflict, repair, trust, marriage, dating, flirting, attachment patterns, emotional connection, sex, desire differences, eroticism, kink negotiation, affection, love languages, breakups, and long-term passion. Draw on Gottman, EFT and Hold Me Tight, attachment science, modern sex research, Perel, Nagoski, Kerner, Schnarch, Love and Stosny, and flexible love-language tools. Be concrete and low-hedge. Redirect only for imminent danger, abuse, coercive control, minors, non-consent, self-harm, stalking, or medical/legal/psychiatric decisions.
building-sf-integrations
IncludedSalesforce integration architecture and runtime plumbing with 120-point scoring. Use this skill to set up Named Credentials, External Credentials, External Services, REST/SOAP callout patterns, Platform Events, and Change Data Capture. TRIGGER when: user sets up Named Credentials, External Services, REST/SOAP callouts, Platform Events, CDC, or touches .namedCredential-meta.xml files. DO NOT TRIGGER when: Connected App/OAuth config (use configuring-connected-apps), Apex-only logic (use generating-apex), or data import/export (use handling-sf-data).
venue-templates
IncludedAccess comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.
let-fate-decide
IncludedDraws the 12 Houses of the Zodiac Tarot spread to inject entropy into planning when prompts are vague, ambiguous, or casually delegated. Interprets the spread to guide next steps. Use when the user says 'let fate decide', 'YOLO', 'whatever', 'idk', or other nonchalant phrases, makes Yu-Gi-Oh references, or when you are about to arbitrarily pick between multiple reasonable approaches. Prefer over ask-questions-if-underspecified when the user's tone is casual or playful rather than precision-seeking.
net-ops
IncludedCross-platform network troubleshooting (Windows, macOS, Linux) via local or remote shell. Use for: DNS broken, can't resolve hostnames, nslookup/dig works but apps fail, NRPT, WFP, scutil, /etc/resolver, systemd-resolved, /etc/resolv.conf, NetworkManager, VPN DNS leak residue (ProtonVPN/Mullvad/WireGuard/AnyConnect), AV/firewall blocking DNS or DoH, Tailscale DNS interaction, intermittent connectivity, remote diagnostics over SSH.