# Spend Watch

> Cloud cost watchdog agent. Autonomous cloud-cost analyst across Neon, Vercel, Railway and GitHub Actions - pulls per-object usage, attributes it to the biggest drivers, root-causes each, and emits recommendations ranked by real signal (idle %, over-allowance, failure rate) with dollar figures only where the billing API returns real ones (and, armed, applies safe cost levers).

- Skill: `spend-watch`
- Category: Dev & Code (https://www.aeon.fun/skills#dev)
- Default schedule: On demand
- Last updated: 2026-11-05 (commit 504a21d)
- Source: https://github.com/aeonfun/aeon/blob/main/skills/spend-watch/SKILL.md

## What it does

This skill is a cost **analyst**, not a bill alarm. Each run answers, per platform:

1. **Attribution** - what is consuming the most? Rank drivers by dollars (or the resource unit that maps to dollars), down to the specific object: service, branch, route, RPC method, workflow. Top-N with each line's % share.
2. **Root cause** - *why* is that line expensive?
3. **Recommendation** - a ranked action list, each carrying: the concrete lever, an effort/risk tag, whether it's armable now, and a **saving in real dollars ONLY when the platform's billing API returns real dollars** (Railway `currentUsage`, Actions overage). Everywhere else there is **no dollar figure** - the line carries its real signal instead (idle-awake %, % over the included allowance, cache-miss rate, stale-preview count, failure rate). Never invent a `$X/mo`.

**Dollars-only-when-real is the core rule.** A fabricated "$5/mo" is worse than the true signal "idle-awake 71%". Rank each recommendation by: real-$ saving first (when known), then signal magnitude × how actionable it is (armable > 1-click > code-change > investigate). The recommendation is the deliverable; the signal justifies it; the dollar is a bonus only when the API hands it over.

Across platforms (`all`): a roll-up - the **real** spend where billing exposes it (Railway $, Actions $), the biggest signal-ranked driver anywhere, and the top actions fleet-wide. No synthetic grand total.

The monitoring (deltas, real budgets, signal thresholds) is the *trend context and the trigger*; the deliverable is the ranked recommendations.

## Input: the var setting

Scope selector + optional arm flag.
- **empty** / `all` → sweep every platform whose secret is present, emit one combined digest.
- `neon` | `vercel` | `railway` | `actions` → run one adapter only.
- prepend `arm:` (e.g. `arm:neon`, `arm:actions`) → authorize the adapter's **safe write levers** for this run. Without `arm:` the skill is read-only: it recommends, never mutates.
- `dry-run` appended anywhere → build the digest but do not `./notify` (for testing).

Runs unattended - treat `var` as final, no confirmation step, except a delete/mutation always re-reads the target's current state before acting (see each adapter's arm rules).

## What it needs

- `NEON_API_KEY`: optional secret
- `VERCEL_TOKEN`: optional secret
- `RAILWAY_TOKEN`: optional secret
- `GH_GLOBAL`: optional secret

## Install

```bash
bin/add-skill aeonfun/aeon spend-watch
```

```yaml
skills:
  spend-watch: { enabled: true, schedule: "workflow_dispatch", var: "" }
```

## Related skills

- [Vuln Scanner](https://www.aeon.fun/skills/vuln-scanner): Audit trending repos for real security vulnerabilities and disclose responsibly - scan and route findings (PVR / dependency PR), re-submit queued advisories, and send armed email disclosures
- [SEO Audit](https://www.aeon.fun/skills/seo-audit): Daily on-page and technical SEO audit of every page on a site - discovers URLs from the sitemap, scores each page, adds cross-page checks (duplicate titles, canonicals, sitemap gaps), diffs against yesterday, and sends the score line plus any regressions
- [Vuln Tracker](https://www.aeon.fun/skills/vuln-tracker): One lifecycle poll over everything vuln-scanner produces - PR and advisory status, PVR triage transitions, and pending-disclosure aging, with a stars-secured impact headline and one action queue
- [SC Audit](https://www.aeon.fun/skills/sc-audit): Deep security audit of a smart-contract repo OR a live on-chain contract by address - detect Solidity, model the protocol invariants and trust boundaries first, run Slither (best-effort) plus a bounded agentic pass that hunts for a path breaking each invariant, triage, adversarially verify, prove with a fuzzer, and drive each finding through the shared responsible-disclosure routing
- [Anatomy](https://www.aeon.fun/skills/anatomy): Build crafted, highly detailed, interactive isometric SVG figures that explain a technical idea as a real physical object (a test rig, a dial gauge, a cabinet of drawers, a plotter, a lock), with many small precise solid parts, four-tone shading, correct painter's order, a framed card with title, hint and live readout, and calm eased motion
- [RightStack - Web3 Stack Advisor](https://www.aeon.fun/skills/rightstack): Use RightStack as a read-only Web3 stack advisor for architecture recommendations, workflow inspection, tool comparisons, and package-migration checks
