Paste a file from .github/workflows. You get the settings that usually make a workflow expensive, with the YAML to fix each one, plus a patched copy with the safe fixes already applied.
push on every branch plus pull_request runs the same commit twice.setup-node, setup-python, setup-java, Playwright, and Cypress.timeout-minutes. A hung job bills up to GitHub's six-hour limit.Only two edits are applied automatically, because neither can change which tests run:
concurrency group that cancels superseded pull-request runs. Pushes to main still finish. It's skipped for workflows that look like they deploy.timeout-minutes: 30 on jobs that have none. That's a placeholder: set it to roughly three times a normal run.Everything else is a suggestion. Path filters, matrix changes, and moving off macOS depend on what the workflow is for.
AI coding agents can run the same check with the check_workflow_yaml tool at https://spendtron.com/mcp. No API key is needed for it.
claude mcp add --transport http spendtron https://spendtron.com/mcp
Other tools: Actions cost calculator · Self-hosted break-even · Larger runner calculator
Guides: Runner pricing · macOS runner cost · The usage report · Cutting minutes
Rates from GitHub's documentation, checked November 2026. GitHub's pricing page is the authority. · Privacy