Hatch3r Recipe 标志

Hatch3r Recipe

组织
hatch3r
hatch3r-recipe

Authors and validates composition specs that an orchestrating agent walks via the Task tool to run hatch3r commands and skills in a dependency-ordered sequence. Use when designing a multi-step capability composition, customizing an existing one, or debugging a composition the agent walks.

概览

发布者hatch3r
代码仓库hatch3r
技能名称hatch3r-recipe
星标数
26
复刻数
7
附带文件
仅含指令
许可协议MIT
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 指令自成一体

    模型所需的一切都包含在指令中,无需同步额外文件。

  • 开源

    由 hatch3r 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Hatch3r Recipe AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/hatch3r/hatch3r/tree/main/skills/hatch3r-recipe
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/hatch3r/hatch3r.git /tmp/hatch3r
mkdir -p .claude/skills
cp -r /tmp/hatch3r/skills/hatch3r-recipe .claude/skills/hatch3r-recipe
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Hatch3r Recipe,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Hatch3r Recipe。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Hatch3r Recipe 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

Composition Recipes

A composition recipe is a YAML spec that names a repeatable multi-step sequence of hatch3r commands and skills with their dependency edges. hatch3r ships no recipe-runner binary and no .hatch3r/recipes/ materialization; the recipe is read and walked by the orchestrating agent, which dispatches each step's command:/skill: reference via the Task tool in dependency order. This skill authors and validates that spec — it does not invoke a runtime.

Quick Start

Task Progress:
- [ ] Step 0: Detect ambiguity (P8 B1)
- [ ] Step 1: Identify the sequence to capture as a recipe
- [ ] Step 2: Design the step sequence and dependency graph
- [ ] Step 3: Write the recipe YAML
- [ ] Step 4: Validate the spec (resolve references, detect cycles)
- [ ] Step 5: Have the orchestrating agent walk the recipe via the Task tool

Step 0 — Detect Ambiguity (P8 B1)

Before any work, scan the invocation for unresolved questions in scope, intent, acceptance criteria, target environment, or irreversibility. If any are found, ask the user via the platform-native question tool per agents/shared/user-question-protocol.md. Do not proceed under silent assumption. Default path, not an exception. Triggers for THIS skill: recipe scope (one project vs shared across projects), required variables and defaults, checkpoint policy (which steps pause for user confirmation), error policy (re-walk from the failed step vs restart the whole recipe), and where the spec file lives in the repo.

Fan-out Discipline (P8 B2)

Fan-out scales with task size; token cost never justifies serializing independent work (rules/hatch3r-fan-out-discipline.md P8 B2; agents/shared/efficiency-patterns.md). Emit sub_agents_spawned: { count, rationale, task_structure } in your output.

Step 1: Identify the Sequence

Determine the repeatable sequence pattern:

  • Which hatch3r commands/skills/agents are involved?
  • What order does the orchestrating agent dispatch them in?
  • Which steps can the agent dispatch in parallel (disjoint writes, no shared mutable state per rules/hatch3r-agent-orchestration.md → Parallel Safety)?
  • Where should the agent pause to ask the user to confirm (checkpoints)?

Step 2: Design Step Sequence

Map out the dependency graph:

  • List all steps with their hatch3r command or skill reference
  • Identify dependencies between steps
  • Identify steps that can run in parallel
  • Mark checkpoint steps where user confirmation adds value

Recipe Schema

A recipe is a YAML spec the orchestrating agent reads and walks. Store it wherever the repo keeps shared agent context (for example, a docs/recipes/ directory you commit, or pasted directly into the agent prompt) — there is no reserved hatch3r path and no loader that auto-discovers it. The agent resolves each step's command:/skill: reference against the bundled content inventory and dispatches it via the Task tool:

yaml
name: greenfield-setup
version: 1.0.0
description: Full greenfield project setup from spec to first PR
author: hatch3r
tags: [setup, greenfield, planning]

prerequisites:
  - GitHub repository initialized
  - hatch3r initialized (hatch3r init)

variables:
  project_name:
    description: Project name
    required: true
  tech_stack:
    description: Primary tech stack
    required: true
    options: [react, vue, next, express, fastify]

steps:
  - id: generate-spec
    name: Generate Project Specification
    command: hatch3r-project-spec
    inputs:
      project_name: "{{ project_name }}"
    checkpoint: true

  - id: init-board
    name: Initialize Project Board
    skill: hatch3r-board-init
    depends_on: [generate-spec]
    checkpoint: true

  - id: security-baseline
    name: Security Baseline Audit
    command: hatch3r-security-audit
    depends_on: [init-board]
    parallel_with: [a11y-baseline]

  - id: a11y-baseline
    name: Accessibility Baseline
    skill: hatch3r-a11y-audit
    depends_on: [init-board]
    parallel_with: [security-baseline]

