ambray/signalman/signalman-estimate-stack-cost
Claude Code and agent skill by ambray/signalman
- community
Checking that the SKILL.md file is still in the repository.
Pre-flight cost estimate for an OpenTofu stack before applying. Runs `tofu plan -json`, sums the create-actions against a static SKU × region cost table, returns the estimated monthly cents. Trigger when the user says "what would this stack cost", "estimate the bill before I apply", "is this scenario going to blow our budget", or any "dry-run cost" variant. Read-only; does NOT mutate cloud state.
Install
npx vskill@latest install ambray/signalman/signalman-estimate-stack-costSKILL.md
The same SKILL.md was published earlier as ambray/signalman/signalman-estimate-stack-cost.
Pre-flight cost estimate for OpenTofu stacks
This skill drives v0.3.0-5 sub-task 5 control 3. Operators run it before signalman stack apply to confirm "is this stack going to cost ~$X/month?" without committing to the deployment.
What you need from the user
- `stack_name` — same identifier the operator will pass to
signalman_stack_apply. Must match ^[a-z0-9][a-z0-9_-]{0,62}$.
- `module_path` — relative path under the project root to the
HCL module directory (same as apply).
- (Optional) `vars` —
--var k=vpairs passed to tofu, same
shape as apply.
How to invoke
MCP:
CLI:
Expected response
`estimatedMonthlyCents` is the headline: cents/month for the compute resources the plan would CREATE. The CLI emits this as $288.00/month in the human-readable output.
`costedResources` lists the per-resource breakdown the estimate came from. Use this to identify the biggest contributors.
`untrackedResources` are resources the cost estimator does NOT recognise — S3 buckets, IAM roles, security groups, etc. Free or near-free to provision; the estimate excludes them. NOT the same as "they cost nothing in production" — S3 storage + transfer costs accrue separately and aren't visible in tofu plan.
Recognised resource types
The cost estimator pattern-matches on resource type:
aws_instance— extractsinstance_type+availability_zoneazurerm_linux_virtual_machine/azurerm_windows_virtual_machine
/ azurerm_virtual_machine — extracts size + location
Anything else lands in untrackedResources. The cost table covers ~30 common AWS + Azure SKUs; unknown SKUs use a high fallback (50¢/hour × 730 hours = $365/month) so an unpriced instance still consumes meaningful "estimate budget" — conservative on purpose.
Error codes you may see
code | What happened | What to tell the user | |
|---|---|---|---|
invalid_stack_name | Stack name violated the regex. | Suggest lowercase, replace spaces with dashes | |
module_path_missing | Directory at module_path doesn't exist or has no .tf files | Operator must check the path | |
tofu_not_found | tofu binary not on PATH. | Install OpenTofu (brew / apt / scoop) | |
tofu_failed | tofu init or tofu plan exited non-zero | Surface stderr tail — usually missing variable or auth | |
auth_failed | Vendor credentials rejected by the provider in the HCL | Operator fixes env / IAM |
What NOT to do
- Never quote
estimatedMonthlyCentsas the actual bill. It's
list-price for compute SKUs only; ignores storage, data transfer, managed-service overhead, support plans, etc.
- Never skip plan-cost before apply on a stack you haven't seen
before. Even a wrong-by-50% estimate catches catastrophic mistakes (a wrong instance-type with 50 copies)
- Never apply via this skill — it's read-only by design. Use
signalman-apply-cloud-stack (or its CLI verb) when you're satisfied with the estimate
Follow-up suggestions
- If
estimatedMonthlyCentsexceeds the org's budget headroom
(check via signalman_budget_get), surface that before applying
- If
untrackedResourcesis large, the estimate is more
approximate than usual — flag this to the operator
- After applying via
signalman_stack_apply, the actual instances
will appear in signalman_cloud_list and consume real budget via the gate
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/signalman-estimate-stack-cost/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/ambray/signalman/signalman-estimate-stack-cost)