Ralph-orchestrator ralph-hats
Create, inspect, validate, explain, and improve Ralph hat collections. Use this skill whenever the user asks to make or refine a `.ralph/hats/*.yml` workflow, debug hat routing, explain event topology, or tune a multi-hat Ralph run.
install
source · Clone the upstream repo
git clone https://github.com/mikeyobrien/ralph-orchestrator
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/mikeyobrien/ralph-orchestrator "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/ralph-hats" ~/.claude/skills/mikeyobrien-ralph-orchestrator-ralph-hats && rm -rf "$T"
manifest:
skills/ralph-hats/SKILL.mdsource content
Ralph Hats
Use this skill to operate the full Ralph hat lifecycle for user-authored hat collections.
Use This Skill For
- Creating a new hat collection in
.ralph/hats/ - Inspecting an existing hat collection and explaining its topology
- Validating trigger routing, event flow, and completion behavior
- Improving or refactoring hats for clearer roles and safer routing
- Recommending better orchestration patterns for a Ralph workflow
Core Assumptions
- Core runtime config already lives in
or anotherralph.yml
source.-c - User-authored hats are stored separately and passed with
.-H - This skill operates public hat collections, not Ralph built-in presets.
Workflow
- If a hats file already exists, read it first and explain the current topology before proposing changes.
- If creating a new workflow, write it to
..ralph/hats/<name>.yml - Keep the hats file focused on hats-only data. Leave runtime limits and other core config in the main config file.
- Validate with
.ralph hats validate - Visualize topology with
when the event flow is not trivial.ralph hats graph - Use
when you need to inspect one hat's effective configuration.ralph hats show <hat> - When the user wants stronger confidence, run a targeted
exercise or provide the exact test command.ralph run -c ... -H ... -p "..."
Guardrails
- Only use hats-file top-level keys that Ralph accepts today:
,name
,description
,events
,event_loop
.hats - In a hats file,
is only for hats overlay keys such asevent_loop
andstarting_event
.completion_promise - Never use
ortask.start
as hat triggers. Ralph reserves those for coordination. Use semantic delegated events liketask.resume
,work.start
, orreview.start
.research.start - Each trigger must route to exactly one hat.
- Keep
populated on every hat.description - Prefer
metadata when custom event names would otherwise be opaque.events: - Do not write user workflows into
from this skill.presets/
Output Expectations
- When editing or creating hats, produce the file changes and the validation result.
- When only inspecting, produce a concise topology summary, the main risks, and concrete improvement options.
Read These References When Needed
- For current hats schema and supported fields:
references/schema.md - For command recipes and validation workflow:
references/commands.md - For pattern and file examples:
references/examples.md