workflow-authoring
БесплатноБез исполняемых скриптовНе проверенGenerate, validate, preview, and run portable Harn workflow bundle JSON for monitoring and repairing pull requests, deploys, logs, and other event-driven…
от burin-labs★ 34 звезды на GitHubОб этом скилле
Workflow authoring (Harn workflow bundles)
You are authoring a portable workflow bundle — a JSON file Harn validates, previews, and runs locally. Hosts (IDE TUI/GUI, cloud-platform importers) consume the same bundle without rewriting.
Read prompting.md in this directory before composing a response. It
defines the response sections, JSON envelope, and small-model rules. Every
recipe under recipes/ is a worked, validated example you can crib from.
What good output looks like
A single
<bundle>block containing valid JSON for aWorkflowBundle.A short
<rationale>block (≤ 5 bullets) explaining the trigger, the waitpoints, and the connector requirements.A
<verify>block listing the exact commands the user should run:harn workflow validate --bundle out.bundle.json --json harn workflow preview --bundle out.bundle.json --json harn workflow run --bundle out.bundle.json --json
If validation fails, read the diagnostic, edit the bundle, and re-validate. Do not invent fields or kinds — the validator's enum lists are the source of truth.
Bundle skeleton
{
"schema_version": 2,
"entrypoint": "workflows/<kebab-case-id>.harn",
"transitive_modules": [
{
"path": "workflows/<kebab-case-id>.harn",
"source_hash_blake3": "blake3:<64 lowercase hex digits>",
"harnbc_hash_blake3": "blake3:<64 lowercase hex digits>"
}
],
"stdlib_version": "<harn stdlib version>",
"harn_version": "<harn version>",
"provider_catalog_hash": "blake3:<64 lowercase hex digits>",
"tool_manifest": [],
"sbom": {
"format": "spdx-lite",
"version": "2.3",
"packages": [],
"relationships": []
},
"signature": null,
"parent_trust_record_id": null,
"id": "<kebab-case-id>",
"name": "<human label>",
"version": "1.0.0",
"triggers": [
{ "id": "<trigger-id>", "kind": "github|cron|delay|webhook|mcp|manual",
"provider": "github", "events": ["pull_request.opened"],
"node_id": "<entry-node-id>" }
],
"workflow": {
"_type": "workflow_graph",
"id": "<graph-id>",
"version": 1,
"entry": "<entry-node-id>",
"nodes": {
"<node-id>": { "id": "<node-id>", "kind": "action|waitpoint|notification",
"task_label": "<short label>" }
},
"edges": [ { "from": "<from-node-id>", "to": "<to-node-id>" } ]
},
"prompt_capsules": {
"<capsule-id>": { "id": "<capsule-id>", "node_id": "<node-id>",
"trigger_id": "<trigger-id>",
"prompt": "<self-contained continuation prompt>" }
},
"policy": {
"autonomy_tier": "shadow|suggest|act_with_approval|act_auto",
"retry": { "max_attempts": 2, "backoff": "exponential" },
"catchup": { "mode": "none|latest|all", "max_events": 1 }
},
"connectors": [
{ "id": "github", "provider_id": "github",
"scopes": ["pull_requests:read", "checks:read"],
"setup_required": true, "status_required": true }
],
"environment": {
"repo_setup_profile": "default",
"worktree_policy": "reuse_current|new_worktree|host_managed",
"command_gates": ["make test"]
}
}
Hard rules (validator enforces)
schema_versionmust be2.entrypoint,transitive_modules,stdlib_version,harn_version,provider_catalog_hash,tool_manifest,sbom,signature, andparent_trust_record_idare part of the canonical.harnpackmanifest.- BLAKE3 fields use
blake3:<64 lowercase hex digits>. id,version,workflow.id,workflow.entryare non-empty.- Every
workflow.nodes[k].idmatches its map keyk. - Every edge endpoint and
trigger.node_idreferences an existing node. policy.autonomy_tier∈{shadow, suggest, act_with_approval, act_auto}.policy.catchup.mode∈{none, latest, all}.policy.retry.max_attempts >= 1.environment.worktree_policy∈{reuse_current, new_worktree, host_managed}.- Trigger kind requirements:
github→provider: "github"and at least oneevents[].cron→schedule.delay→delay(ISO-8601 duration, e.g.PT10M).webhook→webhook_path.mcp→mcp_tool.manual→ no extra fields.
- Every
prompt_capsules[k].idequalskand points at a real node; at most one capsule per node. - Every connector that a trigger references via
providershould appear inconnectors[](warning otherwise).
Node kinds (host vocabulary)
| Kind | Use it for | Notes |
|---|---|---|
action |
Concrete work (normalize event, query API, run a command). | Default. |
waitpoint |
Pause until an event/delay/approval resumes the workflow. | Pair with a delay or matching trigger. |
notification |
Send a user-facing message. | Surface via host UX. |
agent / subagent |
Agent-loop stages and delegated workers. | Map to kind: "agent" | "subagent". |
approval |
HITL gate. | Validator categorizes approval/hitl. |
connector_call |
Outbound |
Установить workflow-authoring в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл workflow-authoring?
Generate, validate, preview, and run portable Harn workflow bundle JSON for monitoring and repairing pull requests, deploys, logs, and other event-driven engineering work. Optimized for smaller models (qwen, gemma, llama.cpp) with explicit XML sections, strict JSON output, and a validation-and-retry loop.
Как установить скилл workflow-authoring?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл workflow-authoring запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic