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.
- License 许可
- MIT
- 最近更新
- 2026-11-02
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- 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.
02 资源文件 4
- 参考文档agents/openai.yaml255 B
- 参考文档references/commands.md1.3 KB
- 参考文档references/examples.md2.0 KB
- 参考文档references/schema.md2.2 KB
03 SKILL.md 正文
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.ymlor another-csource. - 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
ralph hats graphwhen the event flow is not trivial. - Use
ralph hats show <hat>when you need to inspect one hat's effective configuration. - 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_loopis only for hats overlay keys such asstarting_eventandcompletion_promise. - Never use
task.startortask.resumeas hat triggers. Ralph reserves those for coordination. Use semantic delegated events likework.start,review.start, orresearch.start. - Each trigger must route to exactly one hat.
- Keep
descriptionpopulated 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
04 同仓库更多 Skills
clarify-requirements
Resolve genuine pre-execution ambiguity by scanning repo context, generating 1-6 grounded options, and asking 1-3 focused questions via AskUserQuestion. NOT for mid-task use (injection risk); NOT when the goal is already unambiguous; use to disambiguate vague prompts before any file edits.
openmm-md
Run FREE, open-source, Windows-native GPU molecular dynamics via the openmm-md MCP (OpenMM + CUDA on the local NVIDIA GPU). Use for protein / protein-ligand MD when you want a free stack or are on Windows without a Schrodinger license. Covers the full workflow (prepare, solvate, minimize, equilibrate, production, analyze, mmgbsa) AND an honest decision guide vs Schrodinger Desmond, including how to run Desmond legitimately on Linux or a cloud GPU with a real license. This is a deliberately LESSER free alternative and does NOT replace the schrodinger MCP tools. Do NOT use it to pick a free tool when a validated FEP+, WaterMap, IFD-MD, or Prime MM-GBSA result is actually required.
visual-review
Take screenshots of web pages and UI using Playwright for visual review and iteration
status
Diagnostic status report — shows metaswarm installation state, project setup, and potential issues
start
Use when starting work on any task, when the user mentions metaswarm, or when the user wants to begin tracked development work
setup
Interactive project setup — detects your project, configures metaswarm, writes project-local files