Agent skill

Ralph Hats

by mikeyobrien in mikeyobrien/ralph-orchestrator

Create, inspect, validate, explain, and improve Ralph hat collections.

MITAuto-check passed

Install Ralph Hats

skills CLI
$ npx skills add mikeyobrien/ralph-orchestrator --skill ralph-hats -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install mikeyobrien/ralph-orchestrator ralph-hats --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/mikeyobrien/ralph-orchestrator.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/ralph-hats .claude/skills/ralph-hats && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
ralph-hats
GitHub stars
3.2k
Token cost
~691 tokens
SKILL.md length
345 words
Files
5 (incl. references)
Skills in repo
16
Repo updated
First seen
Licence
MIT

At a glance

Create, inspect, validate, explain, and improve Ralph hat collections.

  • Works in 7 steps: If a hats file already exists, read it… → If creating a new workflow, write it to… → Keep the hats file focused on hats-only… → …
  • The user asks to make
  • SKILL.md covers Use This Skill For, Core Assumptions, Workflow and Guardrails, plus 2 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Ralph Hats is an agent skill from mikeyobrien/ralph-orchestrator. 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.

Its SKILL.md is about 690 tokens, which your agent loads only when the skill is triggered. The skill folder holds 6 other files, including reference files (for example `agents/openai.yaml`, `references/commands.md` and `references/examples.md`).

The repository describes itself as: An improved implementation of the Ralph Wiggum technique for autonomous AI agent orchestration. The licence is MIT.

When your agent uses it

  • The user asks to make
  • Refine a .ralph/hats/.yml workflow
  • Debug hat routing
  • Explain event topology

Example prompts

  • “/ralph-hats”

Workflow steps

