Maintainx Reference ArchitectureSAFE
Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com.
Overview
Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com.
4f83675ca38aOBSERVED · 2026-10-09Host compatibility
What the documentation claims. We have not run a compatibility test.
| Host | Status | Notes |
|---|---|---|
| claude-code | mentioned | |
| cursor | mentioned |
What it tells the agent
The instruction file, verbatim from the audited commit — this is the text the model reads, and the surface the audit's instruction layer examines. Quoted here so you can judge it without cloning anything.
--- name: maintainx-reference-architecture description: 'Production-grade architecture patterns for MaintainX integrations. Use when designing system architecture, planning integrations, or building enterprise-scale MaintainX solutions. Trigger with phrases like "maintainx architecture", "maintainx design", "maintainx system design", "maintainx enterprise", "maintainx patterns". ' allowed-tools: Read, Write, Edit version: 1.11.0 license: MIT author: Jeremy Longshore <[email protected]> tags: - saas - maintainx - scaling compatibility: Designed for Claude Code --- # MaintainX Reference Architecture ## Overview Production-grade architecture patterns for building scalable, maintainable integrations between MaintainX and enterprise systems (ERP, SCADA, data warehouses). ## Prerequisites - Understanding of distributed systems - Cloud platform experience (GCP, AWS, or Azure) - MaintainX API familiarity ## Instructions ### Step 1: Event-Driven Sync Architecture The recommended architecture for most MaintainX integrations. Uses webhooks for real-time updates and scheduled jobs for reconciliation. ``` MaintainX API ──webhook──→ Cloud Run ──→ Pub/Sub ──→ Cloud Functions │ ├──→ BigQuery (analytics) ├──→ ERP System (SAP, Oracle) └──→ Notification Service ``` ```typescript // src/architecture/event-driven.ts import express from 'express'; import { PubSub } from '@google-cloud/pubsub'; const app = express(); const pubsub = new PubSub(); const topic = pubsub.topic('maintainx-events'); // Webhook receiver publishes to Pub/Sub app.post('/webhooks/maintainx', async (req, res) => { const { event, data } = req.body; await topic.publishMessage({ data: Buffer.from(JSON.stringify({ event, data })), attributes: { event, resourceId: String(data.id) }, }); res.status(200).json({ status: 'queued' }); }); // Subscriber processes events asynchronously const subscription = pubsub.subscription('maintainx-events-sub'); subscription.on('message', async (message) => { const { event, data } = JSON.parse(message.data.toString()); switch (event) { case 'workorder.completed': await syncToERP(data); await updateAnalytics(data); break; case 'workorder.created': if (data.priority === 'HIGH') { await sendUrgentNotification(data); } break; } message.ack(); }); ``` ### Step 2: Bi-Directional Sync Gateway For integrating MaintainX with ERP systems (SAP, Oracle) where changes flow both ways. ``` ERP (SAP/Oracle) ←──→ Sync Gateway ←──→ MaintainX API │ Conflict Resolution + Audit Trail + Sync State DB ``` ```typescript // src/architecture/sync-gateway.ts interface SyncRecord { externalId: string; // ERP system ID maintainxId: number; // MaintainX ID lastSyncAt: string; syncDirection: 'inbound' | 'outbound' | 'bidirectional'; hash: string; // Content hash for change detection } class SyncGateway { constructor( private maintainx: MaintainXClient, private erp: ERPClient, private db: SyncStateDB, ) {} // MaintainX → ERP async syncToERP(workOrder: any) { const existing = await this.db.findByMaintainxId(workOrder.id); if (existing && this.hash(workOrder) === existing.hash) { return; // No change, skip } const erpRecord = this.mapToERP(workOrder); if (existing) { await this.erp.update(existing.externalId, erpRecord); } else { const created = await this.erp.create(erpRecord); await this.db.create({ externalId: created.id, maintainxId: workOrder.id, lastSyncAt: new Date().toISOString(), syncDirection: 'outbound', hash: this.hash(workOrder), }); } } // ERP → MaintainX async syncFromERP(erpRecord: any) { const existing = await this.db.findByExternalId(erpRecord.id); const woData = this.mapFromERP(erpRecord); if (existing) { await this.maintainx.updateWorkOrder(existing.maintainxId, woData); } else { const created = await this.maintainx.createWorkOrder(woData); await this.db.create({ externalId: erpRecord.id, maintainxId: created.id, lastSyncAt: new Date().toISOString(), syncDirection: 'inbound', hash: this.hash(created), }); } } private mapToERP(wo: any) { return { title: wo.title, status: this.mapStatus(wo.status), priority: wo.priority, completedAt: wo.completedAt, }; } private mapFromERP(erp: any) { return { title: erp.description, priority: erp.urgency === 'HIGH' ? 'HIGH' : 'MEDIUM', }; } private mapStatus(status: string) { const map: Record<string, string> = { OPEN: 'PLANNED', IN_PROGRESS: 'ACTIVE', COMPLETED: 'FINISHED', CLOSED: 'ARCHIVED', }; return map[status] || 'UNKNOWN'; } private hash(obj: any): string { return require('crypto').createHash('md5') .update(JSON.stringify(obj)).digest('hex'); } } ``` ### Step 3: Analytics Data Pipeline ``` MaintainX API ──scheduled──→ Cloud Functions ──→ BigQuery │ Looker / Metabase │ KPI Dashboards: - MTTR (Mean Time to Repair) - PM Compliance % - Work Order Backlog - Asset Downtime ``` ```typescript // src/architecture/analytics-pipeline.ts interface MaintenanceKPIs { mttr: number;
Trust audit
SAFEgrade B · trust 89/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | PASS |
| L1 | Static analysis of the code | PASS |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | PASS |
| L4 | Behavioural (sandbox) | SKIPPED |
What the source does
- Filesystem
- none-observed
- Network
- none-observed
- Shell
- none-observed
- Dependencies
- pinned
- Secrets in source
- none-found
Findings (0)
No findings outside the package's declared scope.
Gates applied: no_behavioural_pass.
4f83675ca38afull audit observations/trust-audit/skill/jeremylongshore__maintainx-reference-architecture.json · Report an issue / request a re-scanAudit history
Every audit this skill has had.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-10-09 | 4f83675ca38a | SAFE | B | 89 | first audit |
Questions
What does the Maintainx Reference Architecture skill do?
Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com.
Is Maintainx Reference Architecture safe to install?
The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean skill reads B.
What can Maintainx Reference Architecture access on my machine?
The audit observed no filesystem, network or shell use at all in its source.
Which assistants does Maintainx Reference Architecture work with?
Its documentation mentions claude-code and cursor. That is what the text claims, not a compatibility test we ran.
How current is this page?
The grade is for one exact copy of the source (4f83675ca38a), read on 2026-10-09. The repository is watched, and a new audit runs when it changes — this is the first audit.