/sim:knowledge-basefrom Sim
Create 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.
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 retrieval from an explicit ingestion source, wait for indexing to finish, and verify it with a query whose expected answer is present in the source material.
sim --output json knowledge list. Read the target with
sim --output json knowledge get <knowledgeBaseId> before changing it.For ordinary documents, begin with the server defaults unless the user has a retrieval reason to change them:
sim --output json knowledge create \
--name "Support handbook" \
--description "Approved support policies"
When tuning is required, pass --chunking-config @chunking.json. The object accepts maxSize,
minSize, overlap, strategy, and strategy-specific strategyOptions; inspect
knowledge create --help and the current knowledge-base response before composing it. Valid
strategies are auto, text, regex, recursive, sentence, and token. A regex strategy
requires a pattern. Fail on invalid bounds instead of silently falling back to defaults.
Chunking changes affect subsequent processing. Do not imply that updating the knowledge base has re-indexed existing completed documents unless those documents were explicitly reprocessed.
For a local file, upload it directly:
sim --output json knowledge documents upload <knowledgeBaseId> ./handbook.pdf
Use --name, --recipe, or --lang only when supplied or justified by the source. --tag values
map positionally to text slots tag1 through tag7; define and inspect semantic tags first rather
than guessing slot meanings.
For files already stored in the workspace, use knowledge from-workspace-files create so the
server reads the canonical file. For a continuously changing external source, use a connector:
sim --output json connector-types list --detail full and select an exact
connectorType; the default summary omits the config schema.auth mode and configFields. Build sourceConfig using each field's id or
canonicalParamId, honoring required, dependsOn, and multi.credentialId, or --api-key '{{SECRET_NAME}}' as a whole-value
secret reference ($SECRET_NAME is sent literally). Never write the secret to a committed file
or output.knowledge connectors create (--sync-interval-minutes defaults to 1440; 0
disables scheduled syncs), then start an explicit sync with knowledge connectors sync when
needed.knowledge connectors update --status paused|active pauses or resumes a connector; a new
--source-config on a runnable connector queues a sync. knowledge connectors documents update --operation exclude|restore hides or brings back individual synced documents.
knowledge connectors delete --delete-documents permanently deletes everything it synced; use it
only on explicit request.
Never invent provider-specific sourceConfig. Do not use --rehydrate unless the user intends to
re-fetch and re-index every existing connector document.
Upload and sync acceptance are not retrieval success. Read documents with:
sim --output json knowledge documents list <knowledgeBaseId> \
--sort-by processingStatus --sort-order asc --limit 100
For an exact item, use knowledge documents get <knowledgeBaseId> <documentId>. A document is
searchable only when it is enabled and processingStatus is completed. Treat pending and
processing as nonterminal, and failed as a real failure. Use documents update --retry-processing
alone only for a failed or stuck document; do not combine that flag with metadata changes.
knowledge documents batch-update --operation enable|disable toggles several documents' search
eligibility.
For connectors, inspect knowledge connectors list and knowledge connectors documents list to
distinguish connector sync state from individual document processing. Poll with a bounded stopping
condition and report remaining nonterminal or failed items.
List definitions with knowledge tags list. Create or save a definition before assigning values,
using knowledge tags next-slot when a slot is not already chosen. Text, number, date, and boolean
tags use separate finite slot pools.
Search and document-list filters use the tag's display name, not its storage slot:
[{ "tagName": "category", "operator": "eq", "value": "billing" }]
All filters in one request must match. A missing tag name or inconsistent definition across selected knowledge bases is an error, never an ignored filter.
knowledge tags usage shows which definitions documents still carry. knowledge tags cleanup
removes only unused definitions by default; --no-unused deletes every definition and clears its
values on every document and chunk, irreversibly. Never pass it without an explicit request.
Edit chunk content directly with knowledge chunks create, chunks update, or
chunks batch-update --operation enable|disable|delete (delete is permanent).
To copy a knowledge base, knowledge export <id> writes a bundle and knowledge import <path>
creates a new knowledge base from it; --no-vectors shrinks the bundle and makes the import
re-embed every chunk.
Run a bounded search after documents reach completed:
sim --output json knowledge search \
--kb <knowledgeBaseId> \
--query "How are billing disputes escalated?" \
--top-k 5 \
--search-mode hybrid
top-k must be a whole number from 1 through 100. Use vector for semantic retrieval and hybrid
when exact terminology should also influence ranking. Enable reranking only when its extra billed
search unit is justified; it is best-effort, so inspect rerankerStatus rather than assuming it ran.
Verify that returned chunks come from the intended document and contain evidence for a known answer. An empty result while a document is still indexing is not proof that retrieval is misconfigured. If completed content is absent, inspect enabled state, tag filters, chunk text, and chunking config; do not hide a deterministic ingestion or filter error by changing query wording repeatedly.
Report the knowledge-base id, its exact webUrl from the create or get response as a clickable link,
ingestion path, document and connector ids, terminal processing statuses, and a concise retrieval
result. Do not construct a knowledge-base URL from ids or the profile's API origin; a missing
webUrl is a response-contract failure. Identify any failed document or degraded reranker status.
Never print API keys, OAuth tokens, unrelated document content, or profile credentials.
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
/build-workflowCreate 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./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.