change-discipline

change-discipline is a cursor rule for Cursor from arturogarrido/claudinho. It costs 668 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: reads .claude/ paths; 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 668 This file is loaded in full into every session.
When invoked 668 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.00668 $0.00668
Opus 5.5 $0.00267 $0.00267
Sonnet 5.5 $0.00134 $0.00134
Haiku 4.5 $0.00067 $0.00067

Measured 12d ago against content hash c890582a78f5, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 12d 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 · 45 lines

What it actually says

Change discipline

The canonical text is AGENTS.md → "Working agreement", "Validation scope", "Change discipline", and "Definition of Done". This file mirrors those rules for Cursor; keep it in sync. If the guides disagree, AGENTS.md wins.

The short form:

  1. Complete authorized work through validation and self-review. Resolve routine choices from the code; ask about missing information that changes scope or behavior. Plans, audits, and reviews stay read-only unless edits are requested.
  2. For user-facing features, write 3–5 acceptance criteria and explicit exclusions before implementation. Put them in the PR description before the first commit; draft the description locally if there is no PR yet.
  3. Put a shared rule where every path reaches it, then delete the other copy — not at the site the report happened to mention.
  4. Search for sibling paths, including live/cache and statusline/hook readers.
  5. Make a new regression test fail before trusting it. For call-site bugs, remove the call and confirm red; restore it afterward and preserve unrelated edits.
  6. Never assert wall-clock time. Assert the observable consequence instead.
  7. Use AGENTS.md's validation scope and read the output. Prose-only edits need git diff --check origin/main, link/contract checks, and the node --input-type=module block in AGENTS.md's private-document boundary check. Code, dependency, and executable config changes need build → typecheck → test → lint plus relevant CI smoke/pack checks. scripts/gate.sh runs that list locally with one verdict per step (not release:qa, not CI's Node 22 floor, Windows and macOS jobs, which scripts/push-and-watch.sh reads on the pushed SHA); with --commit <message-file> it commits only when every step is ok, or, with --allow-offline-audit, when the audit alone was skipped offline (the commit line says so and the exit stays nonzero). The verify-claudinho skill and node scripts/verify.mjs are the offline inner loop; the control CLI replaces neither CI's jobs nor the live pass, release:qa. User-facing behavior and releases also need release:qa after build. Rerun checks for new changes, failures, or unresolved concerns; after a push, verify CI on that SHA.
  8. Start every task at the router skill, .claude/skills/claudinho-mode/SKILL.md (mirrored at .cursor/skills/claudinho-mode/SKILL.md), which names the playbook for the task's kind, and find a failure class and the enforcer that refuses it in AGENTS.md → "Rules and their enforcers".
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. 12d ago Changed · +2 tokens per session c890582a78f5
  2. 1mo ago Changed · +1 tokens per session dda4bfe4a0e7
  3. 1mo ago Changed · +4 lines · +91 tokens per session b64e88eb2400
  4. 1mo ago Changed · +2 lines · +45 tokens per session 090ac69dab0a
  5. 1mo ago Changed · +5 lines · +106 tokens per session 50c9df73990c
  6. 2mo ago Changed · +3 lines · +58 tokens per session 1fbfdd68538b
  7. 3mo 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 (38 stars, last pushed today), licensed MIT. It adds 668 tokens to every session, about $0.0027 per session on Opus 5.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.

Related

change-discipline compared with cursor rules from other repositories

change-discipline next to 6 cursor rules from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
change-disciplinearturogarrido/claudinhoCursor rule38todayMITA668Cursor
branch-namingkprompt/kpromptCursor rule503d agoApache-2.0A410Cursor
release-policyv0id-user/setmacCursor rule1610d agoMITA319Cursor
commit-and-pushlangwatch/better-agentsCursor rule1.6k6mo agoMITA0Cursor
gitPranav-Karra-3301/tuckCursor rule154mo agoMITA0Cursor
gitduongductrong/antigravity-kitCursor rule519mo agoMITA285Cursor
release-checklistyoreai/relayCursor rule23mo agoApache-2.0A215Cursor