7 steps, taken from the first numbered list in SKILL.md.

  1. If a hats file already exists, read it first and explain the current
  2. If creating a new workflow, write it to .ralph/hats/.yml.
  3. Keep the hats file focused on hats-only data. Leave runtime limits and other
  4. Validate with ralph hats validate.
  5. Visualize topology with ralph hats graph when the event flow is not
  6. Use ralph hats show when you need to inspect one hat's effective
  7. When the user wants stronger confidence, run a targeted `ralph run -c ... -H

What it can do on your machine

Read from SKILL.md and the folder at commit edc2b32. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Ralph Hats loads about 691 tokens when it runs, and up to ~2.1k if it reads all its reference files. Until then it costs about 61 tokens; SKILL.md has 345 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~61
When it runs · the whole SKILL.md, loaded when a task matches
~691
With references · SKILL.md plus every file in references/, read only if the agent opens them
~2.1k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from mikeyobrien/ralph-orchestrator at commit edc2b32, republished under its MIT licence (© mikeyobrien). 345 words, ~691 tokens.

Download SKILL.mdSave it as .claude/skills/ralph-hats/SKILL.md (or your agent's skills folder). This skill also uses 4 other files; get the full folder from GitHub.
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

© mikeyobrien, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 4 other files (references) in skills/ralph-hats of mikeyobrien/ralph-orchestrator.

  • SKILL.md
  • agents/openai.yaml
  • references/commands.md
  • references/examples.md
  • references/schema.md

Open the folder on GitHubat commit edc2b32

Compare with similar skills

Ralph Hats next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Ralph Hats compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Ralph Hats this skillmikeyobrien/ralph-orchestrator3.2k—~691Automated safety check: PassMIT
RalphYeachan-Heo/oh-my-claudecode40k—~7.5kAutomated safety check: PassMIT
Node Inspect Debuggeropenclaw/openclaw392k1 repos~894Automated safety check: PassMIT
Skill Improversickn33/agentic-awesome-skills47k2 repos~1.5kAutomated safety check: PassMIT
Logic Explainsickn33/agentic-awesome-skills47k1 repos~894Automated safety check: PassMIT
Blender Motion State Inspectionaffaan-m/ECC277k1 repos~2kAutomated safety check: PassMIT

Similar skills

  • Ralph

    Yeachan-Heo/oh-my-claudecode

    Self-referential loop until task completion with configurable verification reviewer

    40k GitHub stars~7.5k tokensUpdated 2 days ago
    Product & Project ManagementAuto-check passed
  • Node Inspect Debugger

    openclaw/openclaw

    Debug Node.js with node inspect, --inspect, breakpoints, CDP, heap, and CPU profiles.

    392k GitHub starsUsed in 1 repo~894 tokens
    Frontend & DesignAuto-check passed
  • Skill Improver

    sickn33/agentic-awesome-skills

    Iteratively improve a Claude Code skill using the skill-reviewer agent until it meets quality standards.

    47k GitHub starsUsed in 2 repos~1.5k tokens
    Agent WorkflowsAuto-check passed
  • Logic Explain

    sickn33/agentic-awesome-skills

    Explain what a specific piece of code actually does for a given input by producing a step-by-step execution trace (interprocedural, with name resolution and type transitions).

    47k GitHub starsUsed in 1 repo~894 tokens
    Auto-check passed
  • A skill your agent uses when inspecting Blender characters, rigs, poses, animation retargeting, ground contact, facing direction, or model-vs-motion alignment where screenshots alone are not enough.

    277k GitHub starsUsed in 1 repo~2k tokens
    Game DevelopmentAuto-check passed
  • Agent skill for collective-intelligence-coordinator - invoke with $agent-collective-intelligence-coordinator

    74k GitHub starsUsed in 2 repos~1k tokens
    Auto-check passed

More from mikeyobrien/ralph-orchestrator

All 16 skills in this repo
  • Ralph Docs

    mikeyobrien/ralph-orchestrator

    Introspect, explain, and improve Ralph Orchestrator using its published llms.txt doc map.

    3.2k GitHub stars~1.5k tokensUpdated 6 days ago
    Auto-check passed
  • Evaluate Presets

    mikeyobrien/ralph-orchestrator

    A skill your agent uses when testing Ralph's hat collection presets, validating preset configurations, or auditing the preset library for bugs and UX issues.

    3.2k GitHub stars~1.8k tokensUpdated 6 days ago
    Auto-check passed
  • PR Demo

    mikeyobrien/ralph-orchestrator

    A skill your agent uses when creating animated demos (GIFs) for pull requests or documentation.

    3.2k GitHub stars~1.3k tokensUpdated 6 days ago
    Auto-check passed
  • Release Bump

    mikeyobrien/ralph-orchestrator

    A skill your agent uses when bumping ralph-orchestrator version for a new release, after fixes are committed and ready to publish

    3.2k GitHub stars~583 tokensUpdated 6 days ago
    Auto-check passed
  • Review PR

    mikeyobrien/ralph-orchestrator

    A skill your agent uses when asked to review a PR, run a code review loop, or invoke the ralph reviewer against a pull request number or GitHub URL

    3.2k GitHub stars~589 tokensUpdated 6 days ago
    Auto-check passed
  • Tui Debug In Pane

    mikeyobrien/ralph-orchestrator

    A skill your agent uses when you need to reproduce or debug TUI rendering issues (garbled output, broken streaming, layout corruption) by running ralph in a tmux split pane and capturing live output.

    3.2k GitHub stars~825 tokensUpdated 6 days ago
    Auto-check passed

Questions about Ralph Hats

What does Ralph Hats do?

Create, inspect, validate, explain, and improve Ralph hat collections. Ralph Hats is an agent skill from mikeyobrien/ralph-orchestrator. Create, inspect, validate, explain, and improve Ralph hat collections.

When should I use Ralph Hats?

Ralph Hats fits situations like: the user asks to make; refine a .ralph/hats/.yml workflow; debug hat routing; explain event topology.

How do I install Ralph Hats in Claude Code?

Run `npx skills add mikeyobrien/ralph-orchestrator --skill ralph-hats -a claude-code`. Or copy the skill folder (skills/ralph-hats in mikeyobrien/ralph-orchestrator) into .claude/skills/ralph-hats in your project. Claude Code loads it when a task matches its description.

How do I install Ralph Hats in Codex?

Run `npx skills add mikeyobrien/ralph-orchestrator --skill ralph-hats -a codex`. Or copy the skill folder (skills/ralph-hats in mikeyobrien/ralph-orchestrator) into .agents/skills/ralph-hats in your project. Codex loads it when a task matches its description.

Can I use Ralph Hats in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add mikeyobrien/ralph-orchestrator --skill ralph-hats -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/ralph-hats, .gemini/skills/ralph-hats, .github/skills/ralph-hats and .opencode/skills/ralph-hats in your project.

What does Ralph Hats need to run?

SKILL.md names no scripts, command-line tools or credentials: Ralph Hats is instructions for the agent only.

Does Ralph Hats access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Ralph Hats safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Ralph Hats use?

Ralph Hats is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Ralph Hats use?

About 691 tokens (SKILL.md is roughly 2.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 1.4k tokens, read only when the agent opens those files.

What are the alternatives to Ralph Hats?

Skills that share tags, products or a category with Ralph Hats: Ralph (Yeachan-Heo/oh-my-claudecode, 40k stars), Node Inspect Debugger (openclaw/openclaw, 392k stars), Skill Improver (sickn33/agentic-awesome-skills, 47k stars) and Logic Explain (sickn33/agentic-awesome-skills, 47k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Ralph Hats?

mikeyobrien (a GitHub user) maintains it in mikeyobrien/ralph-orchestrator, which has 3,168 GitHub stars. The repository holds 16 skills in this directory. The repository was last updated on October 5, 2026.

Source: mikeyobrien/ralph-orchestrator on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.