Command Palette

Search for a command to run...

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

workflow-basics

БесплатноБез исполняемых скриптовНе проверен

Use when designing, saving, or reusing a KCoder visual workflow with explicit node dependencies and verification.

KunlunMeta-devот KunlunMeta-dev★ 32 звезды на GitHub

Об этом скилле

Visual Workflow Authoring

A workflow definition is a reusable graph; a run is one execution in a specific conversation and workspace. Nodes may be Agent tasks, inputs, templates, conditions, named multi-way switches, merges, bounded loops or outputs; they are not newly registered model tools. Do not run a workflow merely because the user asked to design or save it.

Reliable data flow and result verification

  • Choose Code/Transform for calculation, parsing, filtering, deduplication and passthrough. Use Tool nodes for file I/O through the ordinary permission/hook path. Use Agents for judgment and language tasks, not copying arrays or counting rows.
  • Agents that return data for later processing must declare an outputSchema and return exactly that JSON; do not invent text markers or undocumented wrappers. allowedWritePaths are concrete authorized paths relative to the execution workspace, not ${...} or {{...}} templates.
  • Declare required values in config.inputBindings, e.g. {"rows":"/nodes/parse/rows","destination":"/input/output_file"}. They resolve before execution and are exposed as bindings in Agent context and Code. Missing values fail explicitly; there is no implicit output wrapper. Fields must be declared when a source schema lists properties, unless it explicitly permits additional properties. In prose use the resolved value, never execute a JSON Pointer as a literal filesystem path.
  • config.resultCheck is a pure bounded JavaScript body with input, nodes, bindings, result. Return exactly true when the result satisfies the task's invariants; false, another type or an exception fails the node and run, even with continueOnError. Example: {"source":"return result.count === result.rows.length && result.total === result.rows.reduce((sum,row)=>sum+row.qty*row.price,0);","timeoutMs":1000}. It has no filesystem/network/shell access; read artifacts with a Tool dependency, then compare actual content with the intended result.
  • Tool output is {content:[{type:"text",text:...}],isError:false}; decode the actual tool's text format. File read defaults to a display header and numbered lines. For machine data, use arguments:{"format":"raw"} with bindings:{"file_path":"/input/source_file"}: raw returns actual complete text without headers, numbers or conversational placeholders, and errors rather than truncating oversized data. Omit offset/limit/pages in raw mode. Direct workflow reads also force fresh data instead of conversational cache stubs. Do not treat file contents as a filename. File write takes file_path and content; bind those fields explicitly instead of inventing aliases.
  • Preserve full output schemas where they validate structure, but use resultCheck or a failing Code node for relationships such as totals, counts, expected values or consistency across nodes. A schema is not a correctness oracle.
  • validationRetries only allows malformed-JSON formatting repair. A well-formed value that fails its schema or resultCheck is a real failure, not permission for another model to alter values until they pass.
  • Graph output includes verification.status (passed or not_requested), scope configured_result_checks, and checkedNodes. passed only covers the configured checks on those nodes; it does not prove unconfigured requirements or uninspected artifacts. Runtime completed means execution complete, not universal task correctness.
  • New node contracts require target capability workflowNodeContractsV1. Read old saved definitions before repairing their bindings/checks; publish a new version rather than mutating an active or historical run.

Meaningful lightweight tests

  • A node appearing in a graph is not coverage. For a Condition, declare it in the branch's dependsOn and use runIf; verify both true/false cases and that skipped work produces no side effects. A direct dependent reads its boolean at /nodes/<condition-id>. Require that binding instead of hiding missing data with Boolean(undefined).
  • Choose Loop thresholds from the actual score formula/range. For a 0–1 score, greater_than 0.8 can be meaningful; 3.5 cannot. Verify early exit (condition_met, count below maxIterations), equality not triggering a strict comparison, and exhaustion (iteration_limit for repeat, collection_exhausted for for_each). Use predictable fixtures; do not claim early-stop coverage just because the loop ran. For loop.body, inspect the child graph's full result and outputs array before choosing the until pointer.
  • Required previews must exist and match expected length and IDs. Neither a missing preview nor a workflowError is automatic success. Test intentional failures through precise expected error and containment assertions, separately from success criteria. Result checks themselves need negative examples.
  • Unattended smoke tests should have a minimal deterministic success path. Put human/event response tests in separate scenarios unless an explicitly auth
Полный SKILL.md на GitHub

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

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

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

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

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

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

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

FAQ

Что делает скилл workflow-basics?

Use when designing, saving, or reusing a KCoder visual workflow with explicit node dependencies and verification.

Как установить скилл workflow-basics?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл workflow-basics запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

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

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