/octo-claude-skills:refinery-studiofrom OctoMesh Skills
Guides Angular development on the OctoMesh Data Refinery Studio — the main web app for CK model design, dashboards, queries, pipelines, and visualizations. Covers multi-tenant routing, GraphQL codegen, LCARS theme tokens, Kendo UI, Apollo Angular, and build/test commands.
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 guide for working in octo-frontend-refinery-studio — the main
Angular web application for OctoMesh. The Studio is a unified workspace for
three audiences:
This is NOT the old admin panel. octo-frontend-admin-panel is the
legacy interface. New frontend feature work belongs in Refinery Studio.
The git repo root (octo-frontend-refinery-studio/) is not
the npm project. The app package is one level down:
octo-frontend-refinery-studio/
└── src/
└── octo-mesh-refinery-studio/ ← the Angular app (package.json, codegen.yml, src/)
Run all npm/ng commands from src/octo-mesh-refinery-studio/. There is no
root-level package.json.
| Piece | Version | Notes |
|---|---|---|
| Angular | ^21.2.4 | Standalone components + signals; app- selector prefix |
| Apollo Angular | ^13.0.0 | GraphQL client (@apollo/client ^4.1.6) |
| Kendo UI Angular | 23.2.0 | @progress/kendo-angular-* component suite |
| RxJS | ~7.8.2 | Reactive streams |
| TypeScript | ~5.9.3 | Strict; ESLint via angular-eslint 21 |
| angular-oauth2-oidc | ^20.0.2 | Auth, wrapped by @meshmakers/shared-auth |
Other notable deps: monaco-editor (YAML/code editing), dockview-angular
(dock layouts), cytoscape + dagre (graph views), cron-parser/cronstrue
(schedule UIs), tus-js-client (resumable uploads), @microsoft/signalr.
CK construction-kit terms: CK = schema (CkTypeDto, CkEnumDto,
CkRecordDto, CkAttributeDto); Rt = data instances (RtEntityDto with
rtId, ckTypeId, associations). Use rtCkTypeId (e.g.
OctoSdkDemo/Customer) for runtime queries, not fullName.
src/octo-mesh-refinery-studio/)| Command | What it does | Label |
|---|---|---|
npm install | Install deps (resolves @meshmakers/* from local file: dist) | Mutating (writes node_modules) |
npm start / ng serve | Dev server at https://localhost:4200 | Read-only |
npm run build | ng lint && ng build (lint gate is built in) | Read-only (build output) |
npm run build:skip-lint | ng build without lint | Read-only |
npm run watch | ng build --watch --configuration development | Read-only |
npm run lint / ng lint | ESLint over the project | Read-only |
ng lint --fix | Auto-fix unused imports etc. | Mutating (rewrites source) |
npm test | ng test --watch=false --browsers=ChromeHeadlessCI | Read-only |
npm run codegen | Regenerate GraphQL types/services | Mutating (rewrites generated .ts) |
npm start/npm run build are prefixed by a setup-license step
(scripts/setup-license.js) for the Kendo license — do not bypass it.
Always run the linter after every code change. CI fails on any lint error. Common fixes: unused imports →
ng lint --fix; intentionally unused vars → prefix with_; missing types → add explicit annotations.
Pre-commit gate (run from src/octo-mesh-refinery-studio/):
ng lint && npm test -- --watch=false --browsers=ChromeHeadless && ng build --configuration development
If package.json changed (incl. via npm install), regenerate the lock file
before committing: rm -f package-lock.json && npm install (CI runs
npm install and needs them in sync).
Routes follow the /:tenantId/... pattern. Each tenant gets an isolated
Apollo client pointing at that tenant's GraphQL endpoint. Feature areas are
lazy-loaded via *.routes.ts:
repository/ — Runtime Browser, CK Browser, Auto-Increment, Fixup Scripts,
Events, Query Builder, Archivesreporting/ — Report Explorer (folder/file tree)identity/ — users, roles, groups, OAuth clients, identity providerscommunication/ — adapters, pools, applications, data flowsgeneral/, bot/, development/, ui-management/When adding a feature, register its routes under the relevant parent
*.routes.ts with a loadChildren import and a breadcrumb data entry.
The primary list/grid is ListViewComponent (mm-list-view) from
@meshmakers/shared-ui. Back it with a directive that extends
OctoGraphQlDataSource<T> (from @meshmakers/octo-ui). Verified sketch,
condensed from tenants/communication/adapters/data-sources/adapters-data-source.directive.ts:
import { Directive, forwardRef, inject } from "@angular/core";
import { Observable } from 'rxjs';
import { map } from 'rxjs/operators';
import { OctoGraphQlDataSource } from '@meshmakers/octo-ui';
import { DataSourceBase, FetchDataOptions, FetchResultTyped, ListViewComponent } from '@meshmakers/shared-ui';
import { GraphQL } from '@meshmakers/octo-services';
import { GetSystemCommunicationAdaptersDtoGQL, GetSystemCommunicationAdaptersQueryDto } from '../../../../graphQL/getSystemCommunicationAdapters';
// Derive the item type from the generated query type (no hand-written DTOs)
type Item = NonNullable<NonNullable<NonNullable<GetSystemCommunicationAdaptersQueryDto['runtime']>['systemCommunicationAdapter']>['items']>[number];
export type AdapterDto = NonNullable<Item>;
@Directive({
selector: "[appAdaptersDataSource]",
exportAs: 'appAdaptersDataSource',
providers: [{ provide: DataSourceBase, useExisting: forwardRef(() => AdaptersDataSourceDirective) }]
})
export class AdaptersDataSourceDirective extends OctoGraphQlDataSource<AdapterDto> {
private readonly gql = inject(GetSystemCommunicationAdaptersDtoGQL);
constructor() {
super(inject(ListViewComponent));
this.searchFilterAttributePaths = ['name']; // fields the text box searches
}
public override fetchData(options: FetchDataOptions): Observable<FetchResultTyped<AdapterDto> | null> {
const variables = {
first: options.state.take,
after: GraphQL.offsetToCursor(options.state.skip ?? 0),
sortOrder: this.getSortDefinitions(options.state),
fieldFilter: this.getFieldFilterDefinitions(options.state),
searchFilter: this.getSearchFilterDefinitions(options.textSearch)
};
return this.gql.fetch({ variables, fetchPolicy: "network-only" }).pipe(map(result =>
new FetchResultTyped<AdapterDto>(
result.data?.runtime?.systemCommunicationAdapter?.items?.filter(i => i !== null) as AdapterDto[] || [],
result.data?.runtime?.systemCommunicationAdapter?.totalCount ?? 0
)));
}
}
Key points:
getSortDefinitions, getFieldFilterDefinitions,
getSearchFilterDefinitions — use them; do not hand-roll Kendo state parsing.fetchPolicy: "network-only" for live list data.exportAs:
<mm-list-view appAdaptersDataSource #dir="appAdaptersDataSource" ...>.constructionKitType { ckTypeId { fullName } }.For the full new-list-component checklist (folder layout, routes, mm-list-view
inputs, Copy-ID implementation), read
references/data-source-and-components.md.
GraphQL operations live in src/app/graphQL/*.graphql. After editing or adding
one, run npm run codegen. Config is codegen.yml (verified):
Dto suffix (typesSuffix: Dto) →
RtEntityDto, CkTypeDto, GetSystemCommunicationAdaptersQueryDto, etc.near-operation-file preset → one generated .ts per .graphql operation,
with shared base types in globalTypes.ts....DtoGQL, e.g. GetSystemCommunicationAdaptersDtoGQL) — inject it with
inject(...).possibleTypes.ts (fragment matcher) and scalars: { DateTime: Date } are
emitted too.Never edit generated .ts by hand — edit the .graphql, regenerate. The
generated GraphQL folder is excluded from ESLint. Ensure schema.graphql is
current before generating.
The Studio uses a Star-Trek-LCARS-inspired theme built from the Octo Brand
Manual. src/styles.scss is the single source of truth for theme tokens,
global LCARS layout classes, and Kendo overrides.
Two token tiers:
--octo-mint #64ceb9, --neo-cyan
#00a8dc, --royal-violet #6c4da8, --toffee #da9162, --bubblegum
#ec658f, etc. Use these for decorative accents (header bar, footer ribbon).--theme-*) — --theme-bg-app,
--theme-bg-surface, --theme-text-primary, --theme-text-secondary,
--theme-text-accent, --theme-border-subtle, --theme-glow-primary,
--theme-status-success/warning/error/info, --theme-chart-1..8. These have
dark defaults and light overrides; use them for anything that must adapt to
dark/light mode.Dark is default; light auto-applies on prefers-color-scheme: light unless the
user forces a theme via the AppBar toggle (ThemeService writes
<html data-theme="…">, persisted in localStorage key
octo-theme-preference).
var(--theme-bg-*), var(--theme-text-*), var(--theme-border-*)
for theme-dependent values, and var(--octo-mint) etc. for brand accents.color-mix(in srgb, var(--brand) X%, transparent) for alpha
derivations.styles.scss owns them..lcars-page-header, .lcars-content-panel, .lcars-footer, .footer-bar,
etc.) in component SCSS — they are global. Component SCSS should hold only the
container class (background gradient), responsive padding, and component
::ng-deep overrides.#07172b.For the full token catalog, page-layout HTML/SCSS template, and component-author
conventions, read references/lcars-theme.md.
octo-frontend-librariesThe @meshmakers/* packages are developed in the separate
octo-frontend-libraries repo and consumed here, not via an npm-link
script. In package.json they are file: references into the sibling repo's
built dist:
"@meshmakers/octo-ui": "file:../../../octo-frontend-libraries/src/frontend-libraries/dist/meshmakers/octo-ui"
(CI/Docker swaps these file: refs for registry versions before install.)
| Library | Provides |
|---|---|
@meshmakers/shared-auth | OAuth2/OIDC (AuthorizeGuard, AuthorizeService) |
@meshmakers/shared-services | messages, breadcrumbs, CommandItem, TreeItemDataTyped |
@meshmakers/shared-ui | ListViewComponent, DataSourceBase, FetchResultTyped, dialogs |
@meshmakers/octo-services | GraphQL utilities, OctoErrorLink |
@meshmakers/octo-ui | PropertyGridComponent, OctoGraphQlDataSource, Runtime Browser |
@meshmakers/octo-process-diagrams | process diagram / symbol editor |
@meshmakers/octo-meshboard | dashboard widgets (KPI, Gauge, Chart, …) |
To change a shared library, edit and build it in octo-frontend-libraries
(per-library script, e.g. npm run build:octo-ui, which runs ng lint && ng build), then re-run npm install here to pick up the updated dist/. Clear
the Angular cache if stale: npx ng cache clean. Keep @angular/* versions
aligned across both repos or npm install hits ERESOLVE peer conflicts.
The Studio needs running OctoMesh services. To stand up a meshtest tenant
with sample data (commands run via octo-cli, which must be on PATH):
octo-cli -c Create -tid meshtest -db meshtest # create tenant (Mutating)
./om_importck.ps1 -configuration Debug # import sample CKs
./om_importrt_sample_general.ps1 # optional runtime data
./om_importrt_sample_simulation.ps1 # optional simulation feed
For building/starting the backend services and infrastructure, defer to the
octo-devtools skill.
src/octo-mesh-refinery-studio/..ts files by hand instead of the .graphql
source + npm run codegen.npm run codegen after touching a .graphql file (build then
references a missing/old ...DtoGQL).ng lint — CI fails on any lint error; unused imports and untyped
vars are the usual culprits.@angular/* versions between this repo and
octo-frontend-libraries → ERESOLVE on install.constructionKitType query field)
on Rt entity list/detail views.references/data-source-and-components.md — new list-component checklist,
mm-list-view inputs, OctoGraphQlDataSource details, Copy-ID context menu,
CK detail-inline conventions.references/lcars-theme.md — brand + semantic token catalog, page-layout
HTML/SCSS template, light-theme tokens, Kendo overrides, component-author
conventions.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
angular, graphql-codegen, kendo-ui, apollo-angular, multi-tenant, lcars-theme
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