workflow-basics
БесплатноБез исполняемых скриптовНе проверенUse when designing, saving, or reusing a KCoder visual workflow with explicit node dependencies and verification.
от 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 asbindingsin Agent context and Code. Missing values fail explicitly; there is no implicitoutputwrapper. 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.resultCheckis a pure bounded JavaScript body withinput,nodes,bindings,result. Return exactlytruewhen 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. Filereaddefaults to a display header and numbered lines. For machine data, usearguments:{"format":"raw"}withbindings:{"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. Filewritetakesfile_pathandcontent; 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.
validationRetriesonly 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(passedornot_requested), scopeconfigured_result_checks, andcheckedNodes.passedonly covers the configured checks on those nodes; it does not prove unconfigured requirements or uninspected artifacts. Runtimecompletedmeans 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 withBoolean(undefined). - Choose Loop thresholds from the actual score formula/range. For a 0–1 score,
greater_than 0.8can be meaningful; 3.5 cannot. Verify early exit (condition_met, count below maxIterations), equality not triggering a strict comparison, and exhaustion (iteration_limitfor repeat,collection_exhaustedfor 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
Установить 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), без исполняемых скриптов.
Похожие скиллы
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