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.
npx agentmods add rules/seanlf/weather-mcp/minimum-viable-changegit clone --depth 1 https://github.com/SeanLF/weather-mcpWrote 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.
[](https://agentmods.dev/rules/seanlf/weather-mcp/minimum-viable-change)<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>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.
| Model | Per session | Once 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 |
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.
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:
- Start with the smallest possible change
- Justify any modification beyond the immediate need
- Document alternatives considered and why they were rejected
- 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:
- Update the authentication verification logic to validate OAuth2 tokens
- Add OAuth2 client configuration loading
- 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
- Complete rewrite - Rejected as high risk with significant downtime
- Parallel implementation - Rejected as it would require maintaining two systems
metadata: priority: high version: 1.0
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.
- 5d ago First seen · 97 lines · 621 tokens per session scan A c30eaa0c877c
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.
Other cursor rules, from other repositories
angular-20
This rule provides comprehensive best practices and coding standards for Angular development, focusing on modern TypeScript, standalone components, signals, and performance optimizations.
dev-standard
Apache Superset development standards and guidelines for Cursor IDE.
cli-error-handling
CLI command error handling patterns.
prefer-assertions-over-defensive-checks
Prefer assertions over defensive checks when data is guaranteed to be valid.
prefer-direct-imports-over-module-mocks
Prefer extracting a testable core over vi.mock / vi.resetModules when unit tests need to reach production logic entangled with config, env, or singletons.
control-plane-descriptors
Control plane descriptor and instance implementation patterns.