finance-ops
Preamble (runs on skill start)
# Version check (silent if up to date)
python3 telemetry/version_check.py 2>/dev/null || true
# Telemetry opt-in (first run only, then remembers your choice)
python3 telemetry/telemetry_init.py 2>/dev/null || true
Privacy: This skill logs usage locally to
~/.ai-marketing-skills/analytics/. Remote telemetry is opt-in only. No code, file paths, or repo content is ever collected. Seetelemetry/README.md.
AI Finance Ops
Two tools: CFO Briefing Generator and Codebase Cost Estimator.
Tool 1: CFO Briefing Generator
Generate executive financial summaries from QuickBooks exports.
Workflow
1. Ingest Files
Place QuickBooks export files (CSV, XLSX, XLS) in a working directory. Accepted report types (any subset works — P&L alone is sufficient):
- P&L Summary — Revenue, COGS, expenses, net income (MOST IMPORTANT)
- P&L by Customer — Revenue breakdown by client
- P&L Detail — Transaction-level detail (XLSX)
- Balance Sheet — Assets, liabilities, equity
- General Ledger — All account transactions
- Expenses by Vendor — Vendor-level expense breakdown
- Transaction List by Vendor — Detailed vendor transactions
- Bill Payments — AP payment history
- Cash Flow Statement — Operating/investing/financing flows (XLSX)
- Account List — Chart of accounts
2. Run Analysis
python3 scripts/cfo-analyzer.py --input ./data/uploads/ [--period YYYY-MM]
Options:
--input DIR— Directory with QB exports--period YYYY-MM— Override period label (default: auto-detected from files)--history DIR— History directory for MoM comparison (default:./data/history/)--no-history— Skip saving to history
The script:
- Auto-detects file types by scanning headers
- Parses each file into structured data
- Computes all KPIs (see
references/metrics-guide.mdfor definitions and healthy ranges) - Loads prior period from history for MoM comparison
- Saves current period to history
- Outputs formatted executive summary to stdout
3. Scenario Modeling (Optional)
After running the CFO analysis, model base/bull/bear scenarios:
python3 scripts/scenario-modeler.py --input ./data/financial-latest.json
This generates 12-month projections for:
- Base case — current trajectory continues
- Bull case — growth targets met (new product revenue + new clients)
- Bear case — lose top clients
4. Deliver Summary
The script outputs a formatted briefing with emoji status indicators (🟢🟡🔴), suitable for Slack, email, or any messaging surface.
File Format Details
See references/quickbooks-formats.md for expected CSV/XLSX column formats and detection heuristics.
Metric Thresholds
See references/metrics-guide.md for healthy ranges, red/yellow/green thresholds, and benchmark context. Adjust thresholds for your business size and type.
Tool 2: Codebase Cost Estimator
Estimate full development cost of a codebase.
Workflow
Step 1: Analyze the Codebase
Read the entire codebase. Catalog total lines of code by language/type, architectural complexity, advanced features, testing coverage, and documentation quality.
Step 2: Calculate Development Hours
Apply productivity rates from references/rates.md. Calculate base hours per code type, then apply overhead multipliers for architecture, debugging, review, docs, integration, and learning curve.
Step 3: Research Market Rates
Use web search to find current hourly rates for the relevant specializations. Build a rate table with low / median / high for the project's tech stack.
Step 4: Calculate Organizational Overhead
Convert raw dev hours to calendar time using efficiency factors from references/org-overhead.md. Show estimates across company types (Solo through Enterprise).
Step 5: Calculate Full Team Cost
Apply supporting role ratios and team multipliers from references/team-cost.md. Show role-by-role breakdown, plus summary across all company stages.
Step 6: Generate Cost Estimate
Output the full estimate using the template in references/output-template.md. Include all sections: codebase metrics, dev hours, calendar time, market rates, engineering cost, full team cost, grand total summary, and assumptions.
Step 7: AI ROI Analysis (Optional)
If the codebase was built with AI assistance, calculate value per AI hour using references/claude-roi.md. Determine active hours via git history clustering, calculate speed multiplier vs human developer, and compute cost savings and ROI.
Key Principles
- Present professionally, suitable for stakeholders
- Include confidence level (low/medium/high) and key assumptions
- Highlight highest-complexity areas that drive cost
- Always show ranges (low/avg/high), never a single number
- Search for CURRENT year market rates, don't use stale data
More from ericosiu/ai-marketing-skills
expert-panel
>-
72cold-outbound-optimizer
Design, analyze, and optimize cold outbound email campaigns for Instantly. Handles end-to-end ICP definition, expert panel scoring (recursive to 90+), sequence copywriting, infrastructure audit, capacity planning, and implementation docs. Use when asked to build cold outbound sequences, optimize cold email, analyze outbound campaigns, build sales sequences, build Instantly sequences, create cold outbound strategies, or design email campaigns. Supports both "start from scratch" and "optimize existing" modes.
67podcast-pipeline
>-
63yt-competitive-analysis
>-
62x-longform-post
Write long-form X (Twitter) posts and threads in a founder/CEO voice. Use when drafting X articles, long tweets, thought leadership threads, or viral content. Produces contrarian, data-backed posts with ASCII diagrams and code block visuals. Includes mandatory AI humanizer pass (24-pattern detector) before finalizing.
57autoresearch
Run Karpathy-style autoresearch optimization on any content. Generates 50+ variants, scores with a 5-expert simulated panel, evolves winners through multiple rounds, outputs optimized version + full experiment log. Use when optimizing landing pages, email sequences, ad copy, headlines, form pages, CTA text, or any conversion-focused content. Triggers on "optimize this page", "run autoresearch", "score these variants", "A/B test this copy".
56