cost-analysis
Skill0 starsChanged 6 months agoApache-2.0View on GitHub
Use when modeling infrastructure costs, projecting scaling expenses, or identifying optimization opportunities across cloud providers and third-party services. Covers per-unit cost estimation, growth milestone projections, and budget alerting setup. Do not use for deployment strategy design (use deployment-plan) or monitoring architecture (use observability-design).
5 other projects use a version of this.
Adopted by
Most recently taken up by
- microsoft/GitHub-Copilot-for-Azuretheir own version, first seen Oct 1, 2026
- microsoft/azure-skillstheir own version, first seen Sep 23, 2026
- kevincui1034/cost-analysistheir own version, first seen Jul 2, 2026
- microsoft/sre-agenttheir own version, first seen May 8, 2026
- microsoft/skillstheir own version, first seen Feb 19, 2026
Other versions5 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 5
- microsoft/skills★ 3.1ksame name
- microsoft/azure-skills★ 1.5ksame name
- microsoft/GitHub-Copilot-for-Azure★ 253same name
- microsoft/sre-agent★ 170same name
- kevincui1034/cost-analysis★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository65 other files it gives its agents.
- a11y-auditSkill
- i18n-reviewSkill
- interaction-designSkill
- journey-mappingSkill
- ml-workflowSkill
- pipeline-designSkill
- schema-evaluationSkill
- api-designSkill
- codebase-contextSkill
- distributed-patternsSkill
- schema-designSkill
- design-system-architectureSkill
- motion-designSkill
- visual-auditSkill
- adr-templateSkill
- changelog-designSkill
- documentation-planSkill
- crypto-reviewSkill
- pqc-readinessSkill
- protocol-analysisSkill
- e2e-testingSkill
- pattern-analysisSkill
- testing-strategySkill
- finance-close-checklistSkill
- finance-controls-auditSkill
- finance-journal-entriesSkill
- finance-reconciliationSkill
- finance-tax-researchSkill
- finance-variance-analysisSkill
- audit-trail-designSkill
- compliance-reviewSkill
- data-classificationSkill
- growth-engineeringSkill
- messaging-strategySkill
- monetization-designSkill
- deployment-planSkill
- finops-analysisSkill
- observability-designSkill
- ai-evaluationSkill
- prompt-engineeringSkill
- rag-architectureSkill
- device-integrationSkill
- navigation-designSkill
- platform-auditSkill
- formal-specSkill
- invariant-analysisSkill
- competitive-analysisSkill
- enterprise-search-strategySkill
- library-evaluationSkill
- technology-radarSkill
- embedded-architectureSkill
- fleet-managementSkill
- protocol-designSkill
- edge-case-enumerationSkill
- failure-mode-analysisSkill
- threat-modelSkill
- analytics-designSkill
- impact-estimationSkill
- mvp-scopingSkill
- caching-strategySkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
2 rules. 0 are common, 2 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 5 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 36
No user-provided values are used in commands or file paths.
- Distinctive: line 66
Document pricing tier thresholds and current utilization against limits
“Common” is measured: kept by at least 6 in 10 of the 5 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Cost Analysis
Purpose
Model infrastructure costs at current and projected scale, identify optimization opportunities, and establish cost monitoring with budget alerting. Produces a cost breakdown that enables informed architecture and scaling decisions.
Scope Constraints
Reads infrastructure inventories, pricing documentation, and usage metrics for cost analysis. Does not modify files, provision resources, or access billing APIs or financial systems directly.
Inputs
- Current infrastructure inventory (services, providers, tiers)
- Current usage metrics (requests/day, storage volume, compute hours)
- Growth projections or scaling targets
- Budget constraints or cost reduction goals
Input Sanitization
No user-provided values are used in commands or file paths. All inputs are treated as read-only analysis targets.
Procedure
Progress Checklist
- Step 1: Inventory infrastructure components
- Step 2: Estimate per-unit costs at current scale
- Step 3: Model cost projections at scale
- Step 4: Identify optimization opportunities
- Step 5: Design cost monitoring and alerting
- Step 6: Plan budget allocation and review cadence
Step 1: Inventory Infrastructure Components
Catalog all cost-bearing components:
- Compute: Application servers, serverless functions, background workers, build runners
- Storage: Object storage, block storage, database storage, backup storage
- Database: Managed database instances, read replicas, connection poolers
- CDN: Bandwidth, edge compute, cache storage
- Third-party services: Auth providers, email/SMS, payment processing, analytics, error tracking
- DNS and networking: Domain registration, DNS queries, load balancers, NAT gateways, data transfer
- Email: Transactional email, marketing email, inbound processing
Step 2: Estimate Per-Unit Costs at Current Scale
For each component, calculate:
- Monthly base cost: Fixed costs regardless of usage (reserved instances, minimum tiers)
- Variable cost: Per-request, per-GB, per-user marginal costs
- Cost per user: Total infrastructure cost divided by active users
- Cost per request: Total infrastructure cost divided by total requests
- Document pricing tier thresholds and current utilization against limits
Step 3: Model Cost Projections at Scale
Project costs at growth milestones:
- 2x scale: Which components scale linearly vs step-function? Where do tier upgrades hit?
- 5x scale: Which pricing tiers break? Where do volume discounts apply?
- 10x scale: What architectural changes become necessary? Which components become dominant costs?
- Identify cost cliffs — points where a small usage increase triggers a large cost jump
Step 4: Identify Optimization Opportunities
Evaluate cost reduction strategies:
- Right-sizing: Over-provisioned instances, unused reserved capacity, oversized database tiers
- Reserved/committed use: Savings from 1-year or 3-year commitments on stable workloads
- Spot/preemptible instances: Suitable workloads for interruptible compute (batch jobs, builds)
- Caching to reduce compute: CDN caching, application-level caching, database query caching
- Query optimization: Slow queries consuming excess database resources, missing indexes
- Architecture changes: Serverless for bursty workloads, edge compute for latency, static generation
Step 5: Design Cost Monitoring and Alerting
Establish ongoing cost visibility:
- Budget thresholds: Alert at 50%, 75%, 90%, 100% of monthly budget
- Anomaly detection: Unexpected cost spikes from runaway processes, misconfigured auto-scaling, or attacks
- Cost-per-user trending: Track unit economics over time to catch efficiency degradation
- Tag-based allocation: Cost attribution by service, team, environment, feature
- Review dashboard: Real-time cost breakdown accessible to engineering and leadership
Step 6: Plan Budget Allocation and Review Cadence
Define the financial process:
- Budget allocation: Per-service or per-team budget breakdown
- Review cadence: Monthly cost review meetings, quarterly budget adjustments
- Cost ownership: Which team owns which infrastructure costs
- Approval process: Threshold for new infrastructure spending requiring approval
- Cost-benefit framework: How to evaluate infrastructure investments against engineering time
Compaction resilience: If context was lost during a long session, re-read the Inputs section to reconstruct what system is being analyzed, check the Progress Checklist for completed steps, then resume from the earliest incomplete step.
Output Format
# Cost Analysis: [Project/Service Name]
## Infrastructure Cost Table
| Component | Provider | Tier | Monthly Cost | Cost Driver | Notes |
|-----------|----------|------|-------------|-------------|-------|
| App Server | [provider] | [tier] | $X | requests | ... |
| Database | [provider] | [tier] | $X | storage + queries | ... |
| CDN | [provider] | [tier] | $X | bandwidth | ... |
| **Total** | | | **$X** | | |
**Cost per user**: $X/month | **Cost per 1K requests**: $X
## Scaling Projections
| Component | Current | 2x | 5x | 10x |
|-----------|---------|-----|-----|------|
| Compute | $X | $X | $X | $X |
| Database | $X | $X | $X | $X |
| Storage | $X | $X | $X | $X |
| **Total** | **$X** | **$X** | **$X** | **$X** |
## Optimization Recommendations
| Optimization | Estimated Savings | Effort | Risk | Priority |
|-------------|-------------------|--------|------|----------|
| [description] | $X/month (Y%) | Low/Med/High | Low/Med/High | P1/P2/P3 |
## Budget Alert Thresholds
| Threshold | Monthly Amount | Action |
|-----------|---------------|--------|
| 50% | $X | Review dashboard |
| 75% | $X | Investigate anomalies |
| 90% | $X | Escalate to lead |
| 100% | $X | Freeze non-critical spending |Handoff
- Hand off to deployment-plan if cost optimization requires changes to deployment strategy (e.g., switching from blue-green to rolling to reduce compute overhead).
- Hand off to observability-design if cost monitoring needs integration with existing alerting and dashboard infrastructure.
Quality Checks
- All cost-bearing infrastructure components are inventoried
- Per-unit costs (per user, per request) are calculated for current scale
- Scaling projections identify cost cliffs and tier boundaries
- Optimization recommendations include estimated savings and effort
- Cost monitoring covers budget alerts and anomaly detection
- Budget review cadence and cost ownership are defined
- Third-party service costs are included (not just cloud infrastructure)
- Cost projections account for both linear and step-function scaling
Evolution Notes
<!-- Observations appended after each use -->Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

