Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

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от 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

  1. A single <bundle> block containing valid JSON for a WorkflowBundle.

  2. A short <rationale> block (≤ 5 bullets) explaining the trigger, the waitpoints, and the connector requirements.

  3. 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_version must be 2.
  • entrypoint, transitive_modules, stdlib_version, harn_version, provider_catalog_hash, tool_manifest, sbom, signature, and parent_trust_record_id are part of the canonical .harnpack manifest.
  • BLAKE3 fields use blake3:<64 lowercase hex digits>.
  • id, version, workflow.id, workflow.entry are non-empty.
  • Every workflow.nodes[k].id matches its map key k.
  • Every edge endpoint and trigger.node_id references 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 one events[].
    • cron → schedule.
    • delay → delay (ISO-8601 duration, e.g. PT10M).
    • webhook → webhook_path.
    • mcp → mcp_tool.
    • manual → no extra fields.
  • Every prompt_capsules[k].id equals k and points at a real node; at most one capsule per node.
  • Every connector that a trigger references via provider should appear in connectors[] (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
Полный SKILL.md на GitHub

Установить workflow-authoring в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

cases/pr-monitor.case.jsoncases/pr-repair.case.jsoneval.harnprompting.mdrecipes/pr-monitor-verifier-patch/README.mdrecipes/pr-monitor-verifier-patch/patch.jsonrecipes/pr-monitor/README.mdrecipes/pr-monitor/bundle.jsonrecipes/pr-repair/README.mdrecipes/pr-repair/bundle.json

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), без исполняемых скриптов.

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

Сравнить workflow-authoring с