跳到正文
TakoAPI
返回技能列表

create-hat-collection

由 paulpete 提供

Web & Frontend Development
—暂无评分
你的评分

简介

Generates new Ralph hat collection presets.

描述

该技能的功能

Guides users through creating Ralph hat collection preset files via structured conversation. Asks questions about workflow purpose, agent roles, and event routing, then validates the design against schema constraints before writing a production-ready YAML file to the presets/ directory.

The guided conversation catches schema violations and routing ambiguities before you run the preset, avoiding trial-and-error YAML editing.

何时使用

  • Building a multi-agent code review workflow from scratch
  • Converting a workflow idea into a structured Ralph preset
  • Designing a pipeline for sequential document processing agents
  • Setting up a supervisor-worker agent coordination pattern
  • Creating a scientific-method debugging workflow with event routing

示例工作流

输入

User asks: I want a preset for a security-focused code review with an analyst, reviewer, and summarizer.

智能体
  1. 1

    Asks clarifying questions about review depth, roles, and whether issues should be fixed or just reported

  2. 2

    Maps the workflow as an event chain: task.start → Security Analyst → security.complete → Code Reviewer → review.complete → Summarizer → LOOP_COMPLETE

  3. 3

    Validates that each trigger maps to exactly one hat and no reserved events are used as triggers

  4. 4

    Generates a YAML file with three hats, each with name, description, triggers, publishes, and instructions fields

  5. 5

    Saves the completed file to presets/security-code-review.yml

输出

A complete presets/security-code-review.yml file with three configured hats and validated event routing

安装

clawhub install paulpete/create-hat-collection

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接