Command Palette

Search for a command to run...

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

api-workflows

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

Call nodetool.workflows, nodetool.jobs or nodetool.nodes from a code action: list, validate, save, run, debug and version workflow graphs, wait on background…

nodetool-aiот nodetool-ai★ 674 звезды на GitHub

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

nodetool.workflows, nodetool.jobs, nodetool.nodes

These three namespaces cover saved graphs, the runs they start, and the node catalog a graph is built from. How to design a graph is nodetool-workflow-builder. This skill is the call reference.

Every method takes an id as the full id or its 12-character prefix, and every method throws when its backing tool is not on this belt.

nodetool.workflows

Call Does Answers
list({workflow_type, query, limit}) Lists workflows. workflow_type is "user" (default), "example" or "all". {workflows: [{id, name, description, tags}]} — an envelope, not an array
get(id) Reads one workflow with its graph. The workflow record
create(name, graph, {description, tags, access, project_id}) Saves a new workflow. graph is a DSL result, {nodes, edges}, or a workflow record. create({name, graph}) also works. The saved workflow with its id
validate(idOrGraph) Checks a graph against the node registry without a run. {ok, issues}. Throws when the graph has errors, so a broken graph cannot reach a paid run.
run(id, params, {interactive, node_ids, reuse_results}) Runs and blocks until the run settles. The run result. With interactive: true, a failed node returns status: "escalated".
start(id, params, {node_ids, reuse_results}) Starts a run and returns at once. A receipt {job_id, id, status: "running"}
debug(id, params, {interactive, node_ids, reuse_results, include_graph, log_limit}) Runs and reports. {workflow_id, run, job, workflow}. An escalated debug answers {workflow_id, run} with the escalation under run.
resolve(sessionId, escalationId, action, {outputs, reason, apply_to}) Answers an escalation. The next escalation, or the final report
example("<package>/<name>") Loads a shipped example with its graph. A bare name reads from nodetool-base. The example workflow
searchExamples(query, {limit}) Ranks the shipped examples against a plain-words description of the workflow. Read a hit before authoring a graph from scratch. {examples: [{name, package, description, node_types, dsl}]}. dsl is a @nodetool-ai/sandbox-dsl program that rebuilds the example.
versions(id, {limit}), getVersion(id, n) Lists and reads snapshots. Version rows, newest first
snapshot(id, {name, description}) Saves the current graph as a manual version. The new version number
restore(id, n) Rolls the graph back. The graph it replaces is snapshotted first, so a restore can be undone. —
deleteVersion(id, n) Deletes one snapshot. This cannot be undone. —
open(id?) Opens the editable object model of a graph that is open in the editor. Throws when no editor tools are on the belt. A workflow object: addNode, connect, commit()

node_ids runs only those nodes and what they need upstream. Unrelated branches and downstream nodes are not executed or billed. An upstream generator that already produced output in this workflow is fed that output instead of running again, unless reuse_results: false. This is the cheapest way to re-run one repaired node.

The debug report

debug answers {workflow_id, run, job, workflow}:

  • run.status is the verdict of the run, and run.error names the failure.
  • run.outputs is keyed by output name. Each name holds an array of the values it emitted, so read run.outputs.summary[0], not run.outputs.summary.
  • run.verdict.issues lists what went wrong, node by node.
  • job carries the status, the cost and the logs.

Escalations

An interactive run parks on a failed node and answers status: "escalated" with a session_id, an escalation_id and escalation.allowedActions. The actions are retry, substitute (with {outputs}, only when the escalation has a candidateOutput), skip, end_stream and fail (with {reason}). apply_to: "signature" also answers later failures with the same signature. run answers the escalation at the top level. debug nests it under run, so drive the loop with run. resolve answers the next escalation or the final report, both at the top level. Write the whole loop in one action:

let report = await nodetool.workflows.run(id, params, { interactive: true });
while (report.status === "escalated") {
  report = await nodetool.workflows.resolve(report.session_id, report.escalation_id, "skip");
}
return { status: report.status, error: report.error, issues: report.verdict?.issues };

An unanswered escalation fails the run when its decision timeout expires.

Rules

  • A saved graph is not a run. When the user asked for results, call run.
  • Validate before create and before a paid run. validate throws on errors, and its message lists the errors only.
  • A *_model property left unset fails validation. Assign (await nodetool.models.pick(capability)).ref.
  • create checks model prope
Полный SKILL.md на GitHub

Установить api-workflows в Claude Code и Claude Desktop

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

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

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

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

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

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

FAQ

Что делает скилл api-workflows?

Call nodetool.workflows, nodetool.jobs or nodetool.nodes from a code action: list, validate, save, run, debug and version workflow graphs, wait on background jobs, and look up or probe node types. Load before the first call into these namespaces.

Как установить скилл api-workflows?

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

Скилл api-workflows запускает скрипты?

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

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

Сравнить api-workflows с