[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6C61NG9H0TM1FN9VJV2AMMF":3,"skill-same:01M6C61NG9H0TM1FN9VJV2AMMF":86},{"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":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":56,"linkOnly":57,"markdownContent":58,"markdownBody":59,"frontMatter":60,"refName":64,"commitSha":65,"skillDirectory":66,"forksCount":67,"repositoryHtmlUrl":68,"repositoryHomepageUrl":17,"ownerHtmlUrl":69,"ownerBlogUrl":17,"ownerDescription":70,"updatedAt":71,"install":72,"resources":85},"01M6C61NG9H0TM1FN9VJV2AMMF","actions-billing-usage","GitHub Actions成本分析","Measure GitHub Actions cost with the billing-usage API — per repo, month and SKU; net vs gross; per-job rounding; budgets and their hard stop. Use when optimizing CI cost or speed, before removing a workflow as expensive, or when jobs fail with zero steps because a budget ran out.","使用 billing-usage API 测量 GitHub Actions 成本——按仓库、月份和 SKU 划分；净额与总额对比；按作业（job）四舍五入；预算及其硬性停止机制。适用于优化 CI 成本或速度、在因成本高昂而移除工作流之前，或当作业因预算耗尽而以零步骤失败时使用。","laurigates\u002Fclaude-plugins","laurigates","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F13014001?v=4","01M6C59YHWS9C7KMXKSRX1YXNP","Lauri Gates","01M6C59YP2APG9YAM4DWYQYGFJ",60,"MIT",null,"https:\u002F\u002Fgithub.com\u002Flaurigates\u002Fclaude-plugins\u002Fblob\u002Fmain\u002Fgithub-actions-plugin\u002Fskills\u002Factions-billing-usage\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQGD4WETX0HM3SM9QKQ15B","SRE 工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BW60ZFWDZV0VMGET8T2FHG","云成本管理与优化","SCENARIO","使用场景",[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55],"usage","actions","billing","actions billing usage","repo","when","with","sep","as","speed","cost","use","list","read","github","jq","gh","Bash","api","Budget","ZeRO","github actions","ci","run","workflow","2026-11-10 10:12:30",false,"---\nname: actions-billing-usage\ndescription: Measure GitHub Actions cost with the billing-usage API — per repo, month and SKU; net vs gross; per-job rounding; budgets and their hard stop. Use when optimizing CI cost or speed, before removing a workflow as expensive, or when jobs fail with zero steps because a budget ran out.\nallowed-tools: Bash(gh api *), Bash(gh run list *), Bash(jq *), Read, TodoWrite\ncreated: 2026-09-24\nmodified: 2026-10-27\nreviewed: 2026-09-24\n---\n\n# Before Optimizing CI Cost, Read the Billing-Usage API\n\nPromoted from the always-loaded `ci-cost-read-the-billing-api.md` portfolio\nrule, whose stub keeps the gate line.\n\nAny \"make CI cheaper \u002F faster\" task starts with a guess about *where the cost\nis*, and across a portfolio that guess is reliably wrong. The intuition follows\n**where the interesting work is** (the private repos, the big builds); the\nactual minutes follow **how often a workflow fires**, which is dominated by\nautomation nobody thinks of as expensive. GitHub will tell you exactly, per\nrepo, per month, per SKU — ask it first, then optimize.\n\n## When to Use This Skill\n\n| Use this skill when... | Skip when... |\n|---|---|\n| A runner-tier, concurrency, caching, or scheduling change is pitched as a cost or speed win | The target is a single known-slow workflow you are already measuring directly |\n| About to *remove* a workflow \"because it must be expensive\" | |\n| A bill moved and the cause isn't obvious — the per-repo × per-month breakdown localizes it in one call | |\n| Adding automation, to decide whether it gets its own job | |\n| Every job in an org fails at once with no steps and no log — see [Budgets](#budgets-the-hard-stop-and-what-it-looks-like) | |\n\n## The endpoint (the obvious one is gone)\n\n```\ngh api \"\u002Fusers\u002F\u003Cuser>\u002Fsettings\u002Fbilling\u002Fusage\"\n```\n\n> `\u002Fusers\u002F\u003Cuser>\u002Fsettings\u002Fbilling\u002Factions` — the endpoint most examples and most\n> recall still name — now returns **HTTP 410** *\"This endpoint has been moved.\"*\n> That 410 is easy to misread as \"no billing data available on this plan\" and\n> skip the measurement entirely.\n\nOrg equivalent of the working endpoint: `\u002Forgs\u002F\u003Corg>\u002Fsettings\u002Fbilling\u002Fusage`.\n\nAggregate before reading; the raw response is one row per repo × month × SKU:\n\n```\ngh api \"\u002Fusers\u002F\u003Cu>\u002Fsettings\u002Fbilling\u002Fusage\" --jq '[.usageItems[] | select(.product==\"actions\" and .unitType==\"Minutes\")] | group_by(.repositoryName) | map({repo:.[0].repositoryName, minutes:(map(.quantity)|add), net:(map(.netAmount)|add)}) | sort_by(-.minutes)'\n```\n\n## Reading it correctly\n\n- **The filter takes the *bare* repo name, not `owner\u002Frepo`.**\n  `select(.repositoryName == \"\u003Cowner>\u002F\u003Crepo>\")` returns `[]`, which is\n  indistinguishable from \"this repo bills nothing\"; `\"\u003Crepo>\"` returns the rows.\n  The owner-qualified filter has reported nothing for a repo billing thousands\n  of minutes that month, and a cost argument was nearly built on that empty\n  result. Control-test an empty billing filter against a repo you know is\n  active before believing it.\n- **`netAmount`, not `grossAmount`, is the spend.** Public-repo minutes are free\n  and unlimited, so their rows read `grossAmount == discountAmount` and\n  `netAmount == 0`. A repo showing a large gross may be costing nothing — but\n  it's still where a runner-tier change would pay off *once* charges begin, so\n  read both: gross for **exposure**, net for **current spend**.\n- **Group by SKU too** (`Actions Linux` vs `Actions Linux Slim` vs\n  `Actions macOS 3-core`) — it reveals which tiers are already in use and their\n  `pricePerUnit`, so the cheaper-runner arithmetic needs no lookup.\n- **Read the monthly trend, not just the total.** A flat annual figure hides an\n  exponential; the decision usually turns on the slope.\n- **The default response is windowed — the obvious call will not give you the\n  trend.** A bare `\u002Forgs\u002F\u003Corg>\u002Fsettings\u002Fbilling\u002Fusage` returns only a slice\n  (observed 2026-08: Jan–Feb only, for a repo with a full year of activity), and\n  nothing in the payload says it was truncated. Build the trend from explicit\n  per-month calls and let the months you asked for be the months you got:\n\n  ```\n  for m in $(seq 1 12); do gh api \"\u002Forgs\u002F\u003Corg>\u002Fsettings\u002Fbilling\u002Fusage?year=2026&month=$m\" --jq \"[.usageItems[] | select(.product==\\\"actions\\\" and .unitType==\\\"Minutes\\\" and .repositoryName==\\\"\u003Crepo>\\\")] | map(.quantity) | add \u002F\u002F 0\" ; done\n  ```\n- **Read the outcome distribution, not just the minutes.** Minutes tell you\n  something is expensive; outcomes tell you whether you are buying anything.\n  An E2E suite billing close to an hour per run while `cancel-in-progress`\n  killed it about halfway through succeeded a few percent of the time.\n  \"Expensive\" argues for a cheaper runner; \"expensive and almost never\n  succeeding\" argues for deleting or fixing the workflow. Same bill, different\n  decision. Pull conclusions alongside cost:\n\n  ```\n  gh run list -R \u003Cowner>\u002F\u003Crepo> --workflow \u003Cname> -L 400 --json conclusion --jq 'group_by(.conclusion) | map({(.[0].conclusion \u002F\u002F \"null\"): length}) | add'\n  ```\n- **`\u002Factions\u002Fworkflows\u002F\u003Cid>\u002Ftiming` is empty for public repos** — billable ms\n  is only populated where minutes are billed. Approximate per-workflow cost\n  instead:\n\n  ```\n  gh run list -R \u003Cowner>\u002F\u003Crepo> -L 400 --json workflowName,startedAt,updatedAt\n  ```\n\n  then group durations by `workflowName`. Good enough to rank; don't quote it as\n  billing truth — run wall-clock includes queue and finalisation time that is not\n  billed, so it **over-counts** (measured ~16% above the billing API for the\n  same repo and period). Rank with wall-clock; quote the API.\n\n## Minutes are billed per job, rounded up\n\n> \"GitHub rounds the minutes and partial minutes **each job** uses up to the\n> nearest whole minute\" — [Actions runner pricing](https:\u002F\u002Fdocs.github.com\u002Fen\u002Fbilling\u002Freference\u002Factions-runner-pricing).\n\nPer *job*, not per run: a workflow with three four-second jobs bills three\nminutes. Linux 2-core is $0.006\u002Fmin, Linux Slim $0.002\u002Fmin. The billing rows\nshow the rounding directly — the `quantity` for `Actions Linux` and\n`Actions Linux Slim` is always a whole number.\n\nTwo consequences when adding automation rather than optimizing it:\n\n- **Fold trivial work into a job that already runs.** A seconds-long check (for\n  example, renumbering a docs file) belongs in an existing docs job rather than\n  a workflow of its own, which would bill a whole minute per trigger.\n- **A job skipped by an `if:` bills nothing; a job that starts and exits early\n  still bills its rounded minute.** When the point is to *not* pay, put the\n  condition on the job — or on the expensive step, which also skips the model\n  spend of an LLM-backed check.\n\n## Budgets: the hard stop, and what it looks like\n\nAn Actions budget with `prevent_further_usage: true` stops every GitHub-hosted\njob in its scope once net spend reaches the amount, tests and release automation\nincluded. It reads as a code failure:\n\n| Where you look | What it shows |\n|---|---|\n| `gh pr checks` \u002F run conclusion | `failure` on every job, across unrelated repos |\n| `gh api repos\u002F\u003Co>\u002F\u003Cr>\u002Factions\u002Fruns\u002F\u003Cid>\u002Fjobs` | `steps` empty, `runner_name` empty |\n| `gh run view \u003Cid> --log-failed` | `log not found` |\n| `gh api repos\u002F\u003Co>\u002F\u003Cr>\u002Fcheck-runs\u002F\u003Cjob-id>\u002Fannotations --jq '.[].message'` | **\"The job was not started because an Actions budget is preventing further use.\"** |\n\nRead the annotation before the log: the log does not exist. Confirm with the\nbudget list. The response carries no spend, so compare `budget_amount` with the\nmonth's net from the usage endpoint ([The endpoint](#the-endpoint-the-obvious-one-is-gone)):\n\n```\ngh api \"\u002Forganizations\u002F\u003Corg>\u002Fsettings\u002Fbilling\u002Fbudgets\" --jq '.budgets[] | select(.budget_product_sku==\"actions\") | {budget_scope, budget_entity_name, budget_amount, prevent_further_usage}'\n```\n\nThe budgets API ([REST: budgets](https:\u002F\u002Fdocs.github.com\u002Fen\u002Frest\u002Fbilling\u002Fbudgets))\nsupports full create, read, update and delete for an organization. `budget_scope` is `organization` or\n`repository` (`budget_entity_name: \"\u003Cowner>\u002F\u003Crepo>\"`), and `budget_type` is\n`ProductPricing` (all of Actions) or `SkuPricing` (one runner SKU). Two gaps\nto plan around:\n\n- **What a repo-scoped hard stop blocks is undocumented.** The docs say only\n  that \"if any budget with *Stop usage* enabled is exhausted, additional usage is\n  blocked\", not whether a repository budget blocks that repository or the whole\n  org. Until that is settled, set repository budgets alert-only\n  (`prevent_further_usage: false`). Keep the org budget as the single hard stop.\n- **Terraform cannot manage them.** `integrations\u002Fgithub` 6.13.0 has no budget\n  resource. The open request\n  ([#3561](https:\u002F\u002Fgithub.com\u002Fintegrations\u002Fterraform-provider-github\u002Fissues\u002F3561))\n  proposes enterprise budgets only. Declare budgets in a version-controlled file\n  and diff it against the API on a schedule instead.\n\nA monitor that shares the budget cannot act once the stop has fired, because it\nis blocked too. Anything that sheds load (disabling optional workflows) must act\non a *projection* ahead of the limit. It must also fail red when it cannot read\nbilling: the old `\u002Fbilling\u002Factions` endpoint returns 410 (see *The endpoint*),\nand a monitor that treated that as \"no data\" stayed green for months while spend\nquintupled.\n\n## Why it changes the answer\n\nIn a portfolio runner audit, the plan was to move cheap jobs to a 1-CPU runner,\nand the expected win sat in the private repos with real pipelines. The billing\nAPI said **one** repo — a *public* plugin collection with no build step worth\nmentioning — was the large majority of standard-Linux minutes, driven purely by\nscheduled audits and PR automation. Every private repo that would have been\noptimized first was ≈0 minutes. The month-over-month trend (roughly tripling\nover a quarter, with the first net charges arriving) was what justified acting\nat all. Without that one query the work would have landed almost entirely in\nthe wrong repos.\n\n## Agentic Optimizations\n\n| Context | Command |\n|---|---|\n| Minutes and net spend per repo | the aggregate query under *The endpoint* |\n| Which runner tiers bill | that query with `group_by(.sku)` and `sku:.[0].sku` in place of the repo grouping |\n| One month, one repo (bare name) | `gh api \"\u002Forgs\u002F\u003Corg>\u002Fsettings\u002Fbilling\u002Fusage?year=2026&month=9\" --jq '[.usageItems[] \\| select(.product==\"actions\" and .unitType==\"Minutes\" and .repositoryName==\"\u003Crepo>\")] \\| map(.quantity) \\| add \u002F\u002F 0'` |\n| Outcomes per workflow | `gh run list -R \u003Co>\u002F\u003Cr> --workflow \u003Cname> -L 400 --json conclusion --jq 'group_by(.conclusion) \\| map({(.[0].conclusion \u002F\u002F \"null\"): length}) \\| add'` |\n| Was a red job refused by a budget? | `gh api repos\u002F\u003Co>\u002F\u003Cr>\u002Fcheck-runs\u002F\u003Cjob-id>\u002Fannotations --jq '.[].message'` |\n| Actions budgets and their stop setting | `gh api \"\u002Forganizations\u002F\u003Corg>\u002Fsettings\u002Fbilling\u002Fbudgets\" --jq '.budgets[] \\| select(.budget_product_sku==\"actions\")'` |\n\n## Related\n\n- `finops-plugin:github-actions-finops` — the org\u002Frepo waste sweep (skipped\n  runs, bot triggers, missing concurrency) that reads this same endpoint; this\n  skill owns reading the endpoint itself\n\n- `offload-to-deterministic-substrate.md` (in `~\u002F.claude\u002Frules\u002F`) — one API call\n  beats re-deriving cost from run logs by hand, every time.\n- `code-quality-plugin:debugging-methodology` § Diagnose at the Failure Point — same law applied\n  to runtime: measure the thing, don't reason about it. Here the \"failure point\"\n  is the invoice.\n- `github-actions-plugin:multirepo-ci-cd` — the portfolio-sweep mechanics you'll\n  use once the billing data has told you which repos to sweep.\n","# Before Optimizing CI Cost, Read the Billing-Usage API\n\nPromoted from the always-loaded `ci-cost-read-the-billing-api.md` portfolio\nrule, whose stub keeps the gate line.\n\nAny \"make CI cheaper \u002F faster\" task starts with a guess about *where the cost\nis*, and across a portfolio that guess is reliably wrong. The intuition follows\n**where the interesting work is** (the private repos, the big builds); the\nactual minutes follow **how often a workflow fires**, which is dominated by\nautomation nobody thinks of as expensive. GitHub will tell you exactly, per\nrepo, per month, per SKU — ask it first, then optimize.\n\n## When to Use This Skill\n\n| Use this skill when... | Skip when... |\n|---|---|\n| A runner-tier, concurrency, caching, or scheduling change is pitched as a cost or speed win | The target is a single known-slow workflow you are already measuring directly |\n| About to *remove* a workflow \"because it must be expensive\" | |\n| A bill moved and the cause isn't obvious — the per-repo × per-month breakdown localizes it in one call | |\n| Adding automation, to decide whether it gets its own job | |\n| Every job in an org fails at once with no steps and no log — see [Budgets](#budgets-the-hard-stop-and-what-it-looks-like) | |\n\n## The endpoint (the obvious one is gone)\n\n```\ngh api \"\u002Fusers\u002F\u003Cuser>\u002Fsettings\u002Fbilling\u002Fusage\"\n```\n\n> `\u002Fusers\u002F\u003Cuser>\u002Fsettings\u002Fbilling\u002Factions` — the endpoint most examples and most\n> recall still name — now returns **HTTP 410** *\"This endpoint has been moved.\"*\n> That 410 is easy to misread as \"no billing data available on this plan\" and\n> skip the measurement entirely.\n\nOrg equivalent of the working endpoint: `\u002Forgs\u002F\u003Corg>\u002Fsettings\u002Fbilling\u002Fusage`.\n\nAggregate before reading; the raw response is one row per repo × month × SKU:\n\n```\ngh api \"\u002Fusers\u002F\u003Cu>\u002Fsettings\u002Fbilling\u002Fusage\" --jq '[.usageItems[] | select(.product==\"actions\" and .unitType==\"Minutes\")] | group_by(.repositoryName) | map({repo:.[0].repositoryName, minutes:(map(.quantity)|add), net:(map(.netAmount)|add)}) | sort_by(-.minutes)'\n```\n\n## Reading it correctly\n\n- **The filter takes the *bare* repo name, not `owner\u002Frepo`.**\n  `select(.repositoryName == \"\u003Cowner>\u002F\u003Crepo>\")` returns `[]`, which is\n  indistinguishable from \"this repo bills nothing\"; `\"\u003Crepo>\"` returns the rows.\n  The owner-qualified filter has reported nothing for a repo billing thousands\n  of minutes that month, and a cost argument was nearly built on that empty\n  result. Control-test an empty billing filter against a repo you know is\n  active before believing it.\n- **`netAmount`, not `grossAmount`, is the spend.** Public-repo minutes are free\n  and unlimited, so their rows read `grossAmount == discountAmount` and\n  `netAmount == 0`. A repo showing a large gross may be costing nothing — but\n  it's still where a runner-tier change would pay off *once* charges begin, so\n  read both: gross for **exposure**, net for **current spend**.\n- **Group by SKU too** (`Actions Linux` vs `Actions Linux Slim` vs\n  `Actions macOS 3-core`) — it reveals which tiers are already in use and their\n  `pricePerUnit`, so the cheaper-runner arithmetic needs no lookup.\n- **Read the monthly trend, not just the total.** A flat annual figure hides an\n  exponential; the decision usually turns on the slope.\n- **The default response is windowed — the obvious call will not give you the\n  trend.** A bare `\u002Forgs\u002F\u003Corg>\u002Fsettings\u002Fbilling\u002Fusage` returns only a slice\n  (observed 2026-08: Jan–Feb only, for a repo with a full year of activity), and\n  nothing in the payload says it was truncated. Build the trend from explicit\n  per-month calls and let the months you asked for be the months you got:\n\n  ```\n  for m in $(seq 1 12); do gh api \"\u002Forgs\u002F\u003Corg>\u002Fsettings\u002Fbilling\u002Fusage?year=2026&month=$m\" --jq \"[.usageItems[] | select(.product==\\\"actions\\\" and .unitType==\\\"Minutes\\\" and .repositoryName==\\\"\u003Crepo>\\\")] | map(.quantity) | add \u002F\u002F 0\" ; done\n  ```\n- **Read the outcome distribution, not just the minutes.** Minutes tell you\n  something is expensive; outcomes tell you whether you are buying anything.\n  An E2E suite billing close to an hour per run while `cancel-in-progress`\n  killed it about halfway through succeeded a few percent of the time.\n  \"Expensive\" argues for a cheaper runner; \"expensive and almost never\n  succeeding\" argues for deleting or fixing the workflow. Same bill, different\n  decision. Pull conclusions alongside cost:\n\n  ```\n  gh run list -R \u003Cowner>\u002F\u003Crepo> --workflow \u003Cname> -L 400 --json conclusion --jq 'group_by(.conclusion) | map({(.[0].conclusion \u002F\u002F \"null\"): length}) | add'\n  ```\n- **`\u002Factions\u002Fworkflows\u002F\u003Cid>\u002Ftiming` is empty for public repos** — billable ms\n  is only populated where minutes are billed. Approximate per-workflow cost\n  instead:\n\n  ```\n  gh run list -R \u003Cowner>\u002F\u003Crepo> -L 400 --json workflowName,startedAt,updatedAt\n  ```\n\n  then group durations by `workflowName`. Good enough to rank; don't quote it as\n  billing truth — run wall-clock includes queue and finalisation time that is not\n  billed, so it **over-counts** (measured ~16% above the billing API for the\n  same repo and period). Rank with wall-clock; quote the API.\n\n## Minutes are billed per job, rounded up\n\n> \"GitHub rounds the minutes and partial minutes **each job** uses up to the\n> nearest whole minute\" — [Actions runner pricing](https:\u002F\u002Fdocs.github.com\u002Fen\u002Fbilling\u002Freference\u002Factions-runner-pricing).\n\nPer *job*, not per run: a workflow with three four-second jobs bills three\nminutes. Linux 2-core is $0.006\u002Fmin, Linux Slim $0.002\u002Fmin. The billing rows\nshow the rounding directly — the `quantity` for `Actions Linux` and\n`Actions Linux Slim` is always a whole number.\n\nTwo consequences when adding automation rather than optimizing it:\n\n- **Fold trivial work into a job that already runs.** A seconds-long check (for\n  example, renumbering a docs file) belongs in an existing docs job rather than\n  a workflow of its own, which would bill a whole minute per trigger.\n- **A job skipped by an `if:` bills nothing; a job that starts and exits early\n  still bills its rounded minute.** When the point is to *not* pay, put the\n  condition on the job — or on the expensive step, which also skips the model\n  spend of an LLM-backed check.\n\n## Budgets: the hard stop, and what it looks like\n\nAn Actions budget with `prevent_further_usage: true` stops every GitHub-hosted\njob in its scope once net spend reaches the amount, tests and release automation\nincluded. It reads as a code failure:\n\n| Where you look | What it shows |\n|---|---|\n| `gh pr checks` \u002F run conclusion | `failure` on every job, across unrelated repos |\n| `gh api repos\u002F\u003Co>\u002F\u003Cr>\u002Factions\u002Fruns\u002F\u003Cid>\u002Fjobs` | `steps` empty, `runner_name` empty |\n| `gh run view \u003Cid> --log-failed` | `log not found` |\n| `gh api repos\u002F\u003Co>\u002F\u003Cr>\u002Fcheck-runs\u002F\u003Cjob-id>\u002Fannotations --jq '.[].message'` | **\"The job was not started because an Actions budget is preventing further use.\"** |\n\nRead the annotation before the log: the log does not exist. Confirm with the\nbudget list. The response carries no spend, so compare `budget_amount` with the\nmonth's net from the usage endpoint ([The endpoint](#the-endpoint-the-obvious-one-is-gone)):\n\n```\ngh api \"\u002Forganizations\u002F\u003Corg>\u002Fsettings\u002Fbilling\u002Fbudgets\" --jq '.budgets[] | select(.budget_product_sku==\"actions\") | {budget_scope, budget_entity_name, budget_amount, prevent_further_usage}'\n```\n\nThe budgets API ([REST: budgets](https:\u002F\u002Fdocs.github.com\u002Fen\u002Frest\u002Fbilling\u002Fbudgets))\nsupports full create, read, update and delete for an organization. `budget_scope` is `organization` or\n`repository` (`budget_entity_name: \"\u003Cowner>\u002F\u003Crepo>\"`), and `budget_type` is\n`ProductPricing` (all of Actions) or `SkuPricing` (one runner SKU). Two gaps\nto plan around:\n\n- **What a repo-scoped hard stop blocks is undocumented.** The docs say only\n  that \"if any budget with *Stop usage* enabled is exhausted, additional usage is\n  blocked\", not whether a repository budget blocks that repository or the whole\n  org. Until that is settled, set repository budgets alert-only\n  (`prevent_further_usage: false`). Keep the org budget as the single hard stop.\n- **Terraform cannot manage them.** `integrations\u002Fgithub` 6.13.0 has no budget\n  resource. The open request\n  ([#3561](https:\u002F\u002Fgithub.com\u002Fintegrations\u002Fterraform-provider-github\u002Fissues\u002F3561))\n  proposes enterprise budgets only. Declare budgets in a version-controlled file\n  and diff it against the API on a schedule instead.\n\nA monitor that shares the budget cannot act once the stop has fired, because it\nis blocked too. Anything that sheds load (disabling optional workflows) must act\non a *projection* ahead of the limit. It must also fail red when it cannot read\nbilling: the old `\u002Fbilling\u002Factions` endpoint returns 410 (see *The endpoint*),\nand a monitor that treated that as \"no data\" stayed green for months while spend\nquintupled.\n\n## Why it changes the answer\n\nIn a portfolio runner audit, the plan was to move cheap jobs to a 1-CPU runner,\nand the expected win sat in the private repos with real pipelines. The billing\nAPI said **one** repo — a *public* plugin collection with no build step worth\nmentioning — was the large majority of standard-Linux minutes, driven purely by\nscheduled audits and PR automation. Every private repo that would have been\noptimized first was ≈0 minutes. The month-over-month trend (roughly tripling\nover a quarter, with the first net charges arriving) was what justified acting\nat all. Without that one query the work would have landed almost entirely in\nthe wrong repos.\n\n## Agentic Optimizations\n\n| Context | Command |\n|---|---|\n| Minutes and net spend per repo | the aggregate query under *The endpoint* |\n| Which runner tiers bill | that query with `group_by(.sku)` and `sku:.[0].sku` in place of the repo grouping |\n| One month, one repo (bare name) | `gh api \"\u002Forgs\u002F\u003Corg>\u002Fsettings\u002Fbilling\u002Fusage?year=2026&month=9\" --jq '[.usageItems[] \\| select(.product==\"actions\" and .unitType==\"Minutes\" and .repositoryName==\"\u003Crepo>\")] \\| map(.quantity) \\| add \u002F\u002F 0'` |\n| Outcomes per workflow | `gh run list -R \u003Co>\u002F\u003Cr> --workflow \u003Cname> -L 400 --json conclusion --jq 'group_by(.conclusion) \\| map({(.[0].conclusion \u002F\u002F \"null\"): length}) \\| add'` |\n| Was a red job refused by a budget? | `gh api repos\u002F\u003Co>\u002F\u003Cr>\u002Fcheck-runs\u002F\u003Cjob-id>\u002Fannotations --jq '.[].message'` |\n| Actions budgets and their stop setting | `gh api \"\u002Forganizations\u002F\u003Corg>\u002Fsettings\u002Fbilling\u002Fbudgets\" --jq '.budgets[] \\| select(.budget_product_sku==\"actions\")'` |\n\n## Related\n\n- `finops-plugin:github-actions-finops` — the org\u002Frepo waste sweep (skipped\n  runs, bot triggers, missing concurrency) that reads this same endpoint; this\n  skill owns reading the endpoint itself\n\n- `offload-to-deterministic-substrate.md` (in `~\u002F.claude\u002Frules\u002F`) — one API call\n  beats re-deriving cost from run logs by hand, every time.\n- `code-quality-plugin:debugging-methodology` § Diagnose at the Failure Point — same law applied\n  to runtime: measure the thing, don't reason about it. Here the \"failure point\"\n  is the invoice.\n- `github-actions-plugin:multirepo-ci-cd` — the portfolio-sweep mechanics you'll\n  use once the billing data has told you which repos to sweep.\n",{"name":5,"created":61,"modified":62,"reviewed":61,"description":7,"allowed-tools":63},1790208000000,1793059200000,"Bash(gh api *), Bash(gh run list *), Bash(jq *), Read, TodoWrite","main","bdd0582f1a2ba53d21061835bfd72d45f2f954f4","github-actions-plugin\u002Fskills\u002Factions-billing-usage",6,"https:\u002F\u002Fgithub.com\u002Flaurigates\u002Fclaude-plugins","https:\u002F\u002Fgithub.com\u002Flaurigates","Linux enthusiast, cloud engineer, neovim addict, electronics hobbyist.","2026-11-15 03:36:11",{"source":9,"skillName":5,"commands":73,"prompt":83,"zipAvailable":84},[74,77,80],{"tool":75,"command":76},"npx","npx skills add laurigates\u002Fclaude-plugins --skill actions-billing-usage",{"tool":78,"command":79},"bunx","bunx skills add laurigates\u002Fclaude-plugins --skill actions-billing-usage",{"tool":81,"command":82},"pnpm","pnpm dlx skills add laurigates\u002Fclaude-plugins --skill actions-billing-usage","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flaurigates\u002Fclaude-plugins\u002Fblob\u002Fmain\u002Fgithub-actions-plugin\u002Fskills\u002Factions-billing-usage\u002FSKILL.md",true,[],[87,95,117,138,154,176],{"skillNo":88,"name":89,"nameZh":17,"description":90,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":94},"01M7DS1CAJ1ESDX08PENF01J0S","session-workflow-capture","Workflow-tool scripts and workflow friction from this session, filed as issues here or in the plugins repo. Use when a session ran Workflow scripts.","https:\u002F\u002Fgithub.com\u002Flaurigates\u002Fclaude-plugins\u002Fblob\u002Fmain\u002Fsession-plugin\u002Fskills\u002Fsession-workflow-capture\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":96,"name":97,"nameZh":17,"description":98,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":56},"01M70PFHMH9ADY0CRE6047Y4B2","kitty-show-image","Show the user an image with a note on what to judge, via a file send or a labelled kitty tab. Use when the user must see an image, or icat fails with no \u002Fdev\u002Ftty.","https:\u002F\u002Fgithub.com\u002Flaurigates\u002Fclaude-plugins\u002Fblob\u002Fmain\u002Fkitty-plugin\u002Fskills\u002Fkitty-show-image\u002FSKILL.md",[],[102,103,104,105,106,107,108,109,110,111,42,36,48,112,113,37,114,115,116,44],"show","kitty show image","image","kitty","show image","ls","get","send","open","dev","file","text","xdg","via","2026",{"skillNo":118,"name":119,"nameZh":17,"description":120,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":121,"categories":122,"keywords":123,"publishedAt":56},"01M70PFEN18HKQ4RCQ1VPGMPTB","kitty-session-persistence","Snapshot and restore kitty terminal sessions on macOS. Use when surviving WindowServer hangs without losing tabs, configuring snapshots, or restoring after a force-reboot.","https:\u002F\u002Fgithub.com\u002Flaurigates\u002Fclaude-plugins\u002Fblob\u002Fmain\u002Fkitty-plugin\u002Fskills\u002Fkitty-session-persistence\u002FSKILL.md",[],[105,124,125,126,127,128,36,48,129,130,131,116,44,132,133,134,135,136,137,42],"kitty session persistence","session","persistence","false","snapshots","uname","reboot","terminal","write","edit","snapshot","macos","sessions","restore",{"skillNo":139,"name":140,"nameZh":17,"description":141,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":142,"categories":143,"keywords":144,"publishedAt":56},"01M70PFC77XGXCVQ1543VGZHYR","kitty-remote-control","Safe kitty remote control from an agent — read panes with kitty @ ls\u002Fget-text, notify, and never mutate the live terminal unasked. Use when running inside kitty.","https:\u002F\u002Fgithub.com\u002Flaurigates\u002Fclaude-plugins\u002Fblob\u002Fmain\u002Fkitty-plugin\u002Fskills\u002Fkitty-remote-control\u002FSKILL.md",[],[145,146,105,147,148,107,149,150,108,151,152,42,36,153,48,113,37,131,116,44],"kitty remote control","remote","control","remote control","running","never","panes","notify","query",{"skillNo":155,"name":156,"nameZh":17,"description":157,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":158,"categories":159,"keywords":160,"publishedAt":56},"01M70P6WVMCT5JG4SACTM69AF9","docs-reference-check","Dangling doc-reference gate: flag markdown naming repo paths or relative links that no longer exist. Use when docs cite moved\u002Fdeleted files, or wiring a doc-drift lint.","https:\u002F\u002Fgithub.com\u002Flaurigates\u002Fclaude-plugins\u002Fblob\u002Fmain\u002Fdocumentation-plugin\u002Fskills\u002Fdocs-reference-check\u002FSKILL.md",[],[161,162,163,164,165,166,167,35,168,169,42,36,48,170,112,171,172,173,174,175],"docs reference check","check","reference check","reference","docs","links","python3","files","auto","drift","lint","wiring","chezmoi","references","cp",{"skillNo":177,"name":178,"nameZh":179,"description":180,"descriptionZh":181,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":182,"categories":183,"keywords":190,"publishedAt":56},"01M6C6NDE7DAQGNWSF22J5CJ0Z","youtube-upload","YouTube 视频上传与编辑","Upload a video to YouTube via the Data API v3 and edit its title, description, tags or thumbnail afterwards. Use when publishing or retitling a YouTube video.","通过 Data API v3 将视频上传到 YouTube，并在之后编辑其标题、描述、标签或缩略图。适用于发布 YouTube 视频或修改其标题。","https:\u002F\u002Fgithub.com\u002Flaurigates\u002Fclaude-plugins\u002Fblob\u002Fmain\u002Fyoutube-plugin\u002Fskills\u002Fyoutube-upload\u002FSKILL.md",[184,187],{"categoryNo":185,"categoryName":186,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQV98WRP4APE9VKKKKJ6FV","社交媒体与内容平台管理",{"categoryNo":188,"categoryName":189,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8C55A3R2M9C8CAKG3W16HTA","内容创作者",[191,192,193,194,167,54,44,195,133,196,197,198,42,48,112,49,199,36,200,201,202,115,116],"youtube upload","upload","youtube","Video","uv run","publishing","data","uv","v3","tags","id","title"]