К основному содержанию
скилл CX Codex

create-harness-spec — скилл для Claude Code: рецепт для hedera-harness

Превращает идею фичи Hedera в готовый рецепт для hedera-harness: PRD, spec.yaml, валидаторы. Пригодится, когда нужно перейти от замысла к запускаемой спецификации.

Установить в Claude Code · Через Skills CLI (Vercel) Все способы и платформы ↓
npx skills add hedera-dev/hedera-skills --skill create-harness-spec -a claude-code
Открыть на GitHub

Что делает create-harness-spec

Скилл ведёт авторскую работу по шагам. Сначала находит целевую папку .harness/ в скаффолд-приложении, потом допрашивает вас про идею, а затем пишет файлы: .harness/prd.md, .harness/spec.yaml и валидаторы static.json и yarn.json. Целевая версия схемы — schemaVersion: 3.

Перед началом скилл читает общий словарь из ../harness-spec-anatomy/SKILL.md и GLOSSARY.md, чтобы термины совпадали. Если установлен скилл /grilling, используется он; иначе идёт встроенный протокол — в Claude обычно срабатывает именно он. Файлы не пишутся, пока вы не подтвердите общее понимание.

Ограничение важное: рецепты версий 1 и 2 скилл не считает рабочими. Если в .harness/spec.yaml стоит schemaVersion 1 или 2, файл придётся переписать под v3 — hedera-harness migrate больше нет. Готовым считается результат, когда check-spec.sh завершается без ошибок; он сам запускает doctor, так что отдельный прогон нужен только при отсутствии CLI.

Какие задачи решает

  • превратить идею фичи Hedera в запускаемую спецификацию
  • собрать PRD и spec.yaml по схеме v3
  • написать валидаторы под конкретные результаты фичи
  • перевести старый рецепт v1 или v2 на schemaVersion 3
  • проверить связность рецепта перед запуском

Примеры запросов агенту

  • Создай рецепт hedera-harness для фичи с оплатой в HBAR
  • Прогони гриллинг моей идеи и собери .harness/spec.yaml
  • Перепиши мой .harness/spec.yaml со schemaVersion 2 на v3

Как установить create-harness-spec

1Через Skills CLI (Vercel)

npx skills add hedera-dev/hedera-skills --skill create-harness-spec -a claude-code

2Вручную: положить файлы

~/.claude/skills/create-harness-spec/SKILL.md

Папка скилла целиком; для одного проекта — .claude/skills/create-harness-spec/

По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов

Вопросы о create-harness-spec

Как установить create-harness-spec в Claude?

Выполните npx skills add hedera-dev/hedera-skills --skill create-harness-spec -a claude-code. Скилл окажется в ~/.claude/skills/create-harness-spec/SKILL.md.

Что делает create-harness-spec?

Допрашивает идею фичи Hedera и превращает её в рецепт для hedera-harness: PRD, файл спецификации и валидаторы. Дополнительно может добавить стадии SMOKE, EVALUATE и CHAIN, если вы их включите.

Какая версия схемы поддерживается?

Только schemaVersion: 3. Рецепты версий 1 и 2 не загружаются, а команды hedera-harness migrate больше нет — придётся переписать файл или пересоздать его через init.

Исходный текст

SKILL.md · Apache-2.0
---
name: create-harness-spec
description: Create a hedera-harness recipe — PRD, recipe file, validators, and optional stages — by grilling an idea into a runnable feature spec. Use when the user wants to turn a Hedera feature idea into harness inputs.
---

# Create Harness Spec