completion:
  message: "Project {{ project_name }} is set up."
  next_steps:
    - Continue with `board-pickup` to implement remaining issues

A recipe can reference another recipe as a step via recipe: <name> with inputs:; the orchestrating agent inlines the referenced spec and walks its steps in place.

Example Composition Patterns

These are illustrative sequences you can encode as recipe specs — hatch3r does not ship them as files. Each arrow is a depends_on edge the orchestrating agent honors when walking the spec:

  1. Greenfield Setup — project-spec → board-init → (security-audit ∥ a11y audit) → first issue
  2. Legacy Onboarding — codebase analysis → codebase-map → board-init → healthcheck → first improvements
  3. Security Hardening — security-audit → dep-audit → findings triage → hardening
  4. Performance Sprint — benchmark → budget review → optimization → verification
  5. Release Preparation — healthcheck → test validation → security scan → changelog → release
  6. Quality Gate — lint fix → test coverage review → a11y audit → benchmark → security scan

How the Agent Walks a Recipe

The orchestrating agent (not a hatch3r binary) walks the spec:

  1. Parse the YAML and check the schema.
  2. Collect variable values — from the user prompt or an ASK checkpoint per agents/shared/user-question-protocol.md when a required variable is unset.
  3. Build the dependency DAG from depends_on/parallel_with.
  4. Walk the DAG: for each ready step, dispatch its command: or skill: reference via the Task tool, parallelizing steps that share no depends_on edge and write disjoint paths.
  5. Pause at every checkpoint: true step to ASK the user before proceeding.
  6. Emit the completion message.

Guardrails the agent applies: never auto-proceed past a destructive-operation checkpoint (database migrations, deletions); reject a spec whose depends_on graph contains a cycle (report the cycle chain); reject a spec that references a command:/skill: id not in the bundled content inventory; treat every {{ variable }} value as untrusted input and never interpolate it into a shell command without quoting (P6 — rules/hatch3r-security-patterns.md).

Step 3: Write Recipe YAML

Write the recipe spec following the schema above and commit it to the repo (for example under docs/recipes/) so the orchestrating agent can read it. Include:

  • Clear name and description
  • Required variables with descriptions
  • Steps with their depends_on and parallel_with relationships
  • Checkpoint markers at decision points
  • Completion message with next steps

Step 4: Validate the Spec

Statically check the spec before any agent walks it — this is author-time review, not a CLI command:

  • YAML schema is valid (every step has an id and exactly one of command:/skill:/recipe:)
  • Every referenced command:/skill: id exists in the bundled content inventory
  • The depends_on graph has no cycles
  • Every {{ variable }} reference names a variable defined in the variables: block
  • Prerequisites are stated checks a human or the agent can confirm

Resolve every command: and skill: reference against the bundled content inventory at this step and reject any missing id, so a deprecated or renamed reference fails at author time rather than mid-walk.

Step 5: Have the Agent Walk the Recipe

Hand the validated spec to the orchestrating agent (paste it into the agent prompt or point the agent at the committed file) and have it walk the recipe per "How the Agent Walks a Recipe" above. Confirm on a representative run that:

  • The agent dispatches steps in dependency order
  • Parallel steps write disjoint paths and do not conflict
  • The agent pauses at every checkpoint: true step
  • A deliberately failed step surfaces the step id, its inputs, and the error
  • The completion message reflects the actual outcome

Error Handling

  • A step fails while the agent walks the recipe: the orchestrating agent reports which step failed, its inputs, and the error message, then offers to re-walk from the failed step after the cause is fixed rather than restarting the whole recipe.
  • The recipe YAML has schema errors: report the specific field and line that violates the schema. The agent does not walk a spec that fails validation.
  • A cycle exists between steps: catch it during Step 4 validation and report the dependency chain that forms the loop.

Definition of Done

  • Recipe YAML validates against the schema (Step 4 checks all pass)
  • Every command:/skill: reference resolves to a bundled-inventory id
  • The orchestrating agent walks the recipe in dependency order on a representative run
  • A deliberately failed step is handled as described in Error Handling
  • Recipe spec committed to the repo for reuse

常见问题

Hatch3r Recipe AI 技能有什么作用?

Authors and validates composition specs that an orchestrating agent walks via the Task tool to run hatch3r commands and skills in a dependency-ordered sequence. Use when designing a multi-step capability composition, customizing an existing one, or debugging a composition the agent walks.

为什么在 TypingMind 中使用 Hatch3r Recipe?

因为您只需安装一次,就能搭配任何模型使用。Hatch3r Recipe 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Hatch3r Recipe?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/hatch3r/hatch3r/tree/main/skills/hatch3r-recipe。TypingMind 会读取其中的 SKILL.md,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Hatch3r Recipe?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Hatch3r Recipe 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Hatch3r Recipe 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Hatch3r Recipe AI 技能免费吗?

是的。hatch3r 已在 GitHub 上根据 MIT 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