[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6JQ1F2Z9XT6M2QP90WKVZWF":3,"skill-same:01M6JQ1F2Z9XT6M2QP90WKVZWF":71},{"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":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":44,"commitSha":45,"skillDirectory":46,"forksCount":14,"repositoryHtmlUrl":47,"repositoryHomepageUrl":6,"ownerHtmlUrl":48,"ownerBlogUrl":6,"ownerDescription":49,"updatedAt":50,"install":51,"resources":64},"01M6JQ1F2Z9XT6M2QP90WKVZWF","finops-cost-optimization",null,"Understand and reduce cloud spend — cost visibility and allocation (tagging, ownership), unit economics, rightsizing, autoscaling, commitment discounts (reserved instances, savings plans), storage\u002Fegress traps, architecture cost review, budgets and anomaly alerts. Triggers: cloud costs, AWS bill, cut costs, cost optimization, FinOps, why is our bill so high, rightsizing, reserved instances, savings plan, egress fees, cost per customer. Whether to build or buy a capability → build-vs-buy; making code faster → performance-optimization.","SWEStash\u002Fswe-workflow-skills","SWEStash","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F272895713?v=4","01M6JNRQ84JN5WFK9S1V5H4G46","SWE Stash","01M6JNRQCM45X8WPNHY30TSAB0",1,"MIT","https:\u002F\u002Fgithub.com\u002FSWEStash\u002Fswe-workflow-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fstrategy\u002Fskills\u002Ffinops-cost-optimization\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"finops cost optimization","cost optimization","finops","Optimization","cost","plan","reduce","autoscaling","economics","unit","cut","alerts","instances","review","why","code","architecture","storage","customer","performance","2026-11-10 10:12:30",false,"---\nname: finops-cost-optimization\ndescription: \"Understand and reduce cloud spend — cost visibility and allocation (tagging, ownership), unit economics, rightsizing, autoscaling, commitment discounts (reserved instances, savings plans), storage\u002Fegress traps, architecture cost review, budgets and anomaly alerts. Triggers: cloud costs, AWS bill, cut costs, cost optimization, FinOps, why is our bill so high, rightsizing, reserved instances, savings plan, egress fees, cost per customer. Whether to build or buy a capability → build-vs-buy; making code faster → performance-optimization.\"\n---\n\n# FinOps & Cost Optimization\n\nTreat cloud cost as an engineering metric — observable, attributed, and\noptimized with the same rigor as latency. The failure mode this skill counters:\nnobody owns the bill, so it only gets attention as a quarterly surprise, and\nthe response is a panicked freeze instead of systematic reduction. Boundaries:\n`performance-optimization` makes code faster (sometimes cheaper as a side\neffect); `build-vs-buy` decides whether to run the capability at all; this\nskill optimizes what you *do* run.\n\n## Workflow\n\n### Step 1: Visibility Before Optimization\n\nYou can't cut what you can't attribute. Establish first:\n\n- **Allocation**: tag\u002Flabel resources by service, team, and environment;\n  measure the untagged remainder and drive it down — an 40%-unattributed bill\n  makes every later step guesswork.\n- **The big rocks**: rank spend by service and by resource type. Cloud bills\n  follow a power law; the top 5 line items usually carry most of the total.\n  Optimizing anything outside them is procrastination with charts.\n- **Trend vs events**: is spend growing with usage (fine, if unit costs hold),\n  or did it step-change with a deploy (an incident with a dollar signature)?\n\nPull real billing data (cost explorer exports, `infracost` on IaC diffs, the\nprovider CLIs) — never optimize from memory of last quarter's bill.\n\n### Step 2: Define Unit Economics\n\nTotal spend is noise; **cost per unit of value** — per customer, per request,\nper GB processed, per model inference — is signal. A bill that doubles while\ncustomers triple is a win. Pick 1–3 unit metrics with the team, compute them\nfrom the Step-1 allocation, and make them the number optimization is judged by.\nThis is also what connects engineering to the business conversation\n(`metrics-and-okrs`).\n\n### Step 3: Harvest the Waste (no architecture changes)\n\nThe reliable first wins, in typical order of return:\n\n- **Orphans**: unattached volumes\u002FIPs, forgotten environments, snapshots-forever,\n  idle dev clusters running nights and weekends (schedule them off).\n- **Rightsizing**: instances\u002Fdatabases provisioned for imagined peak — check\n  actual utilization (single-digit CPU on a large instance is a purchase order\n  for the cloud provider, not capacity planning).\n- **Storage classes & lifecycle**: hot-tier data nobody has read in a year;\n  logs and backups with no expiry — lifecycle policies are one-line fixes.\n- **Non-prod parity**: staging doesn't need production's instance sizes,\n  replica counts, or retention.\n\n### Step 4: Buy Commitment for the Stable Baseline\n\nAfter rightsizing (never before — you'd lock in the waste): cover the stable,\npredictable baseline with reserved instances \u002F savings plans \u002F committed-use\ndiscounts, and keep the spiky remainder on-demand or spot (spot for\ninterruption-tolerant work: batch, CI, stateless workers). Start conservative\n(cover well under 100% of the baseline) and ratchet up as forecasts prove out —\nover-commitment converts a variable cost into a fixed regret.\n\n### Step 5: Review the Architecture's Cost Shape\n\nSome spend is structural, and only architecture changes move it:\n\n- **Egress and cross-zone\u002Fregion chatter** — the classic invisible line item;\n  co-locate chatty services, cache at the edge, compress.\n- **Per-invocation pricing at scale** — serverless that grew past the\n  crossover where instances are cheaper (and vice versa: idle instances that\n  should be serverless).\n- **Managed-premium vs ops-burden** — the managed service's markup is often\n  worth it (that's a `build-vs-buy` call when it gets big).\n- **Data pipelines** — scan-based pricing (warehouse queries over unpartitioned\n  tables) and always-on streaming for hourly-batch needs (`data-pipeline-design`).\n\nCost these with current provider pricing (verify live — pricing changes), and\nrecord significant trade-offs as ADRs (`architecture-design`).\n\n### Step 6: Keep It Continuous\n\n- **Budgets + anomaly alerts** per team\u002Fservice, routed to the owning team —\n  a cost regression is a defect, detected in days not quarters.\n- **Cost in the deploy loop**: IaC cost diffs (e.g. infracost) in PRs makes\n  cost visible at decision time.\n- **A monthly 30-minute review** of the unit metrics and top movers beats an\n  annual cost-cutting project.\n\n## Principles Applied\n\n- **Attribution before optimization** — unowned costs never stay cut.\n- **Unit economics over totals** — growth should raise the bill; only rising\n  *unit* cost is a problem.\n- **Biggest line item first** — a 10% cut of the top item beats a 90% cut of\n  the tenth.\n\n## Cross-Skill References\n\n- `build-vs-buy` — whether to run the capability at all; managed-vs-self-hosted TCO\n- `performance-optimization` — efficiency work that reduces compute per request\n- `architecture-design` — recording cost-driven structural decisions as ADRs\n- `observability-design` — the metrics\u002Falerting machinery cost signals ride on\n- `data-pipeline-design` — cost-shaping batch\u002Fstreaming and warehouse workloads\n- `metrics-and-okrs` — tying unit economics to business metrics\n","# FinOps & Cost Optimization\n\nTreat cloud cost as an engineering metric — observable, attributed, and\noptimized with the same rigor as latency. The failure mode this skill counters:\nnobody owns the bill, so it only gets attention as a quarterly surprise, and\nthe response is a panicked freeze instead of systematic reduction. Boundaries:\n`performance-optimization` makes code faster (sometimes cheaper as a side\neffect); `build-vs-buy` decides whether to run the capability at all; this\nskill optimizes what you *do* run.\n\n## Workflow\n\n### Step 1: Visibility Before Optimization\n\nYou can't cut what you can't attribute. Establish first:\n\n- **Allocation**: tag\u002Flabel resources by service, team, and environment;\n  measure the untagged remainder and drive it down — an 40%-unattributed bill\n  makes every later step guesswork.\n- **The big rocks**: rank spend by service and by resource type. Cloud bills\n  follow a power law; the top 5 line items usually carry most of the total.\n  Optimizing anything outside them is procrastination with charts.\n- **Trend vs events**: is spend growing with usage (fine, if unit costs hold),\n  or did it step-change with a deploy (an incident with a dollar signature)?\n\nPull real billing data (cost explorer exports, `infracost` on IaC diffs, the\nprovider CLIs) — never optimize from memory of last quarter's bill.\n\n### Step 2: Define Unit Economics\n\nTotal spend is noise; **cost per unit of value** — per customer, per request,\nper GB processed, per model inference — is signal. A bill that doubles while\ncustomers triple is a win. Pick 1–3 unit metrics with the team, compute them\nfrom the Step-1 allocation, and make them the number optimization is judged by.\nThis is also what connects engineering to the business conversation\n(`metrics-and-okrs`).\n\n### Step 3: Harvest the Waste (no architecture changes)\n\nThe reliable first wins, in typical order of return:\n\n- **Orphans**: unattached volumes\u002FIPs, forgotten environments, snapshots-forever,\n  idle dev clusters running nights and weekends (schedule them off).\n- **Rightsizing**: instances\u002Fdatabases provisioned for imagined peak — check\n  actual utilization (single-digit CPU on a large instance is a purchase order\n  for the cloud provider, not capacity planning).\n- **Storage classes & lifecycle**: hot-tier data nobody has read in a year;\n  logs and backups with no expiry — lifecycle policies are one-line fixes.\n- **Non-prod parity**: staging doesn't need production's instance sizes,\n  replica counts, or retention.\n\n### Step 4: Buy Commitment for the Stable Baseline\n\nAfter rightsizing (never before — you'd lock in the waste): cover the stable,\npredictable baseline with reserved instances \u002F savings plans \u002F committed-use\ndiscounts, and keep the spiky remainder on-demand or spot (spot for\ninterruption-tolerant work: batch, CI, stateless workers). Start conservative\n(cover well under 100% of the baseline) and ratchet up as forecasts prove out —\nover-commitment converts a variable cost into a fixed regret.\n\n### Step 5: Review the Architecture's Cost Shape\n\nSome spend is structural, and only architecture changes move it:\n\n- **Egress and cross-zone\u002Fregion chatter** — the classic invisible line item;\n  co-locate chatty services, cache at the edge, compress.\n- **Per-invocation pricing at scale** — serverless that grew past the\n  crossover where instances are cheaper (and vice versa: idle instances that\n  should be serverless).\n- **Managed-premium vs ops-burden** — the managed service's markup is often\n  worth it (that's a `build-vs-buy` call when it gets big).\n- **Data pipelines** — scan-based pricing (warehouse queries over unpartitioned\n  tables) and always-on streaming for hourly-batch needs (`data-pipeline-design`).\n\nCost these with current provider pricing (verify live — pricing changes), and\nrecord significant trade-offs as ADRs (`architecture-design`).\n\n### Step 6: Keep It Continuous\n\n- **Budgets + anomaly alerts** per team\u002Fservice, routed to the owning team —\n  a cost regression is a defect, detected in days not quarters.\n- **Cost in the deploy loop**: IaC cost diffs (e.g. infracost) in PRs makes\n  cost visible at decision time.\n- **A monthly 30-minute review** of the unit metrics and top movers beats an\n  annual cost-cutting project.\n\n## Principles Applied\n\n- **Attribution before optimization** — unowned costs never stay cut.\n- **Unit economics over totals** — growth should raise the bill; only rising\n  *unit* cost is a problem.\n- **Biggest line item first** — a 10% cut of the top item beats a 90% cut of\n  the tenth.\n\n## Cross-Skill References\n\n- `build-vs-buy` — whether to run the capability at all; managed-vs-self-hosted TCO\n- `performance-optimization` — efficiency work that reduces compute per request\n- `architecture-design` — recording cost-driven structural decisions as ADRs\n- `observability-design` — the metrics\u002Falerting machinery cost signals ride on\n- `data-pipeline-design` — cost-shaping batch\u002Fstreaming and warehouse workloads\n- `metrics-and-okrs` — tying unit economics to business metrics\n",{"name":5,"description":7},"main","800dc9ad0ca2914d6ad15b8c5159d9b57bb104c2","plugins\u002Fstrategy\u002Fskills\u002Ffinops-cost-optimization","https:\u002F\u002Fgithub.com\u002FSWEStash\u002Fswe-workflow-skills","https:\u002F\u002Fgithub.com\u002FSWEStash","A stash of things we felt like building","2026-11-12 00:14:33",{"source":8,"skillName":5,"commands":52,"prompt":62,"zipAvailable":63},[53,56,59],{"tool":54,"command":55},"npx","npx skills add SWEStash\u002Fswe-workflow-skills --skill finops-cost-optimization",{"tool":57,"command":58},"bunx","bunx skills add SWEStash\u002Fswe-workflow-skills --skill finops-cost-optimization",{"tool":60,"command":61},"pnpm","pnpm dlx skills add SWEStash\u002Fswe-workflow-skills --skill finops-cost-optimization","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FSWEStash\u002Fswe-workflow-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fstrategy\u002Fskills\u002Ffinops-cost-optimization\u002FSKILL.md",true,[65],{"path":66,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":69,"sourceHtmlUrl":70},"evals\u002Fevals.json","REFERENCE","参考文档",4104,"https:\u002F\u002Fgithub.com\u002FSWEStash\u002Fswe-workflow-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fstrategy\u002Fskills\u002Ffinops-cost-optimization\u002Fevals\u002Fevals.json",[72,99,125,148,174,198],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":39},"01M6JQFADV3T1MS9V1BNZS1232","writing-skills","Use when authoring, editing, or reviewing a skill in this library — a new SKILL.md, one that under-triggers, or hardening an existing one. Covers description and listing-budget rules, frontmatter, progressive disclosure, the 3-eval rule, and pressure-testing against rationalizations.","https:\u002F\u002Fgithub.com\u002FSWEStash\u002Fswe-workflow-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwriting-skills\u002FSKILL.md",[],[79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98],"writing","writing skills","testing","eval","write","edit","Budget","authoring","new skill","library","frontmatter","editing","triggers","use","Existing","Rules","write a skill","when","listing","progressive disclosure",{"skillNo":100,"name":101,"nameZh":6,"description":102,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":103,"categories":104,"keywords":105,"publishedAt":39},"01M6JQF5DGMXPMQQVZBP8DH9SY","working-agreement","Define and validate how a multi-session project is run — where plans, status and decisions live, session routines, new work, milestone close. README\u002FCONTRIBUTING → project-documentation.","https:\u002F\u002Fgithub.com\u002FSWEStash\u002Fswe-workflow-skills\u002Fblob\u002Fmain\u002Fskills\u002Fworking-agreement\u002FSKILL.md",[],[106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,91,124],"working agreement","project","definition of done","done","milestone","documentation","work","progress","how","contributing","close","run","sync","status","live","do","README","session","routines",{"skillNo":126,"name":127,"nameZh":6,"description":128,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":129,"categories":130,"keywords":131,"publishedAt":39},"01M6JQF0SMRHN82RBSWMABC4J0","verification-before-completion","Evidence gate before any claim that work is done, fixed, passing, or deployed. Route here when a message declares the work finished or asks to commit, push, merge, ship, or close it out, including a brief sign-off, and before git-workflow or release-management act on it. Writing the commit message or PR text itself → git-workflow.","https:\u002F\u002Fgithub.com\u002FSWEStash\u002Fswe-workflow-skills\u002Fblob\u002Fmain\u002Fskills\u002Fverification-before-completion\u002FSKILL.md",[],[132,133,134,135,136,137,79,138,109,139,140,141,112,142,116,143,144,145,146,147],"verification","verification before completion","brief","ready","fix","claim","workflow","commit","text","route","message","merge","release","git","act","ship",{"skillNo":149,"name":150,"nameZh":6,"description":151,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":152,"categories":153,"keywords":154,"publishedAt":39},"01M6JQEVGE9NJZ11DV60AE6VWC","ui-ux-design","Design user experiences from an engineer's perspective — user flows, wireframes, interaction patterns, responsive strategy, navigation, loading\u002Ferror\u002Fempty states. Triggers: design the UI, user flow, wireframe, how should this screen look, loading state, error state, empty state, responsive design, navigation, page layout, form design, mockup.","https:\u002F\u002Fgithub.com\u002FSWEStash\u002Fswe-workflow-skills\u002Fblob\u002Fmain\u002Fskills\u002Fui-ux-design\u002FSKILL.md",[],[155,156,157,158,159,160,161,162,163,164,165,166,114,167,168,169,170,171,172,173],"design","ux","ui","ui ux design","error","states","loading","flows","engineer","interaction","layout","responsive design","screen","flow","patterns","mockup","responsive","form","page",{"skillNo":175,"name":176,"nameZh":6,"description":177,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":178,"categories":179,"keywords":180,"publishedAt":39},"01M6JQEN4HVFTZWQYWGTDS76K9","threat-modeling","Design-time security analysis of a system or feature before it's built — trust boundaries, attack surface, STRIDE per element, abuse cases, prioritized mitigations that become security requirements. Triggers: threat model, STRIDE, trust boundary, attack surface, what could go wrong security-wise, security design review, abuse case, secure this design, security requirements. Reviewing EXISTING code\u002Fconfig for vulnerabilities → security-audit; use this skill while the design is still on the whiteboard.","https:\u002F\u002Fgithub.com\u002FSWEStash\u002Fswe-workflow-skills\u002Fblob\u002Fmain\u002Fskills\u002Fthreat-modeling\u002FSKILL.md",[],[181,182,183,184,185,186,155,187,188,189,34,32,190,191,192,193,194,195,196,197],"modeling","threat modeling","threat","model","time","element","whiteboard","security analysis","analysis","threat model","audit","security-audit","secure","config","go","security","trust",{"skillNo":199,"name":200,"nameZh":6,"description":201,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":202,"categories":203,"keywords":204,"publishedAt":39},"01M6JQEFT7VT3FQM16170EG9FW","test-suite-design","Design comprehensive test suites for existing code — strategy across unit\u002Fintegration\u002Fe2e, fixtures, factories, helpers. Triggers: add tests, write tests for, increase coverage, test this module, testing strategy, test plan, what tests do I need, test infrastructure, test helpers, this has no tests. Not for TDD — use tdd-workflow.","https:\u002F\u002Fgithub.com\u002FSWEStash\u002Fswe-workflow-skills\u002Fblob\u002Fmain\u002Fskills\u002Ftest-suite-design\u002FSKILL.md",[],[155,205,206,207,208,28,81,209,210,138,34,211,24,83,212,213,121,214,215,91],"test suite","test","test suite design","coverage","write tests","testing strategy","across","add","infrastructure","test plan","for"]