[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M79AJJ0PW2Q1722Y0SAQCVGJ":3,"skill-same:01M79AJJ0PW2Q1722Y0SAQCVGJ":53},{"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":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":30,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M79AJJ0PW2Q1722Y0SAQCVGJ","grafana-promql",null,"Write, validate, and optimize PromQL for Prometheus \u002F Grafana Mimir \u002F Grafana Cloud Metrics. Covers `rate` vs `irate` vs `increase`, label matchers and regex, `sum \u002F avg \u002F topk \u002F by \u002F without` aggregation, classic + native `histogram_quantile`, ratios with divide-by-zero guards, `absent` \u002F `changes` for staleness, time offsets and `predict_linear`, recording-rule naming, SLO + burn-rate math, and a cardinality-hunting playbook. Use when writing a metric query, fixing wrong p95s, building an error-budget alert, debugging \"query is slow\", finding the noisy label that blew up cardinality, or migrating a dashboard query to a recording rule — even when the user says \"calculate the error rate\", \"p99 latency\", \"sum by service\", \"why is this query slow\", or \"what's filling Mimir\" without naming PromQL.","yhyu13\u002FAgentSkillsVault","yhyu13","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F19365678?v=4","01M79A3XCF5M26GEWS60XQQRWW","俞航","01M79A3XD7YZ779GGWS41K367S",3,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fyhyu13\u002FAgentSkillsVault\u002Fblob\u002Fmain\u002FSKILL\u002Fdevops\u002Ftier3\u002Fgrafana-promql\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: grafana-promql\nlicense: Apache-2.0\ndescription: Write, validate, and optimize PromQL for Prometheus \u002F Grafana Mimir \u002F Grafana Cloud Metrics. Covers `rate` vs `irate` vs `increase`, label matchers and regex, `sum \u002F avg \u002F topk \u002F by \u002F without` aggregation, classic + native `histogram_quantile`, ratios with divide-by-zero guards, `absent` \u002F `changes` for staleness, time offsets and `predict_linear`, recording-rule naming, SLO + burn-rate math, and a cardinality-hunting playbook. Use when writing a metric query, fixing wrong p95s, building an error-budget alert, debugging \"query is slow\", finding the noisy label that blew up cardinality, or migrating a dashboard query to a recording rule — even when the user says \"calculate the error rate\", \"p99 latency\", \"sum by service\", \"why is this query slow\", or \"what's filling Mimir\" without naming PromQL.\n---\n\n# PromQL Query Patterns\n\n> **Docs**: https:\u002F\u002Fprometheus.io\u002Fdocs\u002Fprometheus\u002Flatest\u002Fquerying\u002Fbasics\u002F\n\nPromQL returns either an **instant vector**, a **range vector**, or a **scalar**.\n\n**Golden rule:** `rate()` \u002F `increase()` require a range vector ≥ 4× the scrape interval. 60s scrape → use `[5m]` minimum.\n\n## Prerequisites\n\n- A Prometheus \u002F Mimir \u002F Grafana Cloud endpoint to query (`\u002Fapi\u002Fv1\u002Fquery` or via Grafana Explore)\n- The PromQL pattern library in [`references\u002Fpatterns.md`](references\u002Fpatterns.md)\n\n## Common Workflows\n\n### 1. Write + validate a query\n\n```bash\n# 0. Point at your Prometheus\u002FMimir. For Grafana Cloud, use the metrics endpoint\n#    and add basic auth (-u \"\u003Cmetrics_user>:\u003Ctoken>\") to each curl below.\nPROM=http:\u002F\u002Flocalhost:9090   # or https:\u002F\u002Fprometheus-prod-XX.grafana.net\u002Fapi\u002Fprom\n\n# 1. Sketch the query — for \"5xx error rate per service\":\nEXPR='sum(rate(http_requests_total{status_code=~\"5..\"}[5m])) by (service)'\n\n# 2. Validate syntax + that the metric\u002Flabels exist\ncurl -sG --data-urlencode \"query=${EXPR}\" \\\n  \"$PROM\u002Fapi\u002Fv1\u002Fquery\" | jq '.status, (.data.result|length)'\n# Expect: \"success\" and result count > 0. If 0 — check label spelling and scrape activity:\ncurl -sG --data-urlencode \"match[]=http_requests_total\" \"$PROM\u002Fapi\u002Fv1\u002Fseries\" | jq '.data | length'\n\n# 3. Sanity-check the magnitude — open Grafana Explore, paste the expr,\n#    confirm the values look right against a known ground truth (k6 run, log count, etc.)\n```\n\n### 2. Common patterns to copy\n\n**Per-status request rate** (aggregate AFTER rate):\n\n```promql\nsum(rate(http_requests_total{job=\"api\"}[5m])) by (status_code)\n```\n\n**p95 latency** (must keep `le` in the inner aggregation):\n\n```promql\nhistogram_quantile(0.95,\n  sum(rate(http_request_duration_seconds_bucket[5m])) by (le, service))\n```\n\n**Error rate with divide-by-zero guard:**\n\n```promql\nsum(rate(http_requests_total{status_code=~\"5..\"}[5m]))\n  \u002F (sum(rate(http_requests_total[5m])) > 0)\n```\n\nFull library (recording rules, SLO burn-rate, offsets, cardinality hunt, native histograms): [`references\u002Fpatterns.md`](references\u002Fpatterns.md).\n\n### 3. Convert a slow dashboard query into a recording rule\n\n```yaml\n# 1. Pick the slow expression, give it a recording-rule name\ngroups:\n  - name: http_request_rates\n    interval: 1m\n    rules:\n      - record: job:http_request_duration_p95:rate5m\n        expr: |\n          histogram_quantile(0.95,\n            sum(rate(http_request_duration_seconds_bucket[5m])) by (le, job))\n```\n\n```bash\n# 2. After rules load, verify the new metric exists\ncurl -sG --data-urlencode \"query=job:http_request_duration_p95:rate5m\" \\\n  \"$PROM\u002Fapi\u002Fv1\u002Fquery\" | jq '.data.result | length'   # → > 0\n\n# 3. Verify it matches the original expression for at least one sample window\n# (Both queries should produce the same value at the same timestamp.)\n\n# 4. Replace the dashboard panel expression with the recording-rule metric.\n```\n\n## Common bugs\n\n- `histogram_quantile` returns NaN → forgot `by (le)` in the inner aggregation\n- \"No data\" → check the metric exists (`\u002Fapi\u002Fv1\u002Fseries`) and the window ≥ 4× scrape interval\n- Wrong rate magnitude → counter was aggregated before `rate()` (always `rate()` first)\n- Query timeout → series count too high; use `topk(...)` + a recording rule + drop high-cardinality labels (see [`references\u002Fpatterns.md`](references\u002Fpatterns.md))\n\n## Resources\n\n- [PromQL basics](https:\u002F\u002Fprometheus.io\u002Fdocs\u002Fprometheus\u002Flatest\u002Fquerying\u002Fbasics\u002F)\n- [Operators](https:\u002F\u002Fprometheus.io\u002Fdocs\u002Fprometheus\u002Flatest\u002Fquerying\u002Foperators\u002F)\n- [Functions](https:\u002F\u002Fprometheus.io\u002Fdocs\u002Fprometheus\u002Flatest\u002Fquerying\u002Ffunctions\u002F)\n- [Grafana Mimir](https:\u002F\u002Fgrafana.com\u002Fdocs\u002Fmimir\u002Flatest\u002F)\n","# PromQL Query Patterns\n\n> **Docs**: https:\u002F\u002Fprometheus.io\u002Fdocs\u002Fprometheus\u002Flatest\u002Fquerying\u002Fbasics\u002F\n\nPromQL returns either an **instant vector**, a **range vector**, or a **scalar**.\n\n**Golden rule:** `rate()` \u002F `increase()` require a range vector ≥ 4× the scrape interval. 60s scrape → use `[5m]` minimum.\n\n## Prerequisites\n\n- A Prometheus \u002F Mimir \u002F Grafana Cloud endpoint to query (`\u002Fapi\u002Fv1\u002Fquery` or via Grafana Explore)\n- The PromQL pattern library in [`references\u002Fpatterns.md`](references\u002Fpatterns.md)\n\n## Common Workflows\n\n### 1. Write + validate a query\n\n```bash\n# 0. Point at your Prometheus\u002FMimir. For Grafana Cloud, use the metrics endpoint\n#    and add basic auth (-u \"\u003Cmetrics_user>:\u003Ctoken>\") to each curl below.\nPROM=http:\u002F\u002Flocalhost:9090   # or https:\u002F\u002Fprometheus-prod-XX.grafana.net\u002Fapi\u002Fprom\n\n# 1. Sketch the query — for \"5xx error rate per service\":\nEXPR='sum(rate(http_requests_total{status_code=~\"5..\"}[5m])) by (service)'\n\n# 2. Validate syntax + that the metric\u002Flabels exist\ncurl -sG --data-urlencode \"query=${EXPR}\" \\\n  \"$PROM\u002Fapi\u002Fv1\u002Fquery\" | jq '.status, (.data.result|length)'\n# Expect: \"success\" and result count > 0. If 0 — check label spelling and scrape activity:\ncurl -sG --data-urlencode \"match[]=http_requests_total\" \"$PROM\u002Fapi\u002Fv1\u002Fseries\" | jq '.data | length'\n\n# 3. Sanity-check the magnitude — open Grafana Explore, paste the expr,\n#    confirm the values look right against a known ground truth (k6 run, log count, etc.)\n```\n\n### 2. Common patterns to copy\n\n**Per-status request rate** (aggregate AFTER rate):\n\n```promql\nsum(rate(http_requests_total{job=\"api\"}[5m])) by (status_code)\n```\n\n**p95 latency** (must keep `le` in the inner aggregation):\n\n```promql\nhistogram_quantile(0.95,\n  sum(rate(http_request_duration_seconds_bucket[5m])) by (le, service))\n```\n\n**Error rate with divide-by-zero guard:**\n\n```promql\nsum(rate(http_requests_total{status_code=~\"5..\"}[5m]))\n  \u002F (sum(rate(http_requests_total[5m])) > 0)\n```\n\nFull library (recording rules, SLO burn-rate, offsets, cardinality hunt, native histograms): [`references\u002Fpatterns.md`](references\u002Fpatterns.md).\n\n### 3. Convert a slow dashboard query into a recording rule\n\n```yaml\n# 1. Pick the slow expression, give it a recording-rule name\ngroups:\n  - name: http_request_rates\n    interval: 1m\n    rules:\n      - record: job:http_request_duration_p95:rate5m\n        expr: |\n          histogram_quantile(0.95,\n            sum(rate(http_request_duration_seconds_bucket[5m])) by (le, job))\n```\n\n```bash\n# 2. After rules load, verify the new metric exists\ncurl -sG --data-urlencode \"query=job:http_request_duration_p95:rate5m\" \\\n  \"$PROM\u002Fapi\u002Fv1\u002Fquery\" | jq '.data.result | length'   # → > 0\n\n# 3. Verify it matches the original expression for at least one sample window\n# (Both queries should produce the same value at the same timestamp.)\n\n# 4. Replace the dashboard panel expression with the recording-rule metric.\n```\n\n## Common bugs\n\n- `histogram_quantile` returns NaN → forgot `by (le)` in the inner aggregation\n- \"No data\" → check the metric exists (`\u002Fapi\u002Fv1\u002Fseries`) and the window ≥ 4× scrape interval\n- Wrong rate magnitude → counter was aggregated before `rate()` (always `rate()` first)\n- Query timeout → series count too high; use `topk(...)` + a recording rule + drop high-cardinality labels (see [`references\u002Fpatterns.md`](references\u002Fpatterns.md))\n\n## Resources\n\n- [PromQL basics](https:\u002F\u002Fprometheus.io\u002Fdocs\u002Fprometheus\u002Flatest\u002Fquerying\u002Fbasics\u002F)\n- [Operators](https:\u002F\u002Fprometheus.io\u002Fdocs\u002Fprometheus\u002Flatest\u002Fquerying\u002Foperators\u002F)\n- [Functions](https:\u002F\u002Fprometheus.io\u002Fdocs\u002Fprometheus\u002Flatest\u002Fquerying\u002Ffunctions\u002F)\n- [Grafana Mimir](https:\u002F\u002Fgrafana.com\u002Fdocs\u002Fmimir\u002Flatest\u002F)\n",{"name":5,"license":15,"description":7},"main","3b63fa056f5de7956766fca020e9c71fdf2b0fab","SKILL\u002Fdevops\u002Ftier3\u002Fgrafana-promql",0,"https:\u002F\u002Fgithub.com\u002Fyhyu13\u002FAgentSkillsVault","https:\u002F\u002Fgithub.com\u002Fyhyu13","https:\u002F\u002Fyhyu13.github.io","大丈夫自立于天地之间，岂可郁郁久居于人下\r\nA zealot of AI.","2026-11-14 20:53:07",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add yhyu13\u002FAgentSkillsVault --skill grafana-promql",{"tool":39,"command":40},"bunx","bunx skills add yhyu13\u002FAgentSkillsVault --skill grafana-promql",{"tool":42,"command":43},"pnpm","pnpm dlx skills add yhyu13\u002FAgentSkillsVault --skill grafana-promql","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fyhyu13\u002FAgentSkillsVault\u002Fblob\u002Fmain\u002FSKILL\u002Fdevops\u002Ftier3\u002Fgrafana-promql\u002FSKILL.md",true,[47],{"path":48,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":51,"sourceHtmlUrl":52},"references\u002Fpatterns.md","REFERENCE","参考文档",4453,"https:\u002F\u002Fgithub.com\u002Fyhyu13\u002FAgentSkillsVault\u002Fblob\u002Fmain\u002FSKILL\u002Fdevops\u002Ftier3\u002Fgrafana-promql\u002Freferences\u002Fpatterns.md",[54,62,69,76,83,90],{"skillNo":55,"name":56,"nameZh":6,"description":57,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":58,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":19},"01M7DZJW3GMCBHNCC1J37K73T7","feishu-kdocs-cli","Office cloud CLIs for agents: install, authenticate, verify and troubleshoot Feishu `lark-cli` and Kingsoft\u002FWPS Docs `kdocs-cli`, plus the three China office MCP endpoints (Feishu, WPS SkillHub, Tencent Docs). Use when setting up or re-logging-in 飞书 CLI \u002F 金山文档 CLI, when a command fails with missing scope \u002F PATH \u002F token \u002F device-code errors, when a kdocs or lark command returns 400001 or unknown action, or when wiring 飞书 \u002F 金山文档 \u002F 腾讯文档 MCP into Cindy, Claude or another host. Not a per-command reference: domain commands live in the lark-* Skills and the kdocs Skill.","MIT","https:\u002F\u002Fgithub.com\u002Fyhyu13\u002FAgentSkillsVault\u002Fblob\u002Fmain\u002FSKILL\u002Fdevops\u002Ftier0\u002Ffeishu-kdocs-cli\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":58,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":19},"01M7BE0VQF0T7ACMY3W9V27ZYG","vfx-fx","Cinematic and game VFX in Blender including smoke, fire, particles, trails, and Geometry Nodes FX setups via MCP.","https:\u002F\u002Fgithub.com\u002Fyhyu13\u002FAgentSkillsVault\u002Fblob\u002Fmain\u002FSKILL\u002Fgame-dev\u002Ftier2\u002Fvfx-fx\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":58,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M7BE0Q23SY6QAW24XEADEH0N","uv-workflow","Production UV unwrapping for seam placement, UV packing, texel density, UDIM, lightmap UVs, and modular UV layouts. Use when preparing meshes for texturing and engine export in Blender via MCP.","https:\u002F\u002Fgithub.com\u002Fyhyu13\u002FAgentSkillsVault\u002Fblob\u002Fmain\u002FSKILL\u002Fgame-dev\u002Ftier2\u002Fuv-workflow\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":58,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":19},"01M7BE0JAKENVJB4Z0SV3Q7QGR","texture-workflow","Production texture workflow for atlases, baking AO\u002Fcurvature\u002Fnormal\u002Froughness maps, decals, and texture memory optimization. Use for game-ready texture pipelines in Blender via MCP.","https:\u002F\u002Fgithub.com\u002Fyhyu13\u002FAgentSkillsVault\u002Fblob\u002Fmain\u002FSKILL\u002Fgame-dev\u002Ftier2\u002Ftexture-workflow\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":58,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":19},"01M7BE0CYB7BDJP7HD5WTS2PJB","sculpting","Blender sculpting for organic and hard surface detail using Dyntopo, multiresolution, brushes, alpha workflow, wrinkles, and damage. Use when high-frequency surface detail is needed before retopology in Blender via MCP.","https:\u002F\u002Fgithub.com\u002Fyhyu13\u002FAgentSkillsVault\u002Fblob\u002Fmain\u002FSKILL\u002Fgame-dev\u002Ftier2\u002Fsculpting\u002FSKILL.md",[],[],{"skillNo":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":58,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":19},"01M7BE09TBX9NQ5EBHN4JZ9VXM","scene-assembly","Large scene layout in Blender with collections, linking, overrides, streaming-friendly organization, and set assembly via MCP.","https:\u002F\u002Fgithub.com\u002Fyhyu13\u002FAgentSkillsVault\u002Fblob\u002Fmain\u002FSKILL\u002Fgame-dev\u002Ftier2\u002Fscene-assembly\u002FSKILL.md",[],[]]