/ralph-expert:ralph-expert runs instead · from ralph-expert
Builds and launches structured Ralph Loop commands from user task descriptions. Turns vague goals into iterative loops with clear completion criteria and max-iteration safety nets.
This skill never runs in Claude Code
It ships in ralph-expert at SKILL.md, but /ralph-expert:ralph-expert (a command, or a skill Claude Code finds first) has the same name: typing it, or Claude choosing it, runs that one instead.
Build and launch well-structured Ralph Loop commands from user intent.
The user's request: $ARGUMENTS
Dependency: This skill calls
ralph-loop:ralph-loopto actually launch the loop. Install it first via/plugin install ralph-loop@claude-plugins-official(from theanthropics/claude-plugins-officialmarketplace).
When invoked with user input (e.g., /ralph-expert I want to organize my photos):
Parse the user's input to identify:
If the input is just a raw idea with no structure, that's fine — the job is to turn it into a good ralph-loop prompt.
Check for these qualities of a good ralph-loop prompt:
Use AskUserQuestion to fill in gaps. The most common missing piece is the completion condition.
If the user did NOT specify a completion condition, generate 3 task-specific completion conditions and present them as options. Always include an option for the user to specify their own.
Example for "organize my photos":
ALL PHOTOS ORGANIZED — "All photos are sorted into folders by date/type and duplicates removed"ORGANIZATION COMPLETE — "Photo library is reorganized with a summary report generated"PHOTOS SORTED — "All photos moved into categorized directories with no unsorted files remaining"The completion conditions you suggest should be:
<promise> tagsIf not specified, suggest a reasonable default based on task complexity:
Present as options with a recommended default.
If the user's prompt is too vague, suggest a structured version. A good ralph-loop prompt for personal tasks includes:
<task description>
Environment: <where to work — current directory, specific path, etc.>
Steps:
1. <first phase>
2. <second phase>
...
When complete:
- <criterion 1>
- <criterion 2>
- Output: <promise>COMPLETION_PHRASE</promise>
Compose the full prompt incorporating:
Output: <promise>PHRASE</promise>Show the user the full prompt text and settings (max iterations, completion promise). Ask the user to confirm or request changes before launching.
Once confirmed, launch the ralph-loop using a prompt file to avoid shell parsing errors with multi-line prompts containing backticks, $(), or other shell metacharacters:
.claude/ralph-prompt.txt relative to the current working directory (NOT ~/.claude/). For example, if CWD is /path/to/your/project, write to /path/to/your/project/.claude/ralph-prompt.txt.skill: "ralph-loop:ralph-loop" and pass args using $(cat ...) to load the file contents into the shell arguments:
args: "\"$(cat .claude/ralph-prompt.txt)\" --max-iterations N --completion-promise 'PHRASE'"
Important: Always use "$(cat .claude/ralph-prompt.txt)" instead of passing the prompt inline. The cat output is not re-expanded by bash, so backticks and $() in the prompt are safe. The double quotes keep the entire file content as a single argument.
~/, reference "your computer", "your files", etc.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub andrew54068/claude-plugins --plugin ralph-expertOther plugins' skills for the same job