/octo-claude-skills:octofrom OctoMesh Skills
Primary entry point and router for all OctoMesh tasks. Drives the octo-cli for platform administration (users, roles, groups, tenants, clients, identity providers, blueprints, CK catalog/library management, stream-data archives, communication adapters/pipelines, AI services) and explores the data model and runtime instances via GraphQL.
Ships in OctoMesh Skills. 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.
Read when SKILL.md points to them; scripts run unread.
Start with /octo <natural language> in Claude Code or select the octo-skills:octo skill in Codex. Resolve the environment, tenant and authentication before using the CLI. Keep the confirmation gates below for mutations.
Before doing any work, match the request to a sibling skill below. In Claude Code, use the listed Skill call. In Codex, take the skill name from that call and read ../<skill-name>/SKILL.md relative to this skill's directory. Keep the user's request and context and follow that sibling's instructions, including its approval requirements. Resolve its references from its own directory. If the sibling is unavailable, report the missing skill before attempting the operation.
| If the user's intent involves... | Sibling skill (Claude Code invocation) |
|---|---|
Building repos, dotnet build, starting/stopping services, Docker compose, git sync, NuGet packages, clean builds, dev environment setup, PowerShell cmdlets (Invoke-Build, Start-Octo, etc.) | Skill("octo-devtools", args: "<user's request>") |
Debugging bugs, investigating failures, CK model errors (ResolveFailed, modelState), inspecting MongoDB, selective builds to isolate issues, database backup/restore, service health checks, error logs, cascade failures | Skill("octo-agent", args: "<user's request>") |
Pipeline YAML creation/editing/debugging, pipeline node configuration, DataContext, ForEach, transformations, ApplyChanges, CreateUpdateInfo, writing ETL pipelines — anything about authoring pipeline YAML | Skill("pipeline-expert", args: "<user's request>") |
Committing changes, finishing work, creating PRs, pushing code, linking Azure DevOps work items (AB#), creating feature branches (feat/), wrapping up tasks, "ship it", "I'm done" | Skill("octo-commit", args: "<user's request>") |
Developing/extending the OctoMesh MCP server itself (code in octo-mcp-service), adding MCP tools/resources, MCP server build/config | Skill("octo-mcp", args: "<user's request>") |
Refinery Studio Angular frontend development (code in octo-frontend-refinery-studio), components, GraphQL codegen, Angular build/lint/test for the studio app | Skill("refinery-studio", args: "<user's request>") |
| Kubernetes Communication Operator + Helm chart development/deployment (operator code, CRDs, Helm values, K8s manifests) | Skill("octo-operator", args: "<user's request>") |
Building a new OctoMesh-powered app/workload end to end — custom CK model + blueprint authoring (blueprint.yaml, seed data, ckModelDependencies), HTTP APIs from FromHttpRequest@2 pipelines, operator-deployed Application web apps, CK/blueprint catalog publishing | Skill("octo-app-builder", args: "<user's request>") |
Deploying/promoting an app to the shared test environment test-2 (the workflow of octo-deploy; staging and production are out of its scope) — publishing CK models/blueprints to shared catalogs (octo-ckc/octo-bpm), pushing images to <registry>, context setup, install + verify on a tenant there | Skill("octo-deploy", args: "<user's request>") |
| Reading/tracing logs from a deployed cluster in Dash0 (Dash0 MCP tools) — log filters, D0QL error rates, tracing an error across pod redeployments, log retention | Skill("octo-logs", args: "<user's request>") |
Setting up log access — registering / logging in to the Dash0 MCP server when the mcp__dash0__* tools are missing or unauthenticated | Skill("octo-logs-setup", args: "<user's request>") |
Routing rule for Communication / Pipelines: If the user wants to write or understand pipeline YAML, route to pipeline-expert. If they want to deploy, run, inspect status, or debug executions, handle it here in octo. For end-to-end workflows ("set up a new data flow"), octo orchestrates and routes to pipeline-expert only for the YAML authoring step.
Only continue with this skill if the request is about: CLI commands (octo-cli), data model exploration (CK models/types/enums), runtime instance browsing, GraphQL introspection, environment/auth management, or communication operations (adapters, pipeline deployment/execution/status, data flows, triggers).
Run these checks once per session and cache the results. If any check has already been performed in this conversation, skip it.
Run octo-cli -c ListContexts -j (or -n <name>) for the active context name (e.g., local_mytenant), and per context its tenant ID, service endpoints and auth status. Never open ~/.octo-cli/contexts.json yourself and never print, copy or forward a token from it; ListContexts and AuthStatus give everything needed.
The active context is the persisted default — but a command may run against a different context when --context <name> is passed or OCTO_CLI_CONTEXT is set (see Invocation Syntax). Check the env var and prefer --context when targeting a specific environment so you never depend on, or mutate, the global active context.
To list all available contexts: octo-cli -c ListContexts — the dedicated command. Shows each context's identity URL, tenant, and auth status (none/authenticated/expired). Add -n <name> for single-context detail or -j for JSON. (octo-cli -c UseContext with no -n still lists contexts as a legacy fallback.)
Run octo-cli -c AuthStatus to determine:
If not authenticated: inform the user and offer to run octo-cli -c LogIn -i (interactive browser device login). For headless/CI scenarios use octo-cli -c LogInClientCredentials instead (reads -id and the secret from the OCTO_CLI_CLIENT_ID/OCTO_CLI_CLIENT_SECRET env vars or --secret-stdin; the hidden prompt is only for an interactive terminal; tenant comes from the active context). AuthStatus shows an "Auth Method" line and omits the User Info section for client-credentials tokens. Agent-driven tasks that need a throwaway tenant never require interactive login — see references/temp-tenants.md.
| URL Pattern | Environment |
|---|---|
localhost:500x | local |
*.<staging-domain> | staging |
*.<production-domain> | production |
Hostnames are placeholders: the service URLs of the context name the installation; ask its administrator which domain belongs to which environment. The Meshmakers installations and their domains are in
references/environments.md; withocto-claude-pminstalled see itsagent-operating-rules/references/environments.md.
octo-cli -c <CommandValue> [flags] — flags use the short form with a - prefix (-un userName, -e email, -tid tenantId), or the long form (--userName). All flags have both long and short forms (e.g. --json (-j), --identifier (-id)); the tables below and references/command-reference.md give the exact names.
Targeting a context — --context <name> (prefer this over UseContext). octo-cli -c <Command> --context <name> runs that one command against the named context without changing the active context. Resolution order: --context > env var OCTO_CLI_CONTEXT > persisted active context. The token is read from — and for LogIn/LogInClientCredentials written back to — the selected context, and saves merge per-context, so parallel Claude sessions (or a _train/CI job) pinned to different contexts never clobber each other. This is the default for any agent-driven or scripted flow. UseContext mutates the single global active context in ~/.octo-cli/contexts.json — a second session then silently flips it out from under the first; reserve it for a human setting a persistent default. To pin a whole shell session (octo-cli and the Python explorer scripts, which honor the same variable) without touching the file: export OCTO_CLI_CONTEXT=<name>. Only the full term matches — --context/-context//context, no abbreviation.
Command-name + one-line purpose + safety type only. For full flag detail, read references/command-reference.md (organized by the same command groups). For environment URLs read references/environments.md. Verify flags there before assembling any mutating command.
| Command | Purpose | Type |
|---|---|---|
AddContext | Create/update a named context (service URLs incl. -aisu AI URL, tenant) | Mutating |
Config | Edit the active context's service URLs + tenant in-place (no -n) | Mutating |
UseContext | Switch the persisted active context (-n); mutates global state — prefer --context/OCTO_CLI_CONTEXT for agent/parallel use. Without -n lists contexts (legacy) | Mutating |
ListContexts | List all contexts with auth status; -n detail, -j JSON | Read-only |
RemoveContext | Remove a named context | Mutating |
LogIn | Interactive browser/device login (-i) | Mutating |
LogInClientCredentials | Headless OAuth2 client_credentials login (env vars or --secret-stdin) | Mutating |
AuthStatus | Show authentication status, claims, environment | Read-only |
| Command | Purpose | Type |
|---|---|---|
Setup | Initial identity services setup | Mutating |
GetUsers / CreateUser / UpdateUser / DeleteUser | Manage users | R / Mut |
ResetPassword | Reset a user's password | Mutating |
AddUserToRole / RemoveUserFromRole | Manage user↔role membership | Mutating |
GetRoles / CreateRole / UpdateRole / DeleteRole | Manage roles | R / Mut |
GetGroups / GetGroup / CreateGroup / UpdateGroup / DeleteGroup | Manage groups | R / Mut |
UpdateGroupRoles | Set the roles assigned to a group | Mutating |
AddUserToGroup / RemoveUserFromGroup | Manage group membership | Mutating |
AddGroupToGroup / RemoveGroupFromGroup | Nest/un-nest groups | Mutating |
GetEmailDomainGroupRules / GetEmailDomainGroupRule | List/get email-domain→group rules | Read-only |
CreateEmailDomainGroupRule / UpdateEmailDomainGroupRule / DeleteEmailDomainGroupRule | Manage auto-grouping by email domain | Mutating |
GetExternalTenantUserMappings / GetExternalTenantUserMapping | List/get cross-tenant user mappings | Read-only |
CreateExternalTenantUserMapping / UpdateExternalTenantUserMapping / DeleteExternalTenantUserMapping | Manage cross-tenant user mappings | Mutating |
GetAdminProvisioningMappings | List admin-provisioning mappings for a target tenant | Read-only |
CreateAdminProvisioningMapping / DeleteAdminProvisioningMapping | Manage admin provisioning (run from system tenant) | Mutating |
ProvisionCurrentUser | Provision current user as admin in a target tenant | Mutating |
GetClients / GetClient | List/get clients | Read-only |
AddAuthorizationCodeClient / AddDeviceCodeClient | Add OIDC clients | Mutating |
AddClientCredentialsClient | Add client-credentials client (-apic auto-provision into sub-tenants) | Mutating |
UpdateClient / DeleteClient / AddScopeToClient | Manage clients | Mutating |
AddClientToRole / RemoveClientFromRole | Assign/remove a role (by name) of a client-credentials client (-id <clientId> -r <role>); new token needed | Mutating |
UpdateClientRoles | Replace all directly assigned roles of a client (-id, -rids <roleId,…>) | Mutating |
AddClientToGroup / RemoveClientFromGroup | Add/remove a client to/from a group (-id <groupId> -cid <clientId>); the client inherits the group's roles | Mutating |
GetClientRoles | List the roles assigned directly to a client in the context's tenant (-id <clientId>; JSON Id/Name, no group-inherited roles) | Read-only |
GetClientMirrors | List sub-tenants a client is mirrored into | Read-only |
SetClientAutoProvision | Flip a client's auto-provision flag (no backfill) | Mutating |
ProvisionClientInExistingTenants | Backfill a flagged client into all existing sub-tenants | Mutating |
ProvisionClientInTenant | Provision a flagged client into one sub-tenant (-ctid) | Mutating |
UnprovisionClientFromTenant | Remove a single client mirror (-ctid) | Destructive |
GetIdentityProviders | List identity providers | Read-only |
AddOAuthIdentityProvider / AddOpenLdapIdentityProvider / AddAdIdentityProvider / AddAzureEntryIdIdentityProvider | Add IdP (all accept -asr, -dgid) | Mutating |
AddOctoTenantIdentityProvider | Add cross-tenant IdP via a parent tenant (-ptid) | Mutating |
UpdateIdentityProvider / DeleteIdentityProvider | Manage IdPs | Mutating |
GetApiScopes / CreateApiScope / UpdateApiScope / DeleteApiScope | Manage API scopes | R / Mut |
GetApiResources / CreateApiResource / UpdateApiResource / DeleteApiResource | Manage API resources | R / Mut |
GetApiSecretsApiResource / GetApiSecretsClient | List secrets | Read-only |
CreateApiSecret* / UpdateApiSecret* / DeleteApiSecret* (ApiResource & Client) | Manage API secrets | Mutating |
Active Directory IdPs support AD-group→OctoMesh-group sync: on every login, users in an AD group are added to the OctoMesh group whose name matches the AD group CN (case-insensitive). The matching OctoMesh group must already exist and carry the desired role associations.
| Command | Purpose | Type |
|---|---|---|
GetTenants | List all child tenants | Read-only |
Create | Create a new tenant + provision current user (-tid, -db, -np to skip; --scratch for agents: the client-credentials caller becomes the tenant's administrator, no user provisioning; --blueprint <Name>-<version> applies a catalog blueprint in the same transaction, a failing blueprint leaves no tenant) | Mutating |
Clean | Reset tenant to factory defaults (deletes CK + RT model) | Destructive |
Attach | Attach an existing database to a tenant | Mutating |
Delete | Delete a tenant | Destructive |
ClearCache | Clear a tenant's cache | Mutating |
UpdateSystemCkModel | Update a tenant's System CK model to latest | Mutating |
ImportCk | Import construction kit model from file (-w to wait) | Mutating |
ImportRt | Import runtime model from file (-r replace, -w to wait) | Mutating |
ExportRtByQuery | Export runtime entities by query → ZIP (-f, -q) | Read-only |
ExportRtByDeepGraph | Export by association graph → ZIP (-f, -id, -t) | Read-only |
CreateFixupScript | Create a fixup script | Mutating |
| CK catalog / library (see below) | Catalog browse, dependency/upgrade checks, import, status, fix | R / Mut |
| Blueprints (see below) | Install/update/rollback/uninstall blueprints | R / Mut |
| Stream-data archives (see below) | Enable stream data; archive lifecycle + rollups | R / Mut / Destr |
Changing the data model requires scope octo_api and the tenant role DataModelManagement (since r3.5.67): ImportCk, ImportFromCatalog, FixAll, RefreshCatalogs, RefreshBlueprintCatalogs and InstallBlueprint/UpdateBlueprint/UninstallBlueprint. TenantOwners carry it; without it the call fails with 403 code DataModelManagementRequired — an administrator of that tenant grants the role in the tenant (users: AddUserToRole -un <user> -r DataModelManagement or TenantOwners membership; client-credentials clients: AddClientToRole -id <clientId> -r DataModelManagement, then log in again for a new token), never work around it.
| Command | Purpose | Type |
|---|---|---|
ListCatalogs | List CK model catalog sources | Read-only |
ListCatalogModels | List models in catalogs (-cn filter, -q search) | Read-only |
CheckDependencies | Show dependency tree for a catalog model (-cn, -m) | Read-only |
CheckUpgrade | Pre-flight an upgrade/migration (-cn, -m) | Read-only |
LibraryStatus | Installed models + catalog availability (-na, -io) | Read-only |
ImportFromCatalog | Import catalog model(s) + deps (-cn, -m A,B,C = one guarded set in dependency order, -w) | Mutating |
RefreshCatalogs | Refresh CK model catalog caches (-cn optional; blueprints: RefreshBlueprintCatalogs) | Mutating |
FixAll | Import all models needing update/fix, blocked-by-each-other groups together, never forces (-w, -y) | Mutating |
After a release bumped
Systemand catalog models wentResolveFailed:FixAll -w -yrepairs every model that has a range-retaining catalog successor; for all tenants of an installation use oneInvoke-OctoTenantSweep. Runbook:references/repair-after-system-bump.md.
| Command | Purpose | Type |
|---|---|---|
ListBlueprints | List blueprints across catalogs | Read-only |
ListBlueprintInstallations | List blueprints installed on the active tenant | Read-only |
RefreshBlueprintCatalogs | Refresh blueprint catalog caches, forced (-cn optional; MCP refresh_blueprint_catalogs) | Mutating |
ListBlueprintBackups | List pre-update tenant backups | Read-only |
GetBlueprintHistory | Blueprint application history for the tenant | Read-only |
PreviewBlueprintUpdate | Preview an update without applying (-tv, -m) | Read-only |
InstallBlueprint | Install a blueprint (-b, -f force re-apply) | Mutating |
UpdateBlueprint | Apply an update (-tv, -m, -nb, -dr) | Mutating |
RollbackBlueprint | Roll tenant back to a backup (-bid) | Destructive |
UninstallBlueprint | Remove a blueprint (-n, -c cascade) | Destructive |
Blueprint history/preview/update used to live in
octo-bpm; those commands were removed — use these octo-cli commands.octo-bpm(authoring CLI) hasnew,validate,pack,list,version,catalogs,get,publish,unpublish,config.unpublishremoves a blueprint/version from a catalog (inverse ofpublish; dry-run unless-f;-r <version>for one version, omit-rfor all).
Archive lifecycle mutations require the StreamDataAdminRole.
| Command | Purpose | Type |
|---|---|---|
EnableStreamData / DisableStreamData | Enable/disable stream data for the tenant | Mutating |
ActivateArchive | Provision the per-archive CrateDB table → Activated (-id) | Mutating |
EnableArchive / DisableArchive | Re-enable / disable an archive (-id) | Mutating |
RetryArchiveActivation | Retry activation after a DDL failure (-id) | Mutating |
DeleteArchive | Drop the CrateDB table + soft-delete archive (-id) | Destructive |
ListRollupsForArchive | List rollups attached to a source archive (-id), incl. time zone and day start | Read-only |
FreezeRollupArchive | Freeze a rollup at a timestamp (-id, -u) | Mutating |
UnfreezeRollupArchive | Clear FrozenUntil (-id, -ag accept gaps) | Mutating |
RewindRollupWatermark | Rewind a rollup's watermark to re-aggregate (-id, -t) | Destructive |
| Command | Purpose | Type |
|---|---|---|
GetOperation | Show an operation (e.g. a dump): state, progress, result or error (-id, -w wait until final, -j JSON) | Read-only |
ListOperations | List the caller's operations, newest first (-m method, -s state, --since, -a all callers for tenant admins, -sk/-t paging, -j) | Read-only |
| Command | Purpose | Type |
|---|---|---|
Dump | Dump a tenant to a .tar.gz file (-tid, -f, -iad archive data → .octobak.zip); for the context's tenant it runs the async method System.Bot/TenantRepository.Dump-1 and prints operation id + progress, else (or without the method) the job API | Read-only |
Restore | Restore a tenant from a dump (-tid, -db, -f, -w to wait) | Mutating |
RunFixupScripts | Run fixup scripts for the current tenant (-w to wait) | Mutating |
All communication commands accept plain runtime object IDs — the SDK builds the composite RtEntityId internally. GetAdapters/GetDeploymentSites return human-readable enum names (e.g. Online, Offline), not integers.
| Command | Purpose | Type |
|---|---|---|
EnableCommunication / DisableCommunication | Enable/disable the communication controller | Mutating |
GetAdapters / GetAdapter | List/get adapters (-j); GetAdapter also shows the typed CPU/memory resources | Read-only |
GetAdapterNodes | Aggregated node descriptors from connected adapters (-j) | Read-only |
GetPipelineSchema | JSON Schema of valid pipeline YAML for an adapter (-aid, -o) | Read-only |
GetDeploymentSites | List the tenant's deployment sites, formerly "pools" (-j) | Read-only |
DeployDeploymentSite / UndeployDeploymentSite | Deploy/undeploy a deployment site (-id; undeploy -y) | Mutating / Destructive |
GetPipelineStatus | Pipeline deployment state (-id, -j) | Read-only |
DeployPipeline | Deploy pipeline YAML to an adapter (-aid, -pid, -f) | Mutating |
ExecutePipeline | Execute a pipeline, returns execution ID (-id, -f input file) | Mutating |
GetPipelineExecutions / GetLatestPipelineExecution | Execution history / most recent (-id, -j) | Read-only |
GetPipelineDebugPoints | Debug node tree for an execution (-id, -eid, -j) | Read-only |
GetPipelineDebug | Get a pipeline's debug-capture state (-id, -j) | Read-only |
SetPipelineDebug | Enable/disable debug capture (-id, -e) | Mutating |
MovePipelines | Bulk-reassign pipelines to a new adapter (-ids, -aid, -rd) | Mutating |
DeployTriggers / UndeployTriggers | Deploy/undeploy all pipeline triggers | Mutating |
DeployDataFlow / UndeployDataFlow | Deploy/undeploy a data flow (-id) | Mutating |
GetDataFlowStatus | Aggregated data-flow status (-id, -j) | Read-only |
GetWorkloadsByChart | List workloads by Helm chart name (-cn) | Read-only |
UpdateWorkloadChartVersion | Set a workload's chart version — no deploy (-id, -cv) | Mutating |
UpdateWorkloadResources | Show/set/clear an adapter's or application's CPU and memory requests and limits — no deploy (-id, -cr, -cl, -mr, -ml; flag without value clears) | Mutating |
DeployWorkload | Deploy a workload through its parent deployment site (-id) | Mutating |
UndeployWorkload | Undeploy a workload — operator helm-uninstalls (-id) | Destructive |
Adapters are now Helm-deployed by the Communication Operator when a deployment site is deployed; there is no manual adapter-deploy command anymore (legacy
DeployAdapter,GetPool,DeployPoolAdapters,UndeployPoolAdapterswere removed). UseDeployWorkload/UndeployWorkloadfor adapter/application workloads.Order matters: on a freshly comm-enabled tenant the deployment site starts
Undeployed, andDeployWorkloadtriggers fired in that state are silently lost — the workload sits inPendingforever with no error. Deploy the deployment site first (DeployDeploymentSite -id <deploymentSiteRtId>;GetDeploymentSites -jshows its ID and state), then (re-)runDeployWorkload.
| Command | Purpose | Type |
|---|---|---|
EnableAi | Enable the AI Adapter for the tenant | Mutating |
DisableAi | Disable the AI Adapter (keeps seeded AgentConfig + CK model) | Mutating |
CRITICAL:
EnableAirequires the communication controller first — runEnableCommunication(server returns HTTP 409 otherwise) — and the active context must have an AI service URL set via-aisuonConfig/AddContext(local default port 5019).
Blueprints enable it for you: a tenant that gets a blueprint whose
ckModelDependencieslistSystem.Communication(→ Communication) orSystem.Ai(→ AI and Communication) —Create --blueprint(APIblueprintId),InstallBlueprint, force re-apply orUpdateBlueprint— has them switched on by the platform after the operation (AB#9578), on installations whose services carry AB#9578 (older asset repositories send no dependencies, and nothing is enabled). The dependency must be declared directly in the blueprint: CK-to-CK dependencies are not followed. After the operation wait a few minutes (AI waits for Communication, up to about 4 minutes; if Communication does not come in time, AI stays off with a warning), then confirm withGetTenantFeaturesand runEnableCommunication/EnableAifor whatever is still off. They also remain for tenants without such a blueprint and after aDisable*until the next blueprint operation.
| Command | Purpose | Type |
|---|---|---|
EnableReporting / DisableReporting | Enable/disable reporting for the tenant | Mutating |
| Command | Purpose | Type |
|---|---|---|
ReconfigureLogLevel | Reconfigure log level (-n, -minL, -maxL, -ln) | Mutating |
GenerateOperatorCertificates | Generate CA + service certs (-o, -s, -n) | Mutating |
AuthStatus and read the active context if not cached in this sessionocto-cli -c <CommandValue> <flags>Always pass -w on background-job commands — ImportCk, ImportRt (incl. -r), Restore, RunFixupScripts, ImportFromCatalog, FixAll. Without -w they schedule a Hangfire job and return immediately with a job ID; the CLI reports "started" but not whether the job succeeded or failed — errors (duplicate key, missing dependencies) only surface in BotServices.log. With -w the CLI waits for completion and surfaces success or failure directly.
Delete, DeleteUser, Clean, DeleteArchive, RewindRollupWatermark, RollbackBlueprint, UninstallBlueprint, UndeployWorkload, UnprovisionClientFromTenant): never auto-execute; require explicit confirmation. Most accept -y to skip the CLI's own prompt in scripts (RewindRollupWatermark has no -y flag and always requires confirmation) — do not pass -y on the user's behalf without confirmation. Exception: a tmp--prefixed temporary tenant that the agent itself created earlier in the same session may be deleted with -y without re-confirmation (see references/temp-tenants.md).octo-cli uses named contexts (like kubectl), each storing its own service URLs, tenant, and auth tokens. Naming convention: {installation}_{tenantId} (e.g. local_mytenant, staging_mytenant, production_mytenant). The local developer stack's default tenant is meshtest.
On "switch to " / "connect to ": read references/environments.md for URL mappings (installations local, test-2, staging-1, prod-1, prod-2), then AddContext -n {ctx} (idempotent; add -aisu if AI is needed). Authenticate and work against that context without changing the active one: AuthStatus --context {ctx}; if the token is invalid, LogIn -i --context {ctx} (or LogInClientCredentials --context {ctx} for headless) — the token is stored in {ctx}. Then pass --context {ctx} on every command, or export OCTO_CLI_CONTEXT={ctx} for the session. Only use UseContext -n {ctx} when the user explicitly wants to change their persistent default (single-session/interactive). List contexts with ListContexts. In the OctoMesh developer shell, the Register-OctoCliContext cmdlet wraps context creation + login for any installation (it knows the current cluster domains) — route there via octo-devtools.
A command addresses one tenant: the tenant of its context. octo-cli 3.5.27+ never sends a token issued for another tenant: it exchanges it per tenant (cached) or stops with exit -4 and a message naming tenant and cause (no fallback). Authority in a child tenant comes only from explicit provisioning: octo-cli -c ProvisionCurrentUser -ttid <child> once per child tenant, new tenants included. For many tenants use the octo-tools helper, not a script: Register-OctoCliContext -Installation <i> -TenantId a,b,c -NoSwitch, then Invoke-OctoTenantSweep -Installation <i> -Tenant a,b,c -CliArguments '-c','LibraryStatus' [-WhatIf] [-Json] (one row per tenant: Ok / Denied + cause / Failed; continues after a denial; never touches a token). Never write scripts that read a token out of the context file and call a child tenant — they are denied once the gate is enforced; GraphQL goes through octo-cli -c GraphQl -tid <tenant> -q ... (also inside the sweep: -CliArguments '-c','GraphQl','-tid','{tenant}','-q',$q -IncludeOutput). The Python explorers in scripts/ address the context's own tenant and keep working. Denial causes, per-tenant contexts for CI, and a worked example: references/tenant-tokens.md.
Never put a secret in a command-line argument and never echo it. No -p/--password, -s, -cs (deprecated; removal date to be announced, AB#8861), no secret in a printf/echo literal, no cat/print of secret files, no secrets in comments, work items or reports. Use the prompt (human), --password-stdin / --secret-stdin / --client-secret-stdin piped from a mode-600 file (octo-cli -c ResetPassword -un <u> --password-stdin -y < <file> — redirect the file, no command substitution) or the OCTO_CLI_* environment variables listed in references/command-reference.md. When you generate a password or secret, write it to a new file under umask 077 (a temp file in the same directory, then mv over the target, so an existing file never keeps a looser mode) and tell the user the path, not the value.
AuthStatus, summarize user, environment, tenant, roles, token expiry.testuser-<4-random-chars> and generate a strong password into a mode-600 file (never show it in a command line or the transcript).GetUsers → identify current user → apply the same roles via AddUserToRole.-tid to commands that use the configured tenant (EnableCommunication, EnableReporting, EnableStreamData, EnableAi, RunFixupScripts). Only pass -tid on Asset Repository tenant commands that require it.When a task needs a throwaway tenant, the agent can run the entire lifecycle without user interaction (no LogIn -i): LogInClientCredentials (machine token, env vars OCTO_CLI_CLIENT_ID/OCTO_CLI_CLIENT_SECRET) with a client in octosystem that has the role TenantManagement and -apic, then Create --scratch (the creating client becomes administrator of the new tenant) and Delete --disable-features -y (switches off the enabled capabilities with the child token, then deletes). Short form, all via --context, <octosystem-ctx> being a context of the agent's own (e.g. agent_<lane>_octosystem; never a human's local_octosystem, octo-cli refuses to replace its interactive login): LogInClientCredentials --context <octosystem-ctx> → Create -tid tmp-<x> -db tmp-<x> --scratch --context <octosystem-ctx> → wait until GetTenantLifecycle -tid tmp-<x> --context <octosystem-ctx> reports Active → AddContext -n <tmp-ctx> → LogInClientCredentials --context <tmp-ctx> → work with --context <tmp-ctx> → Delete -tid tmp-<x> --disable-features -y --context <octosystem-ctx> → RemoveContext -n <tmp-ctx>. --scratch refuses user tokens by design. Read references/temp-tenants.md for the workflow, one-time client setup and pitfalls.
Understanding how Communication entities relate allows intelligent resolution of references when executing workflows.
System.Communication/Executes-1, Pipeline→Adapter).System/ParentChild-1.PipelineDefinition attribute; parented to a DataFlow, executed by an Adapter.System.Communication/Triggers-1); has cronExpression and enabled; parented to a DataFlow.CK types to query (Studio, GraphQL, rt_explorer.py): System.Communication/Adapter, /Pipeline, /DataFlow, /PipelineTrigger, /PipelineExecution, /PipelineStatistics.
When the user expresses one of these intents, resolve IDs, run the commands, and present results.
GetAdapters --json, then summarize name, rtId, online/offline, config state.GetAdapters --json to find the adapter; GetAdapterNodes for the node list (grouped Trigger vs Transform); GetPipelineSchema --adapterId <rtId> for the full per-node config schema. With multiple adapters, ask which one.GetAdapters --json) and the pipeline (GraphQL/Studio, or rt_explorer.py list System.Communication/Pipeline); write inline YAML to a temp file; DeployPipeline --adapterId <id> --pipelineId <id> --file <path>; verify with GetPipelineStatus --identifier <pipelineId> --json = Deployed.rt_explorer.py search System.Communication/Pipeline <name>); ExecutePipeline --identifier <rtId> (capture the execution ID); after a brief wait, GetLatestPipelineExecution --identifier <rtId> --json; report status/duration/error; if failed, check debug points.GetLatestPipelineExecution --identifier <pipelineId> --json for the execution ID + status; if it has debug data, GetPipelineDebugPoints --identifier <pipelineId> --executionId <guid> --json and present the node tree. (Toggle capture beforehand with SetPipelineDebug --identifier <id> --enabled true.)Full lifecycle — combines pipeline-expert (YAML) with octo operations:
ck_explorer.py preflight <type> --for-import --insecure or the MCP tool get_type_schema to discover exact attribute IDs + mandatory associations.pipeline-expert for the YAML using the client-specific routing above.GetAdapters --json → adapter rtId.ImportRt -f <file> -w (template below).DeployPipeline --adapterId <id> --pipelineId <id> --file <yaml> → verify GetPipelineStatus --identifier <pipelineId> --json = Deployed → test ExecutePipeline --identifier <rtId>. For cron triggers, DeployTriggers.Step 5 — ImportRt YAML for DataFlow + Pipeline: use the full DataFlow+Pipeline template in ImportRt. Or generate one for any CK type automatically:
ck_explorer.py preflight System.Communication/Pipeline --for-import --insecure
The DataFlow holds System/Name-1; the Pipeline links to it via System/ParentChild-1 and to the adapter via System.Communication/Executes-1, and carries System.Communication/DeploymentState-1, System/Name-1, System/Enabled-1, and the YAML in System.Communication/PipelineDefinition-1.
ImportRt ID format is ModelName/TypeName-TypeVersion (e.g. System.Communication/Pipeline-1, System/Name-1); rtIds are exactly 24 hex characters. Full rules and the YAML format: ImportRt, and CK Type ID Format Differences below.
rt_explorer.py list System.Communication/DataFlow), then GetDataFlowStatus --identifier <rtId> --json for each; summarize name, state, pipeline states, last execution, statistics.GetPipelineSchema --adapterId <rtId> returns a JSON Schema (draft/2020-12) of every available pipeline node for that adapter, with each node's config properties (types, descriptions, enums, defaults). The available nodes depend on which adapter is running and which plugins it loaded, so prefer this over the build-time schema files when the user asks "what nodes are available?" or about a node's config, or before authoring YAML for a target environment. Save with --outputFile <path> for reuse (and feed to pipeline_validate.py --schema). DataMapping@1 with a wildcard / recursive / filter path ($.sd.Rows[*].Values[5]) maps a whole array in place — stream-data enum keys to names without ForEach@1 or a script; targetPath = same path or left out (AB#6589, details in pipeline-expert → node-reference-mesh.md).
CRITICAL: FromHttpRequest@2-triggered pipeline endpoints (and those of the deprecated, always public @1) live on the mesh adapter process (default https://localhost:5020), NOT the communication service (which only does pipeline management — deploy/status/execute; locally https://localhost:5015). The URL pattern is https://<mesh-adapter-host>/{tenantId}/{path} (locally https://localhost:5020/{tenantId}/{path}), where {path} matches the trigger's path property (e.g. /create-machines). The adapter runs its own ASP.NET Core server and registers/unregisters routes as pipelines are deployed/undeployed.
If a pipeline (especially HTTP-triggered) produces no results: GetLatestPipelineExecution --identifier <pipelineId> --json — Status: null can mean failure OR that tracking hasn't completed yet, so verify against actual data or the adapter log rather than status alone. Check logFiles/MeshAdapter.log for ERROR lines with the pipeline ID — it shows the exact exception, stack trace, and which node failed (e.g. PipelineExecution/CreateAssociationUpdate@1). Common causes: missing mandatory associations, wrong attribute-name casing, RtId path-resolution failure. In GetPipelineDebugPoints, nodes missing from the tree never executed (the pipeline stopped before reaching them).
| User intent | Tool |
|---|---|
| Data model: "show types/enums", "what models are loaded?", "type attributes", "associations of X", "search for Production types" | ck_explorer.py (GraphQL) |
| Runtime instances: "show/list/count/search/filter instances", "entity details", "query columns" | rt_explorer.py (GraphQL) |
| "What fields does the GraphQL API have?" / "introspect the schema" | gql_introspect.py |
| "Validate this pipeline YAML" / "check node types before deploy" | pipeline_validate.py |
| "Create user" / "import CK" / "switch environment" / "auth status" | octo-cli |
Scripts live in this skill's scripts/ subdirectory and read connection info (endpoint URL, tenant, auth token) from the effective context automatically. They address the context's own tenant, so they are not affected by the child-tenant token rule; to explore another tenant, point them at a context of that tenant (OCTO_CLI_CONTEXT=<ctx>). Prerequisite: the user must be authenticated (octo-cli -c LogIn -i); on a 401/403, prompt to re-authenticate.
Run Python scripts through the venv wrapper. The wrapper creates the venv and installs dependencies on first use. Use absolute paths and keep the current working directory. In Claude Code, derive the skill directory from ${CLAUDE_PLUGIN_ROOT}/skills/octo. In Codex, use the directory of this loaded SKILL.md. <RUN> is shorthand for:
<RUN> = bash "<octo-skill-directory>/scripts/run_python.sh" "<octo-skill-directory>/scripts/<script.py>"
So <RUN> ck_explorer.py models means run the full wrapper command with ck_explorer.py models as the script + args. Always expand <RUN> to the literal absolute-path form when executing.
ck_explorer.py — Construction Kit Schema Explorer| Subcommand | Purpose | Example |
|---|---|---|
models | List all CK models | <RUN> ck_explorer.py models |
model <name> | Model detail + dependencies | <RUN> ck_explorer.py model Industry.Manufacturing-2.0.0 |
types [--model X] | List all types (or types in one model) | <RUN> ck_explorer.py types --model Basic-2.0.1 |
type <fullName> | Type detail: attrs, associations, derived types | <RUN> ck_explorer.py type System-2.0.2/Entity-1 |
enums [--model X] | List all enums (or enums in one model) | <RUN> ck_explorer.py enums --model System-2.0.2 |
enum <fullName> | Enum detail: values, flags | <RUN> ck_explorer.py enum System-2.0.2/AggregationTypes-1 |
search <term> | Search type/enum names (case-insensitive) | <RUN> ck_explorer.py search maintenance |
preflight <fullName> | Pre-flight for pipeline authoring (attrs + mandatory assocs) | <RUN> ck_explorer.py preflight Industry.Basic-2.1.0/Machine-1 |
preflight <fullName> --for-import | Generate ImportRt YAML template with full CK attribute IDs | <RUN> ck_explorer.py preflight System.Communication/Pipeline --for-import |
Flags: --json (raw JSON), --first N (pagination), --tenant <id> (override tenant), --insecure (skip SSL verify for localhost self-signed certs), --for-import (preflight only).
gql_introspect.py and pipeline_validate.pygql_introspect.py — GraphQL schema introspection when field names change between server versions (top, type <name>).pipeline_validate.py — pre-deploy gate: checks a pipeline YAML against an adapter's JSON Schema (--schema <file> or --adapter-id <rtId>), exits 0 with PASS or lists FAIL errors.Subcommands, flags and examples: references/data-model-scripts.md.
rt_explorer.py — Runtime Instance ExplorerBrowse, search, and inspect runtime entities (instances of CK types).
| Subcommand | Purpose | Example |
|---|---|---|
list <ckId> [--attrs] | List instances (optionally with all attributes) | <RUN> rt_explorer.py list Industry.Basic/Machine --attrs --first 5 |
get <ckId> <rtId> | Get a single entity with full detail | <RUN> rt_explorer.py get Industry.Basic/Machine 05eb... |
count <ckId> | Count instances of a CK type | <RUN> rt_explorer.py count Industry.Basic/Machine |
search <ckId> <term> [--attr X] | Search by attribute (LIKE; --attr targets one) | <RUN> rt_explorer.py search Industry.Basic/Machine 42 --attr machineState |
query <ckId> --columns c1,c2 | Transient query with specific columns | <RUN> rt_explorer.py query Industry.Basic/Machine --columns name,machineState |
filter <ckId> <attr> <op> <val> | Filter by attribute value | <RUN> rt_explorer.py filter Industry.Basic/Machine machineState EQUALS 2 |
Flags: --json (raw JSON), --first N (pagination), --tenant <id> (override tenant), --sort attr:asc|desc (list/search/filter/query), --insecure (skip SSL verify).
Filter operators: EQUALS, NOT_EQUALS, LESS_THAN, LESS_EQUAL_THAN, GREATER_THAN, GREATER_EQUAL_THAN, IN, NOT_IN, LIKE, MATCH_REG_EX, ANY_EQ, ANY_LIKE.
navigationProp.TargetType::totalCount and ::exists as query columns and field filters (e.g. sensors.Sensor::totalCount GREATER_THAN 3).System.StreamData/Archive → RawArchive / RollupArchive / TimeRangeArchive; query entities, aggregation functions (incl. Integral from System 2.8.0) and local-day bins are in references/data-model-scripts.md.System/BlueprintInstallation, System/BlueprintHistory, System/BlueprintBackup. The isDataStream/isStreamType GraphQL fields were removed; discover exact type IDs with ck_explorer.py first.Full detail: references/data-model-scripts.md (:: Association Meta-Query Columns, Stream-Data & Blueprint CK Types).
Three different contexts use three different ID formats:
| Context | Format | Example |
|---|---|---|
ck_explorer.py output | Fully versioned: Model-Version/Type-Version | Industry.Basic-2.1.0/Machine-1 |
rt_explorer.py input | Fully unversioned: Model/Type | Industry.Basic/Machine |
| ImportRt YAML | Import format: Model/Type-Version | Industry.Basic/Machine-1 |
Converting from ck_explorer.py output:
rt_explorer.py: strip ALL versions → Industry.Basic-2.1.0/Machine-1 → Industry.Basic/MachineIndustry.Basic-2.1.0/Machine-1 → Industry.Basic/Machine-1The ck_explorer.py preflight <type> --for-import command generates the correct import format automatically.
NEVER pass versioned CK type IDs (like Industry.Basic-2.1.0/Machine-1 or Industry.Basic-2.1.0/Machine) to rt_explorer.py. Always strip version numbers first.
NEVER invent or guess CK type IDs. The actual types loaded in a tenant vary. Always discover real type IDs first by running ck_explorer.py models and then ck_explorer.py types --model <name> before using any type ID in rt_explorer.py.
Progressive drill-down when the user asks about the data model (expand <RUN> to the full wrapper command):
<RUN> ck_explorer.py models — what CK models are loaded<RUN> ck_explorer.py types --model <name><RUN> ck_explorer.py type <fullName> — attributes, associations, inheritance<RUN> ck_explorer.py enums --model <name><RUN> ck_explorer.py search <term> — find types/enums by keyword<RUN> rt_explorer.py count <ckId>, ... list <ckId> --first 5, ... get <ckId> <rtId>, ... search <ckId> <term>, ... query <ckId> --columns name,state --first 10octo-cli -c GraphQl -tid <tenant> -q '<query>' (also -f, -si, -vars, -on) runs any query or mutation with the token for that tenant; the answer is clean JSON on standard output. Flags, exit codes and the multi-tenant sweep example: GraphQl and references/tenant-tokens.md. Deleting entities is a mutating call, confirm first: -q 'mutation { runtime { runtimeEntities { delete(entities: [{rtId: "<RTID>", ckTypeId: "<UnversionedCkTypeId>"}]) } } }' (unversioned CK type IDs such as Industry.Manufacturing/Shift; several objects in the array delete several entities; success is "delete":true). Never use curl with a token from a context file.
If a script fails with a GraphQL error about unknown fields, the schema may have changed between server versions. Use gql_introspect.py to discover the current field names: <RUN> gql_introspect.py top to verify top-level fields, then <RUN> gql_introspect.py type CkType (or another type) to check current field names, then update the failing query.
references/command-reference.md (opens in a new tab)references/data-model-scripts.md (opens in a new tab)references/environments.md (opens in a new tab)references/repair-after-system-bump.md (opens in a new tab)references/temp-tenants.md (opens in a new tab)references/tenant-tokens.md (opens in a new tab)scripts/_octo_common.py (opens in a new tab)scripts/_verify_data_layer.py (opens in a new tab)scripts/_verify_e2e_real.py (opens in a new tab)scripts/_verify_rt_explorer.py (opens in a new tab)scripts/_verify_step1.py (opens in a new tab)scripts/_verify_step2.py (opens in a new tab)scripts/_verify_step3.py (opens in a new tab)scripts/_verify_step4.py (opens in a new tab)scripts/_verify_step5_e2e.py (opens in a new tab)scripts/ck_explorer.py (opens in a new tab)scripts/e2e_fixtures/e2e-ck-model.yaml (opens in a new tab)scripts/e2e_fixtures/e2e-rt-pipeline.yaml (opens in a new tab)scripts/e2e_fixtures/e2e-rt-seed.yaml (opens in a new tab)scripts/e2e_fixtures/e2e-rt-sensors.yaml (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
13 skills in this plugin
/octo-agentDebugging and investigation agent for OctoMesh — diagnoses CK model failures (ResolveFailed, modelState 2, broken dependencies, version-bump cascades), blueprint install failures, and CK migration problems; inspects MongoDB tenant databases directly; runs selective DebugL builds and targeted tests to isolate a regression; and manages Docker volume backups for safe rollback. Use it when something broke after a build, version bump, merge, or upgrade and you need to find the root cause safely. Trigger on: help me fix, investigate this bug, what broke, isolate the issue, why is the model broken, ResolveFailed, modelState 2, multi-version conflict, error code 66, CK migration failed, blueprint failed, BlueprintInstallation, LibraryStatus, FixAll, check database state, query MongoDB, tenant DB, NuGet dependency chain, package not found, selective build, build fails, service won't start, health check failing, error in logs, cascade failure, version bump broke, something broke after upgrade, data corruption, tenant broken, backup before testing, restore database, safe rollback, test isolation, token refresh failing, Hangfire cron not firing./octo-app-builderBuild a complete OctoMesh-powered application end to end — a custom Construction Kit data model published to the CK catalog, an HTTP API made of dataflow pipelines on the tenant's Mesh Adapter, an optional containerized web app the Communication Operator rolls out to Kubernetes, and a blueprint that packages all of it so a single InstallBlueprint provisions any tenant. Encodes the verified build sequence (model → pipelines → app image → blueprint → install → deploy → verify) and the pitfalls that silently break it (blueprint catalog cache, pipeline registration rotation, HTTP response shaping, registry injection). Use this skill whenever someone wants to CREATE something new on OctoMesh — an app, a demo, an API, a workload, a blueprint — even if they only mention one piece of it. Trigger on - build an app on OctoMesh, create a workload, new OctoMesh application, OctoMesh demo, blueprint authoring, package as blueprint, seedDataPath, ckModelDependencies, InstallBlueprint, Application entity, DeployWorkload, operator-deployed app, HTTP API on the mesh adapter, FromHttpRequest API, octo-ckc publish, CK model catalog, local blueprint catalog, end-to-end OctoMesh app.npx claudepluginhub meshmakers/octo-claude-skills --plugin octo-claude-skillsOther plugins' skills for the same job