ralph-hats — скилл для Claude Code: настройка и установка
Скилл помогает создавать и проверять коллекции Ralph hats, разбирать маршрутизацию событий и настраивать многоролевые workflow. Пригодится при создании или отладке файла .ralph/hats/*.yml.
npx skills add mikeyobrien/ralph-orchestrator --skill ralph-hats -a claude-codeЧто делает ralph-hats
Скилл помогает создать коллекцию hats в .ralph/hats/, изучить существующую структуру и исправить маршрутизацию событий. Он также подсказывает, как разделить роли и проверить поведение завершения workflow. Если файл уже есть, сначала нужно разобрать его топологию, а потом предлагать изменения.
Коллекция хранит только настройки hats; основные параметры выполнения остаются в ralph.yml или другом источнике конфигурации. Для проверки служит ralph hats validate, для схемы событий — ralph hats graph, а настройки отдельной роли показывает ralph hats show <hat>. Каждый триггер должен вести ровно к одному hat, поэтому неоднозначная маршрутизация нарушает это правило.
Для проверки работы можно запустить целевой тест через ralph run -c ... -H ... -p "...". В файле допустимы ключи name, description, events, event_loop и hats; встроенные пресеты этот скилл не редактирует.
Какие задачи решает
- создать коллекцию hats в
.ralph/hats/ - разобрать топологию существующего workflow
- проверить маршрутизацию триггеров и поток событий
- найти настройки отдельной роли через
ralph hats show - подготовить команду для целевого теста Ralph
Примеры запросов агенту
- Создай коллекцию hats для моего workflow в
.ralph/hats/build.ymlи проверь её. - Разбери топологию в
.ralph/hats/review.ymlи укажи, где триггеры маршрутизируются неоднозначно. - Покажи эффективную конфигурацию hat
reviewи подскажи команду проверки.
Как установить ralph-hats
1Через Skills CLI (Vercel)
npx skills add mikeyobrien/ralph-orchestrator --skill ralph-hats -a claude-code2Вручную: положить файлы
~/.claude/skills/ralph-hats/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/ralph-hats/
1Через Skills CLI (Vercel)
npx skills add mikeyobrien/ralph-orchestrator --skill ralph-hats -a codex2Вручную: положить файлы
.agents/skills/ralph-hats/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add mikeyobrien/ralph-orchestrator --skill ralph-hats -a cursor2Вручную: положить файлы
.cursor/skills/ralph-hats/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install mikeyobrien/ralph-orchestrator ralph-hats2Вручную: положить файлы
.github/skills/ralph-hats/SKILL.md1Через Skills CLI (Vercel)
npx skills add mikeyobrien/ralph-orchestrator --skill ralph-hats -a gemini-cli2Командой платформы
gemini skills install https://github.com/mikeyobrien/ralph-orchestrator --path skills/ralph-hatsВручную: положить файлы
.devin/skills/ralph-hats/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add mikeyobrien/ralph-orchestrator --skill ralph-hats -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о ralph-hats
Как установить ralph-hats в Claude Code?
Выполните npx skills add mikeyobrien/ralph-orchestrator --skill ralph-hats -a claude-code. Файл скилла появится по пути ~/.claude/skills/ralph-hats/SKILL.md.
Что делает ralph-hats?
Он помогает создавать и проверять коллекции Ralph hats, объяснять поток событий и разбирать отдельные роли. Для проверки используются команды ralph hats validate, ralph hats graph и ralph hats show <hat>.
Как избежать неоднозначной маршрутизации в Ralph hats?
Каждый триггер должен направляться ровно к одному hat. Для событий делегирования используйте смысловые имена, например work.start или review.start, а не зарезервированные task.start и task.resume.
Исходный текст
SKILL.md · MIT
--- 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 · mikeyobrien/ralph-orchestrator