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/marv1nnnnn/mouse/coding_standards.mousegit clone --depth 1 https://github.com/marv1nnnnn/mouseWhat 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.00000 | $0.01411 |
| Opus 5 | $0.00000 | $0.00705 |
| Sonnet 5 | $0.00000 | $0.00282 |
| Haiku 4.5 | $0.00000 | $0.00141 |
Grade A, and why
coding_standards.mouse 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 2d 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.
How it starts
The opening of the file, as written. The whole thing — 47 lines — stays where its author put it; the contents beside it link to each section on GitHub.
4. Standards & Quality Assurance: Coding Standards (Mouse Protocol)
Rationale: Defines the non-negotiable quality, security, and maintainability expectations for all code produced or modified by the Agent. Strict adherence ensures consistency, reduces errors, enhances collaboration, and aligns with professional software development practices. The Agent is expected to internalize these standards and apply them proactively and rigorously.
4.1 Code Quality & Conventions (Mandatory Adherence)
- Project-Specific & Language Idiomatic Standards:
- The Agent MUST meticulously adhere to any project-specific coding standards, linting rules (e.g., ESLint, Pylint, Checkstyle, RuboCop, SwiftLint), and formatting guidelines (e.g., Prettier, Black, Spotless, gofmt, rustfmt) defined and accessible within the project (e.g., via
.eslintrc.js,prettier.config.js,pyproject.toml,checkstyle.xml,.swiftlint.yml). - Agent Action: Before coding, Agent MUST scan for such configuration files. If found, Agent configures its internal generation process to comply strictly. If not found, Agent MUST use widely accepted community best practices and idiomatic conventions for the specific language and its version, prioritizing clarity, security, and maintainability. Agent logs which standards (project or default) are being applied.
- The Agent MUST meticulously adhere to any project-specific coding standards, linting rules (e.g., ESLint, Pylint, Checkstyle, RuboCop, SwiftLint), and formatting guidelines (e.g., Prettier, Black, Spotless, gofmt, rustfmt) defined and accessible within the project (e.g., via
- Clarity, Readability & Simplicity (KISS Principle):
- Code MUST be exceptionally clear, self-documenting where possible, and easily understandable by another human developer or a future instance of the Agent.
- Employ meaningful, descriptive, and consistent naming conventions for variables, functions, classes, modules, etc. (e.g.,
camelCasefor JS/Java variables/functions,PascalCasefor classes,snake_casefor Python variables/functions). - Avoid overly complex, nested, or "clever" logic if simpler, more straightforward alternatives exist that achieve the same functional outcome (refer to
@mouse/standards/guiding_software_principles.mouse.mdc#kiss).
- Maintainability & Modularity (SRP, DRY Principles):
- Code MUST be structured for ease of future modification, extension, and debugging.
- Follow modular design principles: Create small, focused functions/methods/classes that perform a single, well-defined task (Single Responsibility Principle - SRP).
- Aggressively avoid code duplication (Don't Repeat Yourself - DRY). Abstract common logic into reusable functions, classes, or modules. Reference
@mouse/standards/guiding_software_principles.mouse.mdc.
- Commenting & Documentation (See also
@mouse/standards/documentation_standards.mouse.mdc):- Provide clear, concise comments for complex logic, non-obvious design decisions, workarounds, or sections of code that have known limitations (e.g.,
// HACK: Temporary workaround for API bug XYZ-123. TODO: Remove when fixed.). - Public APIs (functions, classes, methods exposed for external use) MUST have comprehensive docstrings/API comments detailing purpose, parameters, return values, and exceptions.
- Provide clear, concise comments for complex logic, non-obvious design decisions, workarounds, or sections of code that have known limitations (e.g.,
- Error Handling & Resilience (Robustness):
- Implement robust, specific error handling for all anticipated failure conditions (e.g., invalid inputs, I/O errors, API failures, unmet preconditions).
- Use language-specific exception handling mechanisms correctly. Catch specific exceptions rather than generic ones, unless intentionally re-throwing with added context.
- Provide meaningful error messages that help in diagnosing the problem. Log errors appropriately (see logging standards).
- Consider graceful degradation or fallback mechanisms where appropriate.
- Security Best Practices (Critical - Principle of Least Privilege, Secure by Design):
- Agent MUST be actively mindful of common security vulnerabilities relevant to the language, framework, and context (e.g., OWASP Top 10: SQL Injection, XSS, CSRF, Insecure Deserialization, Broken Access Control, etc.).
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.
- 2d ago First seen · 47 lines · 1,411 tokens per session scan A a3cddb9714c6
coding_standards.mouse is a cursor rule published in the GitHub repository marv1nnnnn/mouse (14 stars, last pushed 1y ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,411 tokens. 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.
Other cursor rules, from other repositories
engineering-ticket-template-cursorrules-prompt-file
Cursor rules for engineering development with ticket template integration.
ankra-cli
Ankra CLI rules and best practices for managing Kubernetes clusters via the Ankra platform.
cypress-integration-testing-cursorrules-prompt-file
Cursor rules for Cypress development with integration testing.
git-conventional-commit-messages
Cursor rules for Git development with conventional commit messages integration.
go-backend-scalability-cursorrules-prompt-file
Cursor rules for Go development with backend scalability.
cloudflare-email-telegram-cursorrules-prompt-file
Cursor rules for setting up email-to-Telegram forwarding via Cloudflare Email Routing and Workers using the mail2tg CLI.