بنقرة واحدة
cost-review
Estimate monthly cloud costs from infrastructure and application files.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Estimate monthly cloud costs from infrastructure and application files.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Ruthlessly tear apart code design — naming, abstractions, coupling, complexity, and everything else.
Generate Mermaid diagrams in the README to visualise architecture, flows, or relationships from the codebase.
Analyse test coverage gaps and report uncovered code before making changes.
Run tests, fix failures, and re-run until the suite passes.
Write and improve tests — reuse existing patterns, ensure consistency, and maintain quality.
Isolate a function or code block into a self-contained, runnable script for study and manual testing.
| name | cost-review |
| description | Estimate monthly cloud costs from infrastructure and application files. |
| argument-hint | [files] [instructions] |
| user-invocable | true |
| disable-model-invocation | true |
| context | fork |
| agent | Explore |
| allowed-tools | Read, Grep, Glob |
Analyse the project's infrastructure and application configuration to produce a monthly cost estimate with optimisation suggestions.
Files and instructions: $ARGUMENTS
Scan the project for infrastructure files, configuration, and application code. Common sources include:
*.tf, *.tfvars — resource definitions, instance types, storage configstemplate.yaml, template.jsonlib/*.ts, lib/*.py — infrastructure as codePulumi.yaml, index.ts, __main__.py*.yaml in k8s/, manifests/, charts/ — resource requests/limits, replica counts, PVCsdocker-compose.yml — service definitions, resource constraintsserverless.yml — function configs, memory, timeout@anthropic-ai/sdk, stripe, twilio, @sendgrid/mail, boto3, etc.), API key references, webhook handlers — indicators of pay-per-use servicespackage.json, requirements.txt, go.mod, Gemfile — paid SDK dependencies hint at service usage.github/workflows/, .gitlab-ci.yml, Jenkinsfile — build resources, runner typesIf no infrastructure files are found, infer from the application code what services would be required to run it (e.g. a Django app implies a web server, database, and likely object storage).
The arguments are free-form and flexible. They may contain:
@main.tf, serverless.yml, docker-compose.yml, template.yaml k8s/deployment.yamlParse the arguments to identify which files to analyse and what additional assumptions apply. When no files are provided, explore the project to find relevant infrastructure and application files.
/cost-review — scan the entire project and estimate costs/cost-review @main.tf @variables.tf — estimate from specific Terraform files/cost-review assume 10k daily active users on AWS eu-west-1 — estimate with usage assumptions/cost-review @serverless.yml we expect 1M invocations per month — estimate with traffic context/cost-review @docker-compose.yml this will run on ECS Fargate — estimate with deployment target## Cost Estimate Summary
| Service | Configuration | Assumptions | Monthly Cost (USD) |
|-----------------|---------------------|-----------------------|--------------------|
| EC2 | t3.medium x2 | 24/7, eu-west-1 | $60–$70 |
| RDS PostgreSQL | db.t3.medium, 100GB | Single-AZ, 500 IOPS | $45–$55 |
| ... | ... | ... | ... |
| **Total** | | | **$XXX–$YYY** |
## Top optimisation opportunities
1. ...
2. ...
3. ...
## Unknowns
- ...