automation-cost-control
Skill1 starsChanged 2 months agoApache-2.0View on GitHub
Controls metered compute cost in automated pipelines by attributing real spend, moving work to the cheapest capable executor, bounding job runtime, and verifying that cost-motivated conditions did not silently disable required work. Use when changing build, test, or release automation.
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 4 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 10
Use this procedure when automated build, test, validation, packaging, or release work consumes metered compute whose cost can vary …
- Distinctive: line 16
Run portable work once on the cheapest capable executor.
- Distinctive: line 28
When conditional execution is introduced for cost reasons, verify the automation system's dependency and skip-propagation semantics.
- Distinctive: line 34
Use provider-account spend ceilings, budgets, or alerts when available and authorized.
≈ “Common” is an estimate: at least 1 in 5 of the 308,232 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Automation cost control
Use this procedure when automated build, test, validation, packaging, or release work consumes metered compute whose cost can vary materially with executor choice, runtime, repetition, storage, or triggering behavior.
- Attribute actual consumption and spend from the provider's own usage data before optimizing, grouped by pipeline, job, and executor class when that breakdown is available. Do not optimize from intuition, wall-clock duration alone, or the component that merely feels expensive.
- Establish the relative cost of the executor classes the project can actually use. When classes differ by an order of magnitude, placement can matter more than small runtime reductions.
- Run portable work once on the cheapest capable executor. Keep specialized or materially costlier executors for work that genuinely requires them, and remove duplicated validation rather than leaving equivalent work on multiple executor classes.
- Determine why a costly job takes the time it does before shortening it. Repeated dependency resolution, ineffective caching, duplicated validation, unnecessary setup, and idle waiting can dominate the work the job exists to perform.
- Build caches from version-controlled dependency or build metadata that actually exists and changes with the inputs being cached. Verify cache-key inputs resolve as intended; missing inputs must not silently collapse into a constant or stale key.
- Give metered automated jobs explicit runtime bounds derived from observed legitimate duration plus reasonable variance. Treat the bound as a failure limit for hung or runaway work, not as a substitute for diagnosing slow jobs.
- Trigger materially costly work only on events that genuinely require it. If an explicit opt-in or non-consuming mode is safe for the workflow, prefer the non-consuming path by default. Never weaken required validation, release safety, or approval boundaries merely to reduce cost.
- Cancel superseded runs when they are validation-only and no longer useful. Do not automatically cancel work that publishes artifacts, mutates external systems, records durable state, or otherwise has consequences that must complete or be reviewed.
- When conditional execution is introduced for cost reasons, verify the automation system's dependency and skip-propagation semantics. Confirm required downstream paths still run in every intended mode; a skipped prerequisite must not silently remove required work.
- Bound retention of generated artifacts and logs to what is actually needed for diagnosis, audit, handoff, or recovery, consistent with project policy.
- Expose cost-relevant pipeline health in normal automation output where practical, such as cache effectiveness and duration against an expected range. Prefer durable signals over recurring human reminders to inspect usage manually.
- Use provider-account spend ceilings, budgets, or alerts when available and authorized. Repository configuration alone cannot guarantee a hard spending boundary; report account-level controls that remain outside repository scope.
Report the attributed cost drivers, executor-placement and duplication decisions, cache changes, runtime bounds and how they were derived, conditional paths whose semantics were verified, retention changes, and the status of any account-level spend boundary that remains outside repository scope.
In this repository16 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- backup-and-recovery-reviewSkill
- calculation-model-validationSkill
- change-reviewSkill
- compatibility-and-rolloutSkill
- continuous-improvementSkill
- cross-surface-consistencySkill
- delegation-strategySkill
- dependency-changeSkill
- documentation-syncSkill
- environment-release-safetySkill
- high-risk-change-reviewSkill
- interface-qaSkill
- root-cause-debugSkill
- secret-exposure-responseSkill
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

