[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M76PST7STZ1SQGX5FPWP07AV":3,"skill-same:01M76PST7STZ1SQGX5FPWP07AV":49},{"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":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":29,"commitSha":30,"skillDirectory":5,"forksCount":14,"repositoryHtmlUrl":31,"repositoryHomepageUrl":6,"ownerHtmlUrl":32,"ownerBlogUrl":33,"ownerDescription":6,"updatedAt":34,"install":35,"resources":48},"01M76PST7STZ1SQGX5FPWP07AV","twinmind-debug-bundle",null,"Collect comprehensive diagnostic information for TwinMind issues.\nUse when preparing support requests, investigating complex problems,\nor gathering evidence for bug reports.\nTrigger with phrases like \"twinmind debug\", \"twinmind diagnostics\",\n\"collect twinmind info\", \"twinmind support bundle\".","SamuelChien\u002Fmega-skills-collection","SamuelChien","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F4652114?v=4","01M74KK34WVHA0P5ZYSJRDDFMG","Samuel Chien","01M74KK35FQN1N9VZ9EPTH3P2S",0,"MIT","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Ftwinmind-debug-bundle\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: twinmind-debug-bundle\ndescription: |\n  Collect comprehensive diagnostic information for TwinMind issues.\n  Use when preparing support requests, investigating complex problems,\n  or gathering evidence for bug reports.\n  Trigger with phrases like \"twinmind debug\", \"twinmind diagnostics\",\n  \"collect twinmind info\", \"twinmind support bundle\".\nallowed-tools: Read, Write, Bash(curl:*), Bash(npm:*), Grep\nversion: 1.0.0\nlicense: MIT\nauthor: Jeremy Longshore \u003Cjeremy@intentsolutions.io>\ncompatible-with: claude-code, codex, openclaw\n---\n# TwinMind Debug Bundle\n\n## Overview\nCollect comprehensive diagnostic data to troubleshoot TwinMind issues.\n\n## Prerequisites\n- TwinMind extension or API configured\n- Access to browser developer tools\n- Command-line access (for API debugging)\n\n## Instructions\n\n### Step 1: Create Debug Bundle Script\n\n```typescript\n\u002F\u002F scripts\u002Ftwinmind-debug-bundle.ts\nimport * as fs from 'fs';\nimport * as os from 'os';\nimport * as path from 'path';\n\ninterface DebugBundle {\n  timestamp: string;\n  environment: EnvironmentInfo;\n  apiStatus: ApiStatus;\n  recentErrors: ErrorEntry[];\n  configuration: ConfigSnapshot;\n  networkTests: NetworkTest[];\n}\n\ninterface EnvironmentInfo {\n  nodeVersion: string;\n  platform: string;\n  arch: string;\n  osRelease: string;\n  timezone: string;\n  memory: {\n    total: number;\n    free: number;\n    used: number;\n  };\n}\n\ninterface ApiStatus {\n  healthy: boolean;\n  latencyMs: number;\n  endpoint: string;\n  responseHeaders?: Record\u003Cstring, string>;\n}\n\ninterface ErrorEntry {\n  timestamp: string;\n  type: string;\n  message: string;\n  stack?: string;\n  context?: Record\u003Cstring, any>;\n}\n\ninterface ConfigSnapshot {\n  apiKeyPresent: boolean;\n  apiKeyPrefix: string;\n  baseUrl: string;\n  timeout: number;\n  environment: string;\n}\n\ninterface NetworkTest {\n  endpoint: string;\n  reachable: boolean;\n  latencyMs?: number;\n  error?: string;\n}\n\nexport async function generateDebugBundle(): Promise\u003CDebugBundle> {\n  const bundle: DebugBundle = {\n    timestamp: new Date().toISOString(),\n    environment: getEnvironmentInfo(),\n    apiStatus: await checkApiStatus(),\n    recentErrors: collectRecentErrors(),\n    configuration: getConfigSnapshot(),\n    networkTests: await runNetworkTests(),\n  };\n\n  return bundle;\n}\n\nfunction getEnvironmentInfo(): EnvironmentInfo {\n  return {\n    nodeVersion: process.version,\n    platform: os.platform(),\n    arch: os.arch(),\n    osRelease: os.release(),\n    timezone: Intl.DateTimeFormat().resolvedOptions().timeZone,\n    memory: {\n      total: os.totalmem(),\n      free: os.freemem(),\n      used: os.totalmem() - os.freemem(),\n    },\n  };\n}\n\nasync function checkApiStatus(): Promise\u003CApiStatus> {\n  const endpoint = process.env.TWINMIND_API_URL || 'https:\u002F\u002Fapi.twinmind.com\u002Fv1';\n  const start = Date.now();\n\n  try {\n    const response = await fetch(`${endpoint}\u002Fhealth`, {\n      headers: {\n        'Authorization': `Bearer ${process.env.TWINMIND_API_KEY}`,\n      },\n    });\n\n    return {\n      healthy: response.ok,\n      latencyMs: Date.now() - start,\n      endpoint,\n      responseHeaders: Object.fromEntries(response.headers.entries()),\n    };\n  } catch (error: any) {\n    return {\n      healthy: false,\n      latencyMs: Date.now() - start,\n      endpoint,\n    };\n  }\n}\n\nfunction collectRecentErrors(): ErrorEntry[] {\n  \u002F\u002F In a real implementation, this would read from error logs\n  \u002F\u002F For now, return empty array\n  return [];\n}\n\nfunction getConfigSnapshot(): ConfigSnapshot {\n  const apiKey = process.env.TWINMIND_API_KEY || '';\n\n  return {\n    apiKeyPresent: apiKey.length > 0,\n    apiKeyPrefix: apiKey.substring(0, 8) + '...',\n    baseUrl: process.env.TWINMIND_API_URL || 'https:\u002F\u002Fapi.twinmind.com\u002Fv1',\n    timeout: parseInt(process.env.TWINMIND_TIMEOUT || '30000'),  # 30000: 30 seconds in ms\n    environment: process.env.NODE_ENV || 'development',\n  };\n}\n\nasync function runNetworkTests(): Promise\u003CNetworkTest[]> {\n  const endpoints = [\n    'https:\u002F\u002Fapi.twinmind.com',\n    'https:\u002F\u002Fstatus.twinmind.com',\n    'https:\u002F\u002Ftwinmind.com',\n  ];\n\n  const tests: NetworkTest[] = [];\n\n  for (const endpoint of endpoints) {\n    const start = Date.now();\n    try {\n      const response = await fetch(endpoint, { method: 'HEAD' });\n      tests.push({\n        endpoint,\n        reachable: response.ok,\n        latencyMs: Date.now() - start,\n      });\n    } catch (error: any) {\n      tests.push({\n        endpoint,\n        reachable: false,\n        error: error.message,\n      });\n    }\n  }\n\n  return tests;\n}\n\n\u002F\u002F Save bundle to file\nexport async function saveDebugBundle(outputPath?: string): Promise\u003Cstring> {\n  const bundle = await generateDebugBundle();\n\n  const filename = outputPath || path.join(\n    os.tmpdir(),\n    `twinmind-debug-${Date.now()}.json`\n  );\n\n  fs.writeFileSync(filename, JSON.stringify(bundle, null, 2));\n\n  console.log(`Debug bundle saved to: ${filename}`);\n  return filename;\n}\n```\n\n### Step 2: Run Debug Bundle Collection\n\n```bash\nset -euo pipefail\n# Using the script\nnpx ts-node scripts\u002Ftwinmind-debug-bundle.ts\n\n# Or quick CLI commands:\n\n# Check API health\ncurl -w \"\\nLatency: %{time_total}s\\n\" \\\n  -H \"Authorization: Bearer $TWINMIND_API_KEY\" \\\n  https:\u002F\u002Fapi.twinmind.com\u002Fv1\u002Fhealth\n\n# Check account status\ncurl -H \"Authorization: Bearer $TWINMIND_API_KEY\" \\\n  https:\u002F\u002Fapi.twinmind.com\u002Fv1\u002Fme | jq\n\n# Check rate limit status\ncurl -I -H \"Authorization: Bearer $TWINMIND_API_KEY\" \\\n  https:\u002F\u002Fapi.twinmind.com\u002Fv1\u002Fhealth 2>\u002Fdev\u002Fnull | grep -i ratelimit\n\n# Test transcription endpoint\ncurl -X POST \\\n  -H \"Authorization: Bearer $TWINMIND_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"audio_url\":\"https:\u002F\u002Fexample.com\u002Ftest.mp3\"}' \\\n  https:\u002F\u002Fapi.twinmind.com\u002Fv1\u002Ftranscribe\n```\n\n### Step 3: Browser Extension Debugging\n\n```javascript\n\u002F\u002F Open Chrome DevTools (F12) on any TwinMind page\n\u002F\u002F Console commands for debugging:\n\n\u002F\u002F Check extension version\nchrome.runtime.getManifest().version\n\n\u002F\u002F Check stored data\nchrome.storage.local.get(null, console.log)\n\n\u002F\u002F Check permissions\nnavigator.permissions.query({name: 'microphone'}).then(console.log)\n\n\u002F\u002F Check audio devices\nnavigator.mediaDevices.enumerateDevices().then(devices => {\n  console.log('Audio devices:', devices.filter(d => d.kind === 'audioinput'))\n})\n\n\u002F\u002F Check extension errors\n\u002F\u002F Go to: chrome:\u002F\u002Fextensions > TwinMind > Errors\n```\n\n### Step 4: Collect Network HAR File\n\n```\n1. Open Chrome DevTools (F12)\n2. Go to Network tab\n3. Check \"Preserve log\"\n4. Reproduce the issue\n5. Right-click > Save all as HAR with content\n```\n\n### Step 5: Generate Full Debug Report\n\n```typescript\n\u002F\u002F scripts\u002Ffull-debug-report.ts\nimport { generateDebugBundle } from '.\u002Ftwinmind-debug-bundle';\n\nasync function generateFullReport() {\n  const bundle = await generateDebugBundle();\n\n  const report = `\n# TwinMind Debug Report\nGenerated: ${bundle.timestamp}\n\n## Environment\n- Node: ${bundle.environment.nodeVersion}\n- Platform: ${bundle.environment.platform} (${bundle.environment.arch})\n- OS: ${bundle.environment.osRelease}\n- Timezone: ${bundle.environment.timezone}\n- Memory: ${Math.round(bundle.environment.memory.used \u002F 1024 \u002F 1024)}MB \u002F ${Math.round(bundle.environment.memory.total \u002F 1024 \u002F 1024)}MB  # 1024: 1 KB\n\n## API Status\n- Healthy: ${bundle.apiStatus.healthy ? 'Yes' : 'No'}\n- Latency: ${bundle.apiStatus.latencyMs}ms\n- Endpoint: ${bundle.apiStatus.endpoint}\n\n## Configuration\n- API Key Present: ${bundle.configuration.apiKeyPresent}\n- API Key Prefix: ${bundle.configuration.apiKeyPrefix}\n- Base URL: ${bundle.configuration.baseUrl}\n- Timeout: ${bundle.configuration.timeout}ms\n- Environment: ${bundle.configuration.environment}\n\n## Network Tests\n${bundle.networkTests.map(t =>\n  `- ${t.endpoint}: ${t.reachable ? `OK (${t.latencyMs}ms)` : `FAILED - ${t.error}`}`\n).join('\\n')}\n\n## Recent Errors\n${bundle.recentErrors.length === 0 ? 'No recent errors' :\n  bundle.recentErrors.map(e =>\n    `- [${e.timestamp}] ${e.type}: ${e.message}`\n  ).join('\\n')\n}\n\n## Troubleshooting Steps Taken\n[ ] Verified API key is valid\n[ ] Checked microphone permissions\n[ ] Tested network connectivity\n[ ] Cleared browser cache\u002Fdata\n[ ] Disabled conflicting extensions\n[ ] Reproduced in incognito mode\n\n## Issue Description\n[Describe the issue here]\n\n## Steps to Reproduce\n1. [Step 1]\n2. [Step 2]\n3. [Step 3]\n\n## Expected Behavior\n[What should happen]\n\n## Actual Behavior\n[What actually happens]\n`;\n\n  console.log(report);\n  return report;\n}\n\ngenerateFullReport();\n```\n\n## Output\n- JSON debug bundle file\n- Environment information\n- API connectivity status\n- Network test results\n- Configuration snapshot (no secrets)\n- Debug report template\n\nExample output:\n```json\n{\n  \"timestamp\": \"2025-01-15T10:30:00Z\",  # 2025 year\n  \"environment\": {\n    \"nodeVersion\": \"v20.10.0\",\n    \"platform\": \"darwin\",\n    \"arch\": \"arm64\"\n  },\n  \"apiStatus\": {\n    \"healthy\": true,\n    \"latencyMs\": 145\n  },\n  \"networkTests\": [\n    {\"endpoint\": \"https:\u002F\u002Fapi.twinmind.com\", \"reachable\": true, \"latencyMs\": 120}\n  ]\n}\n```\n\n## Error Handling\n\n| Issue | Cause | Solution |\n|-------|-------|----------|\n| API unreachable | Network\u002Ffirewall | Check VPN\u002Fproxy settings |\n| Auth failed | Invalid key | Regenerate API key |\n| Timeout | Slow network | Increase timeout value |\n| Missing env vars | Not configured | Check .env file |\n\n## Information to Include in Support Request\n\n1. **Debug bundle JSON** - Generated by this script\n2. **HAR file** - Network requests during failure\n3. **Console logs** - Browser or terminal errors\n4. **Request ID** - From response headers (X-Request-Id)\n5. **Timestamps** - When the issue occurred\n6. **Steps to reproduce** - Detailed sequence\n\n## Security Notes\n\nThe debug bundle intentionally excludes:\n- Full API keys (only prefix shown)\n- Audio content\n- Transcript content\n- Personal information\n- OAuth tokens\n\nAlways review the bundle before sharing with support.\n\n## Resources\n- [TwinMind Support](https:\u002F\u002Ftwinmind.com\u002Fsupport)\n- [TwinMind Status](https:\u002F\u002Fstatus.twinmind.com)\n- [Community Forum](https:\u002F\u002Fcommunity.twinmind.com)\n\n## Next Steps\nFor rate limiting strategies, see `twinmind-rate-limits`.\n\n## Examples\n\n**Basic usage**: Apply twinmind debug bundle to a standard project setup with default configuration options.\n\n**Advanced scenario**: Customize twinmind debug bundle for production environments with multiple constraints and team-specific requirements.","# TwinMind Debug Bundle\n\n## Overview\nCollect comprehensive diagnostic data to troubleshoot TwinMind issues.\n\n## Prerequisites\n- TwinMind extension or API configured\n- Access to browser developer tools\n- Command-line access (for API debugging)\n\n## Instructions\n\n### Step 1: Create Debug Bundle Script\n\n```typescript\n\u002F\u002F scripts\u002Ftwinmind-debug-bundle.ts\nimport * as fs from 'fs';\nimport * as os from 'os';\nimport * as path from 'path';\n\ninterface DebugBundle {\n  timestamp: string;\n  environment: EnvironmentInfo;\n  apiStatus: ApiStatus;\n  recentErrors: ErrorEntry[];\n  configuration: ConfigSnapshot;\n  networkTests: NetworkTest[];\n}\n\ninterface EnvironmentInfo {\n  nodeVersion: string;\n  platform: string;\n  arch: string;\n  osRelease: string;\n  timezone: string;\n  memory: {\n    total: number;\n    free: number;\n    used: number;\n  };\n}\n\ninterface ApiStatus {\n  healthy: boolean;\n  latencyMs: number;\n  endpoint: string;\n  responseHeaders?: Record\u003Cstring, string>;\n}\n\ninterface ErrorEntry {\n  timestamp: string;\n  type: string;\n  message: string;\n  stack?: string;\n  context?: Record\u003Cstring, any>;\n}\n\ninterface ConfigSnapshot {\n  apiKeyPresent: boolean;\n  apiKeyPrefix: string;\n  baseUrl: string;\n  timeout: number;\n  environment: string;\n}\n\ninterface NetworkTest {\n  endpoint: string;\n  reachable: boolean;\n  latencyMs?: number;\n  error?: string;\n}\n\nexport async function generateDebugBundle(): Promise\u003CDebugBundle> {\n  const bundle: DebugBundle = {\n    timestamp: new Date().toISOString(),\n    environment: getEnvironmentInfo(),\n    apiStatus: await checkApiStatus(),\n    recentErrors: collectRecentErrors(),\n    configuration: getConfigSnapshot(),\n    networkTests: await runNetworkTests(),\n  };\n\n  return bundle;\n}\n\nfunction getEnvironmentInfo(): EnvironmentInfo {\n  return {\n    nodeVersion: process.version,\n    platform: os.platform(),\n    arch: os.arch(),\n    osRelease: os.release(),\n    timezone: Intl.DateTimeFormat().resolvedOptions().timeZone,\n    memory: {\n      total: os.totalmem(),\n      free: os.freemem(),\n      used: os.totalmem() - os.freemem(),\n    },\n  };\n}\n\nasync function checkApiStatus(): Promise\u003CApiStatus> {\n  const endpoint = process.env.TWINMIND_API_URL || 'https:\u002F\u002Fapi.twinmind.com\u002Fv1';\n  const start = Date.now();\n\n  try {\n    const response = await fetch(`${endpoint}\u002Fhealth`, {\n      headers: {\n        'Authorization': `Bearer ${process.env.TWINMIND_API_KEY}`,\n      },\n    });\n\n    return {\n      healthy: response.ok,\n      latencyMs: Date.now() - start,\n      endpoint,\n      responseHeaders: Object.fromEntries(response.headers.entries()),\n    };\n  } catch (error: any) {\n    return {\n      healthy: false,\n      latencyMs: Date.now() - start,\n      endpoint,\n    };\n  }\n}\n\nfunction collectRecentErrors(): ErrorEntry[] {\n  \u002F\u002F In a real implementation, this would read from error logs\n  \u002F\u002F For now, return empty array\n  return [];\n}\n\nfunction getConfigSnapshot(): ConfigSnapshot {\n  const apiKey = process.env.TWINMIND_API_KEY || '';\n\n  return {\n    apiKeyPresent: apiKey.length > 0,\n    apiKeyPrefix: apiKey.substring(0, 8) + '...',\n    baseUrl: process.env.TWINMIND_API_URL || 'https:\u002F\u002Fapi.twinmind.com\u002Fv1',\n    timeout: parseInt(process.env.TWINMIND_TIMEOUT || '30000'),  # 30000: 30 seconds in ms\n    environment: process.env.NODE_ENV || 'development',\n  };\n}\n\nasync function runNetworkTests(): Promise\u003CNetworkTest[]> {\n  const endpoints = [\n    'https:\u002F\u002Fapi.twinmind.com',\n    'https:\u002F\u002Fstatus.twinmind.com',\n    'https:\u002F\u002Ftwinmind.com',\n  ];\n\n  const tests: NetworkTest[] = [];\n\n  for (const endpoint of endpoints) {\n    const start = Date.now();\n    try {\n      const response = await fetch(endpoint, { method: 'HEAD' });\n      tests.push({\n        endpoint,\n        reachable: response.ok,\n        latencyMs: Date.now() - start,\n      });\n    } catch (error: any) {\n      tests.push({\n        endpoint,\n        reachable: false,\n        error: error.message,\n      });\n    }\n  }\n\n  return tests;\n}\n\n\u002F\u002F Save bundle to file\nexport async function saveDebugBundle(outputPath?: string): Promise\u003Cstring> {\n  const bundle = await generateDebugBundle();\n\n  const filename = outputPath || path.join(\n    os.tmpdir(),\n    `twinmind-debug-${Date.now()}.json`\n  );\n\n  fs.writeFileSync(filename, JSON.stringify(bundle, null, 2));\n\n  console.log(`Debug bundle saved to: ${filename}`);\n  return filename;\n}\n```\n\n### Step 2: Run Debug Bundle Collection\n\n```bash\nset -euo pipefail\n# Using the script\nnpx ts-node scripts\u002Ftwinmind-debug-bundle.ts\n\n# Or quick CLI commands:\n\n# Check API health\ncurl -w \"\\nLatency: %{time_total}s\\n\" \\\n  -H \"Authorization: Bearer $TWINMIND_API_KEY\" \\\n  https:\u002F\u002Fapi.twinmind.com\u002Fv1\u002Fhealth\n\n# Check account status\ncurl -H \"Authorization: Bearer $TWINMIND_API_KEY\" \\\n  https:\u002F\u002Fapi.twinmind.com\u002Fv1\u002Fme | jq\n\n# Check rate limit status\ncurl -I -H \"Authorization: Bearer $TWINMIND_API_KEY\" \\\n  https:\u002F\u002Fapi.twinmind.com\u002Fv1\u002Fhealth 2>\u002Fdev\u002Fnull | grep -i ratelimit\n\n# Test transcription endpoint\ncurl -X POST \\\n  -H \"Authorization: Bearer $TWINMIND_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"audio_url\":\"https:\u002F\u002Fexample.com\u002Ftest.mp3\"}' \\\n  https:\u002F\u002Fapi.twinmind.com\u002Fv1\u002Ftranscribe\n```\n\n### Step 3: Browser Extension Debugging\n\n```javascript\n\u002F\u002F Open Chrome DevTools (F12) on any TwinMind page\n\u002F\u002F Console commands for debugging:\n\n\u002F\u002F Check extension version\nchrome.runtime.getManifest().version\n\n\u002F\u002F Check stored data\nchrome.storage.local.get(null, console.log)\n\n\u002F\u002F Check permissions\nnavigator.permissions.query({name: 'microphone'}).then(console.log)\n\n\u002F\u002F Check audio devices\nnavigator.mediaDevices.enumerateDevices().then(devices => {\n  console.log('Audio devices:', devices.filter(d => d.kind === 'audioinput'))\n})\n\n\u002F\u002F Check extension errors\n\u002F\u002F Go to: chrome:\u002F\u002Fextensions > TwinMind > Errors\n```\n\n### Step 4: Collect Network HAR File\n\n```\n1. Open Chrome DevTools (F12)\n2. Go to Network tab\n3. Check \"Preserve log\"\n4. Reproduce the issue\n5. Right-click > Save all as HAR with content\n```\n\n### Step 5: Generate Full Debug Report\n\n```typescript\n\u002F\u002F scripts\u002Ffull-debug-report.ts\nimport { generateDebugBundle } from '.\u002Ftwinmind-debug-bundle';\n\nasync function generateFullReport() {\n  const bundle = await generateDebugBundle();\n\n  const report = `\n# TwinMind Debug Report\nGenerated: ${bundle.timestamp}\n\n## Environment\n- Node: ${bundle.environment.nodeVersion}\n- Platform: ${bundle.environment.platform} (${bundle.environment.arch})\n- OS: ${bundle.environment.osRelease}\n- Timezone: ${bundle.environment.timezone}\n- Memory: ${Math.round(bundle.environment.memory.used \u002F 1024 \u002F 1024)}MB \u002F ${Math.round(bundle.environment.memory.total \u002F 1024 \u002F 1024)}MB  # 1024: 1 KB\n\n## API Status\n- Healthy: ${bundle.apiStatus.healthy ? 'Yes' : 'No'}\n- Latency: ${bundle.apiStatus.latencyMs}ms\n- Endpoint: ${bundle.apiStatus.endpoint}\n\n## Configuration\n- API Key Present: ${bundle.configuration.apiKeyPresent}\n- API Key Prefix: ${bundle.configuration.apiKeyPrefix}\n- Base URL: ${bundle.configuration.baseUrl}\n- Timeout: ${bundle.configuration.timeout}ms\n- Environment: ${bundle.configuration.environment}\n\n## Network Tests\n${bundle.networkTests.map(t =>\n  `- ${t.endpoint}: ${t.reachable ? `OK (${t.latencyMs}ms)` : `FAILED - ${t.error}`}`\n).join('\\n')}\n\n## Recent Errors\n${bundle.recentErrors.length === 0 ? 'No recent errors' :\n  bundle.recentErrors.map(e =>\n    `- [${e.timestamp}] ${e.type}: ${e.message}`\n  ).join('\\n')\n}\n\n## Troubleshooting Steps Taken\n[ ] Verified API key is valid\n[ ] Checked microphone permissions\n[ ] Tested network connectivity\n[ ] Cleared browser cache\u002Fdata\n[ ] Disabled conflicting extensions\n[ ] Reproduced in incognito mode\n\n## Issue Description\n[Describe the issue here]\n\n## Steps to Reproduce\n1. [Step 1]\n2. [Step 2]\n3. [Step 3]\n\n## Expected Behavior\n[What should happen]\n\n## Actual Behavior\n[What actually happens]\n`;\n\n  console.log(report);\n  return report;\n}\n\ngenerateFullReport();\n```\n\n## Output\n- JSON debug bundle file\n- Environment information\n- API connectivity status\n- Network test results\n- Configuration snapshot (no secrets)\n- Debug report template\n\nExample output:\n```json\n{\n  \"timestamp\": \"2025-01-15T10:30:00Z\",  # 2025 year\n  \"environment\": {\n    \"nodeVersion\": \"v20.10.0\",\n    \"platform\": \"darwin\",\n    \"arch\": \"arm64\"\n  },\n  \"apiStatus\": {\n    \"healthy\": true,\n    \"latencyMs\": 145\n  },\n  \"networkTests\": [\n    {\"endpoint\": \"https:\u002F\u002Fapi.twinmind.com\", \"reachable\": true, \"latencyMs\": 120}\n  ]\n}\n```\n\n## Error Handling\n\n| Issue | Cause | Solution |\n|-------|-------|----------|\n| API unreachable | Network\u002Ffirewall | Check VPN\u002Fproxy settings |\n| Auth failed | Invalid key | Regenerate API key |\n| Timeout | Slow network | Increase timeout value |\n| Missing env vars | Not configured | Check .env file |\n\n## Information to Include in Support Request\n\n1. **Debug bundle JSON** - Generated by this script\n2. **HAR file** - Network requests during failure\n3. **Console logs** - Browser or terminal errors\n4. **Request ID** - From response headers (X-Request-Id)\n5. **Timestamps** - When the issue occurred\n6. **Steps to reproduce** - Detailed sequence\n\n## Security Notes\n\nThe debug bundle intentionally excludes:\n- Full API keys (only prefix shown)\n- Audio content\n- Transcript content\n- Personal information\n- OAuth tokens\n\nAlways review the bundle before sharing with support.\n\n## Resources\n- [TwinMind Support](https:\u002F\u002Ftwinmind.com\u002Fsupport)\n- [TwinMind Status](https:\u002F\u002Fstatus.twinmind.com)\n- [Community Forum](https:\u002F\u002Fcommunity.twinmind.com)\n\n## Next Steps\nFor rate limiting strategies, see `twinmind-rate-limits`.\n\n## Examples\n\n**Basic usage**: Apply twinmind debug bundle to a standard project setup with default configuration options.\n\n**Advanced scenario**: Customize twinmind debug bundle for production environments with multiple constraints and team-specific requirements.",{"name":5,"author":24,"license":15,"version":25,"description":26,"allowed-tools":27,"compatible-with":28},"Jeremy Longshore \u003Cjeremy@intentsolutions.io>","1.0.0","Collect comprehensive diagnostic information for TwinMind issues.\nUse when preparing support requests, investigating complex problems,\nor gathering evidence for bug reports.\nTrigger with phrases like \"twinmind debug\", \"twinmind diagnostics\",\n\"collect twinmind info\", \"twinmind support bundle\".\n","Read, Write, Bash(curl:*), Bash(npm:*), Grep","claude-code, codex, openclaw","main","c2b1fdccc779e99ac814e55fb69ca8d71215dd0f","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection","https:\u002F\u002Fgithub.com\u002FSamuelChien","http:\u002F\u002Fsamuelchien.com\u002F","2026-05-26 08:27:14",{"source":8,"skillName":5,"commands":36,"prompt":46,"zipAvailable":47},[37,40,43],{"tool":38,"command":39},"npx","npx skills add SamuelChien\u002Fmega-skills-collection --skill twinmind-debug-bundle",{"tool":41,"command":42},"bunx","bunx skills add SamuelChien\u002Fmega-skills-collection --skill twinmind-debug-bundle",{"tool":44,"command":45},"pnpm","pnpm dlx skills add SamuelChien\u002Fmega-skills-collection --skill twinmind-debug-bundle","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Ftwinmind-debug-bundle\u002FSKILL.md",true,[],[50,57,64,71,78,86],{"skillNo":51,"name":52,"nameZh":6,"description":53,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":54,"categories":55,"keywords":56,"publishedAt":19},"01M76R4WZQZAXGGXMQCA0FZ716","zustand-store-ts","Create Zustand stores with TypeScript, subscribeWithSelector middleware, and proper state\u002Faction separation. Use when building React state management, creating global stores, or implementing reactive state patterns with Zustand.","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fzustand-store-ts\u002FSKILL.md",[],[],{"skillNo":58,"name":59,"nameZh":6,"description":60,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":19},"01M76R4T9KENDH7FENGZQHBW4G","zustand-store-creator","Zustand Store Creator - Auto-activating skill for Frontend Development.\nTriggers on: zustand store creator, zustand store creator\nPart of the Frontend Development skill category.","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fzustand-store-creator\u002FSKILL.md",[],[],{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":19},"01M76R3YWN84B7SANJ52X799ZE","zero-trust-config-helper","Zero Trust Config Helper - Auto-activating skill for Security Advanced.\nTriggers on: zero trust config helper, zero trust config helper\nPart of the Security Advanced skill category.","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fzero-trust-config-helper\u002FSKILL.md",[],[],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":19},"01M76R3HNSV2AEYSKHM915GJ58","zapier-integration-helper","Zapier Integration Helper - Auto-activating skill for Business Automation.\nTriggers on: zapier integration helper, zapier integration helper\nPart of the Business Automation skill category.","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fzapier-integration-helper\u002FSKILL.md",[],[],{"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":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":19},"01M76R3DJSKAT4FA7DV4BF3GCE","zai-cli","Execute z.AI CLI providing vision, search, reader, and GitHub exploration via CLI and MCP.\nUse when user needs image\u002Fvideo analysis, OCR, UI-to-code conversion, error diagnosis,\nreal-time web search, web page to markdown extraction, or GitHub code exploration.\nTrigger with phrases like \"analyze this image\", \"search the web for\", \"read this page\",\n\"explore this repo\", or \"use zai\". Requires Z_AI_API_KEY.","Apache-2.0","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fzai-cli\u002FSKILL.md",[],[],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":19},"01M76R2KAM699XE9AJVAWE4H2E","yt-research","Research competitor YouTube channels, niches, and trending topics for your content strategy.\nUse this skill whenever the user says \"research channels\", \"analyze competitors\", \"find trending topics\",\n\"niche analysis\", \"competitive research\", \"what are other creators doing\", \"scrape YouTube channels\",\nor wants to understand the competitive landscape for a specific tool or topic area. Use when working with yt research. Trigger with 'yt', 'research'.","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fyt-research\u002FSKILL.md",[],[]]