Maintainx Debug BundleSAFE
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 |
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-debug-bundle description: 'Comprehensive debugging toolkit for MaintainX integrations. Use when experiencing complex issues, need detailed logging, or troubleshooting integration problems with MaintainX. Trigger with phrases like "debug maintainx", "maintainx troubleshoot", "maintainx detailed logs", "diagnose maintainx", "maintainx issue". ' allowed-tools: Read, Write, Edit, Bash(npm:*), Bash(curl:*), Bash(node:*), Grep version: 1.11.0 license: MIT author: Jeremy Longshore <[email protected]> tags: - saas - maintainx - debugging - logging compatibility: Designed for Claude Code --- # MaintainX Debug Bundle ## Current State !`node --version 2>/dev/null || echo 'N/A'` !`python3 --version 2>/dev/null || echo 'N/A'` !`echo "API key set: $([ -n "$MAINTAINX_API_KEY" ] && echo 'yes' || echo 'no')"` ## Overview Complete debugging toolkit for diagnosing and resolving MaintainX integration issues with diagnostic scripts, request logging, and health checks. ## Prerequisites - MaintainX API access configured - Node.js 18+ or curl - `MAINTAINX_API_KEY` environment variable set ## Instructions ### Step 1: Environment Diagnostic Script ```bash #!/bin/bash echo "=== MaintainX Debug Report ===" echo "Timestamp: $(date -u +%Y-%m-%dT%H:%M:%SZ)" echo "Node.js: $(node --version 2>/dev/null || echo 'not installed')" echo "npm: $(npm --version 2>/dev/null || echo 'not installed')" echo "API key set: $([ -n "$MAINTAINX_API_KEY" ] && echo 'yes (length: '${#MAINTAINX_API_KEY}')' || echo 'NO')" echo "" echo "=== API Connectivity ===" HTTP_CODE=$(curl -s -o /tmp/mx-debug.json -w "%{http_code}" \ "https://api.getmaintainx.com/v1/users?limit=1" \ -H "Authorization: Bearer $MAINTAINX_API_KEY") echo "Auth status: $HTTP_CODE" if [ "$HTTP_CODE" = "200" ]; then echo "Response: $(cat /tmp/mx-debug.json | jq -c '{users: (.users | length)}')" else echo "Error: $(cat /tmp/mx-debug.json | jq -r '.message // .error // "unknown"')" fi echo "" echo "=== DNS Resolution ===" nslookup api.getmaintainx.com 2>/dev/null | grep -A1 "Name:" echo "" echo "=== Response Timing ===" curl -s -o /dev/null -w "DNS: %{time_namelookup}s\nConnect: %{time_connect}s\nTTFB: %{time_starttransfer}s\nTotal: %{time_total}s\n" \ "https://api.getmaintainx.com/v1/users?limit=1" \ -H "Authorization: Bearer $MAINTAINX_API_KEY" ``` ### Step 2: Request/Response Logger ```typescript // src/debug/request-logger.ts import axios, { AxiosInstance, AxiosError } from 'axios'; export function createDebugClient(): AxiosInstance { const client = axios.create({ baseURL: 'https://api.getmaintainx.com/v1', headers: { Authorization: `Bearer ${process.env.MAINTAINX_API_KEY}`, 'Content-Type': 'application/json', }, }); // Request interceptor client.interceptors.request.use((config) => { const startTime = Date.now(); (config as any).__startTime = startTime; console.log(`[REQ] ${config.method?.toUpperCase()} ${config.url}`); if (config.data) console.log(' Body:', JSON.stringify(config.data).slice(0, 200)); if (config.params) console.log(' Params:', config.params); return config; }); // Response interceptor client.interceptors.response.use( (response) => { const duration = Date.now() - (response.config as any).__startTime; console.log(`[RES] ${response.status} (${duration}ms)`); console.log(' Data keys:', Object.keys(response.data)); return response; }, (error: AxiosError) => { const duration = Date.now() - (error.config as any)?.__startTime; console.error(`[ERR] ${error.response?.status || 'NETWORK'} (${duration}ms)`); console.error(' Message:', (error.response?.data as any)?.message || error.message); console.error(' Headers:', JSON.stringify(error.response?.headers || {})); throw error; }, ); return client; } ``` ### Step 3: API Health Check ```typescript // src/debug/health-check.ts interface HealthResult { endpoint: string; status: 'ok' | 'error'; statusCode?: number; latencyMs: number; error?: string; } async function healthCheck(apiKey: string): Promise<HealthResult[]> { const endpoints = [ { path: '/users?limit=1', name: 'Users' }, { path: '/workorders?limit=1', name: 'Work Orders' }, { path: '/assets?limit=1', name: 'Assets' }, { path: '/locations?limit=1', name: 'Locations' }, { path: '/teams?limit=1', name: 'Teams' }, ]; const results: HealthResult[] = []; for (const ep of endpoints) { const start = Date.now(); try { const res = await fetch(`https://api.getmaintainx.com/v1${ep.path}`, { headers: { Authorization: `Bearer ${apiKey}` }, }); results.push({ endpoint: ep.name, status: res.ok ? 'ok' : 'error', statusCode: res.status, latencyMs: Date.now() - start, }); } catch (err: any) { results.push({ endpoint: ep.name, status: 'error', latencyMs: Date.now() - start, error: err.message, }); } } // Print report console.log('\n=== MaintainX Health Check ==='); for (const r of results) { const icon = r.status === 'ok' ? 'PASS' : 'FAIL'; console.log(` [${icon}] ${r.endpoint}: ${r.statusCode || 'N/A'} (${r.latencyMs}ms)`); if (r.error) console.log(` Error: ${r.error}`); } return results; } // Run: npx tsx src/debug/health-check.ts healthCheck(process.env.MAINTAINX_API_KEY!); ``` ### Step 4: Data Validation Checker ```typescript // src/debug/validate-data.ts async function validateWorkOrders(client: any) { const { workOrders } = await client.getWorkOrders({ limit: 50 }); const issues: string[] = []; for (const wo of workOrders) { if (!wo.title) issues.push(`WO #${wo.id}: missing title`); if (wo.status === 'COMPLETED' && !wo.completedAt) { issues.push(`WO #${wo.id}: COMPLETED but no completedAt timestamp`); } if (wo.dueDate && new Date(wo.d
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-debug-bundle.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 Debug Bundle 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 Debug Bundle 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 Debug Bundle access on my machine?
The audit observed no filesystem, network or shell use at all in its source.
Which assistants does Maintainx Debug Bundle work with?
Its documentation mentions claude-code. 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.