/sim:build-workflowfrom Sim
Create or modify Sim workflows through the sim CLI. Use when translating a workflow request into blocks, inputs, connections, variables, and atomic graph edits; not for only running or deploying an existing workflow.
Ships in Sim. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Build the smallest valid graph that satisfies the request, using the Sim CLI as the source of truth for available resources and accepted shapes.
A request that is one action against one connected service needs no graph at all — call the tool
directly with sim tools execute (see the run-tool skill). Build a workflow when the task needs
more than one call, branching, or a schedule.
For an existing workflow JSON import or environment promotion, use the sync-workspaces skill.
It preserves registered reference identities through preview and destination binding before graph IDs
are regenerated; do not recreate that flow with a sequence of graph edits.
sim --output json meta status reports the credential's keyType, scopes, and expiresAt; a read-only key (only
api:read) is refused every mutation with READ_ONLY_API_KEY.sim --output json workflows list. Create one only when the user
asked for a new workflow.sim --output json workflows state get <workflowId> before editing it.
Preserve blocks, edges, variables, and deployment state outside the requested change.workflows export is a sanitized portable representation that clears credentials and, by default,
workspace resource bindings. Use state reads for in-place edits.inputs.tools when the Agent should decide whether to call it or
choose its arguments. Use a standalone integration block when the action must execute
deterministically at that point in the graph. Event sources remain trigger blocks.type is the catalog block id and
operation is its catalog operation id, never the underlying executable tool id.params.inputs.tools. Supported authoring shapes are:[
{
"type": "<catalog-block-id>",
"operation": "<catalog-operation-id>",
"usageControl": "auto",
"params": { "<author-fixed-input>": "<value>" }
},
{
"type": "custom-tool",
"customToolId": "<custom-tool-id>",
"usageControl": "auto"
},
{
"type": "mcp",
"params": { "serverId": "<mcp-server-id>", "toolName": "<mcp-tool-name>" },
"usageControl": "auto"
}
]
params; omit arguments the model should
choose. Omit usageControl or use auto when the model may decide, force when every Agent run
must call it, and none to disable it. To decide per run, set usageControlExpression instead
(a reference such as <start.toolMode> resolving to auto, force, or none); send one of the
two, never both.custom-tools list and custom-tools get. Resolve MCP server and
tool names with mcp-servers list and mcp-servers tools list <serverId>. New custom tools should
use customToolId; preserve an existing legacy inline declaration but do not create another.[{ "skillId": "<skill-id>" }] in params.inputs.skills,
never in inputs.tools. Both tools and skills are complete replacement arrays, so read state
and retain entries the user did not ask to remove.content path.params.inputs.conditions is an ordered array of { "title", "value" } entries.
Titles are structural tokens, not display labels: use exactly If, repeat Else If as needed,
and use Else with an empty value for the fallback. Author their connection handles as if,
else-if-0, else-if-1, and so on, then else.params.inputs.routes is an ordered array of { "title", "value" } entries. Route
titles are free text; connection handles are positional: the first route is route-0, the second
is route-1, and so on.name, not its catalog type, operation id, UUID, or
request-local block_id. Its prefix is the name lowercased with whitespace and dots removed.
Nothing is inserted: AWS Alert becomes awsalert, so use <awsalert.event.text>, never
<aws_alert.event.text>. Existing dashes and underscores remain (AWS_Alert becomes
aws_alert).awsAlert, parseInput, and
step1. This keeps the stored name readable and the reference prefix predictable. Do not use the
reserved normalized names loop, parallel, or variable, and do not create names that collide
after normalization. Punctuation in a name is a live hazard rather than a style preference: a
block renamed to getP&L left <getP&L.contents> unresolved and passed through as literal text,
with the lint reporting nothing.result, so use <parseinput.result> or
<parseinput.result.field> only when the catalog declares that shape.code, comments and docstrings included, and one
that does not resolve fails the block. Describe a field in prose rather than writing tag-shaped
example text beside the code that uses it.<block.field> reference in its inputs. Verify the
normalized prefix against the exact upstream block name in workflow state, verify the field path
against the catalog output schema, and verify the source is reachable upstream.unresolvedReferences with kind block-output catches a reference to a block that does not
exist, an unknown top-level output field (unknown-field), an undeclared path below an MCP
block's structuredContent, and a text output written unquoted in a JSON field
(unquoted-json-string; build that JSON in a Function block instead). A clean lint proves nothing
else: it does not check reachability, nested paths on other blocks, references into trigger or
trigger-mode blocks, loop/parallel/table outputs, an Agent whose responseFormat does not parse,
blocks that declare no outputs, loop./parallel./variable. references, or tokens that do not
look like name.path (the getP&L case above).sim --output json blocks list; inspect a candidate with
sim --output json blocks get <blockId>.table instead of table_v2, router
instead of router_v2). A block whose blocks get detail carries sunset only keeps existing
workflows running: never add one or switch a block to one; build with its sunset.replacedBy.sunset, name its replacedBy to the user.tools list or tools get only when the block response points to a tool and its parameter
or output contract is needed.{{KEY}} secret references (JavaScript:
const key = {{KEY}};) within the configured secret scope. Do not assume workspace secrets appear
in process.env, or widen selected-secret access to work around a missing reference.A resource input is usually exposed twice under one canonicalParamId: a basic-mode selector such
as tableSelector, writeFolderPath, or workflowId, and an advanced-mode manual twin such as
manualTableId, manualWriteFolderPath, or manualWorkflowId. Only the active member of the pair
is read at execution; a value sitting on the other member is inert.
writeFolderPath selector resolves a folder
path, including its percent-encoded form, while manualWriteFolderPath fails for every value, so
a block-output reference belongs in the selector there. Read the pair out of
blocks get <blockId> instead of inferring which member is dynamic from its mode.{"manualTableId": null} on a selector-bound block does not clear inert residue: it flips the
block to advanced with an empty id, and the next run fails on a missing required field.{"manualTableId": ""} to empty the manual value, then {"tableSelector": "<id>"} to bind the
selector and return the pair to basic mode. That order leaves the manual member empty, so a later
flip back to advanced fails loudly instead of silently reading whatever id was left behind.Prefer workflows operations apply over full-state replacement. One batch can create several
blocks, edit existing blocks, delete blocks, and wire their edges atomically.
Every operation has one of these envelopes:
[
{
"operation_type": "add",
"block_id": "local-label",
"params": { "type": "<catalog-block-id>", "name": "referenceSafeName", "inputs": {} }
},
{
"operation_type": "edit",
"block_id": "<existing-block-id>",
"params": { "inputs": {} }
},
{ "operation_type": "delete", "block_id": "<existing-block-id>" },
{
"operation_type": "insert_into_subflow",
"block_id": "local-child-label",
"params": {
"subflowId": "<loop-or-parallel-id>",
"type": "<catalog-block-id>",
"name": "referenceSafeName",
"inputs": {}
}
},
{
"operation_type": "extract_from_subflow",
"block_id": "<existing-child-id>",
"params": { "subflowId": "<loop-or-parallel-id>" }
}
]
Block configuration belongs in params.inputs, keyed by the catalog's input ids. Put block-level
retry, triggerMode, and advancedMode beside inputs, not inside it.
Connections belong on the source block under params.connections. Keys are source handles; values
are a target block id, { "block": "<target-id>", "handle": "<target-handle>" }, or an array of
either. success aliases the ordinary source handle. Re-sending connections replaces all of that
block's outgoing edges. To remove only selected edges, edit with removeEdges entries containing
targetBlockId and, when needed, sourceHandle.
A non-UUID block_id on a new block is a request-local label. Same-batch references are remapped
automatically; later requests must use the UUID returned in mintedBlockIds. Never rediscover a new
block by matching its name. The request-local label does not become the block's variable-reference
prefix; params.name does.
Use --dry-run --atomic to validate a proposed batch when needed. Validation executes no blocks
and does not suppress writes during a later run. Dry-run previewBlockIds are provisional; later
requests must use the committed response's mintedBlockIds.
Enable or disable blocks with --set-block-enabled '[{"block_id":"<uuid>","enabled":false}]',
applied after --operations; disabling a loop or parallel cascades to its unlocked children.
--layout none keeps supplied positions; the default targeted repositions the touched subgraph.
Pass the batch as inline JSON on the first attempt and apply it once with atomic behavior. Do not create a staging file preemptively:
sim --output json workflows operations apply <workflowId> \
--operations '<operations-json-array>' --atomic --yes
Only switch to --operations @operations.json if the inline invocation itself becomes impractical
because of shell parsing or command-length limits; keep the batch unchanged when changing how it is
passed to the CLI.
If the atomic apply is refused, fix the batch rather than retrying a partial or guessed alternative.
Read the state again and verify the requested blocks, inputs, and edges. Treat skipped operations,
dropped inputs, unresolved references, required-field lint issues, and tableFieldIssues (a Table
filter or sort naming no column) as failures to correct. manualRunIssue describes only the
editor's Run button; API runs do not apply it. Report minted ids and any other advisory lint that
remains. Confirm that changed references resolve, every
branch reaches the intended destination, nested blocks remain in the correct loop or parallel scope,
and no block was orphaned by a replaced connection set. Recompute reference prefixes from the
persisted block names; do not infer them from request-local labels or reformat them as snake_case.
Report the workflow id and its exact webUrl from the create or list response, formatting the URL as
a clickable link. Do not construct a workflow URL from ids or the profile's API origin; a missing
webUrl is a response-contract failure.
When the request includes a working or tested workflow and execution is safe, use the run skill to manually test the saved draft with realistic input. Judge the returned values, not only the terminal status, and fix then rerun when behavior is wrong. Manual runs need an OAuth login or personal API key with write access, never a workspace key; do not deploy merely to test. Do not execute a workflow whose external side effects have not been authorized.
What SKILL.md sets; muted values are Claude Code's defaults
Generated from the plugin's indexed repository (simstudioai/skills) — no native marketplace selected
npx claudepluginhub p/simstudioai-sim8 skills in this plugin
/deploy-workflowPublish and manage Sim workflows as APIs, chat deployments, or MCP tools through the sim CLI. Use when a tested workflow is ready to expose or deployment state must be inspected or changed; not for building or debugging a draft graph./filesManage Sim workspace files and folders through the sim CLI. Use when listing, uploading, reading, searching, moving, renaming, sharing, restoring, or making exact or anchor-based edits to workspace files; not for knowledge-base ingestion or local filesystem edits./knowledge-baseCreate and operate Sim knowledge bases through the sim CLI. Use when configuring chunking, ingesting local or workspace documents, setting up connectors, managing tags or chunks, and verifying retrieval; not for ordinary table data or workflow graph edits.