/octo-claude-skills:pipeline-expertfrom OctoMesh Skills
Authors, reads, edits, debugs, and validates OctoMesh ETL pipeline YAML — node config, DataContext/JSONPath data flow, triggers, transformations, entity CRUD, archive writes, and inter-pipeline chaining.
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.
OctoMesh pipelines are YAML-defined ETL data flows executed by adapters. Each pipeline has triggers that start execution and transformations (an ordered list of nodes) that process data through a shared DataContext — a mutable JSON document accessed via JSONPath.
An Adapter (System.Communication/Adapter) is a unified runtime that executes pipelines. Different implementations exist (Mesh, Zenon, Simulation, …) but all share the same CK type and execution model; each registers the nodes it supports — SDK-shared nodes plus adapter-specific ones. Pipelines handle entity CRUD, cross-adapter sync, import/export, notifications, reports, AI queries, anomaly detection, and more.
NEVER guess how a pipeline node behaves. The reference docs are summaries; the C# source is ground truth. Read the source before answering or writing YAML whenever you are not 100% certain of a node's property names/defaults, need to know what it does at runtime, hit a node you don't recognize, or a user reports unexpected behavior. All paths below are relative to the monorepo root — the parent directory of this plugin's repo, containing both octo-sdk/ and octo-mesh-adapter/ (use ../ or search upward).
| Node set | Configuration classes (properties/defaults) | Handler classes (runtime behavior) |
|---|---|---|
| SDK (ForEach, If, Switch, For, Group, SelectByPath, SetPrimitiveValue, Concat, Math, FromPolling, ToPipelineDataEvent, SetPipelineExecutionResult, BufferData, …) | octo-sdk/src/Sdk.Common/EtlDataPipeline/Nodes/ under Control/, Extracts/, Transforms/, Triggers/, Loads/, Buffering/ — config + handler usually in the same file | (same files) |
| Mesh Adapter (GetRtEntitiesByType, CreateUpdateInfo, ApplyChanges, SaveStreamDataInArchive, ToDiscord, ApplyDataPointMappings, …) | octo-mesh-adapter/src/MeshNodes.Sdk/ under Extract/, Transform/, Load/, Trigger/ | octo-mesh-adapter/src/MeshAdapter.Sdk/Nodes/ under the same four folders |
| Zenon Adapter (the six archive/Editor nodes) | octo-plug-zenon/src/Octo.Edge.Adapter.Zenon.WindowsService/Nodes/ — config record + handler in the same file | (same files) |
Simulation (Simulation@1) | octo-sdk/src/Sdk.SimulationNodes/Nodes/Extracts/SimulationNode.cs; generators under Sdk.SimulationNodes/Generators/ | (same) |
| What | Pattern | Example |
|---|---|---|
| Config class | [NodeName]NodeConfiguration.cs (versioned: …Configuration2.cs) | CheckDuplicateNodeConfiguration.cs |
| Handler class | [NodeName]Node.cs (versioned: …Node2.cs) | CheckDuplicateNode.cs |
| Config attribute | [NodeName("DisplayName", Version)] | [NodeName("CheckDuplicate", 1)] |
| Handler attribute | [NodeConfiguration(typeof(ConfigClass))] | [NodeConfiguration(typeof(CheckDuplicateNodeConfiguration))] |
Find a node: Grep for NodeName\("CheckDuplicate" in octo-mesh-adapter/src/ (else octo-sdk/src/), or Glob **/CheckDuplicate*Configuration*.cs. Read the config class for properties/defaults/required-vs-optional (from XML docs), then the handler for runtime behavior, DataContext reads/writes, and error conditions.
A DataFlow (System.Communication/DataFlow) is a logical grouping of related pipelines that work together as part of a single data processing workflow. It serves as the parent container for Pipeline and PipelineTrigger instances.
Migration note: CK migration
3.1.0→3.1.1unified the oldEdgeAdapter/MeshAdapterinto a singleAdaptertype, andEdgePipeline/MeshPipelineinto a singlePipelinetype. Earlier migrations renamedDataPipeline→DataFlowandDataPipelineTrigger→PipelineTrigger. These are handled automatically byChangeCkTypetransforms.
Key concepts:
System/ParentChild associationToPipelineDataEvent@1 (with targetPipelineRtId) and FromPipelineDataEvent@1A PipelineTrigger (System.Communication/PipelineTrigger) is a child of a DataFlow that triggers pipeline execution on a cron schedule via the Bot Service:
Enabled and CronExpression attributesTriggers association linking to one or more Pipeline entitiesFromPipelineTriggerEvent@1 as their trigger nodeminute hour dayOfMonth month dayOfWeek (no year field; e.g. 0 * * * * = top of every hour). Scheduled via the MassTransit/Hangfire recurring scheduler.Entity relationships:
DataFlow
├── Pipeline (child, via ParentChild) ── executes on ── Adapter
└── PipelineTrigger (child, via ParentChild) ── triggers ── Pipeline(s)
triggers:
- type: NodeType@Version # trigger-specific properties
transformations:
- type: NodeType@Version # node-specific properties
transformations: # control-flow nodes nest child nodes
- type: ChildNode@Version
Triggers define how the pipeline starts: polling interval, HTTP request, entity change watch, event hub message, explicit command, or email. Each trigger type populates the DataContext with different initial paths — see references/data-context-guide.md "Trigger DataContext Placement" for the full table. Key examples:
FromHttpRequest@2 (and the deprecated @1): body at $.body, query params at $.query, files at $.filesFromWatchRtEntity@1: changed entity at $.DocumentFromExecutePipelineCommand@1 / FromPipelineTriggerEvent@1: empty context. FromExecutePipelineCommand@1 now lives in Sdk.Common and is available on all adapters (Edge and Mesh), not Mesh-only — the pipeline must still belong to a DataFlow.Transformations define the processing steps. Each node reads from and writes to the DataContext. Control flow nodes (ForEach, If, Switch) nest child transformations.
These errors cause deployment failures. Check your YAML against this table before deploying:
| Mistake | Error | Fix |
|---|---|---|
version: '1' at root level | Property 'version' not found on NodeDefinitionRoot | Remove it — pipeline YAML has only triggers: and transformations: at root |
path: $ on PrintDebug@1 | Property 'path' not found | PrintDebug@1 has no path property — it prints the entire DataContext by default |
path: $ on SetPrimitiveValue@1 | Property 'path' not found | Use targetPath instead — SetPrimitiveValue@1 writes to targetPath, not path |
valueType: Int32 | Not in enum | Use the short enum name: Int, Boolean, String, Double, DateTime, etc. |
ckTypeId: Model-Version/Type | Deployment error | Use unversioned: Model/Type (pipeline YAML ckTypeId refs are unversioned, unlike ImportRt YAML) |
Prevention: before deploying, fetch the schema (octo-cli -c GetPipelineSchema --adapterId <rtId> --outputFile schema.json) and confirm each node's property names and enum values in $defs, or use the MCP tool validate_pipeline_definition (developer machine: pipeline_validate.py).
The DataContext is a mutable JSON document. All nodes share it.
Reading: Use path or valuePath properties with JSONPath ($.property, $.array[*], $.nested.path).
Writing: Use targetPath with three modifiers:
documentMode: Extend (merge into existing, default) or Replace (clear and set)targetValueWriteMode: Overwrite (default), Append, Prepend, or MergetargetValueKind: Simple (scalar/object, default) or Array (wrap in array)Common write pattern for collecting items:
targetPath: $.key.updates
targetValueWriteMode: Append
targetValueKind: Array
For full details on write semantics and field filters, read references/data-context-guide.md.
For@1 is different: For@1 deep-clones the parent context directly — it does NOT create
$.full/$.keypaths. Access data at the same paths as the parent (e.g.,$.body.count, not$.full.body.count). Supports both staticcountand dynamiccountPath(JSONPath). Seereferences/data-context-guide.mdfor a full comparison table.
ForEach creates a child context per array element with three key paths:
| Path | Default | Purpose |
|---|---|---|
fullDocumentPath | $.full | Complete copy of parent context (read-only reference) |
keyPath | $.key | Current iteration item |
mergePath | $.key | Where to collect each iteration's result |
Inside ForEach, access data as:
$.key.Field — current item$.full.OtherData — parent context dataNested ForEach chains $.full:
$.key — innermost item$.full.key — outer item (one level up)$.full.full.Config — root context (two levels up)Parallelism: maxDegreeOfParallelism controls concurrency (0=CPU count, -1=unlimited, >0=explicit). Use 1 for sequential when order matters.
For a deeper explanation of context hierarchy, write modes, and field filters, read references/data-context-guide.md.
This is an operational overview of the most-used nodes. The full property tables for every node live in references/node-reference-sdk.md (SDK nodes, available on all adapters) and references/node-reference-mesh.md (Mesh Adapter nodes). Read those before writing YAML for any node not summarized here.
| Node | Purpose |
|---|---|
FromPolling@1 | Poll at interval (e.g., 00:05:00) |
FromHttpRequest@2 | HTTP endpoint (method + path, allowAnonymous, requiredRoles); @1 is deprecated |
FromWatchRtEntity@1 | Entity change stream (Insert/Update/Replace; delete events only with includeDeletes: true) |
FromPipelineDataEvent@1 | Receive data from another pipeline in the same DataFlow |
FromExecutePipelineCommand@1 | Manual execution command (SDK node — all adapters); pipeline must be in a DataFlow |
FromPipelineTriggerEvent@1 | Scheduled execution via PipelineTrigger entity (5-field cron) |
FromSendNotification@1, FromEmail@1, FromMicrosoftGraph@1 | Notification message / IMAP email / Teams channel poll |
| Node | Purpose |
|---|---|
ForEach@1 | Iterate array with child context ($.full/$.key/merge) |
For@1 | Execute N times — deep-clones parent context; count (static) or countPath (dynamic, wins); maxDegreeOfParallelism |
If@1 | Conditional (Equal, Contains, GreaterThan, RegexMatch, etc.) |
Switch@1 | Multi-branch by value (supports array case values) |
SelectByPath@1 | Select and transform multiple paths |
Group@1 | Structural no-op container — runs children inline on the same context; editor-grouping only, NO runtime effect (to group data use GroupBy@1) |
| Node | Purpose |
|---|---|
SetPrimitiveValue@1 / SetArrayOfPrimitiveValues@1 / WriteJson@1 | Inject static/dynamic value, value array, or raw JSON (SDK) |
GetRtEntitiesByType@1 / GetRtEntitiesById@1 / GetRtEntitiesByWellKnownName@1 | Query entities by CK type (or, with ckInterfaceId, by CK interface: all implementing types, take required) / by ID / by well-known name (enriches with IDs); targetTenant / targetTenants read a Parent, Sibling or Child tenant (see below) |
GetOrCreateRtEntitiesByType@1 | Find by field filters or generate a new ID |
GetAssociationTargets@1 | Traverse associations |
GetQueryById@1 | Execute a saved query (simple/aggregation/grouping queries; cache disabled — always fresh) |
GetPipelineConfigByWellKnownName@1 (SDK) / GetPipelineConfigByCkTypeId@1 (Mesh) | Load global config by name / by CK type |
GetNotificationTemplate@1 | Load notification template (subject + body) |
RevealSecret@1 (Mesh) | Plaintext of a Secret attribute into the data context (masked in logs/debug); refused for the platform-only System.Communication/SecretDefault |
BackfillFromRtEntity@1 | Backfill missing attributes from MongoDB using a CkArchive's column spec (replaces removed EnrichWithMongoData@1); sits before SaveStreamDataInArchive@1 |
DetectStreamDataGaps@1 (Mesh) | Missing ranges + missing slot count per series of one windowed archive over [from, to), no row limit, optional validity periods per series; see node-reference-mesh.md |
Common: CreateUpdateInfo@1 (build entity Insert/Update/Delete; recordArrayItemUpdates = atomic update of single RecordArray records without a read — use it instead of read-modify-write of a RecordArray whenever executions can run in parallel on one entity, that pattern loses concurrent changes), CreateAssociationUpdate@1 (build association Create/Delete), CreateFileSystemUpdate@1, DataMapping@1 (value mapping; a wildcard path such as $.Rows[*].Values[5] maps a whole array in place, no ForEach@1/script), Concat@1, FormatString@1, TransformString@1, Flatten@1, Project@1, Join@1, GroupBy@1 (SDK — all adapters; group array items by a key into [{ key, items }], one entry per distinct key — to process a batch one entity at a time: GroupBy@1 → ForEach@1 over the groups; not the editor-only Group@1), Sort@1 (SDK — all adapters; stable sort by one or more keys, each Ascending/Descending; null/missing keys last), Take@1 (SDK — all adapters; first count/countPath items after skip/skipPath — "top N" after Sort@1, paging), Math@1, SumAggregation@1, FilterLatestUpdateInfo@1, Distinct@1 (SDK — all adapters), PlaceholderReplace@1, Base64Encode@1/Base64Decode@1, Hash@1, ConvertDataType@1, Map@1, LinearScaler@1, MinMax@1, Logger@1/PrintDebug@1, ExecuteCSharp@1 (mark arguments whose path may be absent optional: true, optional defaultValue; a missing non-optional path is warned once per execution with a count), MakeHttpRequest@1, CheckDuplicate@1, ComputeFileHash@1, QueryResultToMarkdownTable@1.
Specialized (see node-reference-mesh.md): LlmQuery@1 (one LLM node for Anthropic, incl. Claude on Microsoft Foundry, and OpenAI-compatible endpoints — OpenAI, Azure OpenAI, Ollama — via provider; the endpoint is the sealed providerEndpoint of the AiConfiguration, never a node option; no inline apiKey; MCP as the caller only with identity: Caller, no mcpDelegateToCaller; otherwise the same prompt, MCP, jsonSchema and usage options as below), AnthropicAiQuery@1 (Claude AI; deprecated for new pipelines — keeps running unchanged, use LlmQuery@1 for new pipelines; no removal date; MCP-aware — MCP tools need mcpServiceAccountConfigName (plus mcpDelegateToCaller: true / identity: Caller to run as the caller); an MCP URL without either identity setting is skipped with a warning, with an MCP URL, delegation without mcpServiceAccountConfigName fails the node; jsonSchema for guaranteed JSON, promptTemplateName for prompts from an AiPromptTemplate, usageOutputPath for tokens + cost estimate, cacheSource to cache a large source), McpToolCall@1 (deterministic call of an allowlisted MCP tool as a service account — the write step after an AI step; executionIdArgument passes the pipeline execution id into a tool argument, e.g. runRef), PdfOcrExtraction@1, StatisticalAnomalyDetection@1, MachineLearningAnomalyDetection@1, ImportFromCsv@1, ConvertToCsv@1 (array → real CSV: quoting, per-column format, BOM, base64), RenderDelimitedText@1 (fixed layouts, no quoting), ImportFromExcel@1, ReplyToTeamsChannel@1, VerifyCaptcha@1 (CAPTCHA check with the tenant's own secret, else the operator's secret default of the Application; writes only { valid, source, reason }, never the secret — never reveal a CAPTCHA secret or call siteverify with MakeHttpRequest@1).
DataPointMapping family (Mesh): ApplyDataPointMappings@1 (evaluate mappings with mXparser expressions), BuildMappingTargets@1 (resolve mappings to acquisition targets), GenerateDataPointMappings@1 (deterministic rule-based generator — non-AI alternative to AnthropicAiQuery@1), ValidateDataPointCoverage@1 (coverage report), MapToRecordArray@1, UpdateRecordArrayItem@1 (one record per call), UpdateRecordArrayItem@2 (several records of one array in one pass — with GroupBy@1: one read and one write per entity; both @1 and @2 are read-modify-write and unsafe against parallel executions on one entity — see CreateUpdateInfo@1 recordArrayItemUpdates).
Simulation: Simulation@1 is an Extract node (not Transform) — Bogus/Math/Energy generators; SimulateEnergyMeasurements@1 (Mesh) generates 15-min EnergyMeasurement slots from BDEW/PV profiles.
| Node | Purpose |
|---|---|
ApplyChanges@1 | Apply entity updates to MongoDB |
ApplyChanges@2 | Apply entity + association updates (preferred); targetTenant writes into a Parent, Sibling or Child tenant, targetTenants is the one-way master-data sync into the child tenants |
SaveStreamDataInArchive@1 | Write entity data to a named CrateDB CkArchive (replaces removed SaveInTimeSeries@1); requires archiveRtId pointing at an Activated archive |
SaveTimeRangeStreamDataInArchive@1 | Write pre-aggregated time-range points to an Activated TimeRangeArchive (requires archiveRtId) |
UpdateRtEntityIfNewer@1 | Timestamp dedup: keep only strictly-newer candidates for the RT write, emit all for the archive write |
SetPipelineExecutionResult@1 (SDK) | REQUIRED to persist pipeline OutputData. Without it the execution result is never stored — GetLatestPipelineExecution shows empty OutputData. See "Persisting OutputData" below |
ToPipelineDataEvent@1 (SDK) | Send data to another pipeline in the same DataFlow (targetPipelineRtId); optional await-result mode for synchronous request/response |
ToWebhook@1 (SDK) | HTTP POST to external endpoint |
ToDiscord@1 | Post message/embed/attachment to a Discord channel via a DiscordConfiguration entity |
DeployPipeline@1 | Deploy another pipeline in the same DataFlow via the Communication Controller REST API |
SendEMail@1, GenerateAndStoreReport@1, SftpUpload@1, PostgreSqlWrite@1 | Email / report generation / SFTP upload / upsert or delete rows of an external PostgreSQL table by key (one transaction, PostgreSqlConfiguration with Secret password) |
GrafanaProvisionTenant@1 / GrafanaDeprovisionTenant@1 | Provision / deprovision a tenant Grafana org |
| Crossing tenants | only the three GetRtEntities* nodes and ApplyChanges@2 reach the parent, a sibling or a direct child (targetTenant with relation: Parent | Sibling | Child; targetTenants with relation: Child for a consolidated read, onRefused: Fail | Report, or the one-way master-data sync of ApplyChanges@2). The node identity must be Caller or ServiceAccount with rights provisioned in the target, never System; a refusal is CROSS_TENANT_FORBIDDEN. Settings, sync contract (RtSyncOrigin, SYNC_OWNED_ENTITY, CROSS_TENANT_WRITE_FAILED) and examples: references/node-reference-mesh.md, section "Cross-tenant settings". |
BufferData@1 (buffer with time-based flush) and BufferRetrievalNode@1 (retrieve buffered data).
SAP nodes (SapLogin, GetProductionOrderList, GetProductionOrderDetails), Zenon nodes (variable/AML read-write plus the six archive/Editor nodes ReadZenonArchiveInfo@1, ReadZenonArchiveData@1, ListZenonProjects@1, GetZenonDynamicProperties@1, GetZenonDynamicProperty@1, SetZenonDynamicProperty@1), Microsoft Teams nodes, and Grafana nodes are documented in references/node-reference-mesh.md. EDA energy nodes ship in an external adapter not present in this monorepo — see that file's external-adapter note.
Pipeline execution output is only stored when the pipeline includes SetPipelineExecutionResult@1 (SDK Load node). It captures the data-context value at its path and stores it as the PipelineExecution.OutputData retrieved via GetLatestPipelineExecution. Without this node nothing is persisted — this is by design (avoids storing large results from high-frequency pipelines), and it explains an empty/missing OutputData. maxLength (default 1 048 576 chars) truncates oversized results.
- type: SetPipelineExecutionResult@1
path: $.result # value to persist as OutputData
# maxLength: 1048576 # optional cap
execution.handler: pipeline)A CK method declared execution.handler: pipeline is implemented by a pipeline (binding by rtWellKnownName = qualified method id, trigger FromExecutePipelineCommand@1 with callerBinding: BindingRequired, input under $.parameters/$.target/$.method, result via SetPipelineExecutionResult@1). Insert rule: a new entity of a type whose method has replacesGenericCreate may be inserted only in the method's own run; every other insert (manual execute, chained pipeline) is refused with GENERIC_CREATE_REPLACED_BY_METHOD. For the full contract, error handling, limits and this rule, read references/method-handler-pipelines.md. Booking without double booking (slot key with a UniqueNotDeleted index, ApplyChanges@2 onDuplicateKey: Report, declared error CONCURRENT_CHANGE): same file, section "Booking a slot without double booking". Attribute access (AB#7768): pipelines never read or filter on a Hidden attribute (extract nodes drop the value, a filter/sort on it fails with RT_ATTRIBUTE_HIDDEN), never write Hidden or ReadOnly, and write a MethodOnly attribute only in the method run of the entity's type (RT_ATTRIBUTE_WRITE_RESTRICTED otherwise; also in dry runs); details in references/method-handler-pipelines.md.
GetRtEntitiesByType@1 returns an IResultSet object, not a plain array (the same shape with ckInterfaceId, where CkTypeId differs per item):
{ "TotalCount": 3, "Items": [ { "RtId": "...", "CkTypeId": "...", "RtWellKnownName": "...", "Attributes": { "Name": "value", "StartDateTime": "2026-01-01T06:00:00Z" } }, ... ] }
Key rules:
.Items: iterationPath: $.result.Items (NOT $.result)$.result.TotalCount$.key.Attributes.AttributeName (short name, no CK prefix or version suffix)$.key.RtId, $.key.CkTypeId, $.key.RtWellKnownNameCRITICAL: The attributeName field in CreateUpdateInfo@1 is the attribute name in camelCase, exactly as get_type_schema lists it (e.g., name, machineState, operatingHours). A type that declares name: DueDate has the attribute dueDate. Required attributes: every attribute of a type is required unless the type marks it isOptional: true. An Insert sets every required attribute, or the type marks the attribute optional. Neither validate_pipeline_definition nor a dry run (which suppresses the ApplyChanges write) reports a missing required attribute, so check every Insert against get_type_schema.
This is different from the PascalCase you see in GraphQL query results (where attributes appear as $.key.Attributes.Name). The distinction:
| Context | Casing | Example |
|---|---|---|
| Reading RT entities (GraphQL response) | PascalCase | $.key.Attributes.MachineState |
Writing RT entities (attributeName in CreateUpdateInfo) | camelCase (from CK model) | attributeName: machineState |
Field filters (attributePath in fieldFilters) | PascalCase (matches DB field names) | attributePath: SerialNumber |
| System properties in fieldFilters | PascalCase | attributePath: RtWellKnownName |
Always look up the exact attribute names before writing CreateUpdateInfo (the MCP tool get_type_schema, or ck_explorer.py preflight <type>).
CreateUpdateInfo@1 writes an EntityUpdateInfo: a nested RtEntity (with RtId, RtChangedDateTime, CkTypeId, Attributes) plus top-level RtId, CkTypeId, and ModOption (0=Insert, 1=Update, 2=Delete).
{ "RtEntity": { "RtId": "cc...bb01", "CkTypeId": "Industry.Basic/Machine", "Attributes": { "MachineState": 0 } }, "RtId": "cc...bb01", "CkTypeId": "Industry.Basic/Machine", "ModOption": 0 }
The top-level RtId is populated only when a static rtId is given, rtIdPath holds an id, or generateRtId made one. The generateRtId rule. generateRtId: true creates a new id only when rtIdPath is set and its value is empty (without rtIdPath it does nothing; the insert has no RtId until ApplyChanges writes it); the new id goes into the update item at targetPath (RtId) and is not written back to rtIdPath. Fine: a new entity whose id a later node reads from its update item (<targetPath>.RtId), e.g. an HTTP API that inserts one entity and returns $.updates[0].RtId (http-api-pipelines.md). Never point CreateAssociationUpdate@1 or another node at the rtIdPath of a generateRtId node: it stays empty and the node fails. For parent/child, associations and upserts resolve the ids first with GetOrCreateRtEntitiesByType@1 or GetRtEntitiesByWellKnownName@1 and pass them via rtIdPath (workflow below): the ids are at known paths before any update is built, and a re-run finds the entities instead of duplicating them.
Some CK types have mandatory outbound associations (multiplicity = ONE). Creating an entity of such a type WITHOUT the required association will fail at ApplyChanges time with: "Inbound association 'X' has minimum multiplicity of 'One'".
Pre-flight check: Always look up the type (the MCP tool get_type_schema, or ck_explorer.py preflight <type>) before writing CreateUpdateInfo for a new entity type. If the output shows mandatory associations, you MUST include CreateAssociationUpdate@1 nodes in the same ApplyChanges@2 call.
Common mandatory association: System/ParentChild — types like Machine, TreeNode, and many domain entities require a parent.
Use GetOrCreateRtEntitiesByType@1 to resolve/generate IDs for both parent and child (each writes rtId + modOp paths), then have CreateUpdateInfo@1 and CreateAssociationUpdate@1 reference those IDs via paths, not with generateRtId (the rule above):
- type: GetOrCreateRtEntitiesByType@1 # parent → $.parentRtId / $.parentModOp
ckTypeId: Basic/Tree
fieldFilters: [{ attributePath: RtWellKnownName, comparisonValue: "My Container" }]
rtIdTargetPath: $.parentRtId
modOperationPath: $.parentModOp
- type: GetOrCreateRtEntitiesByType@1 # child → $.childRtId / $.childModOp
ckTypeId: Industry.Basic/Machine
fieldFilters: [{ attributePath: RtWellKnownName, comparisonValue: "My Machine" }]
rtIdTargetPath: $.childRtId
modOperationPath: $.childModOp
- type: CreateUpdateInfo@1 # child entity update, RtId from path
targetPath: $.entityUpdates
targetValueWriteMode: Append
targetValueKind: Array
updateKindPath: $.childModOp
rtIdPath: $.childRtId
ckTypeId: Industry.Basic/Machine
attributeUpdates: [{ attributeName: machineState, attributeValueType: Enum, value: 1 }]
- type: If@1 # create the mandatory assoc ONLY on INSERT (modOp = 0)
path: $.childModOp
value: 0
valueType: Enum
transformations:
- type: CreateAssociationUpdate@1
targetPath: $.assocUpdates
targetValueWriteMode: Append
targetValueKind: Array
updateKind: CREATE
originRtIdPath: $.childRtId
originCkTypeId: Industry.Basic/Machine
targetRtIdPath: $.parentRtId
targetCkTypeId: Basic/Tree
associationRoleId: System/ParentChild
- type: ApplyChanges@2 # persist entities + associations together
entityUpdatesPath: $.entityUpdates
associationUpdatesPath: $.assocUpdates
Only create associations on INSERT (guard on modOperationPath = 0); CreateUpdateInfo@1/CreateAssociationUpdate@1 read the IDs via rtIdPath/originRtIdPath/targetRtIdPath.
The standard CRUD shape is: GetRtEntitiesByWellKnownName@1 (with generateInsertOperation: true to write rtId/modOp per item) → ForEach@1 building one CreateUpdateInfo@1 per item into $.key.update → Flatten@1 the per-item updates into $.entityUpdates → ApplyChanges@2. See references/pipeline-examples.md (example 3) for the full annotated version, and the mandatory-association workflow above when the new entity type requires associations.
Pipelines within the same DataFlow can chain data to each other — even across different adapter instances (e.g., Zenon Adapter → Mesh Adapter). The sender uses ToPipelineDataEvent@1 with the target pipeline's runtime ID; the receiver uses FromPipelineDataEvent@1 as its trigger.
# Producer pipeline (sends data to consumer)
transformations:
- type: ToPipelineDataEvent@1
path: $.sensor
targetPath: $.input
targetPipelineRtId: aa0000000000000000000003 # RtId of the consumer pipeline
# Consumer pipeline (receives data)
triggers:
- type: FromPipelineDataEvent@1
Both pipelines must belong to the same DataFlow (linked via System/ParentChild association). The DataFlow's shared topic exchange routes messages by targetPipelineRtId.
Await-result (synchronous) mode: set awaitResult: true on ToPipelineDataEvent@1 to send a command and block until the target pipeline finishes, placing its result at resultTargetPath (default $.pipelineResult). The receiver FromPipelineDataEvent@1 needs no extra config — it consumes both the fire-and-forget exchange and the command address. Optional timeoutSeconds bounds the wait.
- type: ToPipelineDataEvent@1
path: $.request
targetPath: $.input
targetPipelineRtId: aa0000000000000000000003
awaitResult: true
timeoutSeconds: 30
resultTargetPath: $.pipelineResult
Save high-frequency data to both a CrateDB archive and the entity store. SaveStreamDataInArchive@1 requires archiveRtId pointing at an Activated CkArchive; backfill missing columns first if upstream events carry only one attribute.
# Optional: complete each row's columns from the persistent entity
- type: BackfillFromRtEntity@1
path: $._updates
archiveRtId: cc0000000000000000000aa1 # the CkArchive
- type: SaveStreamDataInArchive@1
path: $._updates
archiveRtId: cc0000000000000000000aa1 # must be Activated
- type: FilterLatestUpdateInfo@1
path: $._updates
targetPath: $._updates
- type: ApplyChanges@2
entityUpdatesPath: $._updates
When validating a pipeline YAML (user-written or generated), validate it against the JSON Schema of the adapter that will run it. Every OctoMesh adapter generates its own pipeline-schema.json, containing all nodes it supports (SDK nodes + adapter-specific nodes).
On a tenant: validate with the MCP tool validate_pipeline_definition (once deployed, try it with dry_run_pipeline and a sample input; it runs only a deployed pipeline), or fetch the schema of the running adapter with octo-cli -c GetPipelineSchema --adapterId <rtId> (MCP get_pipeline_schema) — it lists exactly the nodes that adapter loaded.
| Adapter | Schema Path |
|---|---|
| Mesh Adapter | octo-mesh-adapter/bin/DebugL/net10.0/pipeline-schema.json |
| Zenon Adapter | octo-plug-zenon/src/Octo.Edge.Adapter.Zenon.WindowsService/bin/DebugL/net10.0/pipeline-schema.json |
| Simulation Adapter | octo-sdk/src/Sdk.Plug.Simulation/bin/DebugL/net10.0/pipeline-schema.json |
Which schema to use: Pick the adapter that will execute the pipeline (Mesh Adapter has the richest node set). If it hasn't been built locally, fall back to the node reference docs.
Validation: look up each node by its type const in $defs.TriggerNode.oneOf / $defs.TransformationNode.oneOf, then verify all required keys are present, every property exists in the node's properties, and enum values match. For the extraction commands and fallback rules, read references/pipeline-schema-guide.md.
Fix from the error text: every finding names the node path (e.g. /transformations/2) and what is wrong; change the draft there and validate again. Drafting a whole app from a brief (validation order, at most 3 fix iterations, confirm before deploy): the app builder's draft loop.
FromExecutePipelineCommand@1), cron (FromPipelineTriggerEvent@1 + PipelineTrigger), inter-pipeline (FromPipelineDataEvent@1), polling, HTTP, entity-watch, or email.$.path names for each step's input/output; use ForEach for arrays (plan $.full/$.key).SetPipelineExecutionResult@1 if the result must be readable via GetLatestPipelineExecution.For annotated real-world examples covering all these patterns, read references/pipeline-examples.md.
After writing pipeline YAML, use the octo skill to deploy and test it. This skill handles YAML authoring; the octo skill handles all operational commands (deployment, execution, status, debugging). The target adapter must run: GetAdapters (MCP get_adapters) shows it deployed and Online. A new tenant starts with its deployment site and adapter Undeployed: the developer deploys the site first (DeployDeploymentSite -id <site rtId>), then the adapter (DeployWorkload -id <adapter rtId>). An agent without the mandate to change adapters asks the developer.
Create runtime entities via octo-cli -c ImportRt -f <file> -w (MCP import_runtime_model takes only an uploaded file: prepare_file_upload plus an HTTP PUT; without an HTTP client, ask the developer to run the ImportRt command with their own login):
System.Communication/DataFlow entity (logical grouping)System.Communication/Pipeline entity with ParentChild association to the DataFlow and Executes association to the target AdapterSystem.Communication/PipelineTrigger with ParentChild to the DataFlow and Triggers association to the Pipeline(s)Deploy the pipeline YAML — octo-cli -c DeployPipeline --adapterId <id> --pipelineId <id> --file <yaml-path>
Verify deployment — octo-cli -c GetPipelineStatus --identifier <pipelineId> --json → confirm state = Deployed
Execute — octo-cli -c ExecutePipeline --identifier <pipelineId> → returns execution ID
Check execution — octo-cli -c GetLatestPipelineExecution --identifier <pipelineId> --json → status, duration, errors
Inspect debug points — octo-cli -c GetPipelineDebugPoints --identifier <pipelineId> --executionId <guid> --json → shows which nodes ran and their data. Debug capture must be enabled for a pipeline to record debug points (see toggle below).
Activate triggers (if using cron) — octo-cli -c DeployTriggers
Enable/disable per-node debug capture on a live pipeline without redeploying:
| Operation | Command / REST |
|---|---|
| Enable/disable debug | `octo-cli -c SetPipelineDebug --identifier --enabled true |
| Read debug state | octo-cli -c GetPipelineDebug --identifier <pipelineId> --json (REST GET {tenantId}/v1/pipeline/{id}/debug) — Read-only |
If the adapter is offline, the setting is persisted and applies on the next deploy.
| Operation | Command | Safety |
|---|---|---|
| Move pipelines to another adapter | octo-cli -c MovePipelines --pipelineRtIds <id,id> --targetAdapterRtId <adapterId> [--redeploy] [--yes] (REST PATCH {tenantId}/v1/pipeline/move-to-adapter) | Mutating. Per-pipeline failures do not abort the batch; source and target adapter must share the same CkTypeId. --redeploy is best-effort and does not roll the move back on failure |
| Deploy / undeploy a whole DataFlow | octo-cli -c DeployDataFlow --identifier <dataFlowId> / UndeployDataFlow --identifier <dataFlowId> | Mutating |
| DataFlow status | octo-cli -c GetDataFlowStatus --identifier <dataFlowId> --json | Read-only |
octo-cli -c GetPipelineSchema --adapterId <rtId> returns a JSON Schema (draft/2020-12) of all nodes available on a specific adapter — use it to discover what the target environment supports (e.g. custom plugins). To hand off any operational command, tell the user to invoke /octo <intent> (e.g. /octo deploy this pipeline).
The Mesh Adapter returns HTTP 200 for FromHttpRequest-triggered pipelines even when the pipeline fails internally. The GetLatestPipelineExecution may also show Status: null and DurationMs: null on failure.
Status: null does not always mean failure. For
FromHttpRequest-triggered executions, the execution tracking may not complete before the HTTP response returns. This meansStatus: nullcan appear even on a successful run. Always verify by checking the actual data (e.g., query the entities that should have been created/updated) rather than relying solely on execution status.
Always check the adapter log after unexpected results:
logFiles/MeshAdapter.log
(Located in logFiles/MeshAdapter.log relative to the monorepo root)
| Error message | Cause | Fix |
|---|---|---|
| "Inbound association 'X' has minimum multiplicity of 'One'" | Entity type requires a mandatory association | Look up the type (the MCP tool get_type_schema, or ck_explorer.py preflight <type>), add CreateAssociationUpdate |
| "Value of origin RtId is null" | Path-based RtId reference resolves to null | Ensure upstream GetOrCreateRtEntitiesByType@1 or GetRtEntitiesByWellKnownName@1 writes RtId via rtIdTargetPath before this node reads it |
| "Attribute 'X' does not exist at type 'Y'" | Wrong attribute name or casing | Look up the type (the MCP tool get_type_schema, or ck_explorer.py preflight <type>) for exact names |
octo-cli -c GetLatestPipelineExecution --identifier <pipelineId> --jsonlogFiles/MeshAdapter.log) for ERROR entriesocto-cli -c GetPipelineDebugPoints — nodes missing from the tree never executed (pipeline stopped before reaching them)Priority order when understanding a node:
references/pipeline-schema-guide.mdreferences/node-reference-sdk.md, Mesh Adapter nodes references/node-reference-mesh.mdreferences/data-context-guide.mdreferences/pipeline-examples.mdSystem.Ai.Builder this skill is installed as knowledge pages; open them with knowledge_search / knowledge_get and cite them as [slug]. Start page pipeline-index, which lists every pipeline- page (basics, DataContext, entity updates, node references pipeline-nodes-*, examples pipeline-examples-*).If there is ANY doubt about a node's properties or behavior, read the source code. Do not guess.
references/data-context-guide.md (opens in a new tab)references/method-handler-pipelines.md (opens in a new tab)references/node-reference-mesh.md (opens in a new tab)references/node-reference-sdk.md (opens in a new tab)references/pipeline-examples.md (opens in a new tab)references/pipeline-schema-guide.md (opens in a new tab)What 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-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./octo-ck-miroVisualizes OctoMesh Construction Kits as UML class diagrams on a Miro board. Reads CK YAML definitions from a specified git branch in the local octo-construction-kit checkout (non-destructive via git show) and creates one detailed UML diagram per CK — types with attributes and datatypes, records, enums, inheritance arrows, associations with multiplicity, and cross-CK references. Lets the user pick a branch (default main) and choose between a new Miro board or adding to an existing board URL. Trigger on - visualize CK, visualize construction kit, CK diagram, CK to Miro, Miro board for CK, UML diagram for construction kit, CK model visualization, octo construction kit visualization, draw CK, show CK on Miro, CK class diagram./octo-commitStructured workflow for committing finished work across OctoMesh repositories: scans repos for changes, resolves the Azure DevOps work item (creates only a Bug or Task; User Stories come from the Product Owner), builds the AB# commit message and PR title (AB#<id> <Fix|New|Chore|Refactor|Test|Docs>: …), verifies with the repository's own build, test and lint, and optionally opens a PR and hands it over for review: with octo-claude-pm installed its agent-operating-rules decide the CodeRabbit review rounds and the merge queue; the developer merges, never the agent. Enforces the review checkpoint — never pushes or opens a PR without explicit user approval in the current session. Trigger on: commit, push, PR, pull request, PR title, merge, finish work, done, ship it, wrap up, AB#, work item, CodeRabbit, title check, ready to commit, close task, create branch, feature branch, feat/, dev/, Azure DevOps./octo-deployGuide the promotion of an OctoMesh-powered app from local dev to the shared test-2 environment — publish the CK model and blueprint to the shared GitHub catalogs (octo-ckc / octo-bpm), push the app image to <registry>, register a test-2 octo-cli context, install + deploy on the target tenant, and verify everything WITHOUT kubectl access. Covers both the repeatable CI lane (azure-pipelines publishing on main) and the manual first-time lane, plus test-2-specific triage (server-side catalog cache refresh, ImagePullBackOff via lastDeploymentError, Tailscale reachability). Staging and production are deliberately out of scope for now. Use this skill whenever someone wants to get an app, blueprint, CK model, or workload onto test-2 or asks how to make their locally working OctoMesh app available to others. Trigger on - deploy to test-2, promote to test, install on test-2, publish blueprint, publish CK model, shared catalog, blueprint-libraries-build, construction-kit-libraries-build, octo-bpm, push to <registry>, registry push, test-2 tenant, Register-OctoCliContext, RefreshBlueprintCatalogs, blueprint not visible on test-2, ImagePullBackOff, ship the demo, make the app available.Other plugins' skills for the same job