[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6CXKM4HBJ3PDA49BKQ0CTJ7":3,"skill-same:01M6CXKM4HBJ3PDA49BKQ0CTJ7":54},{"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":27,"linkOnly":28,"markdownContent":29,"markdownBody":30,"frontMatter":31,"refName":34,"commitSha":35,"skillDirectory":5,"forksCount":36,"repositoryHtmlUrl":37,"repositoryHomepageUrl":6,"ownerHtmlUrl":38,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":39,"install":40,"resources":53},"01M6CXKM4HBJ3PDA49BKQ0CTJ7","site-reliability",null,"Site reliability engineering practices","ffsshhttiikk\u002Fopencode-agents-skills","ffsshhttiikk","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F226346827?v=4","01M6CWD9RR3Y7VRQX3MXYC8FYH","01M6CWD9WVPYAZW0J82G1VKGHY",3,"MIT","https:\u002F\u002Fgithub.com\u002Fffsshhttiikk\u002Fopencode-agents-skills\u002Fblob\u002Fmain\u002Fsite-reliability\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26],"site","reliability","site reliability","engineering practices","engineering","devops","sre","opencode","engineer","2026-11-10 10:12:30",false,"---\nname: site-reliability\ndescription: Site reliability engineering practices\nlicense: MIT\ncompatibility: opencode\nmetadata:\n  audience: devops-engineer, sre\n  category: devops\n---\n\n## What I do\n\n- Implement SRE practices and principles\n- Define and track SLIs and SLOs\n- Design error budgets and alerting\n- Conduct post-incident reviews\n- Automate operational tasks\n- Build observability into systems\n\n## When to use me\n\n- When implementing reliability practices\n- When defining service level objectives\n- When managing incident response\n- When automating operations\n- When improving system reliability\n- When building SLO dashboards\n\n## Key Concepts\n\n### SLI\u002FSLO\u002FSLA Framework\n\n```yaml\n# Service Level Indicators\nslis:\n  - name: request-availability\n    description: \"Ratio of successful requests to total requests\"\n    type: ratio\n    source: prometheus\n    query: |\n      sum(rate(http_requests_total{status!~\"5..\"}[5m])) \n      \u002F sum(rate(http_requests_total[5m]))\n\n  - name: request-latency\n    description: \"P99 latency in milliseconds\"\n    type: threshold\n    source: prometheus\n    query: |\n      histogram_quantile(0.99, \n        sum(rate(http_request_duration_seconds_bucket[5m])) by (le)\n      ) * 1000\n\n# Service Level Objectives\nslo:\n  - name: api-availability\n    sli: request-availability\n    target: 99.9\n    window: 30d\n    \n  - name: api-latency\n    sli: request-latency\n    target: 500\n    window: 7d\n\n# Service Level Agreement\nsla:\n  - name: api-availability\n    objective: api-availability\n    target: 99.9\n    link: https:\u002F\u002Fexample.com\u002Fsla\n```\n\n### Error Budget Policy\n\n```yaml\n# Alert on error budget burn rate\n- alert: ErrorBudgetBurnRateHigh\n  expr: |\n    sum(rate(http_requests_total{slo=\"api-availability\"}[5m])) > 14.4\n    \u002F 1000\n  for: 1h\n  labels:\n    severity: critical\n  annotations:\n    summary: \"Error budget burning too fast\"\n    description: \"Error budget burn rate > 10x for 1 hour\"\n\n# Alert on remaining error budget\n- alert: ErrorBudgetExhausted\n  expr: |\n    (slo:api-availability:ratio{job=\"api\"}\u002F 1) \u003C 0.9\n  for: 1h\n  labels:\n    severity: critical\n  annotations:\n    summary: \"Error budget exhausted\"\n    description: \"Less than 10% of error budget remaining\"\n```\n\n### Toil Reduction\n\n```python\n# Automating manual work\nclass AutomatedOps:\n    def __init__(self):\n        self.alert_handlers = {\n            'high_cpu': self.handle_high_cpu,\n            'disk_full': self.handle_disk_full,\n            'error_rate': self.handle_error_rate\n        }\n        \n    def handle_alert(self, alert):\n        handler = self.alert_handlers.get(alert.type)\n        if handler:\n            # Attempt automated remediation\n            result = handler(alert)\n            if result.success:\n                return {'action': 'auto_resolved'}\n            else:\n                # Escalate if automated fix failed\n                return {'action': 'escalate', 'reason': result.error}\n        return {'action': 'no_handler'}\n        \n    def handle_high_cpu(self, alert):\n        # Check if auto-scaling can help\n        if self.can_scale(alert.target):\n            self.scale_out(alert.target)\n            return Result(success=True)\n        return Result(success=False, error='Cannot scale')\n```\n\n### Post-Incident Review\n\n```markdown\n# Incident Review: Service Outage\n\n## Summary\n- **Date**: 2024-01-15\n- **Duration**: 45 minutes\n- **Impact**: 15% of users unable to access API\n\n## Timeline\n- 10:00 - Alert triggered (high error rate)\n- 10:05 - On-call paged\n- 10:10 - Investigation started\n- 10:25 - Root cause identified (database connection pool exhaustion)\n- 10:35 - Fix deployed\n- 10:45 - Service recovered\n\n## Root Cause\nDatabase connection pool was undersized for traffic spike.\n\n## Action Items\n- [ ] Increase connection pool size\n- [ ] Add circuit breaker pattern\n- [ ] Create load test for connection handling\n- [ ] Update runbook for database scaling\n\n## Lessons Learned\n1. Need better observability into DB connection pool\n2. Alert threshold was too high\n3. Manual scaling takes too long\n```\n\n### Observability for SRE\n\n```python\n# Custom SRE metrics\nclass SRERecorder:\n    def __init__(self, prometheus_client):\n        self.errors = Counter('sre_errors_total', 'Total errors')\n        self.latency = Histogram('sre_latency_seconds', 'Request latency')\n        self.availability = Gauge('sre_availability_ratio', 'Current availability')\n        \n    def record_request(self, success: bool, duration: float):\n        if not success:\n            self.errors.inc()\n        self.latency.observe(duration)\n        \n    def calculate_availability(self, window_minutes: int):\n        # Calculate rolling availability\n        pass\n```\n\n### SRE Metrics (DORA)\n\n| Metric | Elite | High | Medium | Low |\n|--------|-------|------|--------|-----|\n| Deployment Frequency | On-demand | Daily-weekly | Weekly-monthly | Monthly+ |\n| Lead Time | \u003C1 hour | 1 day-1 week | 1-6 months | 6+ months |\n| MTTR | \u003C1 hour | \u003C1 day | 1 day-1 week | 6+ months |\n| Change Failure Rate | 0-15% | 16-30% | 16-30% | 16-30% |\n\n### Core SRE Principles\n\n- **Embrace Risk**: Not 100% reliability required\n- **SLOs Drive Work**: Prioritize based on objectives\n- **Eliminate Toil**: Automate repetitive work\n- **Measure Everything**: Data-driven decisions\n- **Reduce Waste**: Don't over-engineer\n- **Shared Ownership**: One team runs what they build\n","## What I do\n\n- Implement SRE practices and principles\n- Define and track SLIs and SLOs\n- Design error budgets and alerting\n- Conduct post-incident reviews\n- Automate operational tasks\n- Build observability into systems\n\n## When to use me\n\n- When implementing reliability practices\n- When defining service level objectives\n- When managing incident response\n- When automating operations\n- When improving system reliability\n- When building SLO dashboards\n\n## Key Concepts\n\n### SLI\u002FSLO\u002FSLA Framework\n\n```yaml\n# Service Level Indicators\nslis:\n  - name: request-availability\n    description: \"Ratio of successful requests to total requests\"\n    type: ratio\n    source: prometheus\n    query: |\n      sum(rate(http_requests_total{status!~\"5..\"}[5m])) \n      \u002F sum(rate(http_requests_total[5m]))\n\n  - name: request-latency\n    description: \"P99 latency in milliseconds\"\n    type: threshold\n    source: prometheus\n    query: |\n      histogram_quantile(0.99, \n        sum(rate(http_request_duration_seconds_bucket[5m])) by (le)\n      ) * 1000\n\n# Service Level Objectives\nslo:\n  - name: api-availability\n    sli: request-availability\n    target: 99.9\n    window: 30d\n    \n  - name: api-latency\n    sli: request-latency\n    target: 500\n    window: 7d\n\n# Service Level Agreement\nsla:\n  - name: api-availability\n    objective: api-availability\n    target: 99.9\n    link: https:\u002F\u002Fexample.com\u002Fsla\n```\n\n### Error Budget Policy\n\n```yaml\n# Alert on error budget burn rate\n- alert: ErrorBudgetBurnRateHigh\n  expr: |\n    sum(rate(http_requests_total{slo=\"api-availability\"}[5m])) > 14.4\n    \u002F 1000\n  for: 1h\n  labels:\n    severity: critical\n  annotations:\n    summary: \"Error budget burning too fast\"\n    description: \"Error budget burn rate > 10x for 1 hour\"\n\n# Alert on remaining error budget\n- alert: ErrorBudgetExhausted\n  expr: |\n    (slo:api-availability:ratio{job=\"api\"}\u002F 1) \u003C 0.9\n  for: 1h\n  labels:\n    severity: critical\n  annotations:\n    summary: \"Error budget exhausted\"\n    description: \"Less than 10% of error budget remaining\"\n```\n\n### Toil Reduction\n\n```python\n# Automating manual work\nclass AutomatedOps:\n    def __init__(self):\n        self.alert_handlers = {\n            'high_cpu': self.handle_high_cpu,\n            'disk_full': self.handle_disk_full,\n            'error_rate': self.handle_error_rate\n        }\n        \n    def handle_alert(self, alert):\n        handler = self.alert_handlers.get(alert.type)\n        if handler:\n            # Attempt automated remediation\n            result = handler(alert)\n            if result.success:\n                return {'action': 'auto_resolved'}\n            else:\n                # Escalate if automated fix failed\n                return {'action': 'escalate', 'reason': result.error}\n        return {'action': 'no_handler'}\n        \n    def handle_high_cpu(self, alert):\n        # Check if auto-scaling can help\n        if self.can_scale(alert.target):\n            self.scale_out(alert.target)\n            return Result(success=True)\n        return Result(success=False, error='Cannot scale')\n```\n\n### Post-Incident Review\n\n```markdown\n# Incident Review: Service Outage\n\n## Summary\n- **Date**: 2024-01-15\n- **Duration**: 45 minutes\n- **Impact**: 15% of users unable to access API\n\n## Timeline\n- 10:00 - Alert triggered (high error rate)\n- 10:05 - On-call paged\n- 10:10 - Investigation started\n- 10:25 - Root cause identified (database connection pool exhaustion)\n- 10:35 - Fix deployed\n- 10:45 - Service recovered\n\n## Root Cause\nDatabase connection pool was undersized for traffic spike.\n\n## Action Items\n- [ ] Increase connection pool size\n- [ ] Add circuit breaker pattern\n- [ ] Create load test for connection handling\n- [ ] Update runbook for database scaling\n\n## Lessons Learned\n1. Need better observability into DB connection pool\n2. Alert threshold was too high\n3. Manual scaling takes too long\n```\n\n### Observability for SRE\n\n```python\n# Custom SRE metrics\nclass SRERecorder:\n    def __init__(self, prometheus_client):\n        self.errors = Counter('sre_errors_total', 'Total errors')\n        self.latency = Histogram('sre_latency_seconds', 'Request latency')\n        self.availability = Gauge('sre_availability_ratio', 'Current availability')\n        \n    def record_request(self, success: bool, duration: float):\n        if not success:\n            self.errors.inc()\n        self.latency.observe(duration)\n        \n    def calculate_availability(self, window_minutes: int):\n        # Calculate rolling availability\n        pass\n```\n\n### SRE Metrics (DORA)\n\n| Metric | Elite | High | Medium | Low |\n|--------|-------|------|--------|-----|\n| Deployment Frequency | On-demand | Daily-weekly | Weekly-monthly | Monthly+ |\n| Lead Time | \u003C1 hour | 1 day-1 week | 1-6 months | 6+ months |\n| MTTR | \u003C1 hour | \u003C1 day | 1 day-1 week | 6+ months |\n| Change Failure Rate | 0-15% | 16-30% | 16-30% | 16-30% |\n\n### Core SRE Principles\n\n- **Embrace Risk**: Not 100% reliability required\n- **SLOs Drive Work**: Prioritize based on objectives\n- **Eliminate Toil**: Automate repetitive work\n- **Measure Everything**: Data-driven decisions\n- **Reduce Waste**: Don't over-engineer\n- **Shared Ownership**: One team runs what they build\n",{"name":5,"license":14,"metadata":32,"description":7,"compatibility":25},{"audience":33,"category":23},"devops-engineer, sre","main","5f7a3e453c98261f93d19a6a7de44ad8f7b72d41",2,"https:\u002F\u002Fgithub.com\u002Fffsshhttiikk\u002Fopencode-agents-skills","https:\u002F\u002Fgithub.com\u002Fffsshhttiikk","2026-03-01 06:55:40",{"source":8,"skillName":5,"commands":41,"prompt":51,"zipAvailable":52},[42,45,48],{"tool":43,"command":44},"npx","npx skills add ffsshhttiikk\u002Fopencode-agents-skills --skill site-reliability",{"tool":46,"command":47},"bunx","bunx skills add ffsshhttiikk\u002Fopencode-agents-skills --skill site-reliability",{"tool":49,"command":50},"pnpm","pnpm dlx skills add ffsshhttiikk\u002Fopencode-agents-skills --skill site-reliability","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fffsshhttiikk\u002Fopencode-agents-skills\u002Fblob\u002Fmain\u002Fsite-reliability\u002FSKILL.md",true,[],[55,66,76,85,95,104],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":27},"01M6CXT9TXDF79BWJTMQAPB49G","xamarin","Xamarin cross-platform development","https:\u002F\u002Fgithub.com\u002Fffsshhttiikk\u002Fopencode-agents-skills\u002Fblob\u002Fmain\u002Fxamarin\u002FSKILL.md",[],[57,62,63,64,25,65],"platform","cross-platform","mobile","development",{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":27},"01M6CXT8AD04MFYDA32VW3FKAG","wrangling","Data wrangling fundamentals","https:\u002F\u002Fgithub.com\u002Fffsshhttiikk\u002Fopencode-agents-skills\u002Fblob\u002Fmain\u002Fwrangling\u002FSKILL.md",[],[68,73,25,74,75],"data wrangling","science","data",{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":27},"01M6CXT717GCN7SRRNPBDP4508","windows","Windows operating system administration and scripting","https:\u002F\u002Fgithub.com\u002Fffsshhttiikk\u002Fopencode-agents-skills\u002Fblob\u002Fmain\u002Fwindows\u002FSKILL.md",[],[78,83,25,84],"system","scripting",{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":27},"01M6CXT54K794NMEM3XAPZZDKT","wide-column","Wide-column data model","https:\u002F\u002Fgithub.com\u002Fffsshhttiikk\u002Fopencode-agents-skills\u002Fblob\u002Fmain\u002Fwide-column\u002FSKILL.md",[],[92,93,25,94,75],"wide column","databases","model",{"skillNo":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":27},"01M6CXT28FMT2P4V9GZE67WA8E","wide-column-stores","Wide-column database stores","https:\u002F\u002Fgithub.com\u002Fffsshhttiikk\u002Fopencode-agents-skills\u002Fblob\u002Fmain\u002Fwide-column-stores\u002FSKILL.md",[],[102,93,25,103],"wide column stores","database",{"skillNo":105,"name":106,"nameZh":6,"description":107,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":108,"categories":109,"keywords":110,"publishedAt":27},"01M6CXT0D0M0Q4T2N7C2RX7DSN","websockets","WebSocket implementation and best practices","https:\u002F\u002Fgithub.com\u002Fffsshhttiikk\u002Fopencode-agents-skills\u002Fblob\u002Fmain\u002Fwebsockets\u002FSKILL.md",[],[106,111,112,113,25,114,115],"websocket","real-time","time","best practices","implementation"]