minimum-viable-change

minimum-viable-change is a cursor rule for Cursor from SeanLF/weather-mcp. It costs 621 tokens per session, scanned A, original, MIT.

A rule for solving coding problems with the smallest effective set of changes.

In plain words
What is it for?
Use it when implementing suggestions, refactoring code, or redesigning parts of a project while documenting the scope, reasons, alternatives, and implementation.
Why use it?
It prevents unnecessary edits by checking how many files and lines change, and asks for justification when the change is larger than the limits.

Cursor rule for Cursor

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add rules/seanlf/weather-mcp/minimum-viable-change
Clone the repo
git clone --depth 1 https://github.com/SeanLF/weather-mcp

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for minimum-viable-change

README.md
[![agentmods](https://agentmods.dev/badge/rules/seanlf/weather-mcp/minimum-viable-change.svg)](https://agentmods.dev/rules/seanlf/weather-mcp/minimum-viable-change)
Your own site
<a href="https://agentmods.dev/rules/seanlf/weather-mcp/minimum-viable-change"><img src="https://agentmods.dev/badge/rules/seanlf/weather-mcp/minimum-viable-change.svg" alt="Measured on agentmods" height="20"></a>
Per session 621 This file is loaded in full into every session.
When invoked 621 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00621 $0.00621
Opus 5 $0.00311 $0.00311
Sonnet 5 $0.00124 $0.00124
Haiku 4.5 $0.00062 $0.00062

Measured 5d ago against content hash c30eaa0c877c, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

minimum-viable-change scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.cursor/rules/minimum-viable-change.mdc · 97 lines

What it actually says

filters:

  • type: event pattern: "code_suggestion"
  • type: content pattern: "(?i)(implement|refactor|redesign|overhaul)"

actions:

  • type: validate conditions:

    • pattern: ".*" validationScript: | // Count the number of files being modified const fileCount = changedFiles.length;

      // Calculate the ratio of added/removed lines const totalChanges = linesAdded + linesRemoved; const originalLines = codebaseLines; const changeRatio = totalChanges / originalLines;

      // If changes exceed thresholds, require justification if (fileCount > 3 || changeRatio > 0.2) { return { valid: false, message: "Solution exceeds minimal change threshold. Each additional file or significant change requires explicit justification." }; } return { valid: true };

  • type: transform pattern: "^.*$" replacement: |

    Change Summary

    Scope of Changes

    • Files modified: {file_count}
    • Lines changed: {lines_added} added, {lines_removed} removed

    Justification

    {explain_why_each_change_is_necessary}

    Implementation

    {original_content}

    Alternatives Considered

    {simpler_alternatives_and_why_rejected}

  • type: suggest message: | When implementing solutions:

    1. Start with the smallest possible change
    2. Justify any modification beyond the immediate need
    3. Document alternatives considered and why they were rejected
    4. Focus on maintainability and clarity over cleverness

examples:

  • input: | This authentication system needs to be completely rewritten to use OAuth2. output: |

    Change Summary

    Scope of Changes

    • Files modified: 2 (auth_service.js, auth_middleware.js)
    • Lines changed: 45 added, 32 removed

    Justification

    Instead of a complete rewrite, I've identified the minimum changes needed:

    1. Update the authentication verification logic to validate OAuth2 tokens
    2. Add OAuth2 client configuration loading
    3. Modify the middleware to extract tokens from Authorization header

    The existing authentication flow can be maintained while adding OAuth2 support.

    Implementation

    [Implementation details follow]

    Alternatives Considered

    1. Complete rewrite - Rejected as high risk with significant downtime
    2. Parallel implementation - Rejected as it would require maintaining two systems

metadata: priority: high version: 1.0

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 97 lines · 621 tokens per session scan A c30eaa0c877c

Subscribe to this mod's changes

minimum-viable-change is a cursor rule published in the GitHub repository SeanLF/weather-mcp (2 stars, last pushed 1y ago), licensed MIT. It adds 621 tokens to every session, about $0.0031 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.