agentleFS
motao123motao123/dev-workflow-kit/cost-impact-review/SKILL.md

cost-impact-review

Skill1 starsChanged 5 months agoMITView on GitHub

Use when a change may increase infrastructure or runtime cost (compute, storage, network egress, third-party API calls, observability volume) and the team needs a focused cost-impact review before merge or rollout.

The file

We split this skill into the rules it gives an agent

6 rules. About 0 are common, 3 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill when the main risk is unit economics or infra cost regression, not correctness.

    line 9
  2. Distinctive:

    Use this skill when:

    line 13
  3. Distinctive:

    Do not use this skill for license/compliance review or for performance investigation of an existing slowdown.

    line 20
  4. Very specific:

    use architecture-refactor-guidance if a structural change is the right mitigation

    line 43
  5. Very specific:

    use release-rollout-strategy to add cost-aware checkpoints

    line 44
  6. Very specific:

    use ship-readiness if cost risk is the last release blocker

    line 45

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Cost Impact Review

Use this skill when the main risk is unit economics or infra cost regression, not correctness.

Trigger Conditions

Use this skill when:

  • a change adds new database queries, API calls, or background work that may scale per-request
  • caching, batching, or pagination behavior is changing
  • third-party SaaS or paid API usage may grow
  • log, trace, or metric volume may increase noticeably
  • the team wants a cost regression check before release

Do not use this skill for license/compliance review or for performance investigation of an existing slowdown.

Workflow

  1. Identify the change and the cost drivers it touches.
  2. Estimate cost direction: per-request, per-user, per-event, or per-deploy.
  3. Compare with cheaper alternatives (caching, batching, lazy paths).
  4. Flag risk hotspots that scale with traffic.
  5. Recommend smallest mitigations or a measurement plan.
  6. Suggest verification once rollout begins.

Output

For non-trivial work, provide:

  • affected cost drivers
  • likely cost direction and rough magnitude
  • risk hotspots
  • recommended optimizations or guards
  • verification plan

Coordination

After cost review:

  • use architecture-refactor-guidance if a structural change is the right mitigation
  • use release-rollout-strategy to add cost-aware checkpoints
  • use ship-readiness if cost risk is the last release blocker

Invocation Examples

  • "Use cost-impact-review from dev-workflow-kit to check whether this change increases infra or per-request cost."
  • "Use cost-impact-review to estimate whether this new third-party call will materially raise our bill."
  • "Use cost-impact-review before release because the new query might run on every page load."

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.