[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6EFQV622THA6YP5EXYKFW5F":3,"skill-same:01M6EFQV622THA6YP5EXYKFW5F":57},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":7,"sourceHtmlUrl":17,"categories":18,"keywords":29,"publishedAt":30,"linkOnly":31,"markdownContent":32,"markdownBody":32,"frontMatter":33,"refName":34,"commitSha":35,"skillDirectory":36,"forksCount":37,"repositoryHtmlUrl":38,"repositoryHomepageUrl":39,"ownerHtmlUrl":40,"ownerBlogUrl":7,"ownerDescription":41,"updatedAt":42,"install":43,"resources":56},"01M6EFQV622THA6YP5EXYKFW5F","opsgenie","Opsgenie 告警与值班管理",null,"","ComeOnOliver\u002Fskillshub","ComeOnOliver","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F43215937?v=4","01M6E5JNFECJAAVFE0W7SMWWD2","Haoran Shu","01M6E5JNNDQS7AJZDYFQ8TPZCK",67,"MIT","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002FTerminalSkills\u002Fskills\u002Fopsgenie\u002FSKILL.md",[19,24],{"categoryNo":20,"categoryName":21,"taxonomyType":22,"taxonomyTypeDesc":23},"01M8BQGD3B3T8FK02S5JVCZA1M","运维监控与告警","SCENARIO","使用场景",{"categoryNo":25,"categoryName":26,"taxonomyType":27,"taxonomyTypeDesc":28},"01M8BQGD4WETX0HM3SM9QKQ15B","SRE 工程师","PROFESSION","适用职业",[5],"2026-11-10 10:12:30",false,"# Opsgenie\n\n## Overview\n\nSet up Opsgenie for centralized alert management with routing rules, on-call schedules, escalation policies, and integrations. Covers alert API, team management, notification policies, and automation.\n\n## Instructions\n\n### Task A: Create Teams and Routing\n\n```bash\n# Create a team\ncurl -X POST \"https:\u002F\u002Fapi.opsgenie.com\u002Fv2\u002Fteams\" \\\n  -H \"Authorization: GenieKey ${OG_API_KEY}\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\n    \"name\": \"Platform Engineering\",\n    \"description\": \"Infrastructure and platform services team\",\n    \"members\": [\n      { \"user\": { \"username\": \"marta@example.com\" }, \"role\": \"admin\" },\n      { \"user\": { \"username\": \"tom@example.com\" }, \"role\": \"user\" },\n      { \"user\": { \"username\": \"nina@example.com\" }, \"role\": \"user\" }\n    ]\n  }'\n```\n\n```bash\n# Create a routing rule for the team\ncurl -X POST \"https:\u002F\u002Fapi.opsgenie.com\u002Fv2\u002Fteams\u002FPlatform%20Engineering\u002Frouting-rules\" \\\n  -H \"Authorization: GenieKey ${OG_API_KEY}\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\n    \"name\": \"Critical Production Alerts\",\n    \"order\": 0,\n    \"criteria\": {\n      \"type\": \"match-all-conditions\",\n      \"conditions\": [\n        { \"field\": \"priority\", \"operation\": \"equals\", \"expectedValue\": \"P1\" },\n        { \"field\": \"tags\", \"operation\": \"contains\", \"expectedValue\": \"production\" }\n      ]\n    },\n    \"notify\": {\n      \"type\": \"escalation\",\n      \"name\": \"Platform Critical Escalation\"\n    },\n    \"timezone\": \"America\u002FNew_York\"\n  }'\n```\n\n### Task B: Create Alerts\n\n```bash\n# Create an alert\ncurl -X POST \"https:\u002F\u002Fapi.opsgenie.com\u002Fv2\u002Falerts\" \\\n  -H \"Authorization: GenieKey ${OG_API_KEY}\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\n    \"message\": \"Payment Service: Error rate exceeded 5%\",\n    \"alias\": \"payment-service-error-rate-prod\",\n    \"description\": \"Error rate for payment-service in production has exceeded the 5% threshold. Current rate: 8.3%.\\n\\nAffected endpoints: \u002Fapi\u002Fcharge, \u002Fapi\u002Frefund\\nDashboard: https:\u002F\u002Fgrafana.internal\u002Fd\u002Fpayments\",\n    \"responders\": [\n      { \"name\": \"Platform Engineering\", \"type\": \"team\" }\n    ],\n    \"tags\": [\"production\", \"payment\", \"critical\"],\n    \"priority\": \"P1\",\n    \"entity\": \"payment-service\",\n    \"source\": \"prometheus-alertmanager\",\n    \"details\": {\n      \"error_rate\": \"8.3%\",\n      \"threshold\": \"5%\",\n      \"runbook\": \"https:\u002F\u002Fwiki.internal\u002Frunbooks\u002Fpayment-errors\"\n    }\n  }'\n```\n\n```bash\n# Acknowledge an alert\ncurl -X POST \"https:\u002F\u002Fapi.opsgenie.com\u002Fv2\u002Falerts\u002Fpayment-service-error-rate-prod\u002Facknowledge?identifierType=alias\" \\\n  -H \"Authorization: GenieKey ${OG_API_KEY}\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{ \"user\": \"marta@example.com\", \"note\": \"Investigating — checking database connections.\" }'\n```\n\n```bash\n# Close an alert\ncurl -X POST \"https:\u002F\u002Fapi.opsgenie.com\u002Fv2\u002Falerts\u002Fpayment-service-error-rate-prod\u002Fclose?identifierType=alias\" \\\n  -H \"Authorization: GenieKey ${OG_API_KEY}\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{ \"user\": \"marta@example.com\", \"note\": \"Fixed connection pool sizing. Error rate back to normal.\" }'\n```\n\n### Task C: On-Call Schedules\n\n```bash\n# Create an on-call schedule with weekly rotation\ncurl -X POST \"https:\u002F\u002Fapi.opsgenie.com\u002Fv2\u002Fschedules\" \\\n  -H \"Authorization: GenieKey ${OG_API_KEY}\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\n    \"name\": \"Platform Primary On-Call\",\n    \"ownerTeam\": { \"name\": \"Platform Engineering\" },\n    \"timezone\": \"America\u002FNew_York\",\n    \"enabled\": true,\n    \"rotations\": [\n      {\n        \"name\": \"Weekday Rotation\",\n        \"type\": \"weekly\",\n        \"startDate\": \"2026-02-23T09:00:00Z\",\n        \"participants\": [\n          { \"type\": \"user\", \"username\": \"marta@example.com\" },\n          { \"type\": \"user\", \"username\": \"tom@example.com\" },\n          { \"type\": \"user\", \"username\": \"nina@example.com\" }\n        ],\n        \"timeRestriction\": {\n          \"type\": \"weekday-and-time-of-day\",\n          \"restrictions\": [\n            { \"startDay\": \"monday\", \"startHour\": 9, \"startMin\": 0, \"endDay\": \"friday\", \"endHour\": 18, \"endMin\": 0 }\n          ]\n        }\n      }\n    ]\n  }'\n```\n\n```bash\n# Get current on-call participants\ncurl -s \"https:\u002F\u002Fapi.opsgenie.com\u002Fv2\u002Fschedules\u002FPlatform%20Primary%20On-Call\u002Fon-calls\" \\\n  -H \"Authorization: GenieKey ${OG_API_KEY}\" | \\\n  jq '.data.onCallParticipants[] | {name: .name, type: .type}'\n```\n\n### Task D: Escalation Policies\n\n```bash\n# Create an escalation policy\ncurl -X POST \"https:\u002F\u002Fapi.opsgenie.com\u002Fv2\u002Fescalations\" \\\n  -H \"Authorization: GenieKey ${OG_API_KEY}\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\n    \"name\": \"Platform Critical Escalation\",\n    \"ownerTeam\": { \"name\": \"Platform Engineering\" },\n    \"rules\": [\n      {\n        \"condition\": \"if-not-acked\",\n        \"notifyType\": \"default\",\n        \"delay\": { \"timeAmount\": 5 },\n        \"recipient\": { \"type\": \"schedule\", \"name\": \"Platform Primary On-Call\" }\n      },\n      {\n        \"condition\": \"if-not-acked\",\n        \"notifyType\": \"default\",\n        \"delay\": { \"timeAmount\": 15 },\n        \"recipient\": { \"type\": \"user\", \"username\": \"marta@example.com\" }\n      },\n      {\n        \"condition\": \"if-not-acked\",\n        \"notifyType\": \"all\",\n        \"delay\": { \"timeAmount\": 30 },\n        \"recipient\": { \"type\": \"team\", \"name\": \"Platform Engineering\" }\n      }\n    ],\n    \"repeat\": { \"waitInterval\": 10, \"count\": 3, \"resetRecipientStates\": true }\n  }'\n```\n\n### Task E: Integration with Prometheus Alertmanager\n\n```yaml\n# alertmanager.yml — Opsgenie receiver configuration\nreceivers:\n  - name: 'opsgenie-critical'\n    opsgenie_configs:\n      - api_key: '\u003COG_API_KEY>'\n        message: '{{ .CommonLabels.alertname }}: {{ .CommonAnnotations.summary }}'\n        description: '{{ .CommonAnnotations.description }}'\n        priority: '{{ if eq .CommonLabels.severity \"critical\" }}P1{{ else if eq .CommonLabels.severity \"warning\" }}P3{{ else }}P5{{ end }}'\n        tags: '{{ .CommonLabels.environment }},{{ .CommonLabels.service }}'\n        entity: '{{ .CommonLabels.service }}'\n        source: 'prometheus'\n        responders:\n          - name: 'Platform Engineering'\n            type: 'team'\n        details:\n          alertname: '{{ .CommonLabels.alertname }}'\n          cluster: '{{ .CommonLabels.cluster }}'\n```\n\n## Best Practices\n\n- Use alert aliases for deduplication so the same issue doesn't create multiple alerts\n- Configure notification policies per user — allow P1 alerts to phone at night, P3 only during work hours\n- Use routing rules to direct alerts to the correct team based on tags and priority\n- Set escalation timeouts based on SLA requirements — shorter for P1, longer for P3\n- Add runbook URLs and dashboard links in alert details for faster resolution\n- Use heartbeat monitoring to detect when integrations stop sending alerts\n",{},"main","def8531e65114c0fca8fb8551c1871ee0eed705c","skills\u002FTerminalSkills\u002Fskills\u002Fopsgenie",24,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub","https:\u002F\u002Fskillshub.wtf","https:\u002F\u002Fgithub.com\u002FComeOnOliver","AI & Blockchain Engineer\r\n","2026-06-24 22:07:19",{"source":9,"skillName":5,"commands":44,"prompt":54,"zipAvailable":55},[45,48,51],{"tool":46,"command":47},"npx","npx skills add ComeOnOliver\u002Fskillshub --skill opsgenie",{"tool":49,"command":50},"bunx","bunx skills add ComeOnOliver\u002Fskillshub --skill opsgenie",{"tool":52,"command":53},"pnpm","pnpm dlx skills add ComeOnOliver\u002Fskillshub --skill opsgenie","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002FTerminalSkills\u002Fskills\u002Fopsgenie\u002FSKILL.md",true,[],[58,67,76,85,91,97],{"skillNo":59,"name":60,"nameZh":7,"description":7,"descriptionZh":7,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":7,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":30},"01M6FKJN13GMG4KY57J3QD8GY5","model-hierarchy-skill","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzscole\u002Fmodel-hierarchy-skill\u002Fmodel-hierarchy-skill\u002FSKILL.md",[],[64,65,66],"model","model hierarchy","model hierarchy skill",{"skillNo":68,"name":69,"nameZh":7,"description":7,"descriptionZh":7,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":7,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":30},"01M6FKJJJ6GCAMR4PPPRD12M5X","zoom-mcp","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-mcp\u002FSKILL.md",[],[73,74,75],"MCP","zoom","zoom mcp",{"skillNo":77,"name":78,"nameZh":7,"description":7,"descriptionZh":7,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":7,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":30},"01M6FKJE3KYT3KPEZMEEHYKA6K","zoom-apps-sdk","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-apps-sdk\u002FSKILL.md",[],[82,83,84,74],"sdk","zoom apps sdk","apps",{"skillNo":86,"name":87,"nameZh":7,"description":7,"descriptionZh":7,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":7,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":30},"01M6FKJ9EDH9Q5VWDF8HAJRSP0","windows","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwindows\u002FSKILL.md",[],[87],{"skillNo":92,"name":93,"nameZh":7,"description":7,"descriptionZh":7,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":7,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":30},"01M6FKJ666BEEFC3AE9GJ72Q93","whiteboard","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwhiteboard\u002FSKILL.md",[],[93],{"skillNo":98,"name":99,"nameZh":7,"description":7,"descriptionZh":7,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":7,"sourceHtmlUrl":100,"categories":101,"keywords":102,"publishedAt":30},"01M6FKJ21WFCDGTJQ2Q91T9DVW","websockets","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwebsockets\u002FSKILL.md",[],[99]]