[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M79517ZP6CEHFVQP5XJH6XS8":3,"skill-same:01M79517ZP6CEHFVQP5XJH6XS8":57},{"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":34,"commitSha":35,"skillDirectory":36,"forksCount":37,"repositoryHtmlUrl":38,"repositoryHomepageUrl":6,"ownerHtmlUrl":39,"ownerBlogUrl":40,"ownerDescription":41,"updatedAt":42,"install":43,"resources":56},"01M79517ZP6CEHFVQP5XJH6XS8","replit-advanced-troubleshooting",null,"Debug hard Replit issues: container lifecycle, Nix build failures, deployment crashes, and memory leaks.\nUse when standard troubleshooting fails, investigating intermittent failures,\nor diagnosing complex Replit platform behavior.\nTrigger with phrases like \"replit hard bug\", \"replit mystery error\",\n\"replit impossible to debug\", \"replit intermittent\", \"replit deep debug\".","jukeyman\u002Fjukeyman-skills","jukeyman","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F142960420?v=4","01M78FR4Y3DHMMCBCC0GXXNB3F","RICK JEFFERSON","01M78FR4Z8RVQRAD31Y5J7V6EB",1,"MIT","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsaas-packs--replit-pack--replit-advanced-troubleshooting\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: replit-advanced-troubleshooting\ndescription: |\n  Debug hard Replit issues: container lifecycle, Nix build failures, deployment crashes, and memory leaks.\n  Use when standard troubleshooting fails, investigating intermittent failures,\n  or diagnosing complex Replit platform behavior.\n  Trigger with phrases like \"replit hard bug\", \"replit mystery error\",\n  \"replit impossible to debug\", \"replit intermittent\", \"replit deep debug\".\nallowed-tools: Read, Grep, Bash(curl:*), Bash(node:*), Bash(python3:*)\nversion: 1.0.0\nlicense: MIT\nauthor: Jeremy Longshore \u003Cjeremy@intentsolutions.io>\ncompatible-with: claude-code, codex, openclaw\ntags: [saas, replit, debugging, advanced]\n---\n# Replit Advanced Troubleshooting\n\n## Overview\nDeep debugging techniques for complex Replit issues that resist standard troubleshooting. Covers container lifecycle problems, Nix environment failures, deployment crash loops, memory leaks in constrained containers, and isolating Replit platform vs application issues.\n\n## Prerequisites\n- Shell access in Replit Workspace\n- Understanding of Replit container lifecycle\n- Ability to read deployment logs\n- Familiarity with `.replit` and `replit.nix`\n\n## Instructions\n\n### Step 1: Systematic Issue Isolation\n```bash\n#!\u002Fbin\u002Fbash\nset -euo pipefail\n# replit-diagnose.sh — Layer-by-layer diagnosis\n\necho \"=== Replit Diagnostic ===\"\n\n# Layer 1: Platform status\necho -n \"1. Platform: \"\ncurl -s https:\u002F\u002Fstatus.replit.com\u002Fapi\u002Fv2\u002Fsummary.json | \\\n  python3 -c \"import sys,json;print(json.load(sys.stdin)['status']['description'])\" 2>\u002Fdev\u002Fnull || \\\n  echo \"UNKNOWN (check status.replit.com)\"\n\n# Layer 2: Nix environment\necho -n \"2. Nix: \"\nif [ -f replit.nix ]; then\n  echo \"configured\"\n  nix-env -qaP 2>\u002Fdev\u002Fnull | head -3 || echo \"(nix-env not in path)\"\nelse\n  echo \"NO replit.nix found\"\nfi\n\n# Layer 3: Runtime\necho -n \"3. Node: \"\nnode --version 2>\u002Fdev\u002Fnull || echo \"N\u002FA\"\necho -n \"   Python: \"\npython3 --version 2>\u002Fdev\u002Fnull || echo \"N\u002FA\"\n\n# Layer 4: Dependencies\necho \"4. Dependencies:\"\nnpm list --depth=0 2>\u002Fdev\u002Fnull | head -10 || echo \"   npm: N\u002FA\"\npip list 2>\u002Fdev\u002Fnull | head -5 || echo \"   pip: N\u002FA\"\n\n# Layer 5: Environment\necho \"5. Environment:\"\necho \"   REPL_SLUG=$REPL_SLUG\"\necho \"   REPL_OWNER=$REPL_OWNER\"\necho \"   NODE_ENV=${NODE_ENV:-unset}\"\necho \"   DATABASE_URL=${DATABASE_URL:+SET}\"\necho \"   REPLIT_DB_URL=${REPLIT_DB_URL:+SET}\"\n\n# Layer 6: Resource usage\necho \"6. Resources:\"\necho \"   Disk: $(df -h \u002F 2>\u002Fdev\u002Fnull | tail -1 | awk '{print $3 \"\u002F\" $2 \" (\" $5 \")\"}')\"\necho \"   Memory: $(free -m 2>\u002Fdev\u002Fnull | head -2 | tail -1 | awk '{print $3 \"MB \u002F \" $2 \"MB\"}' || echo 'N\u002FA')\"\necho \"   Processes: $(ps aux 2>\u002Fdev\u002Fnull | wc -l) running\"\n\n# Layer 7: Network\necho \"7. Network:\"\necho -n \"   replit.com: \"\ncurl -s -o \u002Fdev\u002Fnull -w \"%{http_code} (%{time_total}s)\\n\" https:\u002F\u002Freplit.com\necho -n \"   Database: \"\nif [ -n \"${DATABASE_URL:-}\" ]; then\n  node -e \"const{Pool}=require('pg');new Pool({connectionString:process.env.DATABASE_URL,ssl:{rejectUnauthorized:false}}).query('SELECT 1').then(()=>console.log('OK')).catch(e=>console.log('FAIL:',e.message)).finally(()=>process.exit())\" 2>\u002Fdev\u002Fnull || echo \"pg not installed\"\nelse\n  echo \"NOT CONFIGURED\"\nfi\n```\n\n### Step 2: Nix Build Failure Debugging\n```bash\n# When replit.nix changes cause build failures:\n\n# 1. Check what channel provides\nnix-env -qaP 2>\u002Fdev\u002Fnull | grep nodejs\n# Shows available Node.js package names\n\n# 2. Common naming issues:\n# pkgs.nodejs      → WRONG (ambiguous)\n# pkgs.nodejs-20_x → CORRECT\n# pkgs.python3     → WRONG (use pkgs.python311)\n# pkgs.python311   → CORRECT\n\n# 3. Verify current channel\ngrep channel .replit\n# channel = \"stable-24_05\" is current\n\n# 4. After fixing replit.nix, reload shell:\n# Exit Shell tab, re-enter it\n# Or: exec $SHELL\n\n# 5. If packages won't install, try clearing Nix cache:\n# Remove generated Nix store symlinks\nrm -rf .config\u002Fnixpkgs 2>\u002Fdev\u002Fnull\n```\n\n### Step 3: Container Crash Loop Debugging\n```markdown\nWhen deployment keeps crashing and restarting:\n\n1. Check deployment logs (Deployment Settings > Logs)\n   Look for:\n   - \"JavaScript heap out of memory\" → increase VM size or fix leak\n   - \"Cannot find module\" → dependency not installed in build step\n   - \"EACCES\" → file permission issue\n   - \"EADDRINUSE\" → port conflict\n\n2. Test locally first:\n   - Click \"Run\" in Workspace\n   - Check Console tab for errors\n   - Fix before deploying\n\n3. Isolate the crash:\n```\n\n```typescript\n\u002F\u002F Add to top of entry point — crash guard with logging\nprocess.on('uncaughtException', (err) => {\n  console.error('UNCAUGHT EXCEPTION:', err.message);\n  console.error('Stack:', err.stack);\n  \u002F\u002F Log the crash, then exit cleanly so Replit can restart\n  process.exit(1);\n});\n\nprocess.on('unhandledRejection', (reason: any) => {\n  console.error('UNHANDLED REJECTION:', reason?.message || reason);\n  console.error('Stack:', reason?.stack || 'no stack');\n});\n\n\u002F\u002F Log startup time\nconst startTime = Date.now();\nconsole.log(`Starting at ${new Date().toISOString()}`);\n\n\u002F\u002F ... your app code ...\n\napp.listen(PORT, '0.0.0.0', () => {\n  console.log(`Started in ${Date.now() - startTime}ms on port ${PORT}`);\n});\n```\n\n### Step 4: Memory Leak Detection\n```typescript\n\u002F\u002F Replit containers have fixed memory limits. Detect leaks early.\n\nconst SAMPLE_INTERVAL = 30000; \u002F\u002F 30 seconds\nconst samples: number[] = [];\n\nsetInterval(() => {\n  const heapMB = Math.round(process.memoryUsage().heapUsed \u002F 1024 \u002F 1024);\n  samples.push(heapMB);\n\n  \u002F\u002F Keep last 60 samples (30 minutes)\n  if (samples.length > 60) samples.shift();\n\n  \u002F\u002F Detect sustained growth\n  if (samples.length >= 10) {\n    const first5 = samples.slice(0, 5).reduce((a, b) => a + b) \u002F 5;\n    const last5 = samples.slice(-5).reduce((a, b) => a + b) \u002F 5;\n    const growth = last5 - first5;\n\n    if (growth > 50) { \u002F\u002F 50MB growth over observation window\n      console.warn(`MEMORY LEAK SUSPECTED: +${growth.toFixed(0)}MB over ${samples.length * 30}s`);\n      console.warn(`Current: ${heapMB}MB, Samples: ${samples.length}`);\n    }\n  }\n\n  \u002F\u002F Emergency: approaching container limit\n  if (heapMB > 450) { \u002F\u002F Assuming 512MB container\n    console.error(`CRITICAL: Heap at ${heapMB}MB — approaching container limit`);\n    \u002F\u002F Force garbage collection if available\n    global.gc?.();\n  }\n}, SAMPLE_INTERVAL);\n\n\u002F\u002F Expose via health endpoint\napp.get('\u002Fdebug\u002Fmemory', (req, res) => {\n  res.json({\n    current: process.memoryUsage(),\n    samples: samples.slice(-10),\n    trend: samples.length >= 2 ? samples[samples.length - 1] - samples[0] : 0,\n  });\n});\n```\n\n### Step 5: Deployment vs Workspace Differences\n```markdown\nCommon issues where code works in Workspace but fails in Deployment:\n\n| Behavior | Workspace (Run) | Deployment |\n|----------|-----------------|------------|\n| Auth headers | NOT available | Available (X-Replit-User-*) |\n| Database | Development DB | Production DB |\n| Secrets | All visible | Auto-synced (2025+) |\n| Filesystem | Persistent during session | Ephemeral (lost on restart) |\n| Port | Any, mapped by Replit | Must use PORT env var |\n| NODE_ENV | Usually unset | Set in .replit [env] |\n\nDebugging steps:\n1. Log process.env at startup to compare\n2. Check if deployment has all required secrets\n3. Verify build step produces correct output\n4. Test with actual deployment URL, not Webview\n```\n\n### Step 6: Intermittent Failure Investigation\n```typescript\n\u002F\u002F Track request patterns to find intermittent issues\nconst requestLog: Array\u003C{\n  timestamp: number;\n  path: string;\n  status: number;\n  duration: number;\n  error?: string;\n}> = [];\n\napp.use((req, res, next) => {\n  const start = Date.now();\n  const originalEnd = res.end;\n\n  res.end = function (...args: any[]) {\n    const entry = {\n      timestamp: Date.now(),\n      path: req.path,\n      status: res.statusCode,\n      duration: Date.now() - start,\n    };\n\n    if (res.statusCode >= 400) {\n      (entry as any).error = (res as any)._errorMessage || 'unknown';\n    }\n\n    requestLog.push(entry);\n    if (requestLog.length > 1000) requestLog.shift();\n\n    return originalEnd.apply(res, args);\n  };\n\n  next();\n});\n\n\u002F\u002F Debug endpoint — last 50 errors\napp.get('\u002Fdebug\u002Ferrors', (req, res) => {\n  const errors = requestLog\n    .filter(r => r.status >= 400)\n    .slice(-50);\n  res.json({\n    totalRequests: requestLog.length,\n    errorCount: errors.length,\n    errors,\n  });\n});\n```\n\n## Support Escalation\n```markdown\nWhen you need Replit support:\n\n1. Collect: run replit-diagnose.sh\n2. Document: steps to reproduce, expected vs actual\n3. Screenshot: deployment logs, error messages\n4. Submit: replit.com\u002Fsupport\n\nInclude:\n- Repl URL (share link)\n- Deployment URL\n- Error messages (full text)\n- When it started happening\n- What changed before the issue\n```\n\n## Error Handling\n| Issue | Cause | Solution |\n|-------|-------|----------|\n| Works locally, fails deployed | Missing build step or secret | Check build command and secrets |\n| Intermittent 503 | Autoscale cold start | Switch to Reserved VM or add keepalive |\n| Nix build infinite loop | Circular dependency | Simplify replit.nix, remove unused deps |\n| Memory keeps growing | Leak in request handler | Profile with \u002Fdebug\u002Fmemory endpoint |\n| Container won't start | Crash on import | Add crash guards, check dependency versions |\n\n## Resources\n- [Replit Support](https:\u002F\u002Freplit.com\u002Fsupport)\n- [Replit Status](https:\u002F\u002Fstatus.replit.com)\n- [Replit Community](https:\u002F\u002Fask.replit.com)\n- [Nix on Replit](https:\u002F\u002Fdocs.replit.com\u002Fprogramming-ide\u002Fnix-on-replit)\n\n## Next Steps\nFor load testing, see `replit-load-scale`.\n","# Replit Advanced Troubleshooting\n\n## Overview\nDeep debugging techniques for complex Replit issues that resist standard troubleshooting. Covers container lifecycle problems, Nix environment failures, deployment crash loops, memory leaks in constrained containers, and isolating Replit platform vs application issues.\n\n## Prerequisites\n- Shell access in Replit Workspace\n- Understanding of Replit container lifecycle\n- Ability to read deployment logs\n- Familiarity with `.replit` and `replit.nix`\n\n## Instructions\n\n### Step 1: Systematic Issue Isolation\n```bash\n#!\u002Fbin\u002Fbash\nset -euo pipefail\n# replit-diagnose.sh — Layer-by-layer diagnosis\n\necho \"=== Replit Diagnostic ===\"\n\n# Layer 1: Platform status\necho -n \"1. Platform: \"\ncurl -s https:\u002F\u002Fstatus.replit.com\u002Fapi\u002Fv2\u002Fsummary.json | \\\n  python3 -c \"import sys,json;print(json.load(sys.stdin)['status']['description'])\" 2>\u002Fdev\u002Fnull || \\\n  echo \"UNKNOWN (check status.replit.com)\"\n\n# Layer 2: Nix environment\necho -n \"2. Nix: \"\nif [ -f replit.nix ]; then\n  echo \"configured\"\n  nix-env -qaP 2>\u002Fdev\u002Fnull | head -3 || echo \"(nix-env not in path)\"\nelse\n  echo \"NO replit.nix found\"\nfi\n\n# Layer 3: Runtime\necho -n \"3. Node: \"\nnode --version 2>\u002Fdev\u002Fnull || echo \"N\u002FA\"\necho -n \"   Python: \"\npython3 --version 2>\u002Fdev\u002Fnull || echo \"N\u002FA\"\n\n# Layer 4: Dependencies\necho \"4. Dependencies:\"\nnpm list --depth=0 2>\u002Fdev\u002Fnull | head -10 || echo \"   npm: N\u002FA\"\npip list 2>\u002Fdev\u002Fnull | head -5 || echo \"   pip: N\u002FA\"\n\n# Layer 5: Environment\necho \"5. Environment:\"\necho \"   REPL_SLUG=$REPL_SLUG\"\necho \"   REPL_OWNER=$REPL_OWNER\"\necho \"   NODE_ENV=${NODE_ENV:-unset}\"\necho \"   DATABASE_URL=${DATABASE_URL:+SET}\"\necho \"   REPLIT_DB_URL=${REPLIT_DB_URL:+SET}\"\n\n# Layer 6: Resource usage\necho \"6. Resources:\"\necho \"   Disk: $(df -h \u002F 2>\u002Fdev\u002Fnull | tail -1 | awk '{print $3 \"\u002F\" $2 \" (\" $5 \")\"}')\"\necho \"   Memory: $(free -m 2>\u002Fdev\u002Fnull | head -2 | tail -1 | awk '{print $3 \"MB \u002F \" $2 \"MB\"}' || echo 'N\u002FA')\"\necho \"   Processes: $(ps aux 2>\u002Fdev\u002Fnull | wc -l) running\"\n\n# Layer 7: Network\necho \"7. Network:\"\necho -n \"   replit.com: \"\ncurl -s -o \u002Fdev\u002Fnull -w \"%{http_code} (%{time_total}s)\\n\" https:\u002F\u002Freplit.com\necho -n \"   Database: \"\nif [ -n \"${DATABASE_URL:-}\" ]; then\n  node -e \"const{Pool}=require('pg');new Pool({connectionString:process.env.DATABASE_URL,ssl:{rejectUnauthorized:false}}).query('SELECT 1').then(()=>console.log('OK')).catch(e=>console.log('FAIL:',e.message)).finally(()=>process.exit())\" 2>\u002Fdev\u002Fnull || echo \"pg not installed\"\nelse\n  echo \"NOT CONFIGURED\"\nfi\n```\n\n### Step 2: Nix Build Failure Debugging\n```bash\n# When replit.nix changes cause build failures:\n\n# 1. Check what channel provides\nnix-env -qaP 2>\u002Fdev\u002Fnull | grep nodejs\n# Shows available Node.js package names\n\n# 2. Common naming issues:\n# pkgs.nodejs      → WRONG (ambiguous)\n# pkgs.nodejs-20_x → CORRECT\n# pkgs.python3     → WRONG (use pkgs.python311)\n# pkgs.python311   → CORRECT\n\n# 3. Verify current channel\ngrep channel .replit\n# channel = \"stable-24_05\" is current\n\n# 4. After fixing replit.nix, reload shell:\n# Exit Shell tab, re-enter it\n# Or: exec $SHELL\n\n# 5. If packages won't install, try clearing Nix cache:\n# Remove generated Nix store symlinks\nrm -rf .config\u002Fnixpkgs 2>\u002Fdev\u002Fnull\n```\n\n### Step 3: Container Crash Loop Debugging\n```markdown\nWhen deployment keeps crashing and restarting:\n\n1. Check deployment logs (Deployment Settings > Logs)\n   Look for:\n   - \"JavaScript heap out of memory\" → increase VM size or fix leak\n   - \"Cannot find module\" → dependency not installed in build step\n   - \"EACCES\" → file permission issue\n   - \"EADDRINUSE\" → port conflict\n\n2. Test locally first:\n   - Click \"Run\" in Workspace\n   - Check Console tab for errors\n   - Fix before deploying\n\n3. Isolate the crash:\n```\n\n```typescript\n\u002F\u002F Add to top of entry point — crash guard with logging\nprocess.on('uncaughtException', (err) => {\n  console.error('UNCAUGHT EXCEPTION:', err.message);\n  console.error('Stack:', err.stack);\n  \u002F\u002F Log the crash, then exit cleanly so Replit can restart\n  process.exit(1);\n});\n\nprocess.on('unhandledRejection', (reason: any) => {\n  console.error('UNHANDLED REJECTION:', reason?.message || reason);\n  console.error('Stack:', reason?.stack || 'no stack');\n});\n\n\u002F\u002F Log startup time\nconst startTime = Date.now();\nconsole.log(`Starting at ${new Date().toISOString()}`);\n\n\u002F\u002F ... your app code ...\n\napp.listen(PORT, '0.0.0.0', () => {\n  console.log(`Started in ${Date.now() - startTime}ms on port ${PORT}`);\n});\n```\n\n### Step 4: Memory Leak Detection\n```typescript\n\u002F\u002F Replit containers have fixed memory limits. Detect leaks early.\n\nconst SAMPLE_INTERVAL = 30000; \u002F\u002F 30 seconds\nconst samples: number[] = [];\n\nsetInterval(() => {\n  const heapMB = Math.round(process.memoryUsage().heapUsed \u002F 1024 \u002F 1024);\n  samples.push(heapMB);\n\n  \u002F\u002F Keep last 60 samples (30 minutes)\n  if (samples.length > 60) samples.shift();\n\n  \u002F\u002F Detect sustained growth\n  if (samples.length >= 10) {\n    const first5 = samples.slice(0, 5).reduce((a, b) => a + b) \u002F 5;\n    const last5 = samples.slice(-5).reduce((a, b) => a + b) \u002F 5;\n    const growth = last5 - first5;\n\n    if (growth > 50) { \u002F\u002F 50MB growth over observation window\n      console.warn(`MEMORY LEAK SUSPECTED: +${growth.toFixed(0)}MB over ${samples.length * 30}s`);\n      console.warn(`Current: ${heapMB}MB, Samples: ${samples.length}`);\n    }\n  }\n\n  \u002F\u002F Emergency: approaching container limit\n  if (heapMB > 450) { \u002F\u002F Assuming 512MB container\n    console.error(`CRITICAL: Heap at ${heapMB}MB — approaching container limit`);\n    \u002F\u002F Force garbage collection if available\n    global.gc?.();\n  }\n}, SAMPLE_INTERVAL);\n\n\u002F\u002F Expose via health endpoint\napp.get('\u002Fdebug\u002Fmemory', (req, res) => {\n  res.json({\n    current: process.memoryUsage(),\n    samples: samples.slice(-10),\n    trend: samples.length >= 2 ? samples[samples.length - 1] - samples[0] : 0,\n  });\n});\n```\n\n### Step 5: Deployment vs Workspace Differences\n```markdown\nCommon issues where code works in Workspace but fails in Deployment:\n\n| Behavior | Workspace (Run) | Deployment |\n|----------|-----------------|------------|\n| Auth headers | NOT available | Available (X-Replit-User-*) |\n| Database | Development DB | Production DB |\n| Secrets | All visible | Auto-synced (2025+) |\n| Filesystem | Persistent during session | Ephemeral (lost on restart) |\n| Port | Any, mapped by Replit | Must use PORT env var |\n| NODE_ENV | Usually unset | Set in .replit [env] |\n\nDebugging steps:\n1. Log process.env at startup to compare\n2. Check if deployment has all required secrets\n3. Verify build step produces correct output\n4. Test with actual deployment URL, not Webview\n```\n\n### Step 6: Intermittent Failure Investigation\n```typescript\n\u002F\u002F Track request patterns to find intermittent issues\nconst requestLog: Array\u003C{\n  timestamp: number;\n  path: string;\n  status: number;\n  duration: number;\n  error?: string;\n}> = [];\n\napp.use((req, res, next) => {\n  const start = Date.now();\n  const originalEnd = res.end;\n\n  res.end = function (...args: any[]) {\n    const entry = {\n      timestamp: Date.now(),\n      path: req.path,\n      status: res.statusCode,\n      duration: Date.now() - start,\n    };\n\n    if (res.statusCode >= 400) {\n      (entry as any).error = (res as any)._errorMessage || 'unknown';\n    }\n\n    requestLog.push(entry);\n    if (requestLog.length > 1000) requestLog.shift();\n\n    return originalEnd.apply(res, args);\n  };\n\n  next();\n});\n\n\u002F\u002F Debug endpoint — last 50 errors\napp.get('\u002Fdebug\u002Ferrors', (req, res) => {\n  const errors = requestLog\n    .filter(r => r.status >= 400)\n    .slice(-50);\n  res.json({\n    totalRequests: requestLog.length,\n    errorCount: errors.length,\n    errors,\n  });\n});\n```\n\n## Support Escalation\n```markdown\nWhen you need Replit support:\n\n1. Collect: run replit-diagnose.sh\n2. Document: steps to reproduce, expected vs actual\n3. Screenshot: deployment logs, error messages\n4. Submit: replit.com\u002Fsupport\n\nInclude:\n- Repl URL (share link)\n- Deployment URL\n- Error messages (full text)\n- When it started happening\n- What changed before the issue\n```\n\n## Error Handling\n| Issue | Cause | Solution |\n|-------|-------|----------|\n| Works locally, fails deployed | Missing build step or secret | Check build command and secrets |\n| Intermittent 503 | Autoscale cold start | Switch to Reserved VM or add keepalive |\n| Nix build infinite loop | Circular dependency | Simplify replit.nix, remove unused deps |\n| Memory keeps growing | Leak in request handler | Profile with \u002Fdebug\u002Fmemory endpoint |\n| Container won't start | Crash on import | Add crash guards, check dependency versions |\n\n## Resources\n- [Replit Support](https:\u002F\u002Freplit.com\u002Fsupport)\n- [Replit Status](https:\u002F\u002Fstatus.replit.com)\n- [Replit Community](https:\u002F\u002Fask.replit.com)\n- [Nix on Replit](https:\u002F\u002Fdocs.replit.com\u002Fprogramming-ide\u002Fnix-on-replit)\n\n## Next Steps\nFor load testing, see `replit-load-scale`.\n",{"name":5,"tags":24,"author":29,"license":15,"version":30,"description":31,"allowed-tools":32,"compatible-with":33},[25,26,27,28],"saas","replit","debugging","advanced","Jeremy Longshore \u003Cjeremy@intentsolutions.io>","1.0.0","Debug hard Replit issues: container lifecycle, Nix build failures, deployment crashes, and memory leaks.\nUse when standard troubleshooting fails, investigating intermittent failures,\nor diagnosing complex Replit platform behavior.\nTrigger with phrases like \"replit hard bug\", \"replit mystery error\",\n\"replit impossible to debug\", \"replit intermittent\", \"replit deep debug\".\n","Read, Grep, Bash(curl:*), Bash(node:*), Bash(python3:*)","claude-code, codex, openclaw","main","99825ad3f3bcc6597ddcc7294a14e6e922f2b67b","skills\u002Fsaas-packs--replit-pack--replit-advanced-troubleshooting",0,"https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills","https:\u002F\u002Fgithub.com\u002Fjukeyman","https:\u002F\u002FRJBUSINESSSOLUTIONS.ORG","Credit and Finance Expert | Developer\r\n\r\nI'm Rick Jefferson, a seasoned credit and finance expert with over a decade of experience in financial literacy,","2026-07-13 07:03:29",{"source":8,"skillName":5,"commands":44,"prompt":54,"zipAvailable":55},[45,48,51],{"tool":46,"command":47},"npx","npx skills add jukeyman\u002Fjukeyman-skills --skill replit-advanced-troubleshooting",{"tool":49,"command":50},"bunx","bunx skills add jukeyman\u002Fjukeyman-skills --skill replit-advanced-troubleshooting",{"tool":52,"command":53},"pnpm","pnpm dlx skills add jukeyman\u002Fjukeyman-skills --skill replit-advanced-troubleshooting","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsaas-packs--replit-pack--replit-advanced-troubleshooting\u002FSKILL.md",true,[],[58,65,72,79,86,94],{"skillNo":59,"name":60,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":19},"01M79ANS2SM329NEP5ZCX106RR","zustand-store-creator","Create zustand store creator operations. Auto-activating skill for Frontend Development.\nTriggers on: zustand store creator, zustand store creator\nPart of the Frontend Development skill category. Use when working with zustand store creator functionality. Trigger with phrases like \"zustand store creator\", \"zustand creator\", \"zustand\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzustand-store-creator\u002FSKILL.md",[],[],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":19},"01M79AMZKP4YDEZ7EHG1Y7PP74","zero-trust-config-helper","Configure with zero trust config helper operations. Auto-activating skill for Security Advanced.\nTriggers on: zero trust config helper, zero trust config helper\nPart of the Security Advanced skill category. Use when configuring systems or services. Trigger with phrases like \"zero trust config helper\", \"zero helper\", \"zero\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzero-trust-config-helper\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":19},"01M79AMJSBCEJQNBTYNAHYN5HM","zapier-integration-helper","Assist with zapier integration helper operations. Auto-activating skill for Business Automation.\nTriggers on: zapier integration helper, zapier integration helper\nPart of the Business Automation skill category. Use when working with APIs or building integrations. Trigger with phrases like \"zapier integration helper\", \"zapier helper\", \"zapier\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzapier-integration-helper\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":19},"01M79AHJZGVMARS13VFQYRR1MP","yaml-config-validator","Validate yaml config validator operations. Auto-activating skill for DevOps Basics.\nTriggers on: yaml config validator, yaml config validator\nPart of the DevOps Basics skill category. Use when configuring systems or services. Trigger with phrases like \"yaml config validator\", \"yaml validator\", \"yaml\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fyaml-config-validator\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":90,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":19},"01M79AHGDZRN0020RDQSQDPAM8","xvary-stock-research","Thesis-driven equity analysis from public SEC EDGAR and market data; \u002Fanalyze, \u002Fscore, \u002Fcompare workflows with bundled Python tools (Claude Code, Cursor, Codex).","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fxvary-stock-research\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fxvary-stock-research\u002FSKILL.md",[],[],{"skillNo":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":19},"01M79AHCYJ9FV9RMHQ24HDRN33","xss-vulnerability-scanner","Scan xss vulnerability scanner operations. Auto-activating skill for Security Fundamentals.\nTriggers on: xss vulnerability scanner, xss vulnerability scanner\nPart of the Security Fundamentals skill category. Use when working with xss vulnerability scanner functionality. Trigger with phrases like \"xss vulnerability scanner\", \"xss scanner\", \"xss\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fxss-vulnerability-scanner\u002FSKILL.md",[],[]]