Skip to content

/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.

From plugin
ralph-orchestrator
3.2k17 skills3 agents

Claude Code

$ npx -y skills add mikeyobrien/ralph-orchestrator --skill ralph-hats --agent claude-code

SKILL.md

ralph-hats.SKILL.md
name: ralph-hats
description: Create, validate, explain, and improve Ralph hat collections. Use when writing or refining `.ralph/hats/*.yml`, debugging hat routing, explaining event topology, or tuning a multi-hat 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. Check the collection against every item in `references/design.md` (dangling topics, per-hat paths, bookkeeping hats, reviewer severity, model and effort per role) and fix or explain each miss. 6. Visualize topology with `ralph hats graph` when the event flow is not trivial. `--format mermaid` renders locally; the default and `--format ascii` ask the configured backend to draw it, which takes a model call. 7. Use `ralph hats show <hat>` when you need to inspect one hat's effective configuration. 8. 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`
  • For design checks drawn from measured runs: `references/design.md`
Read more
@mikeyobrien
Ships withralph-orchestrator

A hat-based orchestration framework that keeps AI agents in a loop until the task is done. "Me fail English? That's unpossible!" - Ralph Wiggum

Stars on GitHub

Momentum

stars in total
3.2k
Star history of mikeyobrien/ralph-orchestrator on GitHub, a chart by star-history.com

Other skills on ralph-orchestrator.

code-assist
Auto-invoked

code-assist

Guides implementation of code tasks using test-driven development in an Explore, Plan, Code, Commit workflow. Acts as a Technical…

pdd
Auto-invoked

pdd

Transforms a rough idea into a detailed design document with implementation plan. Follows Prompt-Driven Development — iterative…

More skills from other plugins.

1password

1password

Set up and use 1Password CLI for sign-in, desktop integration, and reading or injecting secrets.

clawdis2w393k
@steipete@steipeteInstall Skill
computer-use

computer-use

Drives the GUI of a visible local app window through `orca computer`: accessibility tree, clicks, typing, menus, dialogs, and…

orca2w111k
@stablyai@stablyaiInstall Skill
agentmail

agentmail

Use your assigned AgentMail inbox to read email tasks, explicitly send or reply, and check delivery. Provided automatically by…

paperclip2w109k
@paperclipai@paperclipaiInstall Skill
adr-create

adr-create

Create a new Architecture Decision Record with sequential numbering and AgentDB registration

@ruvnet@ruvnetInstall Skill

Questions about ralph-hats.

Which coding agents can use ralph-hats?
ralph-hats installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.