Skip to content

Commit dabcb84

Browse files
authored
docs(skills): align skills with production CLI and API behavior (#14)
Correct stale claims against the production CLI reference and v2 contracts: stored deployment versions keep credentials (only versions get is sanitized), manual runs and tool calls accept OAuth logins, lint now checks block-output references, and table groups default to autoRun and deployed mode. Add short guidance for wait-timeout, run pauses and exit codes, async deploys, chat access resets, trigger health, file revisions and versions, search completeness, connector secrets, and bulk table operations. List files and run-tool in the plugin manifests and bump to 0.1.1.
1 parent 503fc1e commit dabcb84

11 files changed

Lines changed: 205 additions & 73 deletions

File tree

‎.claude-plugin/plugin.json‎

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,23 @@
11
{
22
"name": "sim",
33
"displayName": "Sim",
4-
"version": "0.1.0",
5-
"description": "Build, run, deploy, and sync Sim workflows; operate tables and knowledge bases.",
4+
"version": "0.1.1",
5+
"description": "Build, run, deploy, and sync Sim workflows; operate tables, knowledge bases, and workspace files; call integration tools directly.",
66
"author": {
77
"name": "Sim",
88
"url": "https://sim.ai"
99
},
1010
"homepage": "https://docs.sim.ai",
1111
"repository": "https://github.com/simstudioai/skills",
1212
"license": "Apache-2.0",
13-
"keywords": ["sim", "workflows", "automation", "tables", "knowledge-bases"],
13+
"keywords": [
14+
"sim",
15+
"workflows",
16+
"automation",
17+
"tables",
18+
"knowledge-bases",
19+
"files",
20+
"integrations"
21+
],
1422
"skills": "./skills/"
1523
}

‎.codex-plugin/plugin.json‎

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,28 @@
11
{
22
"name": "sim",
3-
"version": "0.1.0",
4-
"description": "Build, run, deploy, and sync Sim workflows; operate tables and knowledge bases.",
3+
"version": "0.1.1",
4+
"description": "Build, run, deploy, and sync Sim workflows; operate tables, knowledge bases, and workspace files; call integration tools directly.",
55
"author": {
66
"name": "Sim",
77
"url": "https://sim.ai"
88
},
99
"homepage": "https://docs.sim.ai",
1010
"repository": "https://github.com/simstudioai/skills",
1111
"license": "Apache-2.0",
12-
"keywords": ["sim", "workflows", "automation", "tables", "knowledge-bases"],
12+
"keywords": [
13+
"sim",
14+
"workflows",
15+
"automation",
16+
"tables",
17+
"knowledge-bases",
18+
"files",
19+
"integrations"
20+
],
1321
"skills": "./skills/",
1422
"interface": {
1523
"displayName": "Sim",
1624
"shortDescription": "Build and operate Sim workflows",
17-
"longDescription": "Use the Sim CLI to build, test, deploy, and debug workflows, import and sync workspaces, and manage tables and knowledge bases.",
25+
"longDescription": "Use the Sim CLI to build, test, deploy, and debug workflows, import and sync workspaces, manage tables, knowledge bases, and workspace files, and call integration tools directly.",
1826
"developerName": "Sim",
1927
"category": "Productivity",
2028
"capabilities": ["Read", "Write"],

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sim-skills",
3-
"version": "0.1.0",
3+
"version": "0.1.1",
44
"description": "Official Sim plugin and Agent Skills for building workflows and operating Sim resources",
55
"type": "module",
66
"bin": {

‎skills/build-workflow/SKILL.md‎

Lines changed: 25 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ are regenerated; do not recreate that flow with a sequence of graph edits.
2020

2121
- Use the profile the user named. If none was named, inspect configured profiles and current context;
2222
do not silently switch accounts, workspaces, or API origins.
23+
- Graph edits need an OAuth login or personal API key with write access. `sim --output json meta
24+
status` reports the credential's `keyType`, `scopes`, and `expiresAt`; a read-only key (only
25+
`api:read`) is refused every mutation with `READ_ONLY_API_KEY`.
2326
- Find the intended workflow with `sim --output json workflows list`. Create one only when the user
2427
asked for a new workflow.
2528
- Read an existing draft with `sim --output json workflows state get <workflowId>` before editing it.
@@ -85,7 +88,9 @@ are regenerated; do not recreate that flow with a sequence of graph edits.
8588

8689
- Put only workflow-author-fixed values in a tool's `params`; omit arguments the model should
8790
choose. Omit `usageControl` or use `auto` when the model may decide, `force` when every Agent run
88-
must call it, and `none` to disable it.
91+
must call it, and `none` to disable it. To decide per run, set `usageControlExpression` instead
92+
(a reference such as `<start.toolMode>` resolving to `auto`, `force`, or `none`); send one of the
93+
two, never both.
8994
- Resolve custom-tool ids with `custom-tools list` and `custom-tools get`. Resolve MCP server and
9095
tool names with `mcp-servers list` and `mcp-servers tools list <serverId>`. New custom tools should
9196
use `customToolId`; preserve an existing legacy inline declaration but do not create another.
@@ -132,9 +137,15 @@ are regenerated; do not recreate that flow with a sequence of graph edits.
132137
example text beside the code that uses it.
133138
- Before applying a batch, enumerate every `<block.field>` reference in its inputs. Verify the
134139
normalized prefix against the exact upstream block name in workflow state, verify the field path
135-
against the catalog output schema, and verify the source is reachable upstream. A clean workflow
136-
operations lint does not prove block-output references resolve; its `unresolvedReferences` report
137-
covers resource-like references such as credentials, tools, and skills.
140+
against the catalog output schema, and verify the source is reachable upstream.
141+
- Lint `unresolvedReferences` with kind `block-output` catches a reference to a block that does not
142+
exist, an unknown top-level output field (`unknown-field`), an undeclared path below an MCP
143+
block's `structuredContent`, and a text output written unquoted in a JSON field
144+
(`unquoted-json-string`; build that JSON in a Function block instead). A clean lint proves nothing
145+
else: it does not check reachability, nested paths on other blocks, references into trigger or
146+
trigger-mode blocks, loop/parallel/table outputs, an Agent whose `responseFormat` does not parse,
147+
blocks that declare no outputs, `loop.`/`parallel.`/`variable.` references, or tokens that do not
148+
look like `name.path` (the `getP&L` case above).
138149

139150
## Discover before composing
140151

@@ -247,6 +258,10 @@ Use `--dry-run --atomic` to validate a proposed batch when needed. Validation ex
247258
and does not suppress writes during a later run. Dry-run `previewBlockIds` are provisional; later
248259
requests must use the committed response's `mintedBlockIds`.
249260

261+
Enable or disable blocks with `--set-block-enabled '[{"block_id":"<uuid>","enabled":false}]'`,
262+
applied after `--operations`; disabling a loop or parallel cascades to its unlocked children.
263+
`--layout none` keeps supplied positions; the default `targeted` repositions the touched subgraph.
264+
250265
Pass the batch as inline JSON on the first attempt and apply it once with atomic behavior. Do not
251266
create a staging file preemptively:
252267

@@ -261,8 +276,10 @@ passed to the CLI.
261276

262277
If the atomic apply is refused, fix the batch rather than retrying a partial or guessed alternative.
263278
Read the state again and verify the requested blocks, inputs, and edges. Treat skipped operations,
264-
dropped inputs, unresolved references, and required-field lint issues as failures to correct. Report
265-
minted ids and any other advisory lint that remains. Confirm that changed references resolve, every
279+
dropped inputs, unresolved references, required-field lint issues, and `tableFieldIssues` (a Table
280+
filter or sort naming no column) as failures to correct. `manualRunIssue` describes only the
281+
editor's Run button; API runs do not apply it. Report minted ids and any other advisory lint that
282+
remains. Confirm that changed references resolve, every
266283
branch reaches the intended destination, nested blocks remain in the correct loop or parallel scope,
267284
and no block was orphaned by a replaced connection set. Recompute reference prefixes from the
268285
persisted block names; do not infer them from request-local labels or reformat them as snake_case.
@@ -273,6 +290,6 @@ a clickable link. Do not construct a workflow URL from ids or the profile's API
273290

274291
When the request includes a working or tested workflow and execution is safe, use the run skill to
275292
manually test the saved draft with realistic input. Judge the returned values, not only the terminal
276-
status, and fix then rerun when behavior is wrong. Manual runs require a personal API-key profile;
277-
do not deploy merely to test. Do not execute a workflow whose external side effects have not been
293+
status, and fix then rerun when behavior is wrong. Manual runs need an OAuth login or personal API
294+
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
278295
authorized.

‎skills/deploy-workflow/SKILL.md‎

Lines changed: 33 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@ post-deployment state.
1010

1111
## Preflight
1212

13-
- Read the draft and current deployment before changing anything.
13+
- Deploy, activate, rollback, revert, undeploy, and chat publish need workspace admin and an OAuth
14+
login or personal API key; a workspace key is refused.
15+
- Read the draft and current deployment before changing anything. `workflows deployment status`
16+
reports `needsRedeployment` (draft differs from live) and the live `webhooks[]` URLs.
1417
- Confirm the draft has no required-field lint issues or unresolved credentials and has completed an
1518
appropriate manual run.
1619
- Check prior edit responses for skipped operations and dropped inputs, then reread the saved draft
@@ -20,22 +23,24 @@ post-deployment state.
2023
access configuration.
2124
- Never create, rotate, or reveal an API key unless the user separately asked for key management.
2225

23-
## What a stored version is not
26+
## Versions, revert, and rollback
2427

25-
A stored workflow version nulls out `credential`, `oauthCredential`, resource selectors, and
26-
related binding fields. Two consequences:
27-
28-
- A diff against a version document is not a change report. Blocks whose only delta is a nulled
29-
field show as changed, and selector changes do not show at all - the diff overstates and
30-
understates simultaneously. Diff live state against live state instead.
31-
- A revert restores the nulled document, stripping every credential and selector in the workflow.
32-
Never present revert as a safe rollback; the reverted draft needs its bindings re-established
33-
before it can run.
28+
- `workflows versions get` returns a sanitized copy: credentials, inline secrets, and opaque
29+
credential inputs are nulled, so diffing two of those documents both overstates and hides
30+
changes. Use `workflows versions compare <workflowId> --base <n> --target <n>`, which marks each
31+
changed value as `value`, `redacted`, or `unset`.
32+
- `workflows revert create <workflowId> <version|active> --yes` overwrites the draft with that
33+
version's stored graph, credentials included, and cannot be undone. It does not change what
34+
is live.
35+
- `workflows activate create` and `workflows rollback [--to-version <n>]` change the live version
36+
for every API and chat consumer and leave the draft alone.
3437

3538
## Choose one surface
3639

3740
- **API:** for software calling a workflow as a pipeline. Publish with
3841
`sim --output json workflows deploy <workflowId>` and inspect with `workflows deployment status`.
42+
`workflows deployment update <workflowId> --is-public-api true` lets anyone with the URL run it on
43+
the workspace's bill; change it only on explicit request.
3944
- **Chat:** for a person using a shareable conversation. Configure the actual output fields, slug,
4045
title, welcome message, and access policy with `workflows chat publish`; inspect with
4146
`workflows chat status`. A chat deployment also publishes the workflow API.
@@ -48,9 +53,13 @@ Do not choose a surface from convenience. Ask when the intended caller does not
4853

4954
## Access invariants
5055

51-
- A protected chat must include the required password or allowed-email list. Fail instead of
52-
publishing an unusable access policy.
53-
- Use a lowercase hyphenated chat slug.
56+
- `chat publish` replaces the whole access policy. Omitting `--auth-type` makes the chat public,
57+
and omitted password or email settings reset, so republishing a protected chat without its auth
58+
flags silently opens it. Always resend `--auth-type` (`public`, `password`, `email`, `sso`) with
59+
`--password` (15-1024 characters) or `--allowed-emails`. Fail instead of publishing an unusable
60+
or weaker policy.
61+
- The chat `--identifier` slug matches `^[a-z0-9-]+$` and must be free across live deployments.
62+
- Omitting `--output-configs` surfaces no block outputs to visitors.
5463
- Map chat outputs from real block output fields returned by the catalog or a successful run, not
5564
display labels. MCP generates its schema from deployed workflow inputs; parameter descriptions
5665
must name those real input fields, and unknown names are ignored.
@@ -78,9 +87,16 @@ That flow owns mapping discovery, preview fingerprints, stable request IDs, and
7887

7988
## Verify and report
8089

81-
After publishing, read the deployment again. Confirm its active status and version and return the
82-
real URL or MCP connection details from the response; never fabricate them. If the draft remains
83-
ahead of the deployed version, say so.
90+
Deployment is asynchronous: the deploy response accepts an attempt while the older version can stay
91+
live. Poll `workflows deployment status` until `latestDeploymentAttempt` names the new version with
92+
status `active` (or `failed`). Deploy has no idempotency key, so after a timeout read the status
93+
before deploying again; a blind retry creates another version. Return the real URL or MCP
94+
connection details from the response; never fabricate them. If the draft remains ahead of the
95+
deployed version, say so.
96+
97+
`workflows triggers list <workflowId>` shows the health of each live trigger.
98+
`workflows triggers update <workflowId> <blockId> --enabled false` pauses one, but only until the
99+
next deploy or version activation re-enables every trigger.
84100

85101
Undeploy only on an explicit request. Use `workflows undeploy`, `workflows chat unpublish`, or
86102
`workflow-mcp-servers tools delete` for the matching surface, supplying confirmation where the CLI

‎skills/files/SKILL.md‎

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ sim --output json files search \
4646
Use `--mode exact` for literal text and `--no-include-subfolders` when only the selected folders
4747
should be searched. Do not fetch every file and search locally when the server-side query suffices.
4848

49+
`files search` returns at most `--max-results` lines (default 50); `truncated: true` means more
50+
exist. No match proves absence only when `complete` is true and `indexStatus.skippedFiles` and
51+
`indexStatus.partialFiles` are both zero; otherwise report the result as inconclusive.
52+
4953
## Create and organize deliberately
5054

5155
Upload a local file or create textual content directly:
@@ -62,6 +66,9 @@ folder atomically with `files folders move <path> <destination>`. Move known fil
6266
File names are leaf names, not paths. Use `files rename <fileId> --name <name>` to change one and
6367
`files move` to change its folder. Do not place path separators or dot segments in a file name.
6468

69+
`files copy --source <json> --destination <json>` copies files or folders. `files unzip <fileId>
70+
--yes` writes every archive entry into the workspace, so confirm the destination first.
71+
6572
## Read before editing
6673

6774
For textual work, inspect only the needed lines:
@@ -131,18 +138,25 @@ Delete from the start anchor through the line before the retained end anchor:
131138
```
132139

133140
Use `files set-content` only when complete replacement is intentional. A targeted edit preserves
134-
unrelated content and reduces stale-read overwrites. If an edit is rejected because the source
135-
changed concurrently, read the current file and recompute the edit; do not replay the stale write.
141+
unrelated content and reduces stale-read overwrites. Pass `--expected-revision` with the
142+
`revision` from `files describe` (each write returns the new one) so a concurrent change answers
143+
`409` instead of being overwritten. On `409`, read the current file and recompute the edit; do not
144+
replay the stale write.
145+
146+
File content is versioned. `files versions list`, `versions read`, and `versions download`
147+
inspect history; `files versions revert <fileId> <version> --expected-revision <rev>` is the undo
148+
path. `files versions delete` permanently removes a version; use it only on explicit request.
136149

137150
## Treat deletion and sharing as explicit effects
138151

139-
File and folder deletion requires `--yes` and is soft-delete where the surface supports restore.
140-
Use `files list --scope archived` or `files folders list --scope archived` to find deleted items,
141-
then restore by exact file id or folder path. A recursive folder delete affects descendants, so use
152+
File and folder deletion requires `--yes` and is soft-delete where the surface supports restore;
153+
`files batch-delete <ids...> --yes` archives several files. Use `files list --scope archived` or
154+
`files folders list --scope archived` to find deleted items (`files describe <fileId> --scope
155+
archived` reads one), then restore by exact file id or folder path. A recursive folder delete affects descendants, so use
142156
it only when the requested scope is clear.
143157

144-
Before changing a share, inspect it with `files share get <fileId>`. `files share set` requires a
145-
personal API-key profile. Do not expose share passwords, profile credentials, or unrelated file
158+
Before changing a share, inspect it with `files share get <fileId>`. `files share set` requires an OAuth
159+
login or personal API key; a workspace key is refused. Do not expose share passwords, profile credentials, or unrelated file
146160
content in output.
147161

148162
## Verify and report

‎skills/knowledge-base/SKILL.md‎

Lines changed: 27 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,22 @@ than guessing slot meanings.
5252
For files already stored in the workspace, use `knowledge from-workspace-files create` so the
5353
server reads the canonical file. For a continuously changing external source, use a connector:
5454

55-
1. Run `sim --output json connector-types list` and select an exact `connectorType`.
55+
1. Run `sim --output json connector-types list --detail full` and select an exact
56+
`connectorType`; the default summary omits the config schema.
5657
2. Read its returned `auth` mode and `configFields`. Build `sourceConfig` using each field's id or
5758
`canonicalParamId`, honoring `required`, `dependsOn`, and `multi`.
58-
3. Supply an existing OAuth `credentialId` or the required API key without writing the secret to a
59-
committed file or output.
60-
4. Create it with `knowledge connectors create`, then start an explicit sync with
61-
`knowledge connectors sync` when needed.
59+
3. Supply an existing OAuth `credentialId`, or `--api-key '{{SECRET_NAME}}'` as a whole-value
60+
secret reference (`$SECRET_NAME` is sent literally). Never write the secret to a committed file
61+
or output.
62+
4. Create it with `knowledge connectors create` (`--sync-interval-minutes` defaults to 1440; `0`
63+
disables scheduled syncs), then start an explicit sync with `knowledge connectors sync` when
64+
needed.
65+
66+
`knowledge connectors update --status paused|active` pauses or resumes a connector; a new
67+
`--source-config` on a runnable connector queues a sync. `knowledge connectors documents update
68+
--operation exclude|restore` hides or brings back individual synced documents.
69+
`knowledge connectors delete --delete-documents` permanently deletes everything it synced; use it
70+
only on explicit request.
6271

6372
Never invent provider-specific `sourceConfig`. Do not use `--rehydrate` unless the user intends to
6473
re-fetch and re-index every existing connector document.
@@ -76,6 +85,8 @@ For an exact item, use `knowledge documents get <knowledgeBaseId> <documentId>`.
7685
searchable only when it is enabled and `processingStatus` is `completed`. Treat `pending` and
7786
`processing` as nonterminal, and `failed` as a real failure. Use `documents update --retry-processing`
7887
alone only for a failed or stuck document; do not combine that flag with metadata changes.
88+
`knowledge documents batch-update --operation enable|disable` toggles several documents' search
89+
eligibility.
7990

8091
For connectors, inspect `knowledge connectors list` and `knowledge connectors documents list` to
8192
distinguish connector sync state from individual document processing. Poll with a bounded stopping
@@ -96,6 +107,17 @@ Search and document-list filters use the tag's display name, not its storage slo
96107
All filters in one request must match. A missing tag name or inconsistent definition across selected
97108
knowledge bases is an error, never an ignored filter.
98109

110+
`knowledge tags usage` shows which definitions documents still carry. `knowledge tags cleanup`
111+
removes only unused definitions by default; `--no-unused` deletes every definition and clears its
112+
values on every document and chunk, irreversibly. Never pass it without an explicit request.
113+
114+
Edit chunk content directly with `knowledge chunks create`, `chunks update`, or
115+
`chunks batch-update --operation enable|disable|delete` (delete is permanent).
116+
117+
To copy a knowledge base, `knowledge export <id>` writes a bundle and `knowledge import <path>`
118+
creates a new knowledge base from it; `--no-vectors` shrinks the bundle and makes the import
119+
re-embed every chunk.
120+
99121
## Verify retrieval
100122

101123
Run a bounded search after documents reach `completed`:

0 commit comments

Comments
 (0)