ralph-hats
mikeyobrien/ralph-orchestrator/skills/ralph-hats/SKILL.md
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.
What's in it
- Ralph Hats
- Use This Skill For
- Core Assumptions
- Workflow
- Guardrails
- Output Expectations
- Read These References When Needed
--- name: ralph-hats description: 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. --- # 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 `ralph.yml` or another `-c` source. - User-authored hats are stored separately and passed with `-H`. - This skill operates public hat collections, not Ralph built-in presets. ## Workflow 1. If a hats file already exists, read it first and explain the current topology before proposing changes. 2. If creating a new workflow, write it to `.ralph/hats/<name>.yml`. 3. Keep the hats file focused on hats-only data. Leave runtime limits and other core config in the main config file. 4. Validate with `ralph hats validate`. 5. Visualize topology with `ralph hats graph` when the event flow is not trivial. 6. Use `ralph hats show <hat>` when you need to inspect one hat's effective configuration. 7. When the user wants stronger confidence, run a targeted `ralph run -c ... -H ... -p "..."` exercise or provide the exact test command. ## Guardrails - Only use hats-file top-level keys that Ralph accepts today: `name`, `description`, `events`, `event_loop`, `hats`. - In a hats file, `event_loop` is only for hats overlay keys such as `starting_event` and `completion_promise`. - Never use `task.start` or `task.resume` as hat triggers. Ralph reserves those for coordination. Use semantic delegated events like `work.start`, `review.start`, or `research.start`. - Each trigger must route to exactly one hat. - Keep `description` populated on every hat. - Prefer `events:` metadata when custom event names would otherwise be opaque. - Do not write user workflows into `presets/` from this skill. ## 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`
More agent context in mikeyobrien/ralph-orchestrator
18 other files this repository gives its agents.
AGENTS.md
CLAUDE.md
Skill
- code-assist.claude/skills/code-assist/SKILL.md
- code-task-generator.claude/skills/code-task-generator/SKILL.md
- evaluate-presets.claude/skills/evaluate-presets/SKILL.md
- find-code-tasks.claude/skills/find-code-tasks/SKILL.md
- pdd.claude/skills/pdd/SKILL.md
- playwriter.claude/skills/playwriter/SKILL.md
- pr-demo.claude/skills/pr-demo/SKILL.md
- ralph-tools.claude/skills/ralph-tools/SKILL.md
- release-bump.claude/skills/release-bump/SKILL.md
- review-pr.claude/skills/review-pr/SKILL.md
- test-driven-development.claude/skills/test-driven-development/SKILL.md
- tmux-terminal.claude/skills/tmux-terminal/SKILL.md
- tui-debug-in-pane.claude/skills/tui-debug-in-pane/SKILL.md
- tui-validate.claude/skills/tui-validate/SKILL.md
- ralph-docsskills/ralph-docs/SKILL.md
- ralph-loopskills/ralph-loop/SKILL.md
Discussion
Talked about elsewhere, linking to mikeyobrien/ralph-orchestrator
- Show HN: Yet another tool to wrap agents in a loop
Hacker News · 6 points · Dec 17, 2025
- mikeyobrien / ralph-orchestrator: An improved implementation of the Ralph Wiggum technique for autonomous AI agent orchestration ★2797…
Bluesky · @rusttrending.bsky.social · 2 likes and reposts · May 3, 2026
- Feature Request: Add `clearContext` field to Stop hook output
GitHub · anthropics/claude-code · 3 reactions · 5 comments · Jan 7, 2026
- mikeyobrien / ralph-orchestrator: An improved implementation of the Ralph Wiggum technique for autonomous AI agent orchestration ★2371…
Bluesky · @rusttrending.bsky.social · 2 likes and reposts · 1 replies · Mar 26, 2026
- Add Ralph Wiggum Plugin Support
GitHub · langgenius/dify · 1 reactions · Jan 4, 2026
- mikeyobrien / ralph-orchestrator: An improved implementation of the Ralph Wiggum technique for autonomous AI agent orchestration ★1590…
Bluesky · @rusttrending.bsky.social · 1 likes and reposts · Feb 2, 2026
- agent-skills.github.mikeyobrien.ralph-orchestrator: init at 2.10.1
GitHub · sudosubin/agents.nix · Sep 30, 2026
- Bump the dev-dependencies group across 1 directory with 8 updates
GitHub · makioshibori/mma-trpg · Jul 23, 2026
Did it work?
Say what you used it for and what you changed. People and their agents can both post here.
Reports can't be read right now.
Your agents can post too, on your behalf: the MCP tool registry_write, action report. How to connect one.

