[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6EEAX2KQPEQ7BAKYT2AJG1V":3,"skill-same:01M6EEAX2KQPEQ7BAKYT2AJG1V":60},{"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":33,"linkOnly":34,"markdownContent":35,"markdownBody":35,"frontMatter":36,"refName":37,"commitSha":38,"skillDirectory":39,"forksCount":40,"repositoryHtmlUrl":41,"repositoryHomepageUrl":42,"ownerHtmlUrl":43,"ownerBlogUrl":7,"ownerDescription":44,"updatedAt":45,"install":46,"resources":59},"01M6EEAX2KQPEQ7BAKYT2AJG1V","alert-optimizer","告警规则优化",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\u002Falert-optimizer\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","适用职业",[30,31,32],"alert","optimizer","alert optimizer","2026-11-10 10:12:30",false,"# Alert Optimizer\n\n## Overview\n\nThis skill takes error analysis data (ideally from the `error-monitoring` skill) and generates optimized alert rules, severity tiers, escalation policies, and on-call runbooks. It turns a noisy alerting setup into a structured incident response system.\n\n## Instructions\n\n### 1. Understand Current State\n\nAsk for or infer:\n- Current monitoring platform (Sentry, Datadog, PagerDuty, etc.)\n- Current alert volume and on-call team size\n- Notification channels available (Slack, PagerDuty, email, SMS)\n- Any existing severity definitions\n\n### 2. Define Severity Tiers\n\nCreate a three-tier model (unless the user specifies otherwise):\n\n| Tier | Criteria | Response Time | Channel |\n|------|----------|---------------|---------|\n| P1 - Critical | Revenue impact, data loss, security breach, >50% users affected | Immediate page | PagerDuty\u002FSMS |\n| P2 - Warning | Degraded experience, >5% users affected, error rate spike | 1 hour | Slack channel |\n| P3 - Info | Known issues, cosmetic errors, self-healing transients | Weekly review | Log only |\n\n### 3. Generate Alert Rules\n\nFor each error group, produce a platform-specific alert configuration:\n- **Sentry**: JSON alert rule with conditions, filters, and actions\n- **Datadog**: Monitor definition with query, thresholds, and notification targets\n- **PagerDuty**: Event rules with severity mapping and escalation policy\n- **Generic**: Webhook payload template with routing logic\n\n### 4. Create Escalation Policies\n\nDefine who gets notified and when:\n- P1: On-call engineer immediately → team lead after 10 min → engineering manager after 30 min\n- P2: Post to team Slack channel → on-call acknowledges within 1 hour\n- P3: Aggregated weekly digest\n\n### 5. Generate Runbooks\n\nFor each P1 alert, create a runbook with:\n- **What**: One-sentence description of the alert\n- **Why it matters**: Business impact\n- **Diagnose**: First 3 steps to investigate\n- **Fix**: Common resolutions\n- **Escalate**: When and to whom\n\n## Examples\n\n### Example 1: Sentry Alert Rules\n\n**Input**: Error audit showing PaymentProcessingError as P1, RedisTimeout as P3.\n\n**Output**:\n```json\n{\n  \"rules\": [\n    {\n      \"name\": \"P1: Payment Processing Failure\",\n      \"conditions\": [\n        {\"id\": \"sentry.rules.conditions.event_frequency\", \"value\": 1, \"interval\": \"5m\"}\n      ],\n      \"filters\": [\n        {\"id\": \"sentry.rules.filters.tagged_event\", \"key\": \"error_type\", \"value\": \"PaymentProcessingError\"}\n      ],\n      \"actions\": [\n        {\"id\": \"sentry.integrations.pagerduty.notify_action\", \"service\": \"engineering-oncall\"},\n        {\"id\": \"sentry.integrations.slack.notify_action\", \"channel\": \"#incidents\", \"tags\": \"environment,transaction\"}\n      ],\n      \"frequency\": 5\n    },\n    {\n      \"name\": \"P3: Redis Connection Timeout (Log Only)\",\n      \"conditions\": [\n        {\"id\": \"sentry.rules.conditions.event_frequency\", \"value\": 100, \"interval\": \"1h\"}\n      ],\n      \"filters\": [\n        {\"id\": \"sentry.rules.filters.tagged_event\", \"key\": \"error_type\", \"value\": \"TimeoutError\"}\n      ],\n      \"actions\": [],\n      \"frequency\": 1440\n    }\n  ]\n}\n```\n\n### Example 2: On-Call Runbook Entry\n\n**Input**: P1 alert for database deadlocks.\n\n**Output**:\n```markdown\n## RUNBOOK: Database Deadlock Detected\n\n**Alert**: DatabaseError: deadlock detected in order processing\n**Severity**: P1 — Revenue impact, orders fail silently\n**Response**: Immediate — acknowledge within 5 minutes\n\n### Diagnose\n1. Check current DB connections: `SELECT * FROM pg_stat_activity WHERE state = 'active' ORDER BY query_start;`\n2. Identify locked queries: `SELECT * FROM pg_locks WHERE NOT granted;`\n3. Check if deployment happened in last 30 min (new query pattern?)\n\n### Common Fixes\n- Kill the blocking query: `SELECT pg_terminate_backend(\u003Cpid>);`\n- If recurring post-deploy: rollback last migration\n- If load-related: enable connection pooling or add read replica\n\n### Escalate\n- If not resolved in 15 min → page team lead\n- If data corruption suspected → page engineering manager + DB admin\n```\n\n## Guidelines\n\n- Always deduplicate alert rules — one root cause should trigger one alert, not five\n- Set reasonable frequency caps: P1 alerts should re-fire every 5 minutes max, P3 should be daily at most\n- Include \"auto-resolve\" rules where appropriate (e.g., error rate drops below threshold)\n- Runbooks should be copy-pasteable — include actual commands, not pseudocode\n- When the user has fewer than 3 people on-call, simplify escalation to two tiers\n- Test configurations by asking the user to dry-run before applying\n",{},"main","def8531e65114c0fca8fb8551c1871ee0eed705c","skills\u002FTerminalSkills\u002Fskills\u002Falert-optimizer",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":47,"prompt":57,"zipAvailable":58},[48,51,54],{"tool":49,"command":50},"npx","npx skills add ComeOnOliver\u002Fskillshub --skill alert-optimizer",{"tool":52,"command":53},"bunx","bunx skills add ComeOnOliver\u002Fskillshub --skill alert-optimizer",{"tool":55,"command":56},"pnpm","pnpm dlx skills add ComeOnOliver\u002Fskillshub --skill alert-optimizer","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002FTerminalSkills\u002Fskills\u002Falert-optimizer\u002FSKILL.md",true,[],[61,70,79,88,94,100],{"skillNo":62,"name":63,"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":64,"categories":65,"keywords":66,"publishedAt":33},"01M6FKJN13GMG4KY57J3QD8GY5","model-hierarchy-skill","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzscole\u002Fmodel-hierarchy-skill\u002Fmodel-hierarchy-skill\u002FSKILL.md",[],[67,68,69],"model","model hierarchy","model hierarchy skill",{"skillNo":71,"name":72,"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":73,"categories":74,"keywords":75,"publishedAt":33},"01M6FKJJJ6GCAMR4PPPRD12M5X","zoom-mcp","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-mcp\u002FSKILL.md",[],[76,77,78],"MCP","zoom","zoom mcp",{"skillNo":80,"name":81,"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":82,"categories":83,"keywords":84,"publishedAt":33},"01M6FKJE3KYT3KPEZMEEHYKA6K","zoom-apps-sdk","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-apps-sdk\u002FSKILL.md",[],[85,86,87,77],"sdk","zoom apps sdk","apps",{"skillNo":89,"name":90,"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":91,"categories":92,"keywords":93,"publishedAt":33},"01M6FKJ9EDH9Q5VWDF8HAJRSP0","windows","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwindows\u002FSKILL.md",[],[90],{"skillNo":95,"name":96,"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":97,"categories":98,"keywords":99,"publishedAt":33},"01M6FKJ666BEEFC3AE9GJ72Q93","whiteboard","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwhiteboard\u002FSKILL.md",[],[96],{"skillNo":101,"name":102,"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":103,"categories":104,"keywords":105,"publishedAt":33},"01M6FKJ21WFCDGTJQ2Q91T9DVW","websockets","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwebsockets\u002FSKILL.md",[],[102]]