Agent skill · Audited from source
Maintainx Cost Tuning
skill · jeremylongshore/claude-code-plugins-plus-skillsMIT licenceAudited 9 Oct 2026 · source 4f83675ca38a
Is it safe? Yes — SAFE, grade B (89/100). We read this skill's source at commit 4f83675ca38a and found no filesystem, network or shell access and no hard-coded secrets. What it does: Optimize MaintainX API usage for cost efficiency.
Cite
Cite this page
ModelsAtlas. “Maintainx Cost Tuning (jeremylongshore/claude-code-plugins-plus-skills)”. Retrieved 9 Oct 2026. https://modelsatlas.com/skills/jeremylongshore/maintainx-cost-tuning
Trust audit
Audit 0.4.1 · source read 9 Oct 2026
SAFE means nothing in the source contradicts what the skill says it does. Grade B is shared by 17,406 of 18,389 audited skills.
What the source does
- FilesystemNone observedNo reads or writes in the source
- NetworkNone observedNo outbound calls in the source
- ShellNone observedNo commands run in the source
- DependenciesPinnedNothing floats
- SecretsNone foundNo keys in source
Five audit layers
| Layer | What we check | Result | Findings |
|---|---|---|---|
L0 Provenance | Repo owner, licence, archive status, activity | PASS | 0 |
L1 Static source | Secrets, path traversal, supply chain, hidden code | PASS | 0 |
L2 Instructions | Prompt injection, authority framing, hidden directives | PASS | 0 |
L3 Inventory | The files and declarations match the source | PASS | 0 |
L4 Sandbox | Run in isolation and watch behaviour | SKIPPED why | 0 |
Gates applied: no behavioural pass.
Findings (0)
No findings at any severity. We re-audit when the source changes.
Audit 0.4.1 · source sha 4f83675ca38a · 9 Oct 2026Report an issue or request a re-scan
Provenance
Who published it, and what the verdict is pinned to
- Publisherjeremylongshore GitHub userOwner of the repository this skill is read from
- Source folderjeremylongshore/claude-code-plugins-plus-skills/plugins/saas-packs/maintainx-pack/skills/maintainx-cost-tuningThe exact folder we audited
- LicenceMITAs the repository states it
- Commit pinned for this verdict4f83675ca38aA new audit runs when the source changes
- Repository statusNot archivedPushed today
- Sandboxed runNot runSkills are read, not executed; layer L4 is skipped
What it tells the agent
Full source on GitHub ↗Its description: Optimize MaintainX API usage for cost efficiency.
--- name: maintainx-cost-tuning description: 'Optimize MaintainX API usage for cost efficiency. Use when managing API costs, optimizing request volume, or implementing cost-effective integration patterns with MaintainX. Trigger with phrases like "maintainx cost", "maintainx billing", "reduce maintainx usage", "maintainx api costs", "maintainx optimization". ' allowed-tools: Read, Write, Edit, Bash(npm:*) version: 1.11.0 license: MIT author: Jeremy Longshore <[email protected]> tags: - saas - maintainx - api - cost-optimization compatibility: Designed for Claude Code --- # MaintainX Cost Tuning ## Overview Reduce MaintainX API request volume and optimize costs through caching, webhook-driven sync, request batching, and smart polling strategies. ## Prerequisites - MaintainX integration deployed and working - Redis or in-memory cache available - Baseline API usage metrics ## Instructions ### Step 1: Request Volume Tracking ```typescript // src/cost/usage-tracker.ts class ApiUsageTracker { private counts: Map<string, number> = new Map(); private startTime = Date.now(); record(endpoint: string) { const key = endpoint.split('?')[0]; // Strip query params this.counts.set(key, (this.counts.get(key) || 0) + 1); } report() { const elapsed = (Date.now() - this.startTime) / 1000 / 60; // minutes console.log(`\n=== API Usage Report (${elapsed.toFixed(1)} min) ===`); const sorted = [...this.counts.entries()].sort((a, b) => b[1] - a[1]); for (const [endpoint, count] of sorted) { const rate = (count / elapsed).toFixed(1); console.log(` ${endpoint}: ${count} calls (${rate}/min)`); } console.log(` TOTAL: ${[...this.counts.values()].reduce((a, b) => a + b, 0)} calls`); } } export const tracker = new ApiUsageTracker(); // Report every 10 minutes setInterval(() => tracker.report(), 600_000); ``` ### Step 2: Response Caching ```typescript // src/cost/cached-client.ts interface CacheEntry<T> { data: T; expiresAt: number; } class CachedMaintainXClient { private cache = new Map<string, CacheEntry<any>>(); private client: MaintainXClient; // TTL per resource type (in seconds) private ttl: Record<string, number> = { '/users': 300, // 5 min - users rarely change '/locations': 300, // 5 min - locations are static '/assets': 120, // 2 min - assets change infrequently '/workorders': 30, // 30 sec - work orders change often '/teams': 600, // 10 min - teams are very static }; constructor(client: MaintainXClient) { this.client = client; } async get<T>(endpoint: string, params?: any): Promise<T> { const cacheKey = `${endpoint}:${JSON.stringify(params || {})}`; const cached = this.cache.get(cacheKey); if (cached && cached.expiresAt > Date.now()) { console.log(`[CACHE HIT] ${endpoint}`); return cached.data; } const basePath = '/' + endpoint.split('/').filter(Boolean)[0]; const ttlSec = this.ttl[basePath] || 60; const data = await this.client.request('GET', endpoint, undefined, params); this.cache.set(cacheKey, { data, expiresAt: Date.now() + ttlSec * 1000, }); tracker.record(endpoint); return data as T; } invalidate(pattern: string) { for (const key of this.cache.keys()) { if (key.startsWith(pattern)) { this.cache.delete(key); } } } } ``` ### Step 3: Webhook-Driven Sync (Replace Polling) Polling every 30 seconds costs thousands of requests/day per endpoint. Webhooks reduce this to near zero. ```typescript // Before: Polling (expensive) // Calculation: 1 request every 30 sec = 2 req/min * 60 min * 24 hr = ~2880 req/day setInterval(async () => { const { workOrders } = await client.getWorkOrders({ status: 'OPEN' }); await syncToLocalDb(workOrders); }, 30_000); // After: Webhook-driven (near zero cost) app.post('/webhooks/maintainx', async (req, res) => { const { event, data } = req.body; if (event === 'workorder.updated' || event === 'workorder.created') { await upsertWorkOrder(data); // Only sync what changed } res.status(200).json({ ok: true }); }); ``` **Cost savings**: From thousands of daily polling requests to ~50 req/day (webhook-driven deltas only). ### Step 4: Smart Polling with Conditional Requests When webhooks are not available, reduce unnecessary fetches: ```typescript // Only fetch if data has changed since last check async function smartPoll(client: MaintainXClient, state: { lastModified?: string }) { const response = await client.getWorkOrders({ updatedAtGte: state.lastModified || new Date(0).toISOString(), limit: 100, }); if (response.workOrders.length === 0) { console.log('No changes since last poll'); return []; } state.lastModified = new Date().toISOString(); return response.workOrders; } ``` ### Step 5: Request Deduplication ```typescript // Deduplicate concurrent identical requests const inFlight = new Map<string, Promise<any>>(); async function deduplicatedGet(client: MaintainXClient, endpoint: string): Promise<any> { if (inFlight.has(endpoint)) { return inFlight.get(endpoint)!; } const promise = client.request('GET', endpoint); inFlight.set(endpoint, promise); try { return await promise; } finally { inFlight.delete(endpoint); } } ``` ## Output - API usage tracking with per-endpoint request counts - Response caching with resource-specific TTLs - Webhook-driven sync replacing expensive polling loops - Smart polling with `updatedAtGte` filter for change detection - Request deduplication preventing concurrent identical calls ## Error Handling | Issue | Cause | Solution | |-------|-------|----------| | Stale cache data | TTL too long for volatile resources | Reduce TTL for `/workorders` to 15-30s | | Webhook delivery failures | Endpoint down or unreachable | Fall back to polling with longer interval | | Cache memory growth | No eviction policy | Set max
Excerpt, first 6,000 characters of SKILL.md, verbatim from the audited commit. It is text from someone else’s repository, quoted so you can judge it before your agent reads it.
Install
Pinned to the audited commit 4f83675
git clone https://github.com/jeremylongshore/claude-code-plugins-plus-skills git -C claude-code-plugins-plus-skills checkout 4f83675ca38a
The author documents no install command, so this uses the repository directly. Our verdict covers commit 4f83675ca38a only.
Works in which agents?
What its own text says, not a test
| Agent | Status | More |
|---|---|---|
| Claude Code | Mentioned in its text, not tested | Skills for Claude Code · About Claude Code |
| Cursor | Mentioned in its text, not tested | Skills for Cursor · About Cursor |
Audit history
Every audit, every source change
- ✓SAFE B 89 / 100
first audit · source
4f83675ca38a
README badge
For maintainers · shows the latest audit
[](https://modelsatlas.com/skills/jeremylongshore/maintainx-cost-tuning/)
The badge shows our verdict and grade for this skill, and links back to this page. It changes when the audit does.
Similar skills
jeremylongshore/claude-code-plugins-plus
Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com.
jeremylongshore/claude-code-plugins-plus
Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com.
jeremylongshore/claude-code-plugins-plus
Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com.
jeremylongshore/claude-code-plugins-plus
Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com.
jeremylongshore/claude-code-plugins-plus
Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com.
jeremylongshore/claude-code-plugins-plus
Deploy and orchestrate Vertex AI ADK agents using A2A protocol. Manages
Add this badge to your README
[](https://modelsatlas.com/skills/jeremylongshore/maintainx-cost-tuning/)
<a href="https://modelsatlas.com/skills/jeremylongshore/maintainx-cost-tuning/"><img src="https://modelsatlas.com/skills/jeremylongshore/maintainx-cost-tuning/badge.svg" alt="ModelsAtlas: SAFE B"></a>
Questions about Maintainx Cost Tuning
What does the Maintainx Cost Tuning skill do?
Is Maintainx Cost Tuning safe to install?
What can Maintainx Cost Tuning access on my machine?
Which assistants does Maintainx Cost Tuning work with?
How current is this page?
Sources
- github.com/jeremylongshore/claude-code-plugins-plus-skills/tree/ — the audited source at commit 4f83675ca38a and every finding aboveObserved · 9 Oct 2026
Spotted something wrong? Report a correction · Methodology
Keep going in your AI
Opens with this page as the source. We add nothing else to the prompt.
- What does the Maintainx Cost Tuning skill do?
- Is Maintainx Cost Tuning safe to install?
- What can Maintainx Cost Tuning access on my machine?