financial-formula-verification
Financial Formula Verification for Cloud Cost Documents
- License 许可
- MIT
- 最近更新
- 2026-11-14
- Stars
- ★ 18
- Forks
- 6
01 前言 Front Matter
- name
- financial-formula-verification
- metadata
- { "original-index": 49, "short-description": "Financial Formula Verification for Cloud Cost Documents" }
- description
- Financial Formula Verification for Cloud Cost Documents
02 资源文件 1
- 参考文档skill.json184 B
03 SKILL.md 正文
Financial Formula Verification for Cloud Cost Documents
What
A mechanical verification process for financial calculations in cloud migration documents, cost analyses, and technology evaluations. Treats every dollar figure as a testable assertion that must be independently re-derived from its inputs.
Why
Financial discrepancies in technical documents destroy credibility with leadership and finance teams. A single wrong number in an executive summary casts doubt on every other number in the document. These errors are common because:
- Authors copy formulas from one section and update some but not all references
- Cloud pricing changes or the wrong tier's pricing is used
- "Used" vs "provisioned" storage creates different totals
- Discount percentages (AHB, Reserved Instances, etc.) are estimated instead of verified
Verification Protocol
Step 1 - Extract All Financial Assertions
Grep every dollar amount, percentage, and timeline from the document:
# All dollar amounts
grep -oP '\$[\d,.]+[KMB]?\b' document.md | sort | uniq -c | sort -rn
# All percentage values
grep -oP '\d+(\.\d+)?%' document.md | sort | uniq -c | sort -rn
# Break-even or timeline references
grep -oiP '\d+(\.\d+)?\s*(year|month|yr|mo)\b' document.md | sort -u
Step 2 - Identify the Canonical Source
Every financial figure should trace back to ONE authoritative calculation. Find that calculation (usually in a "Cost Methodology" or "Financial Summary" section) and treat it as the source of truth.
The document should have a single section where:
- Unit costs are stated with source links
- Quantities are stated with evidence references
- Arithmetic is shown: unit * quantity = result
Step 3 - Re-derive Every Total
For each stated total, independently multiply:
| Verify | How |
|---|---|
| Compute cost | vCores * $/vCore/month = stated total |
| Storage cost | TB * 1024 * $/GB/month = stated total |
| Backup cost | TB * $/GB/month = stated total |
| Grand total | Sum of components = stated total |
| AHB/discount | Compute * (1 - discount%) = stated discounted total |
| Annual savings | (Platform A - Platform B) * 12 = stated annual savings |
| Break-even | Migration cost / annual savings = stated timeline |
Step 4 - Verify Unit Costs Against Official Sources
| Cloud Provider | Where to Verify |
|---|---|
| Azure SQL MI | https://azure.microsoft.com/en-us/pricing/details/azure-sql-managed-instance/single/ |
| Azure PG Flex | https://azure.microsoft.com/en-us/pricing/details/postgresql/flexible-server/ |
| Azure Hybrid Benefit | https://learn.microsoft.com/en-us/azure/azure-sql/azure-hybrid-benefit |
| Azure Storage | Pricing page for the specific service (MI storage, PG storage, backup) |
Common pricing traps:
- General Purpose vs Business Critical tier (very different $/vCore)
- Per-4-vCore pricing that must be divided by 4 for per-vCore rate
- Storage: used vs provisioned (billing is on provisioned, not used)
- AHB: actual discount is ~30-33%, not 55-60% (common misconception)
- Backup pricing differs from data storage pricing
Step 5 - Cross-Section Consistency Check
The same financial metric must show the same value in every section where it appears. Common locations to cross-check:
| Section | What to Check |
|---|---|
| Executive Summary / "The Question" | List price, AHB price, annual savings range |
| Financial Summary table | All cost components, totals, savings |
| Cost Calculation Methodology | Detailed arithmetic per component |
| Verdict / Recommendation | ROI, break-even, migration cost |
| Quick Reference / Navigation tables | Summary figures must match source sections |
Step 6 - Document Corrections
When a discrepancy is found:
- Identify the correct value (from official pricing or correct arithmetic)
- List ALL locations where the incorrect value appears
- Fix all locations in a single pass (prevent partial fixes)
- Add the correction to the revision history
- Note: "No technical findings, verdicts, or evidence were modified" if applicable
Checklist - Financial Verification Gate
- [ ] All dollar amounts extracted and grouped by meaning
- [ ] Unit costs verified against official pricing pages
- [ ] Every total independently re-derived from inputs
- [ ] Component subtotals sum to stated grand totals
- [ ] Discount percentages match vendor documentation
- [ ] Storage calculations use provisioned (not used) volumes
- [ ] Same metric shows same value in all document sections
- [ ] Break-even timeline = migration cost / annual savings
- [ ] Corrections tracked in revision history
Anti-Patterns
| Don't | Do |
|---|---|
| Trust a $/vCore/hr rate without verifying the tier | Look up the exact SKU on the pricing page |
| Assume "60% AHB discount" because someone said so | Read the Microsoft AHB documentation |
| Use storage "used" for cost calculations | Use storage "provisioned" (that's what gets billed) |
| Fix a number in one section but not others | Grep for the old value and fix every occurrence |
| Round intermediate calculations | Keep precision, round only the final displayed value |
04 同仓库更多 Skills
yeet
Use only when the user explicitly asks to stage, commit, push, and open a GitHub pull request in one flow using the GitHub CLI (`gh`).
wrangler
Cloudflare Workers CLI for deploying, developing, and managing Workers, KV, R2, D1, Vectorize, Hyperdrive, Workers AI, Containers, Queues, Workflows, Pipelines, and Secrets Store. Load before running wrangler commands to ensure correct syntax and best practices. Biases towards retrieval from Cloudflare docs over pre-trained knowledge.
workspace-skill-discovery
Discover and include ALL skills across the workspace — not just global ones. Use at the start of every session or when the user asks about available skills. Ensures project-level skills (under .claude/skills/ or skills/ in any repo) are never missed.
workers-best-practices
Reviews and authors Cloudflare Workers code against production best practices. Load when writing new Workers, reviewing Worker code, configuring wrangler.jsonc, or checking for common Workers anti-patterns (streaming, floating promises, global state, secrets, bindings, observability). Biases towards retrieval from Cloudflare docs over pre-trained knowledge.
winui-app
Create, build and design WinUI 3 desktop apps with C# and the Windows App SDK following Microsoft's official guidance and CommunityToolkit. Covers XAML, navigation, theming, accessibility and deployment.
windows-brain-script-portability
Scripts in ~/.claude/scripts/ that run on a Windows brain: use the python3.cmd shim and not bare python3, and reconfigure stdout to UTF-8 if you print symbols. Use it when writing a brain script or triaging a Windows-only crash.