[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6H8N2S1N97PSVRH1RNGC49E":3,"skill-same:01M6H8N2S1N97PSVRH1RNGC49E":69},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":38,"linkOnly":39,"markdownContent":40,"markdownBody":41,"frontMatter":42,"refName":48,"commitSha":49,"skillDirectory":50,"forksCount":51,"repositoryHtmlUrl":52,"repositoryHomepageUrl":6,"ownerHtmlUrl":53,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":54,"install":55,"resources":68},"01M6H8N2S1N97PSVRH1RNGC49E","replit-reliability-patterns",null,"Implement Replit reliability patterns including circuit breakers, idempotency, and graceful degradation.\nUse when building fault-tolerant Replit integrations, implementing retry strategies,\nor adding resilience to production Replit services.\nTrigger with phrases like \"replit reliability\", \"replit circuit breaker\",\n\"replit idempotent\", \"replit resilience\", \"replit fallback\", \"replit bulkhead\".","micsapp\u002Fmicstec-skills","micsapp","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F82411001?v=4","01M6GWCFQ6D3PV8EHNY62NN5VW","01M6GWCFVE1PA5HG0DKC7AMFJ3",4,"MIT","https:\u002F\u002Fgithub.com\u002Fmicsapp\u002Fmicstec-skills\u002Fblob\u002Fmaster\u002Fclaude-code\u002Fplugins-plus-skills\u002Fplugins\u002Fsaas-packs\u002Freplit-pack\u002Fskills\u002Freplit-reliability-patterns\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37],"replit reliability patterns","reliability","patterns","implementing","codex","retry","with","degradation","trigger","io","Circuit Breaker","strategies","use","write","read","integrations","services","code","resilience","implement","2026-11-10 10:12:30",false,"---\nname: replit-reliability-patterns\ndescription: |\n  Implement Replit reliability patterns including circuit breakers, idempotency, and graceful degradation.\n  Use when building fault-tolerant Replit integrations, implementing retry strategies,\n  or adding resilience to production Replit services.\n  Trigger with phrases like \"replit reliability\", \"replit circuit breaker\",\n  \"replit idempotent\", \"replit resilience\", \"replit fallback\", \"replit bulkhead\".\nallowed-tools: Read, Write, Edit\nversion: 1.0.0\nlicense: MIT\nauthor: Jeremy Longshore \u003Cjeremy@intentsolutions.io>\ncompatible-with: claude-code, codex, openclaw\n---\n# Replit Reliability Patterns\n\n## Overview\nProduction reliability patterns for applications hosted on Replit. Replit's container-based hosting, automatic sleep behavior, and ephemeral filesystem require specific resilience strategies for production workloads.\n\n## Prerequisites\n- Replit Deployments configured (for always-on)\n- Understanding of container lifecycle\n- External database for persistent state\n\n## Instructions\n\n### Step 1: Handle Cold Start Gracefully\n\nReplit containers restart on deploy and after sleep. Pre-warm caches and connections on startup.\n\n```python\nimport time\n\nstartup_complete = False\nstartup_time = None\n\nasync def warmup():\n    global startup_complete, startup_time\n    startup_time = time.time()\n    # Pre-load frequently accessed data\n    await cache.warm([\"config\", \"feature_flags\", \"templates\"])\n    # Verify database connection\n    await db.ping()\n    startup_complete = True\n\n@app.route('\u002Fhealth')\ndef health():\n    if not startup_complete:\n        return {\"status\": \"warming_up\"}, 503  # HTTP 503 Service Unavailable\n    return {\"status\": \"ok\", \"uptime\": time.time() - startup_time}\n\n@app.before_first_request\nasync def on_startup():\n    await warmup()\n```\n\n### Step 2: External State for Persistence\n\nNever rely on local filesystem for state that must survive container restarts.\n\n```python\nfrom replit.object_storage import Client as ObjectStorage\nimport json\n\nclass PersistentState:\n    def __init__(self):\n        self.storage = ObjectStorage()\n        self._cache = {}\n\n    def save(self, key: str, data: dict):\n        self.storage.upload_from_text(\n            f\"state\u002F{key}.json\",\n            json.dumps(data)\n        )\n        self._cache[key] = data\n\n    def load(self, key: str) -> dict:\n        if key in self._cache:\n            return self._cache[key]\n        try:\n            raw = self.storage.download_as_text(f\"state\u002F{key}.json\")\n            data = json.loads(raw)\n            self._cache[key] = data\n            return data\n        except:\n            return {}\n```\n\n### Step 3: Keep-Alive for Non-Deployment Repls\n\nFor Repls not using Deployments, prevent sleep with an external health check ping.\n\n```python\n# Internal: expose health endpoint\n@app.route('\u002Fping')\ndef ping():\n    return \"pong\", 200  # HTTP 200 OK\n\n# External: use a free cron service to ping every 5 minutes\n# cron-job.org, UptimeRobot, or similar\n# URL: https:\u002F\u002Fyour-repl.replit.app\u002Fping\n# Interval: 5 minutes\n```\n\n### Step 4: Graceful Shutdown Handler\n\nReplit sends SIGTERM before container stop. Save state during shutdown.\n\n```python\nimport signal, sys\n\ndef graceful_shutdown(signum, frame):\n    print(\"Shutting down gracefully...\")\n    state.save(\"session\", {\"last_active\": time.time()})\n    db.close()\n    sys.exit(0)\n\nsignal.signal(signal.SIGTERM, graceful_shutdown)\n```\n\n## Error Handling\n| Issue | Cause | Solution |\n|-------|-------|----------|\n| Data loss on restart | Using local filesystem | Use Replit DB or Object Storage |\n| Slow first request | Cold start | Pre-warm on startup, show loading state |\n| Container sleeping | No activity for 30 min | Use Deployments or external keep-alive |\n| Database disconnects | Container restart | Reconnect on startup, connection pooling |\n\n## Examples\n\n### Deployment Health Monitor\n```python\nhealth = {\n    \"container_uptime\": time.time() - startup_time,\n    \"db_connected\": await db.ping(),\n    \"storage_available\": storage.exists(\"state\u002F\"),\n    \"memory_mb\": process.memory_info().rss \u002F 1024 \u002F 1024  # 1024: 1 KB\n}\n```\n\n## Resources\n- [Replit Deployments](https:\u002F\u002Fdocs.replit.com\u002Fhosting\u002Fdeployments)\n- [Object Storage](https:\u002F\u002Fdocs.replit.com\u002Fhosting\u002Fdatabases\u002Fobject-storage)\n\n## Output\n\n- Configuration files or code changes applied to the project\n- Validation report confirming correct implementation\n- Summary of changes made and their rationale","# Replit Reliability Patterns\n\n## Overview\nProduction reliability patterns for applications hosted on Replit. Replit's container-based hosting, automatic sleep behavior, and ephemeral filesystem require specific resilience strategies for production workloads.\n\n## Prerequisites\n- Replit Deployments configured (for always-on)\n- Understanding of container lifecycle\n- External database for persistent state\n\n## Instructions\n\n### Step 1: Handle Cold Start Gracefully\n\nReplit containers restart on deploy and after sleep. Pre-warm caches and connections on startup.\n\n```python\nimport time\n\nstartup_complete = False\nstartup_time = None\n\nasync def warmup():\n    global startup_complete, startup_time\n    startup_time = time.time()\n    # Pre-load frequently accessed data\n    await cache.warm([\"config\", \"feature_flags\", \"templates\"])\n    # Verify database connection\n    await db.ping()\n    startup_complete = True\n\n@app.route('\u002Fhealth')\ndef health():\n    if not startup_complete:\n        return {\"status\": \"warming_up\"}, 503  # HTTP 503 Service Unavailable\n    return {\"status\": \"ok\", \"uptime\": time.time() - startup_time}\n\n@app.before_first_request\nasync def on_startup():\n    await warmup()\n```\n\n### Step 2: External State for Persistence\n\nNever rely on local filesystem for state that must survive container restarts.\n\n```python\nfrom replit.object_storage import Client as ObjectStorage\nimport json\n\nclass PersistentState:\n    def __init__(self):\n        self.storage = ObjectStorage()\n        self._cache = {}\n\n    def save(self, key: str, data: dict):\n        self.storage.upload_from_text(\n            f\"state\u002F{key}.json\",\n            json.dumps(data)\n        )\n        self._cache[key] = data\n\n    def load(self, key: str) -> dict:\n        if key in self._cache:\n            return self._cache[key]\n        try:\n            raw = self.storage.download_as_text(f\"state\u002F{key}.json\")\n            data = json.loads(raw)\n            self._cache[key] = data\n            return data\n        except:\n            return {}\n```\n\n### Step 3: Keep-Alive for Non-Deployment Repls\n\nFor Repls not using Deployments, prevent sleep with an external health check ping.\n\n```python\n# Internal: expose health endpoint\n@app.route('\u002Fping')\ndef ping():\n    return \"pong\", 200  # HTTP 200 OK\n\n# External: use a free cron service to ping every 5 minutes\n# cron-job.org, UptimeRobot, or similar\n# URL: https:\u002F\u002Fyour-repl.replit.app\u002Fping\n# Interval: 5 minutes\n```\n\n### Step 4: Graceful Shutdown Handler\n\nReplit sends SIGTERM before container stop. Save state during shutdown.\n\n```python\nimport signal, sys\n\ndef graceful_shutdown(signum, frame):\n    print(\"Shutting down gracefully...\")\n    state.save(\"session\", {\"last_active\": time.time()})\n    db.close()\n    sys.exit(0)\n\nsignal.signal(signal.SIGTERM, graceful_shutdown)\n```\n\n## Error Handling\n| Issue | Cause | Solution |\n|-------|-------|----------|\n| Data loss on restart | Using local filesystem | Use Replit DB or Object Storage |\n| Slow first request | Cold start | Pre-warm on startup, show loading state |\n| Container sleeping | No activity for 30 min | Use Deployments or external keep-alive |\n| Database disconnects | Container restart | Reconnect on startup, connection pooling |\n\n## Examples\n\n### Deployment Health Monitor\n```python\nhealth = {\n    \"container_uptime\": time.time() - startup_time,\n    \"db_connected\": await db.ping(),\n    \"storage_available\": storage.exists(\"state\u002F\"),\n    \"memory_mb\": process.memory_info().rss \u002F 1024 \u002F 1024  # 1024: 1 KB\n}\n```\n\n## Resources\n- [Replit Deployments](https:\u002F\u002Fdocs.replit.com\u002Fhosting\u002Fdeployments)\n- [Object Storage](https:\u002F\u002Fdocs.replit.com\u002Fhosting\u002Fdatabases\u002Fobject-storage)\n\n## Output\n\n- Configuration files or code changes applied to the project\n- Validation report confirming correct implementation\n- Summary of changes made and their rationale",{"name":5,"author":43,"license":14,"version":44,"description":45,"allowed-tools":46,"compatible-with":47},"Jeremy Longshore \u003Cjeremy@intentsolutions.io>","1.0.0","Implement Replit reliability patterns including circuit breakers, idempotency, and graceful degradation.\nUse when building fault-tolerant Replit integrations, implementing retry strategies,\nor adding resilience to production Replit services.\nTrigger with phrases like \"replit reliability\", \"replit circuit breaker\",\n\"replit idempotent\", \"replit resilience\", \"replit fallback\", \"replit bulkhead\".\n","Read, Write, Edit","claude-code, codex, openclaw","master","3f5d983eb4ef375b749adcd6b07ec03bd82ae8a8","claude-code\u002Fplugins-plus-skills\u002Fplugins\u002Fsaas-packs\u002Freplit-pack\u002Fskills\u002Freplit-reliability-patterns",0,"https:\u002F\u002Fgithub.com\u002Fmicsapp\u002Fmicstec-skills","https:\u002F\u002Fgithub.com\u002Fmicsapp","2026-03-20 11:24:18",{"source":8,"skillName":5,"commands":56,"prompt":66,"zipAvailable":67},[57,60,63],{"tool":58,"command":59},"npx","npx skills add micsapp\u002Fmicstec-skills --skill replit-reliability-patterns",{"tool":61,"command":62},"bunx","bunx skills add micsapp\u002Fmicstec-skills --skill replit-reliability-patterns",{"tool":64,"command":65},"pnpm","pnpm dlx skills add micsapp\u002Fmicstec-skills --skill replit-reliability-patterns","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmicsapp\u002Fmicstec-skills\u002Fblob\u002Fmaster\u002Fclaude-code\u002Fplugins-plus-skills\u002Fplugins\u002Fsaas-packs\u002Freplit-pack\u002Fskills\u002Freplit-reliability-patterns\u002FSKILL.md",true,[],[70,96,116,135,153,178],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":38},"01M6HBTJ02FXBFG9NYEHHYAP52","azure-apim-architecture","Analyzes and explains Azure API Management architecture decisions for enterprise API marketplace implementations using VNet Internal mode, Front Door, hybrid authentication, and multi-environment strategies. Use when discussing APIM component selection, network topology, cost optimization, or comparing alternatives like workspaces vs instances, VNet Internal vs External mode, or Front Door vs Application Gateway.","https:\u002F\u002Fgithub.com\u002Fmicsapp\u002Fmicstec-skills\u002Fblob\u002Fmaster\u002Fcopilot-cli\u002Fcopilot-agent-skills\u002F.github\u002Fskills\u002Fazure-apim-architecture\u002FSKILL.md",[],[77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,29,93,94,95],"architecture","azure","azure apim architecture","component","authentication","gateway","topology","Optimization","network","api","team","environment","multi-environment","workspaces","instances","selection","azure api management","mode","for",{"skillNo":97,"name":98,"nameZh":6,"description":99,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":100,"categories":101,"keywords":102,"publishedAt":38},"01M6HBT7J4H082JEEA670B3EQ9","apiops-deployment","Guides deployment of Azure API Management infrastructure using Infrastructure as Code (Bicep\u002FTerraform), CI\u002FCD pipelines (GitHub Actions\u002FAzure DevOps), and APIOps workflows. Use when deploying APIM, creating pipelines, or implementing dev→test→prod promotion strategies.","https:\u002F\u002Fgithub.com\u002Fmicsapp\u002Fmicstec-skills\u002Fblob\u002Fmaster\u002Fcopilot-cli\u002Fcopilot-agent-skills\u002F.github\u002Fskills\u002Fapiops-deployment\u002FSKILL.md",[],[103,104,105,106,78,107,35,108,109,110,111,112,86,87,29,113,114,93,115,21],"deployment","apiops deployment","workflows","azure devops","infrastructure","infrastructure as code","actions","ci","github actions","github-actions","as","guides","CI\u002FCD",{"skillNo":117,"name":118,"nameZh":6,"description":119,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":120,"categories":121,"keywords":122,"publishedAt":38},"01M6HBT2HEA23THNE9E00GYQBE","apim-policy-authoring","Creates production-ready Azure API Management policy XML for authentication (OAuth 2.0, JWT validation, subscription keys), rate limiting, CORS configuration, error handling, and API transformations. Use when implementing API security, access control, or request\u002Fresponse processing logic.","https:\u002F\u002Fgithub.com\u002Fmicsapp\u002Fmicstec-skills\u002Fblob\u002Fmaster\u002Fcopilot-cli\u002Fcopilot-agent-skills\u002F.github\u002Fskills\u002Fapim-policy-authoring\u002FSKILL.md",[],[123,124,125,126,78,81,86,87,127,30,128,129,130,131,132,93,133,134,21,95],"policy","authoring","apim policy authoring","security","access","ready","api security","Access Control","error","processing","cors configuration","production-ready",{"skillNo":136,"name":137,"nameZh":6,"description":138,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":139,"categories":140,"keywords":141,"publishedAt":38},"01M6HBSY65SB29J9WE9KYD0K6T","api-security-review","Reviews Azure API Management configurations for security vulnerabilities, OWASP API Security Top 10 compliance, VNet Internal mode validation, Private Link verification, and Azure Security Benchmark alignment. Use when performing security audits, pre-deployment validation, or compliance reviews.","https:\u002F\u002Fgithub.com\u002Fmicsapp\u002Fmicstec-skills\u002Fblob\u002Fmaster\u002Fcopilot-cli\u002Fcopilot-agent-skills\u002F.github\u002Fskills\u002Fapi-security-review\u002FSKILL.md",[],[142,126,143,86,129,144,78,103,145,146,147,148,87,149,93,150,151,152,94,95],"review","security review","api security review","benchmark","verification","owasp","owasp-api","alignment","azure security","reviews","top",{"skillNo":154,"name":155,"nameZh":6,"description":156,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":157,"categories":158,"keywords":159,"publishedAt":38},"01M6HBSRW4PDFE6K4F8JYPZQ05","jira-cli","Interact with Jira from the command line to create, list, view, edit, and transition issues, manage sprints and epics, and perform common Jira workflows. Use when the user asks about Jira tasks, tickets, issues, sprints, or needs to manage project work items.","https:\u002F\u002Fgithub.com\u002Fmicsapp\u002Fmicstec-skills\u002Fblob\u002Fmaster\u002Fcopilot-cli\u002Fawesome-copilot-agents\u002Fskills\u002Fjira-cli\u002FSKILL.md",[],[160,161,162,105,163,164,165,166,86,167,168,169,170,171,172,173,174,175,176,177],"cli","jira","jira cli","init","tasks","create","issues","common","work","command","edit","list","view","project","project work","token","line","sprints",{"skillNo":179,"name":180,"nameZh":6,"description":181,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":182,"categories":183,"keywords":184,"publishedAt":38},"01M6HBSNS3JHMW603G47TWE31H","calculator","Performs arbitrary-precision arithmetic calculations including addition, subtraction, multiplication, division, and exponents. Use when the user asks to calculate, compute, or evaluate math expressions, or when precise decimal arithmetic is needed to avoid floating-point errors.","https:\u002F\u002Fgithub.com\u002Fmicsapp\u002Fmicstec-skills\u002Fblob\u002Fmaster\u002Fcopilot-cli\u002Fawesome-copilot-agents\u002Fskills\u002Fcalculator\u002FSKILL.md",[],[180,185,186,187,188,189,190,30,191,192],"npm","js","calculate","node","math","user","compute","errors"]