[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6F82AZVSGRTQMCXBBGW0CKT":3,"skill-same:01M6F82AZVSGRTQMCXBBGW0CKT":77},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":23,"publishedAt":45,"linkOnly":46,"markdownContent":47,"markdownBody":48,"frontMatter":49,"refName":54,"commitSha":55,"skillDirectory":56,"forksCount":57,"repositoryHtmlUrl":58,"repositoryHomepageUrl":6,"ownerHtmlUrl":59,"ownerBlogUrl":60,"ownerDescription":61,"updatedAt":62,"install":63,"resources":76},"01M6F82AZVSGRTQMCXBBGW0CKT","maintainx-common-errors",null,"Debug and resolve common MaintainX API errors.\nUse when encountering API errors, authentication issues,\nor unexpected responses from the MaintainX API.\nTrigger with phrases like \"maintainx error\", \"maintainx 401\",\n\"maintainx api problem\", \"maintainx not working\", \"debug maintainx\".","Dicklesworthstone\u002Fpi_agent_rust","Dicklesworthstone","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F35050222?v=4","01M6CG26AR942CSVMN1M5E3DSE","Jeff Emanuel","01M6CG26EPP71PSHW1VDS71121",1992,"MIT","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Fplugins-community\u002Fplugins\u002Fsaas-packs\u002Fmaintainx-pack\u002Fskills\u002Fmaintainx-common-errors\u002FSKILL.md",[18],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000030","开发工程师","PROFESSION","适用职业",[24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],"errors","maintainx common errors","common","edit","when","api errors","with","error","problem","trigger","io","use","debug","write","read","curl","grep","Bash","api","issues","authentication","2026-11-10 10:12:30",false,"---\nname: maintainx-common-errors\ndescription: |\n  Debug and resolve common MaintainX API errors.\n  Use when encountering API errors, authentication issues,\n  or unexpected responses from the MaintainX API.\n  Trigger with phrases like \"maintainx error\", \"maintainx 401\",\n  \"maintainx api problem\", \"maintainx not working\", \"debug maintainx\".\nallowed-tools: Read, Write, Edit, Bash(curl:*), Grep\nversion: 1.0.0\nlicense: MIT\nauthor: Jeremy Longshore \u003Cjeremy@intentsolutions.io>\n---\n\n# MaintainX Common Errors\n\n## Overview\n\nQuick reference guide for diagnosing and resolving common MaintainX API errors.\n\n## Prerequisites\n\n- MaintainX API credentials configured\n- Basic understanding of HTTP status codes\n- Access to API logs\n\n## Error Reference\n\n### Authentication Errors (4xx)\n\n#### 401 Unauthorized\n\n```json\n{\n  \"error\": \"Unauthorized\",\n  \"message\": \"Invalid or missing API key\"\n}\n```\n\n**Causes:**\n1. Missing API key in request\n2. Invalid or expired API key\n3. Incorrect Authorization header format\n\n**Solutions:**\n\n```typescript\n\u002F\u002F Check 1: Verify API key is set\nconst apiKey = process.env.MAINTAINX_API_KEY;\nif (!apiKey) {\n  throw new Error('MAINTAINX_API_KEY environment variable not set');\n}\n\n\u002F\u002F Check 2: Correct header format (note the space after \"Bearer\")\nconst headers = {\n  'Authorization': `Bearer ${apiKey}`,  \u002F\u002F Correct\n  \u002F\u002F NOT: `Bearer${apiKey}` (missing space)\n  \u002F\u002F NOT: apiKey (missing Bearer prefix)\n  'Content-Type': 'application\u002Fjson',\n};\n\n\u002F\u002F Check 3: Test with curl\n\u002F\u002F curl -H \"Authorization: Bearer YOUR_API_KEY\" \\\n\u002F\u002F      https:\u002F\u002Fapi.getmaintainx.com\u002Fv1\u002Fusers?limit=1\n```\n\n**Quick Fix Script:**\n\n```bash\n#!\u002Fbin\u002Fbash\n# test-maintainx-auth.sh\n\nif [ -z \"$MAINTAINX_API_KEY\" ]; then\n  echo \"ERROR: MAINTAINX_API_KEY not set\"\n  exit 1\nfi\n\necho \"Testing MaintainX authentication...\"\nRESPONSE=$(curl -s -w \"\\n%{http_code}\" \\\n  -H \"Authorization: Bearer $MAINTAINX_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  \"https:\u002F\u002Fapi.getmaintainx.com\u002Fv1\u002Fusers?limit=1\")\n\nHTTP_CODE=$(echo \"$RESPONSE\" | tail -n 1)\nBODY=$(echo \"$RESPONSE\" | sed '$d')\n\nif [ \"$HTTP_CODE\" == \"200\" ]; then\n  echo \"SUCCESS: Authentication working\"\n  echo \"$BODY\" | jq '.users | length' | xargs -I {} echo \"Found {} users\"\nelse\n  echo \"FAILED: HTTP $HTTP_CODE\"\n  echo \"$BODY\"\nfi\n```\n\n#### 403 Forbidden\n\n```json\n{\n  \"error\": \"Forbidden\",\n  \"message\": \"Insufficient permissions for this operation\"\n}\n```\n\n**Causes:**\n1. API key doesn't have required permissions\n2. Plan tier doesn't include this feature\n3. Organization restrictions\n\n**Solutions:**\n\n```typescript\n\u002F\u002F Check your subscription tier\n\u002F\u002F Professional\u002FEnterprise required for full API access\n\n\u002F\u002F Verify in MaintainX dashboard:\n\u002F\u002F Settings > Account > Subscription\n\n\u002F\u002F For multi-org tokens, ensure org ID header:\nconst headers = {\n  'Authorization': `Bearer ${apiKey}`,\n  'X-Organization-Id': orgId,  \u002F\u002F Required for multi-org\n  'Content-Type': 'application\u002Fjson',\n};\n```\n\n### Request Errors (4xx)\n\n#### 400 Bad Request\n\n```json\n{\n  \"error\": \"Bad Request\",\n  \"message\": \"Validation failed\",\n  \"details\": {\n    \"title\": \"Title is required\"\n  }\n}\n```\n\n**Common Causes:**\n\n```typescript\n\u002F\u002F Missing required fields\nawait client.createWorkOrder({\n  \u002F\u002F ERROR: title is required\n  description: 'Some description',\n});\n\n\u002F\u002F FIX: Include required fields\nawait client.createWorkOrder({\n  title: 'Work Order Title',  \u002F\u002F Required\n  description: 'Some description',\n});\n\n\u002F\u002F Invalid enum values\nawait client.createWorkOrder({\n  title: 'Test',\n  priority: 'URGENT',  \u002F\u002F ERROR: Invalid value\n});\n\n\u002F\u002F FIX: Use valid enum values\nawait client.createWorkOrder({\n  title: 'Test',\n  priority: 'HIGH',  \u002F\u002F Valid: NONE, LOW, MEDIUM, HIGH\n});\n\n\u002F\u002F Invalid date format\nawait client.createWorkOrder({\n  title: 'Test',\n  dueDate: '2025-01-15',  \u002F\u002F May need full ISO format\n});\n\n\u002F\u002F FIX: Use ISO 8601 format\nawait client.createWorkOrder({\n  title: 'Test',\n  dueDate: new Date('2025-01-15').toISOString(),  \u002F\u002F 2025-01-15T00:00:00.000Z\n});\n```\n\n#### 404 Not Found\n\n```json\n{\n  \"error\": \"Not Found\",\n  \"message\": \"Work order not found\"\n}\n```\n\n**Causes & Solutions:**\n\n```typescript\n\u002F\u002F Cause 1: Wrong resource ID\nconst workOrder = await client.getWorkOrder('invalid_id');\n\n\u002F\u002F Solution: Verify ID exists\nasync function safeGetWorkOrder(client, id) {\n  try {\n    return await client.getWorkOrder(id);\n  } catch (error) {\n    if (error.response?.status === 404) {\n      console.error(`Work order ${id} not found`);\n      return null;\n    }\n    throw error;\n  }\n}\n\n\u002F\u002F Cause 2: Wrong endpoint\n\u002F\u002F GET \u002Fv1\u002Fworkorder\u002F123  (wrong - singular)\n\u002F\u002F GET \u002Fv1\u002Fworkorders\u002F123 (correct - plural)\n\n\u002F\u002F Cause 3: Resource deleted or archived\n\u002F\u002F Check if resource was recently deleted in MaintainX\n```\n\n#### 422 Unprocessable Entity\n\n```json\n{\n  \"error\": \"Unprocessable Entity\",\n  \"message\": \"Invalid data\",\n  \"details\": {\n    \"assetId\": \"Asset does not exist\"\n  }\n}\n```\n\n**Solutions:**\n\n```typescript\n\u002F\u002F Verify referenced resources exist\nasync function createWorkOrderSafe(client, data) {\n  \u002F\u002F Verify asset exists\n  if (data.assetId) {\n    try {\n      await client.getAsset(data.assetId);\n    } catch (e) {\n      throw new Error(`Asset ${data.assetId} not found`);\n    }\n  }\n\n  \u002F\u002F Verify location exists\n  if (data.locationId) {\n    try {\n      await client.getLocation(data.locationId);\n    } catch (e) {\n      throw new Error(`Location ${data.locationId} not found`);\n    }\n  }\n\n  return client.createWorkOrder(data);\n}\n```\n\n### Rate Limiting (429)\n\n```json\n{\n  \"error\": \"Too Many Requests\",\n  \"message\": \"Rate limit exceeded\",\n  \"retryAfter\": 60\n}\n```\n\n**Solution:**\n\n```typescript\n\u002F\u002F Implement exponential backoff\nasync function withRateLimitHandling(operation, maxRetries = 3) {\n  for (let attempt = 0; attempt \u003C= maxRetries; attempt++) {\n    try {\n      return await operation();\n    } catch (error) {\n      if (error.response?.status === 429) {\n        const retryAfter = error.response.headers['retry-after'] || 60;\n        console.log(`Rate limited. Waiting ${retryAfter}s...`);\n\n        if (attempt \u003C maxRetries) {\n          await new Promise(r => setTimeout(r, retryAfter * 1000));\n          continue;\n        }\n      }\n      throw error;\n    }\n  }\n}\n```\n\n### Server Errors (5xx)\n\n#### 500 Internal Server Error\n\n**Solutions:**\n\n```typescript\n\u002F\u002F Retry with exponential backoff for transient errors\nasync function withRetry(operation, options = {}) {\n  const { maxRetries = 3, baseDelay = 1000 } = options;\n\n  for (let attempt = 0; attempt \u003C= maxRetries; attempt++) {\n    try {\n      return await operation();\n    } catch (error) {\n      const status = error.response?.status;\n\n      \u002F\u002F Retry on 5xx errors\n      if (status >= 500 && attempt \u003C maxRetries) {\n        const delay = baseDelay * Math.pow(2, attempt);\n        console.log(`Server error. Retrying in ${delay}ms...`);\n        await new Promise(r => setTimeout(r, delay));\n        continue;\n      }\n      throw error;\n    }\n  }\n}\n```\n\n#### 503 Service Unavailable\n\n**Solutions:**\n1. Check MaintainX status page\n2. Wait and retry\n3. Implement circuit breaker pattern\n\n```typescript\nclass CircuitBreaker {\n  private failures = 0;\n  private lastFailure?: Date;\n  private readonly threshold = 5;\n  private readonly resetTimeout = 60000; \u002F\u002F 1 minute\n\n  async execute\u003CT>(operation: () => Promise\u003CT>): Promise\u003CT> {\n    if (this.isOpen()) {\n      throw new Error('Circuit breaker is open - service unavailable');\n    }\n\n    try {\n      const result = await operation();\n      this.reset();\n      return result;\n    } catch (error) {\n      this.recordFailure();\n      throw error;\n    }\n  }\n\n  private isOpen(): boolean {\n    if (this.failures \u003C this.threshold) return false;\n    if (!this.lastFailure) return false;\n\n    const elapsed = Date.now() - this.lastFailure.getTime();\n    return elapsed \u003C this.resetTimeout;\n  }\n\n  private recordFailure() {\n    this.failures++;\n    this.lastFailure = new Date();\n  }\n\n  private reset() {\n    this.failures = 0;\n    this.lastFailure = undefined;\n  }\n}\n```\n\n## Debugging Checklist\n\n```typescript\n\u002F\u002F Debug helper function\nasync function debugApiCall(client, operation, description) {\n  console.log(`\\n=== ${description} ===`);\n\n  try {\n    const startTime = Date.now();\n    const result = await operation();\n    const duration = Date.now() - startTime;\n\n    console.log(`SUCCESS (${duration}ms)`);\n    console.log('Response:', JSON.stringify(result, null, 2).slice(0, 500));\n    return result;\n  } catch (error) {\n    console.log('FAILED');\n    console.log('Status:', error.response?.status);\n    console.log('Error:', error.response?.data || error.message);\n    console.log('Headers:', error.response?.headers);\n    throw error;\n  }\n}\n\n\u002F\u002F Usage\nawait debugApiCall(\n  client,\n  () => client.getWorkOrders({ limit: 5 }),\n  'Fetching work orders'\n);\n```\n\n## Output\n\n- Identified error cause\n- Applied appropriate fix\n- Verified resolution\n\n## Quick Reference\n\n| Status | Cause | First Action |\n|--------|-------|--------------|\n| 401 | Auth issue | Check API key format |\n| 403 | Permissions | Verify plan tier |\n| 400 | Bad request | Check required fields |\n| 404 | Not found | Verify resource ID |\n| 422 | Invalid data | Validate references |\n| 429 | Rate limit | Wait and retry |\n| 5xx | Server error | Retry with backoff |\n\n## Resources\n\n- [MaintainX API Status](https:\u002F\u002Fstatus.getmaintainx.com)\n- [MaintainX Help Center](https:\u002F\u002Fhelp.getmaintainx.com)\n- [API Documentation](https:\u002F\u002Fmaintainx.dev\u002F)\n\n## Next Steps\n\nFor comprehensive debugging, see `maintainx-debug-bundle`.\n","# MaintainX Common Errors\n\n## Overview\n\nQuick reference guide for diagnosing and resolving common MaintainX API errors.\n\n## Prerequisites\n\n- MaintainX API credentials configured\n- Basic understanding of HTTP status codes\n- Access to API logs\n\n## Error Reference\n\n### Authentication Errors (4xx)\n\n#### 401 Unauthorized\n\n```json\n{\n  \"error\": \"Unauthorized\",\n  \"message\": \"Invalid or missing API key\"\n}\n```\n\n**Causes:**\n1. Missing API key in request\n2. Invalid or expired API key\n3. Incorrect Authorization header format\n\n**Solutions:**\n\n```typescript\n\u002F\u002F Check 1: Verify API key is set\nconst apiKey = process.env.MAINTAINX_API_KEY;\nif (!apiKey) {\n  throw new Error('MAINTAINX_API_KEY environment variable not set');\n}\n\n\u002F\u002F Check 2: Correct header format (note the space after \"Bearer\")\nconst headers = {\n  'Authorization': `Bearer ${apiKey}`,  \u002F\u002F Correct\n  \u002F\u002F NOT: `Bearer${apiKey}` (missing space)\n  \u002F\u002F NOT: apiKey (missing Bearer prefix)\n  'Content-Type': 'application\u002Fjson',\n};\n\n\u002F\u002F Check 3: Test with curl\n\u002F\u002F curl -H \"Authorization: Bearer YOUR_API_KEY\" \\\n\u002F\u002F      https:\u002F\u002Fapi.getmaintainx.com\u002Fv1\u002Fusers?limit=1\n```\n\n**Quick Fix Script:**\n\n```bash\n#!\u002Fbin\u002Fbash\n# test-maintainx-auth.sh\n\nif [ -z \"$MAINTAINX_API_KEY\" ]; then\n  echo \"ERROR: MAINTAINX_API_KEY not set\"\n  exit 1\nfi\n\necho \"Testing MaintainX authentication...\"\nRESPONSE=$(curl -s -w \"\\n%{http_code}\" \\\n  -H \"Authorization: Bearer $MAINTAINX_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  \"https:\u002F\u002Fapi.getmaintainx.com\u002Fv1\u002Fusers?limit=1\")\n\nHTTP_CODE=$(echo \"$RESPONSE\" | tail -n 1)\nBODY=$(echo \"$RESPONSE\" | sed '$d')\n\nif [ \"$HTTP_CODE\" == \"200\" ]; then\n  echo \"SUCCESS: Authentication working\"\n  echo \"$BODY\" | jq '.users | length' | xargs -I {} echo \"Found {} users\"\nelse\n  echo \"FAILED: HTTP $HTTP_CODE\"\n  echo \"$BODY\"\nfi\n```\n\n#### 403 Forbidden\n\n```json\n{\n  \"error\": \"Forbidden\",\n  \"message\": \"Insufficient permissions for this operation\"\n}\n```\n\n**Causes:**\n1. API key doesn't have required permissions\n2. Plan tier doesn't include this feature\n3. Organization restrictions\n\n**Solutions:**\n\n```typescript\n\u002F\u002F Check your subscription tier\n\u002F\u002F Professional\u002FEnterprise required for full API access\n\n\u002F\u002F Verify in MaintainX dashboard:\n\u002F\u002F Settings > Account > Subscription\n\n\u002F\u002F For multi-org tokens, ensure org ID header:\nconst headers = {\n  'Authorization': `Bearer ${apiKey}`,\n  'X-Organization-Id': orgId,  \u002F\u002F Required for multi-org\n  'Content-Type': 'application\u002Fjson',\n};\n```\n\n### Request Errors (4xx)\n\n#### 400 Bad Request\n\n```json\n{\n  \"error\": \"Bad Request\",\n  \"message\": \"Validation failed\",\n  \"details\": {\n    \"title\": \"Title is required\"\n  }\n}\n```\n\n**Common Causes:**\n\n```typescript\n\u002F\u002F Missing required fields\nawait client.createWorkOrder({\n  \u002F\u002F ERROR: title is required\n  description: 'Some description',\n});\n\n\u002F\u002F FIX: Include required fields\nawait client.createWorkOrder({\n  title: 'Work Order Title',  \u002F\u002F Required\n  description: 'Some description',\n});\n\n\u002F\u002F Invalid enum values\nawait client.createWorkOrder({\n  title: 'Test',\n  priority: 'URGENT',  \u002F\u002F ERROR: Invalid value\n});\n\n\u002F\u002F FIX: Use valid enum values\nawait client.createWorkOrder({\n  title: 'Test',\n  priority: 'HIGH',  \u002F\u002F Valid: NONE, LOW, MEDIUM, HIGH\n});\n\n\u002F\u002F Invalid date format\nawait client.createWorkOrder({\n  title: 'Test',\n  dueDate: '2025-01-15',  \u002F\u002F May need full ISO format\n});\n\n\u002F\u002F FIX: Use ISO 8601 format\nawait client.createWorkOrder({\n  title: 'Test',\n  dueDate: new Date('2025-01-15').toISOString(),  \u002F\u002F 2025-01-15T00:00:00.000Z\n});\n```\n\n#### 404 Not Found\n\n```json\n{\n  \"error\": \"Not Found\",\n  \"message\": \"Work order not found\"\n}\n```\n\n**Causes & Solutions:**\n\n```typescript\n\u002F\u002F Cause 1: Wrong resource ID\nconst workOrder = await client.getWorkOrder('invalid_id');\n\n\u002F\u002F Solution: Verify ID exists\nasync function safeGetWorkOrder(client, id) {\n  try {\n    return await client.getWorkOrder(id);\n  } catch (error) {\n    if (error.response?.status === 404) {\n      console.error(`Work order ${id} not found`);\n      return null;\n    }\n    throw error;\n  }\n}\n\n\u002F\u002F Cause 2: Wrong endpoint\n\u002F\u002F GET \u002Fv1\u002Fworkorder\u002F123  (wrong - singular)\n\u002F\u002F GET \u002Fv1\u002Fworkorders\u002F123 (correct - plural)\n\n\u002F\u002F Cause 3: Resource deleted or archived\n\u002F\u002F Check if resource was recently deleted in MaintainX\n```\n\n#### 422 Unprocessable Entity\n\n```json\n{\n  \"error\": \"Unprocessable Entity\",\n  \"message\": \"Invalid data\",\n  \"details\": {\n    \"assetId\": \"Asset does not exist\"\n  }\n}\n```\n\n**Solutions:**\n\n```typescript\n\u002F\u002F Verify referenced resources exist\nasync function createWorkOrderSafe(client, data) {\n  \u002F\u002F Verify asset exists\n  if (data.assetId) {\n    try {\n      await client.getAsset(data.assetId);\n    } catch (e) {\n      throw new Error(`Asset ${data.assetId} not found`);\n    }\n  }\n\n  \u002F\u002F Verify location exists\n  if (data.locationId) {\n    try {\n      await client.getLocation(data.locationId);\n    } catch (e) {\n      throw new Error(`Location ${data.locationId} not found`);\n    }\n  }\n\n  return client.createWorkOrder(data);\n}\n```\n\n### Rate Limiting (429)\n\n```json\n{\n  \"error\": \"Too Many Requests\",\n  \"message\": \"Rate limit exceeded\",\n  \"retryAfter\": 60\n}\n```\n\n**Solution:**\n\n```typescript\n\u002F\u002F Implement exponential backoff\nasync function withRateLimitHandling(operation, maxRetries = 3) {\n  for (let attempt = 0; attempt \u003C= maxRetries; attempt++) {\n    try {\n      return await operation();\n    } catch (error) {\n      if (error.response?.status === 429) {\n        const retryAfter = error.response.headers['retry-after'] || 60;\n        console.log(`Rate limited. Waiting ${retryAfter}s...`);\n\n        if (attempt \u003C maxRetries) {\n          await new Promise(r => setTimeout(r, retryAfter * 1000));\n          continue;\n        }\n      }\n      throw error;\n    }\n  }\n}\n```\n\n### Server Errors (5xx)\n\n#### 500 Internal Server Error\n\n**Solutions:**\n\n```typescript\n\u002F\u002F Retry with exponential backoff for transient errors\nasync function withRetry(operation, options = {}) {\n  const { maxRetries = 3, baseDelay = 1000 } = options;\n\n  for (let attempt = 0; attempt \u003C= maxRetries; attempt++) {\n    try {\n      return await operation();\n    } catch (error) {\n      const status = error.response?.status;\n\n      \u002F\u002F Retry on 5xx errors\n      if (status >= 500 && attempt \u003C maxRetries) {\n        const delay = baseDelay * Math.pow(2, attempt);\n        console.log(`Server error. Retrying in ${delay}ms...`);\n        await new Promise(r => setTimeout(r, delay));\n        continue;\n      }\n      throw error;\n    }\n  }\n}\n```\n\n#### 503 Service Unavailable\n\n**Solutions:**\n1. Check MaintainX status page\n2. Wait and retry\n3. Implement circuit breaker pattern\n\n```typescript\nclass CircuitBreaker {\n  private failures = 0;\n  private lastFailure?: Date;\n  private readonly threshold = 5;\n  private readonly resetTimeout = 60000; \u002F\u002F 1 minute\n\n  async execute\u003CT>(operation: () => Promise\u003CT>): Promise\u003CT> {\n    if (this.isOpen()) {\n      throw new Error('Circuit breaker is open - service unavailable');\n    }\n\n    try {\n      const result = await operation();\n      this.reset();\n      return result;\n    } catch (error) {\n      this.recordFailure();\n      throw error;\n    }\n  }\n\n  private isOpen(): boolean {\n    if (this.failures \u003C this.threshold) return false;\n    if (!this.lastFailure) return false;\n\n    const elapsed = Date.now() - this.lastFailure.getTime();\n    return elapsed \u003C this.resetTimeout;\n  }\n\n  private recordFailure() {\n    this.failures++;\n    this.lastFailure = new Date();\n  }\n\n  private reset() {\n    this.failures = 0;\n    this.lastFailure = undefined;\n  }\n}\n```\n\n## Debugging Checklist\n\n```typescript\n\u002F\u002F Debug helper function\nasync function debugApiCall(client, operation, description) {\n  console.log(`\\n=== ${description} ===`);\n\n  try {\n    const startTime = Date.now();\n    const result = await operation();\n    const duration = Date.now() - startTime;\n\n    console.log(`SUCCESS (${duration}ms)`);\n    console.log('Response:', JSON.stringify(result, null, 2).slice(0, 500));\n    return result;\n  } catch (error) {\n    console.log('FAILED');\n    console.log('Status:', error.response?.status);\n    console.log('Error:', error.response?.data || error.message);\n    console.log('Headers:', error.response?.headers);\n    throw error;\n  }\n}\n\n\u002F\u002F Usage\nawait debugApiCall(\n  client,\n  () => client.getWorkOrders({ limit: 5 }),\n  'Fetching work orders'\n);\n```\n\n## Output\n\n- Identified error cause\n- Applied appropriate fix\n- Verified resolution\n\n## Quick Reference\n\n| Status | Cause | First Action |\n|--------|-------|--------------|\n| 401 | Auth issue | Check API key format |\n| 403 | Permissions | Verify plan tier |\n| 400 | Bad request | Check required fields |\n| 404 | Not found | Verify resource ID |\n| 422 | Invalid data | Validate references |\n| 429 | Rate limit | Wait and retry |\n| 5xx | Server error | Retry with backoff |\n\n## Resources\n\n- [MaintainX API Status](https:\u002F\u002Fstatus.getmaintainx.com)\n- [MaintainX Help Center](https:\u002F\u002Fhelp.getmaintainx.com)\n- [API Documentation](https:\u002F\u002Fmaintainx.dev\u002F)\n\n## Next Steps\n\nFor comprehensive debugging, see `maintainx-debug-bundle`.\n",{"name":5,"author":50,"license":15,"version":51,"description":52,"allowed-tools":53},"Jeremy Longshore \u003Cjeremy@intentsolutions.io>","1.0.0","Debug and resolve common MaintainX API errors.\nUse when encountering API errors, authentication issues,\nor unexpected responses from the MaintainX API.\nTrigger with phrases like \"maintainx error\", \"maintainx 401\",\n\"maintainx api problem\", \"maintainx not working\", \"debug maintainx\".\n","Read, Write, Edit, Bash(curl:*), Grep","main","90b50ed0778745a80fd5bfb13b1843d45b9e82f7","tests\u002Fext_conformance\u002Fartifacts\u002Fplugins-community\u002Fplugins\u002Fsaas-packs\u002Fmaintainx-pack\u002Fskills\u002Fmaintainx-common-errors",233,"https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust","https:\u002F\u002Fgithub.com\u002FDicklesworthstone","https:\u002F\u002Fwww.jeffreyemanuel.com\u002F","Building in NY","2026-11-15 01:54:15",{"source":8,"skillName":5,"commands":64,"prompt":74,"zipAvailable":75},[65,68,71],{"tool":66,"command":67},"npx","npx skills add Dicklesworthstone\u002Fpi_agent_rust --skill maintainx-common-errors",{"tool":69,"command":70},"bunx","bunx skills add Dicklesworthstone\u002Fpi_agent_rust --skill maintainx-common-errors",{"tool":72,"command":73},"pnpm","pnpm dlx skills add Dicklesworthstone\u002Fpi_agent_rust --skill maintainx-common-errors","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Fplugins-community\u002Fplugins\u002Fsaas-packs\u002Fmaintainx-pack\u002Fskills\u002Fmaintainx-common-errors\u002FSKILL.md",true,[],[78,111,146,169,195,222],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":82,"licenseFileUrl":83,"sourceHtmlUrl":84,"categories":85,"keywords":91,"publishedAt":110},"01M6FCR7G5A005P364Z6ZWCJDP","theme-factory","Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with colors\u002Ffonts that you can apply to any artifact that has been creating, or can generate a new theme on-the-fly.","Apache-2.0","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fcreative-design\u002Ftheme-factory\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fcreative-design\u002Ftheme-factory\u002FSKILL.md",[86],{"categoryNo":87,"categoryName":88,"taxonomyType":89,"taxonomyTypeDesc":90},"01JBSEEDCAT000000000000015","视觉设计","SCENARIO","使用场景",[92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,30,108,109],"theme factory","factory","theme","docs","toolkit","generate","artifacts","SET","fly","slides","landing","html","styling","artifact","pages","themes","you","fonts","2026-11-11 15:11:14",{"skillNo":112,"name":113,"nameZh":6,"description":114,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":82,"licenseFileUrl":115,"sourceHtmlUrl":116,"categories":117,"keywords":121,"publishedAt":45},"01M6FEGPPK0ZTKCCM0R3E3KS33","web-artifacts-builder","Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn\u002Fui). Use for complex artifacts requiring state management, routing, or shadcn\u002Fui components - not for simple single-file HTML\u002FJSX artifacts.","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Futilities\u002Fweb-artifacts-builder\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Futilities\u002Fweb-artifacts-builder\u002FSKILL.md",[118],{"categoryNo":119,"categoryName":120,"taxonomyType":89,"taxonomyTypeDesc":90},"01JBSEEDCAT000000000000009","前端开发",[122,123,98,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,35,103,139,140,141,142,143,144,145],"web artifacts builder","web","artifacts builder","builder","frontend","css","components","react","component","routing","state management","state","shadcn","file","ui","Tools","Tailwind","single-file","simple","ui components","multi","for","jsx","suite",{"skillNo":147,"name":148,"nameZh":6,"description":149,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":82,"licenseFileUrl":150,"sourceHtmlUrl":151,"categories":152,"keywords":157,"publishedAt":45},"01M6FEE9VTK1W4GY21AKREJXRG","webapp-testing","Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fsecurity\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fsecurity\u002Fwebapp-testing\u002FSKILL.md",[153,156],{"categoryNo":154,"categoryName":155,"taxonomyType":89,"taxonomyTypeDesc":90},"01JBSEEDCAT000000000000008","测试与质量",{"categoryNo":119,"categoryName":120,"taxonomyType":89,"taxonomyTypeDesc":90},[158,159,160,126,161,162,123,163,96,164,136,165,166,167,168,30,143],"testing","webapp testing","webapp","screenshots","playwright","debugging","browser","logs","applications","behavior","local",{"skillNo":170,"name":171,"nameZh":6,"description":172,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":173,"sourceHtmlUrl":174,"categories":175,"keywords":176,"publishedAt":45},"01M6FE20F7ZTQBFWKF4MPJ2SBX","neuropixels-analysis","Neuropixels neural recording analysis. Load SpikeGLX\u002FOpenEphys data, preprocess, motion correction, Kilosort4 spike sorting, quality metrics, Allen\u002FIBL curation, AI-assisted visual analysis, for Neuropixels 1.0\u002F2.0 extracellular electrophysiology. Use when working with neural recordings, spike sorting, extracellular electrophysiology, or when the user mentions Neuropixels, SpikeGLX, Open Ephys, Kilosort, quality metrics, or unit curation.","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fscientific\u002Fneuropixels-analysis\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fscientific\u002Fneuropixels-analysis\u002FSKILL.md",[],[177,178,179,180,181,182,183,184,35,185,186,187,188,189,190,191,30,192,193,194,143,28],"analysis","neuropixels analysis","spike","metrics","data","open","quality","user","recordings","Neural","motion","visual","quality metrics","unit","sorting","curation","recording","load",{"skillNo":196,"name":197,"nameZh":6,"description":198,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":82,"licenseFileUrl":199,"sourceHtmlUrl":200,"categories":201,"keywords":205,"publishedAt":45},"01M6FDP0PDK6F1GGX395C7625Z","skill-creator","Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Claude's capabilities with specialized knowledge, workflows, or tool integrations.","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fproductivity\u002Fskill-creator\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fproductivity\u002Fskill-creator\u002FSKILL.md",[202],{"categoryNo":203,"categoryName":204,"taxonomyType":89,"taxonomyTypeDesc":90},"01JBSEEDCAT000000000000023","Skill与智能体开发",[206,207,208,209,210,211,212,213,214,215,216,217,218,219,30,143,220,28,221],"skill creator","creator","workflows","create","update","capabilities","knowledge","tool","integrations","specialized","guide","new skill","existing skill","users","Existing","new",{"skillNo":223,"name":224,"nameZh":6,"description":225,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":226,"sourceHtmlUrl":227,"categories":228,"keywords":230,"publishedAt":45},"01M6FDM8Y7VK7NYG9SM7QPA3PW","notebooklm","Use this skill to query your Google NotebookLM notebooks directly from Claude Code for source-grounded, citation-backed answers from Gemini. Browser automation, library management, persistent auth. Drastically reduced hallucinations through document-only responses.","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fproductivity\u002Fnotebooklm\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fproductivity\u002Fnotebooklm\u002FSKILL.md",[229],{"categoryNo":203,"categoryName":204,"taxonomyType":89,"taxonomyTypeDesc":90},[224,231,232,233,234,235,236,164,237,238,35,239,240,241,242,143,243],"google","browser automation","gemini","automation","auth","code","library","management","only","document","query","Citation","source"]