change-discipline

change-discipline is a cursor rule for Cursor from arturogarrido/claudinho. It costs 365 tokens per session, scanned A, original, MIT.

A set of rules for defining the boundaries and acceptance checks of a code change before it is committed. It also covers tests, shared fixes, timing-related assertions, and reading all verification results.

In plain words
What is it for?
Writing acceptance criteria, stating what a change does not cover, finding duplicate cases, proving tests fail for the right reason, and running project checks before a pull request.
Why use it?
It reduces repeated review rounds caused by unclear finish lines, duplicated fixes, or changes that accidentally expand into unrelated parts of the codebase.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/. Also seen: mentions CLAUDE.md; mentions Claude Code; mentions AGENTS.md.

Good fit Writing acceptance criteria, stating what a change does not cover, finding duplicate cases, proving tests fail for the right reason, and running project checks before a pull request.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/arturogarrido/claudinho/change-discipline
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.

Clone the repo
git clone --depth 1 https://github.com/arturogarrido/claudinho

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 change-discipline

README.md
[![agentmods](https://agentmods.dev/badge/rules/arturogarrido/claudinho/change-discipline/github.svg)](https://agentmods.dev/rules/arturogarrido/claudinho/change-discipline)
Your own site
<a href="https://agentmods.dev/rules/arturogarrido/claudinho/change-discipline"><img src="https://agentmods.dev/badge/rules/arturogarrido/claudinho/change-discipline/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for change-discipline

Your own site · 80×15
<a href="https://agentmods.dev/rules/arturogarrido/claudinho/change-discipline"><img src="https://agentmods.dev/badge/rules/arturogarrido/claudinho/change-discipline.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 365 This file is loaded in full into every session.
When invoked 365 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00365 $0.00365
Opus 5 $0.00182 $0.00182
Sonnet 5 $0.00073 $0.00073
Haiku 4.5 $0.00036 $0.00036

Measured 10d ago against content hash 90fad5d2e2fa, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

change-discipline 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 10d 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/change-discipline.mdc · 31 lines

What it actually says

Change discipline

The canonical text is AGENTS.md → "Change discipline", and the "Definition of Done" section beside it. This file exists only because Cursor reads .cursor/rules and not AGENTS.md — Claude Code reads AGENTS.md via CLAUDE.md, and it is Codex's source of truth. Keep the two in sync; if they disagree, AGENTS.md wins.

The short form:

  1. Acceptance criteria in the PR before the first commit, plus an explicit statement of what the change does NOT cover. Skipping this is what turned PR #97 into twelve review rounds: with no written finish line every round ended at "I fixed what was reported" and the next round moved it, and with no stated boundary, findings equally true of main arrived as blockers.
  2. Put a shared rule where every path reaches it, then delete the other copy — not at the site the report happened to mention.
  3. Grep for siblings before calling a class closed. Every single-instance fix in #97 had two or three.
  4. Make a test fail before trusting it, and pin the CALL, not just the function. Delete the call site and confirm red.
  5. Never assert wall-clock time. Assert the observable consequence instead.
  6. Run the gates and READ the output — build, typecheck, test, lint, the three CI smokes, release:qa — then wait for CI on the SHA you actually pushed.
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. 10d ago First seen · 31 lines · 365 tokens per session scan A 90fad5d2e2fa

Subscribe to this mod's changes

change-discipline is a cursor rule published in the GitHub repository arturogarrido/claudinho (28 stars, last pushed 3d ago), licensed MIT. It adds 365 tokens to every session, about $0.0018 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-30.