[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75H44MTYYTSBBN8TZS65QHC":3,"skill-same:01M75H44MTYYTSBBN8TZS65QHC":60},{"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":6,"updatedAt":31,"install":32,"resources":45},"01M75H44MTYYTSBBN8TZS65QHC","cost-management",null,"Cut your Grafana Cloud bill by attributing spend to teams and reducing telemetry volume. Covers FOCUS-compliant billing dashboards, cost-attribution labels in Alloy, Adaptive Metrics (cardinality reduction), Adaptive Logs (drop\u002Fsample), Adaptive Traces (tail sampling), usage alerts, and an optimization checklist. Use when investigating a high Grafana Cloud bill, attributing observability cost to a team or service, reducing active series \u002F log bytes \u002F trace spans, or setting up usage \u002F quota alerts — even when the user says \"our Grafana bill is too high\", \"who's burning the most metrics\", \"drop debug logs\", \"sample our traces\", or \"alert me before we hit quota\" without naming Cost Management.","stanfish06\u002Fskillquarium","stanfish06","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F93099613?v=4","01M75F1CK4ZW109ZK3T26VN52F","Zhiyuan","01M75F1CM53VH6F79DZ8GXKKES",12,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fcost-management\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: cost-management\nlicense: Apache-2.0\ndescription: Cut your Grafana Cloud bill by attributing spend to teams and reducing telemetry volume. Covers FOCUS-compliant billing dashboards, cost-attribution labels in Alloy, Adaptive Metrics (cardinality reduction), Adaptive Logs (drop\u002Fsample), Adaptive Traces (tail sampling), usage alerts, and an optimization checklist. Use when investigating a high Grafana Cloud bill, attributing observability cost to a team or service, reducing active series \u002F log bytes \u002F trace spans, or setting up usage \u002F quota alerts — even when the user says \"our Grafana bill is too high\", \"who's burning the most metrics\", \"drop debug logs\", \"sample our traces\", or \"alert me before we hit quota\" without naming Cost Management.\n---\n\n# Grafana Cloud Cost Management\n\n> **Docs**: https:\u002F\u002Fgrafana.com\u002Fdocs\u002Fgrafana-cloud\u002Fcost-management-and-billing\u002F\n\nReduce metric \u002F log \u002F trace spend with Adaptive signals + cost-attribution labels.\n\n## Prerequisites\n\n- A Grafana Cloud stack with Adaptive Metrics \u002F Logs \u002F Traces enabled (visible under **Cost Management**)\n- Alloy (or Grafana Agent) ingesting telemetry, with API key in scope `metrics:write` + `logs:write` (+ `traces:write`)\n- Admin access to the stack to apply Adaptive recommendations\n\n## Common Workflows\n\n### 1. Attribute cost to a team \u002F service\n\n```alloy\n# 1. Add external labels in Alloy (metrics + logs configs)\nprometheus.remote_write \"cloud\" {\n  endpoint { url = sys.env(\"PROMETHEUS_URL\") \u002F* ... *\u002F }\n  external_labels = { team = \"platform\", project = \"checkout-service\" }\n}\n```\n\n```bash\n# 2. Reload Alloy\ncurl -X POST http:\u002F\u002Flocalhost:12345\u002F-\u002Freload\n\n# 3. Verify labels arrived in Grafana Cloud\n#    In Explore, run:  count by (team, project) ({__name__=~\".+\"})\n#    Then visit Cost Management → group by `team` \u002F `project`\n```\n\nSee [`references\u002Fadaptive-signals.md`](references\u002Fadaptive-signals.md) for the full Alloy snippet.\n\n### 2. Cut metric cardinality with Adaptive Metrics\n\n```bash\n# 1. Pull recommendations\ncurl https:\u002F\u002F\u003Cstack>.grafana.net\u002Fapi\u002Fplugins\u002Fgrafana-adaptive-metrics-app\u002Fresources\u002Fv1\u002Frecommendations \\\n  -H \"Authorization: Bearer \u003Ctoken>\" | jq '.recommendations | length'\n\n# 2. In the UI: Grafana Cloud → Adaptive Metrics → review rules sorted by series-reduction impact\n# 3. Test in \"Preview\" mode before applying\n# 4. Apply (takes effect within 5 min)\n\n# 5. Verify — series count should drop on the affected metrics\n#    Before applying, capture baseline:\n#      count({__name__=\"http_request_duration_seconds_bucket\"})\n#    Wait 10 min after apply, run again — expect 10x+ reduction for high-card metrics.\n\n# Rollback if needed: open the rule in the UI → Disable, or DELETE \u002Fv1\u002Frules\u002F\u003Cid>.\n```\n\n### 3. Drop noisy logs in Alloy\n\n```alloy\n# 1. Add a filter stage (see references\u002Fadaptive-signals.md for the full block)\nloki.process \"filter_logs\" {\n  forward_to = [loki.write.cloud.receiver]\n  stage.drop { expression = \".*GET \u002Fhealth.*\" }\n}\n```\n\n```bash\n# 2. Reload Alloy\ncurl -X POST http:\u002F\u002Flocalhost:12345\u002F-\u002Freload\n\n# 3. Verify the filter — health logs should NOT appear in Logs Drilldown\n#    LogQL check (should return 0):\n#      sum(rate({app=\"my-app\"} |= \"GET \u002Fhealth\" [5m]))\n#    Bytes-ingested should also drop. Compare 24h before\u002Fafter:\n#      sum(increase(loki_ingester_chunk_size_bytes_sum[24h])) by (namespace)\n```\n\n### 4. Set a usage alert before you hit quota\n\nSee [`references\u002Falerts-and-queries.md`](references\u002Falerts-and-queries.md) for ready-to-paste rules (`MetricsUsageHigh`, `LogsIngestionHigh`).\n\n## Optimization checklist\n\n- [ ] Apply Adaptive Metrics recommendations — typically reduces series 40-60%\n- [ ] Drop health\u002Freadiness probe logs in Alloy\n- [ ] Tail-sample traces to 5-10% + keep errors \u002F slow spans\n- [ ] Add `team` + `project` external labels to every Alloy config\n- [ ] Set usage alerts at 80% of quota\n- [ ] Replace expensive ad-hoc queries with recording rules\n\n## References\n\n- [`references\u002Fadaptive-signals.md`](references\u002Fadaptive-signals.md) — Adaptive Metrics \u002F Logs \u002F Traces config; cost-attribution labels\n- [`references\u002Falerts-and-queries.md`](references\u002Falerts-and-queries.md) — usage alert rules, cost-finding PromQL, billing-unit table\n\n## Resources\n\n- [Cost Management docs](https:\u002F\u002Fgrafana.com\u002Fdocs\u002Fgrafana-cloud\u002Fcost-management-and-billing\u002F)\n- [Adaptive Metrics](https:\u002F\u002Fgrafana.com\u002Fdocs\u002Fgrafana-cloud\u002Fcost-management-and-billing\u002Freduce-costs\u002Fmetrics-costs\u002Fadaptive-metrics\u002F)\n- [Adaptive Logs](https:\u002F\u002Fgrafana.com\u002Fdocs\u002Fgrafana-cloud\u002Fcost-management-and-billing\u002Freduce-costs\u002Flogs-costs\u002F)\n","# Grafana Cloud Cost Management\n\n> **Docs**: https:\u002F\u002Fgrafana.com\u002Fdocs\u002Fgrafana-cloud\u002Fcost-management-and-billing\u002F\n\nReduce metric \u002F log \u002F trace spend with Adaptive signals + cost-attribution labels.\n\n## Prerequisites\n\n- A Grafana Cloud stack with Adaptive Metrics \u002F Logs \u002F Traces enabled (visible under **Cost Management**)\n- Alloy (or Grafana Agent) ingesting telemetry, with API key in scope `metrics:write` + `logs:write` (+ `traces:write`)\n- Admin access to the stack to apply Adaptive recommendations\n\n## Common Workflows\n\n### 1. Attribute cost to a team \u002F service\n\n```alloy\n# 1. Add external labels in Alloy (metrics + logs configs)\nprometheus.remote_write \"cloud\" {\n  endpoint { url = sys.env(\"PROMETHEUS_URL\") \u002F* ... *\u002F }\n  external_labels = { team = \"platform\", project = \"checkout-service\" }\n}\n```\n\n```bash\n# 2. Reload Alloy\ncurl -X POST http:\u002F\u002Flocalhost:12345\u002F-\u002Freload\n\n# 3. Verify labels arrived in Grafana Cloud\n#    In Explore, run:  count by (team, project) ({__name__=~\".+\"})\n#    Then visit Cost Management → group by `team` \u002F `project`\n```\n\nSee [`references\u002Fadaptive-signals.md`](references\u002Fadaptive-signals.md) for the full Alloy snippet.\n\n### 2. Cut metric cardinality with Adaptive Metrics\n\n```bash\n# 1. Pull recommendations\ncurl https:\u002F\u002F\u003Cstack>.grafana.net\u002Fapi\u002Fplugins\u002Fgrafana-adaptive-metrics-app\u002Fresources\u002Fv1\u002Frecommendations \\\n  -H \"Authorization: Bearer \u003Ctoken>\" | jq '.recommendations | length'\n\n# 2. In the UI: Grafana Cloud → Adaptive Metrics → review rules sorted by series-reduction impact\n# 3. Test in \"Preview\" mode before applying\n# 4. Apply (takes effect within 5 min)\n\n# 5. Verify — series count should drop on the affected metrics\n#    Before applying, capture baseline:\n#      count({__name__=\"http_request_duration_seconds_bucket\"})\n#    Wait 10 min after apply, run again — expect 10x+ reduction for high-card metrics.\n\n# Rollback if needed: open the rule in the UI → Disable, or DELETE \u002Fv1\u002Frules\u002F\u003Cid>.\n```\n\n### 3. Drop noisy logs in Alloy\n\n```alloy\n# 1. Add a filter stage (see references\u002Fadaptive-signals.md for the full block)\nloki.process \"filter_logs\" {\n  forward_to = [loki.write.cloud.receiver]\n  stage.drop { expression = \".*GET \u002Fhealth.*\" }\n}\n```\n\n```bash\n# 2. Reload Alloy\ncurl -X POST http:\u002F\u002Flocalhost:12345\u002F-\u002Freload\n\n# 3. Verify the filter — health logs should NOT appear in Logs Drilldown\n#    LogQL check (should return 0):\n#      sum(rate({app=\"my-app\"} |= \"GET \u002Fhealth\" [5m]))\n#    Bytes-ingested should also drop. Compare 24h before\u002Fafter:\n#      sum(increase(loki_ingester_chunk_size_bytes_sum[24h])) by (namespace)\n```\n\n### 4. Set a usage alert before you hit quota\n\nSee [`references\u002Falerts-and-queries.md`](references\u002Falerts-and-queries.md) for ready-to-paste rules (`MetricsUsageHigh`, `LogsIngestionHigh`).\n\n## Optimization checklist\n\n- [ ] Apply Adaptive Metrics recommendations — typically reduces series 40-60%\n- [ ] Drop health\u002Freadiness probe logs in Alloy\n- [ ] Tail-sample traces to 5-10% + keep errors \u002F slow spans\n- [ ] Add `team` + `project` external labels to every Alloy config\n- [ ] Set usage alerts at 80% of quota\n- [ ] Replace expensive ad-hoc queries with recording rules\n\n## References\n\n- [`references\u002Fadaptive-signals.md`](references\u002Fadaptive-signals.md) — Adaptive Metrics \u002F Logs \u002F Traces config; cost-attribution labels\n- [`references\u002Falerts-and-queries.md`](references\u002Falerts-and-queries.md) — usage alert rules, cost-finding PromQL, billing-unit table\n\n## Resources\n\n- [Cost Management docs](https:\u002F\u002Fgrafana.com\u002Fdocs\u002Fgrafana-cloud\u002Fcost-management-and-billing\u002F)\n- [Adaptive Metrics](https:\u002F\u002Fgrafana.com\u002Fdocs\u002Fgrafana-cloud\u002Fcost-management-and-billing\u002Freduce-costs\u002Fmetrics-costs\u002Fadaptive-metrics\u002F)\n- [Adaptive Logs](https:\u002F\u002Fgrafana.com\u002Fdocs\u002Fgrafana-cloud\u002Fcost-management-and-billing\u002Freduce-costs\u002Flogs-costs\u002F)\n",{"name":5,"license":15,"description":7},"master","49e49abf2f670d429e0b7e2c0349739c3fdd5cbe","skills\u002Fcost-management",5,"https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium","https:\u002F\u002Fgithub.com\u002Fstanfish06","https:\u002F\u002Fwww.stanfish.dev\u002F","2026-11-14 21:31:37",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add stanfish06\u002Fskillquarium --skill cost-management",{"tool":38,"command":39},"bunx","bunx skills add stanfish06\u002Fskillquarium --skill cost-management",{"tool":41,"command":42},"pnpm","pnpm dlx skills add stanfish06\u002Fskillquarium --skill cost-management","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fcost-management\u002FSKILL.md",true,[46,52,56],{"path":47,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":50,"sourceHtmlUrl":51},"agents\u002Fopenai.yaml","REFERENCE","参考文档",166,"https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fcost-management\u002Fagents\u002Fopenai.yaml",{"path":53,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":54,"sourceHtmlUrl":55},"references\u002Fadaptive-signals.md",2127,"https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fcost-management\u002Freferences\u002Fadaptive-signals.md",{"path":57,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":58,"sourceHtmlUrl":59},"references\u002Falerts-and-queries.md",1320,"https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fcost-management\u002Freferences\u002Falerts-and-queries.md",[61,69,77,84,91,98],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":65,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":19},"01M76ZJTRVA456GD7K8Y3EP82H","zarr-python","Stores and queries chunked N-D scientific arrays with Zarr-Python 3, including codecs, sharding, S3\u002FGCS storage, and NumPy\u002FDask\u002FXarray integration. Use for array layout, bounded I\u002FO, format migration, or scientific metadata preservation.","MIT","https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fzarr-python\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":15,"licenseFileUrl":73,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":19},"01M76ZJQZ15Q1HKC5V85NHE325","yeet","Publish local changes to GitHub by confirming scope, committing intentionally, pushing the branch, and opening a draft PR through the GitHub app from this plugin, with `gh` used only as a fallback where connector coverage is insufficient.","https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fyeet\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fyeet\u002FSKILL.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":19},"01M76ZJ8ASZ4QYQ70Y6SBA4Z4S","xarray","N-dimensional labeled arrays and datasets in Python. Built on top of NumPy and Dask. It introduces labels in the form of dimensions, coordinates, and attributes on top of raw NumPy-like arrays, making data analysis in physical sciences more intuitive and less error-prone. Use for working with multi-dimensional scientific data, NetCDF\u002FGRIB\u002FZarr files, climate\u002Fweather\u002Foceanographic datasets, remote sensing, geospatial imaging, large out-of-memory datasets with Dask, and labeled array operations.","https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fxarray\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":65,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":19},"01M76ZHFBXD6VXPQ02VCEG202B","writing-mstest-tests","Use when asked to fix, rewrite, update, improve, modernize, show corrected code for, or explain existing MSTest tests or MSTest-specific configuration. Use for \"review\" when corrected code or edits are wanted, even for one pasted assertion or passing tests with bad failure output. Covers expected\u002Factual labels; generic Boolean, collection, string, numeric, null, identity, exception, hard-cast, and object[] checks; TestContext\u002Flifecycle; timeout\u002Fcancellation; OS\u002FCI conditions, retry, cleanup, parallelization, MSTest.Sdk project setup, and MSTESTxxxx. Honor the installed MSTest version. DO NOT USE to design new test cases (code-testing), perform report-only audits, create project files rather than explain MSTest setup, run tests, migrate frameworks, or handle non-MSTest\u002Fnon-.NET code.","https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fwriting-mstest-tests\u002FSKILL.md",[],[],{"skillNo":92,"name":93,"nameZh":6,"description":94,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":65,"licenseFileUrl":6,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":19},"01M76ZDFDF4N88RH6HSYGS7GP2","wgs-prs","End-to-end WGS to polygenic risk score pipeline. Takes paired-end FASTQ files (or a pre-existing VCF) through nf-core\u002Fsarek for variant calling, applies VCF QC (normalisation, hard filtering, Ti\u002FTv and Het\u002FHom checks), then computes polygenic risk scores via the PGS Catalog. Fills the FASTQ to VCF gap upstream of the gwas-prs skill.","https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fwgs-prs\u002FSKILL.md",[],[],{"skillNo":99,"name":100,"nameZh":6,"description":101,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":102,"sourceHtmlUrl":103,"categories":104,"keywords":105,"publishedAt":19},"01M76ZCC1SC68J42QK4MDC8RCG","webapp-testing","Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.","https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fwebapp-testing\u002FSKILL.md",[],[]]