/octo-claude-skills:octo-agentfrom OctoMesh Skills
Debugs OctoMesh CK model failures, blueprint install issues, and migration problems. Inspects MongoDB tenant databases, runs selective builds, and manages Docker volume backups for safe rollback after builds, version bumps, or upgrades.
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.
Developer-facing debugging and investigation agent for OctoMesh. This skill provides deep platform knowledge for safely investigating bugs, performing selective builds, inspecting database state, and rolling back when things go wrong.
Complements the octo-devtools skill (build/start/stop operations) and octo skill (CLI/data exploration). This skill focuses on the why and how of debugging — understanding the build dependency chain, CK model internals, and safe investigation workflows.
Prerequisites:
octo-devtools skill — this skill reuses its PowerShell wrapper (run_pwsh.sh) for build commandsocto-tools/ lives)In Codex, load ../octo-devtools/SKILL.md before using its PowerShell wrapper. Resolve both skills' scripts and references from the directories containing their installed SKILL.md files. Discover the configured MongoDB connector's actual tool names and use its read-only operations for diagnosis. If the connector is unavailable, continue with source, service health and logs when available.
When a developer needs help, determine the right approach:
Developer has a problem
├── "Something is broken at runtime"
│ ├── Check service health endpoints
│ ├── Check service logs (logFiles/*.log)
│ ├── Query MongoDB for CK model states
│ └── See: Debugging Workflows reference
│
├── "I need to test a risky change"
│ ├── Create Docker volume backup FIRST
│ ├── Make the change + rebuild selectively
│ ├── Observe results
│ └── Restore if needed
│
├── "Build is failing / packages not found"
│ ├── Check build dependency chain
│ ├── Verify NuGet packages in ./nuget/
│ ├── Consider clearing global NuGet cache
│ └── See: Build System reference
│
├── "CK model is broken / ResolveFailed"
│ ├── Query CkModel collection for states
│ ├── Check dependency references
│ ├── Identify orphaned version references
│ └── See: CK Model Internals reference
│
├── "Command denied in a child tenant / exit -4 / would be denied (LogOnly)"
│ ├── Read the message: it names the tenant and the cause
│ ├── Not provisioned → ProvisionCurrentUser -ttid <tenant> (per child tenant, new ones too)
│ ├── Many tenants → Invoke-OctoTenantSweep, never a token-scraping script
│ └── See: Debugging Workflows reference, "Denied in a Child Tenant"
│
└── "I need to understand how X works"
├── CK model YAML, versioning → CK Model Internals
├── Build chain, DebugL, NuGet → Build System
├── Database, tenants, backup → Database Operations
└── Test patterns, fixtures → Debugging Workflows
For any investigation that might corrupt data:
Use Backup-OctoInfrastructure -Name <name> and Restore-OctoInfrastructure -Name <name> for Docker volume snapshots. Use Get-OctoInfrastructureBackup to list and Remove-OctoInfrastructureBackup -Name <name> to delete. Infrastructure must be stopped first.
For full backup/restore procedures, read references/database-operations.md.
Build only what's needed to minimize iteration time. The build order (mm-*, then a pinned core chain of NuGet producers, then the additional-ordered repos (e.g. octo-plug-dilos), then the remaining octo-* repos alphabetically) is defined only in octo-tools modules/OctoBuildOrder.psm1; Get-OctoBuildOrder -branchRootPath <lane> prints the current one, Get-OctoPinnedBuildOrder the pinned chain.
Key principle: A change in a library repo needs everything downstream of it rebuilt too, with the packages propagated through <lane>/nuget. Two cmdlets do that:
Invoke-BuildRange -from <changed repo> -to <last consumer> [-include <service>] — the fast slice: -WhatIf for the plan, then the build, then -verifyTests before you trust the result (a plain run compiles no test project); -purgeStaleCache when the cache holds another build of a 999.0.0 package.Invoke-BuildAll -configuration DebugL -excludeFrontend $true — the full reset, only when restores fail with NU1101/NU1102 on a 999.0.0 package or after a pull or branch switch.Reserve Invoke-Build for a single service repo that publishes no package.
For the full dependency chain, NuGet package mappings, and selective build commands, read references/build-system.md.
CK (Construction Kit) models define the entity type system. Each tenant's CkModel collection shows model health:
modelState | Meaning | Action |
|---|---|---|
| 0 | Pending | Import in progress — wait |
| 1 | Available | Healthy |
| 2 | ResolveFailed | Dependency missing — investigate |
Common cause of ResolveFailed: A base model (e.g., System) was version-bumped without recompiling its classic (exact-pinned) dependents. The old version ID gets deleted, leaving orphaned references. A multi-version conflict (two incompatible versions of the same model resolved transitively) surfaces as fatal error code 66 at compile time. A ResolveFailed model is re-validated after every import and recovers by itself once its dependencies resolve again; a service older than the tenant's model never downgrades it (log "downgrade prevented" / "this service is too old for the tenant").
CK Language 2 and range retention (ckLanguage: 2, ck-models/v3/, minEngineVersion and message 126, version-less RtCkId, and the rule that no v3-only model reaches a shared environment before every service there runs the CK v2 engine) and the import guard / re-validation log lines are explained in references/ck-model-internals.md, with pointers to the engine repositories' docs/. Versions named in this skill are examples; the current ones are in the model's ckModel.yaml, octo-construction-kit-engine docs/system-ck-models.md, or LibraryStatus for a tenant.
CK dependency diagnostics:
octo-cli -c LibraryStatus (-na/--needs-action to filter) — lists installed CK models with catalog availability and which need action. Read-only.octo-cli -c FixAll (-w wait, -y skip confirm) — imports/updates all models needing a fix. Mutating.Compare-CkVersions <otherBranch> [-Details] — diffs every ckModel.yaml under $Global:ROOTPATH against another branch checkout; sets $LASTEXITCODE to the count of non-equal models. Use after a merge or branch switch to spot a CK version that drifted. Read-only.Blueprint failures: Blueprint state is stored tenant-locally in three CK types — System/BlueprintInstallation, System/BlueprintHistory, System/BlueprintBackup (no longer a cross-tenant collection). When a blueprint apply fails, query those collections in the tenant DB and check the platform event log for BlueprintOperationFailed events.
For CK model YAML format, versioning semantics, source generation, migrations, and blueprint internals, read references/ck-model-internals.md.
Query MongoDB directly via the MongoDB MCP server to diagnose issues. Key collections per tenant database:
| Collection | Content |
|---|---|
CkModel | Model identity, state, dependencies |
CkType | Type definitions |
CkAttribute | Attribute definitions |
CkRecord | Record (value object) definitions |
RtEntity | Runtime entity instances (incl. blueprint state via System/BlueprintInstallation etc. and OIDC grants via System.Identity/PersistedGrant) |
System tenant database: octosystem. Default test tenant: meshtest. Local replica set connection string: mongodb://localhost:27017,localhost:27018,localhost:27019/?replicaSet=rs.
For diagnostic queries, tenant operations, and log analysis, read references/database-operations.md.
Run targeted tests without full suite:
dotnet test -c DebugL --filter "FullyQualifiedName~SpecificTest" # One test
dotnet test -c DebugL --filter "FullyQualifiedName!~SystemTests" # Skip system tests
dotnet test ./specific-repo -c DebugL # One repo
Most integration tests use Testcontainers.MongoDb (ephemeral MongoDB). System tests require running services.
For test framework details and fixture patterns, read references/debugging-workflows.md.
| Service | Repo | Ports (HTTPS/HTTP) |
|---|---|---|
| Identity | octo-identity-services | 5003/5002 |
| Asset Repo | octo-asset-repo-services | 5001/5000 |
| Comm Controller | octo-communication-controller-services | 5015/5014 |
| Bot | octo-bot-services | 5009/5008 |
| Reporting | octo-report-services | 5007/5006 |
| Mesh Adapter | octo-mesh-adapter | 5020/5021 |
| MCP Service | octo-mcp-service | 5017/5016 |
| AI Services | octo-ai-services | 5019/5018 |
| AI Worker | octo-ai-services (AiWorker.dll) | 5023/5022 |
| Platform Services | octo-platform-services | 5025/5024 |
Start-Octo starts bot, identity, asset-repo, mesh-adapter, comm-controller, platform services (System.UI, _configuration), the Refinery Studio and frontend-libraries dev servers, MCP and AI services by default. reportingService, aiWorker, simulationAdapter and httpActivator default to $false (off). Reporting, MCP and AI start only when their bin/<configuration> output exists in the lane. Parameter defaults: octo-tools modules/Start-Octo.psm1.
Compiler errors CS8032 / CS8785 after a rebuild (an analyzer or source generator "cannot be created" or "failed to generate"): a reused compiler or build server still holds an older 999.0.0 analyzer. Run dotnet build-server shutdown and build again; for a one-off build pass -p:UseSharedCompilation=false.
When the octo-devstack MCP server is available (optional; see the octo-devtools skill): diagnose through it instead of restarting the shared stack — stack_status and stack_attention for what is down or failing, service_logs for one service, stack_verify for the health checks, and one lane per suspected regression (lane_create with the suspect repository, lane_build, lane_test, its own stack_start) so the shared stack and other sessions keep working.
Consult these for detailed procedures:
references/build-system.md — DebugL configuration, NuGet dependency chain, selective build strategies, service startup optionsreferences/ck-model-internals.md — CK model YAML format, versioning, CK Language 2 and range retention, import guard and re-validation log lines, dependency resolution, source generation, migrations, MongoDB collectionsreferences/database-operations.md — Docker volume backup/restore, MongoDB diagnostic queries, multi-tenant data, service logs, health endpointsreferences/debugging-workflows.md — Safe investigation protocol, bug isolation steps, common bug categories (incl. denial in a child tenant), test framework referenceWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub meshmakers/octo-claude-skills --plugin octo-claude-skills13 skills in this plugin
/octoPrimary 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. Routes specialized work to sibling skills. When unsure which OctoMesh skill to use, start here. Trigger on: OctoMesh, octo-cli, CLI command, environment switch, auth/login, AuthStatus, tenant, temporary tenant, test tenant, user, role, group, client credentials, non-interactive login, headless authentication, LogInClientCredentials, client mirroring, identity provider, blueprint install/update/rollback, CK catalog, library management, LibraryStatus, stream data archive, archive activation, EnableAi, adapter, deploy pipeline, data flow, MovePipelines, data model, Construction Kit, CK type, enum, association, GraphQL introspection, runtime instance query, list/count/search/filter entities, building, services, Docker, debugging, pipeline YAML, ETL, commit, PR, AB#, MCP server, Refinery Studio, communication operator, Helm./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.Other plugins' skills for the same job