The cost-reduction loop
An operations workflow that attributes current spend, applies one approved savings change, and keeps it only when cost drops without guardrail regressions.
Prompt
Reduce spend on the target system toward the agreed budget without weakening correctness, performance, reliability, or service-level objectives. First read current cost and usage, then attribute spend to the largest drivers. Each pass, propose the single highest-saving safe change and get approval before any billing, infrastructure, production, or user-impacting change. Apply the change only within that authority, then measure cost and guardrail metrics over the agreed window. Keep it only if cost drops and no guardrail regresses. Stop at budget, no safe saving remains, no measurable progress, blocked access, or approval need.
claude-code
Source: Forward Future Loopy ↗graded C · 45/100 — how grades work (Safety Score v2) →
Similar loops
All maintenance loops →B
/scheduleMaintenancelow risk
Watch published docs for link rot against the Internet Archive
Collect external links from docs weekly, archive dead ones via Wayback Machine, open a PR with replacements and a report of unfixed links.
/schedule weekly — outbound link-rot sweep with archived replacements.
Setup: add the Wayback Machine MCP server (npx -y mcp-wayback-machine, no API key for reads).
Each run, at most 12 turns:
1. Collect every external http(s) link in docs/ and README.md into one list. If the list is
empty, report "no external links" and STOP.
2. Request each URL once (HEAD, then GET only on a 405). Never retry a host more than twice and
never request the same host more than 10 times in a run — this is a health check, not a crawl.
3. For each link returning 4xx/5xx or failing to resolve, call the Wayback MCP for the newest
snapshot before today. Record: original URL, status, snapshot URL, snapshot date.
4. Replace only links that have a snapshot; leave the rest untouched and list them for a human.
5. VERIFY before finishing: re-request every replacement snapshot URL and confirm it returns 200.
Drop any replacement that does not.
6. Open a PR with the diff plus a table of every change and every unfixed dead link.
EXIT when the PR is open, or when step 1 finds no links, or at 12 turns — whichever comes first.
Do not edit link targets that still return 200. Do not push to main. Do not delete a dead link
without a working archived replacement; report it instead.
C
/scheduleMaintenancelow risk
Weekly tech debt report
Every Friday, compile a trend report of debt signals — TODO count, lint suppressions, type coverage, largest files — so the team sees drift before it compounds.
/schedule every Friday at 4pm, measure TODO/FIXME count, eslint-disable and ts-ignore counts, type coverage, and the five largest source files; append the numbers with week-over-week deltas to reports/tech-debt.md and call out the single worst trend in one paragraph
C
/goalMaintenancehigh risknew
The Mobile Closed-Loop Build
Install on a virtual device, tap through every screen, fix crashes, repeat until store-ready.
Build and install the app on a virtual device. Programmatically tap through every screen and flow; verify layouts across screen sizes; watch for crashes, broken navigation, and slow frames. When you hit a defect, reproduce it, fix it, rebuild, and re-run the full walkthrough. Repeat until a complete walkthrough passes clean on all target device sizes.