Grill a Hedera feature idea into a complete **recipe** for
[hedera-harness](https://github.com/hedera-dev/hedera-harness).

Load the shared vocabulary first: read
[`../harness-spec-anatomy/SKILL.md`](../harness-spec-anatomy/SKILL.md) and its
[GLOSSARY.md](../harness-spec-anatomy/GLOSSARY.md). Use those terms exactly.

Targets **hedera-harness schemaVersion 3**.

These skills are for authoring. Recipes do not list skills — product plugins
from `hedera-skills` are discovered per run and the generator picks. Keep the
run **blind**: the PRD carries journeys and outcomes; numbered assertions live
in the **evaluate checklist**.

Works in **Claude Code** (marketplace plugin) and Cursor / other agents that
load SKILL.md. Prefer `/grilling` when that skill is installed; otherwise use
the inline protocol — Claude Code typically takes the inline path.

## Step 1: Locate the target

A recipe lives at `.harness/` inside a scaffolded app. There is no other layout.

| Situation | What to do |
|-----------|------------|
| Cwd is a scaffolded app (Scaffold HBAR or `hedera-harness init`) | Author into its `.harness/` |
| Cwd is an app without `.harness/` | `hedera-harness init` adopts the harness in place |
| No app yet | `hedera-harness init <dir>` (optionally `--template <name>`) |
| Cwd already has `.harness/spec.yaml` | Check `schemaVersion`. If absent, `1`, or `2`, rewrite to v3 (or regenerate with `init` and reapply edits). `hedera-harness migrate` is gone. |

Never treat a v1/v2 recipe as loadable. `contract:` → `eval:`, drop `skills:`,
set `schemaVersion: 3`.

Paths in the **recipe file** are relative to the project root.

## Step 2: Grill

Follow [references/grilling.md](references/grilling.md). Prefer `/grilling` if
available; otherwise use the inline protocol there.

Do **not** write files until the user confirms shared understanding.

## Step 3: Emit the recipe

Prefer copying the shipped skeleton — it is always current:

```bash
cp -r "$(npm root -g)/hedera-harness/skeletons/project-harness/." .harness/
```

Then:

1. Write `.harness/prd.md` (or one file per **increment** under
   `.harness/prds/`) from the grill. Product-facing only — keep the run **blind**.
2. Fill `.harness/spec.yaml`. Required: `schemaVersion: 3`, `name`,
   `description`, and `baseline` with a command literally named `install`.
   **Leave every default commented out.** A four-key recipe is complete.
   Omit `agent:` unless the user wants Cursor (default is Claude).
3. Write `.harness/validators/static.json` and `.harness/validators/yarn.json`
   against the feature deliverables. Do not assert on `template.json` —
   create-scaffold-hbar removes it when scaffolding.
4. Do **not** add a `skills:` list. Mention relevant Hedera services in the PRD
   so the generator can pick product skills.
5. Add SMOKE / EVALUATE / CHAIN only if the user opted in during the grill —
   see `harness-spec-anatomy` → [references/stage-strategy.md](../harness-spec-anatomy/references/stage-strategy.md).
   If `prd:` is a list and EVALUATE is on, write a matching `eval:` list.
6. Install the SMOKE host package if you just enabled it — at the **project
   root**, not only inside a workspace. Doctor imports `playwright` from next
   to `hedera-harness`, and Yarn `nmHoistingLimits: workspaces` hides
   `packages/nextjs` installs.
   - SMOKE → `yarn add -D playwright` (or npm/pnpm equivalent)
   Skip the add if the root `package.json` already lists it. Do this as part
   of emit, not as a follow-up after `doctor` fails.
   CHAIN does **not** need a project install: `@hiero-ledger/sdk` ships with
   `hedera-harness`. Only the operator env vars are host-provided.

Reconstruct bodies by hand only when the skeleton is unavailable:
`harness-spec-anatomy` → [references/spec-files.md](../harness-spec-anatomy/references/spec-files.md).

## Step 4: Completion criterion

Two checks, in order:

```bash
# 1. Does the recipe load? (authoritative — schema, defaults, baseline, network)
hedera-harness doctor .harness/spec.yaml --recipe-only

# 2. Is it coherent across files? (traceability, stage pairing, blind rule)
bash <path-to>/harness-spec-anatomy/scripts/check-spec.sh <project-root>
```

`check-spec.sh` runs `doctor` itself, so running it alone is enough when the
harness CLI is installed. If it reports that the schema was **not** validated,
that is a partial result — install or upgrade the harness and rerun.

**Done when `check-spec.sh` exits clean.**

Then hand off:

```bash
# Prefer /review-harness-spec next, then:
hedera-harness run .harness/spec.yaml --max-attempts 3
# or: yarn harness:run
```

Point at the harness README for install, agent auth, and stage host
prerequisites. `hedera-harness doctor` (without `--recipe-only`) checks those.
Do not expand CLI teaching beyond these next commands.

## Additional resources

- [references/grilling.md](references/grilling.md)
- Companion: `/review-harness-spec`
- Vocabulary: `/harness-spec-anatomy`
- Upstream: [docs/authoring-a-recipe.md](https://github.com/hedera-dev/hedera-harness/blob/dev/docs/authoring-a-recipe.md)

© hedera-dev · Apache-2.0 · hedera-dev/hedera-skills

Похожие скиллы

Все скиллы по теме «Настройка агента: память, контекст, субагенты» →
spec Klerith Помогает составить подробную спецификацию фичи перед написанием кода. Задаёт уточняющие вопросы пачками и сохраняет готовый документ в папку specs/. CX Codex +1 4 100установок spec-impl Klerith Скилл запускает реализацию утверждённой спецификации в отдельной git-ветке и ведёт работу по шагам с паузами для проверки diff. CX Codex +1 4 000установок cursor-spec-interviewer stark-ai-de Превращает расплывчатый запрос на разработку в проверенную спецификацию для Cursor Agent: с границами, критериями приёмки и планом. CX Codex +1 2 600установок 4-spec challengepost Превращает утверждённый PRD в технический план: стек, где всё работает, компоненты, данные, структура файлов. Последний шаг планирования перед сборкой. CX Codex +1 1 800установок adopt-spec zernie Превращает уже написанный CLAUDE.md или AGENTS.md в типизированный CLAUDE.md.spec.ts, не трогая исходный файл. Пригодится, если хочется проверять инструкции линтером, но переписывать их с нуля неохота. CX Codex +1 1 800установок code-to-spec smallnest Разбирает существующий проект и собирает из кода, конфигов и тестов документ SPEC. Пригодится, когда спецификации нет, а понять проект надо. CX Codex +1 470установок

Из того же набора13

Session Management Ведёт журнал работ и техдолга между сессиями агента, чтобы после перезапуска было видно, что сделано и что осталось. CX Codex +1 538установок Quality Gates Скилл настраивает автоматические проверки кода: линт и типы после каждой правки, локальный CI перед пушем, чек-лист перед деплоем. CX Codex +1 536установок Hedera Agent Kit v4 Migration Ведёт проект с [email protected] на v4: меняет пакеты, импорты и переписывает кастомные инструменты на BaseTool. CX Codex +1 484установок agent-kit-plugin Скилл помогает создавать плагины и инструменты для Hedera Agent Kit. Он пригодится при добавлении операций с токенами, аккаунтами и другими сервисами Hedera. CX Codex +1 463установок harness-spec-anatomy Описывает, из чего состоит рецепт hedera-harness: файлы, значения по умолчанию v3, стадии прогона и правило слепой проверки. Нужен тем, кто пишет или проверяет такие рецепты. CX Codex +1 464установок x402-payments Скилл для агентов, который помогает закрыть HTTP-ресурсы оплатой в HBAR по схеме x402: 402-ответ, подпись перевода, проверка и расчёт через свой фасилитатор. CX Codex +1 462установок layerzero-messaging Скилл для сборки мостов LayerZero V2 между Hedera и EVM-сетями: OFT/OApp, настройка Endpoint V2, ULN, DVN и отправка через quoteSend. CX Codex +1 460установок pyth-price-feeds Скилл для интеграции Pyth pull-фидов в контракты на Hedera: обновление цены через Hermes, чтение с ограничением по возрасту, проверка confidence. CX Codex +1 444установок

Спонсоры проекта

Компании, которые помогают держать аналитику открытой