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/documentation_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.01626 |
| Opus 5 | $0.00000 | $0.00813 |
| Sonnet 5 | $0.00000 | $0.00325 |
| Haiku 4.5 | $0.00000 | $0.00163 |
Grade A, and why
documentation_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 — 56 lines — stays where its author put it; the contents beside it link to each section on GitHub.
4. Standards & Quality Assurance: Documentation Standards (Mouse Protocol)
Rationale: Ensures that all work performed and systems developed/modified by the Agent are adequately, accurately, and clearly documented at multiple levels. High-quality documentation is essential for User understanding, future maintainability, collaboration, onboarding, and overall project success. The Agent treats documentation as an integral part of task completion.
4.3 Documentation Standards (Agent's Direct Responsibility)
- A. Task-Level Documentation (Implicit via Protocol Adherence & Explicit Summaries):
- Implicit & Foundational: The primary, detailed documentation for the work undertaken is inherently captured by strict adherence to the Mouse Protocol:
- The
Taskobject (<TaskID>.md):Description,Deliverables,HistoryLog. - The
PlanFile(<TaskID>_plan.mdfor M/L/X tasks): DetailedSubTask.Objective,SubTask.InitialKeySteps,SubTask.ProactiveAnalysis, granularSubTask.ExecutionLog, and structuredSubTask.FinalOutputSummary(JSON).
- The
- The Agent MUST ensure all these protocol-defined artifacts are accurate, comprehensive, and reflect the work performed precisely.
- Explicit Summaries (If Required): If a
Task.DeliverableorSubTask.Deliverableexplicitly calls for a specific summary document, report, or presentation (e.g., "Generate a Markdown summary of findings forTaskID"), the Agent must produce this as a distinct artifact, linking to more detailed logs where appropriate.
- Implicit & Foundational: The primary, detailed documentation for the work undertaken is inherently captured by strict adherence to the Mouse Protocol:
- B. Code-Level Documentation (Inline Comments & API Documentation - Mandatory):
- B1. Inline Comments (Clarity for Complex Logic): Agent MUST generate clear, concise inline comments within the code to explain:
- Complex or non-obvious algorithm sections.
- Important design decisions or trade-offs made within a function/method.
- Workarounds for known issues or external system quirks (e.g.,
// API X returns inconsistent nulls, handling defensively.). TODO:,FIXME:,HACK:annotations with clear explanations and, if possible, a reference to aTaskIDfor follow-up.
- B2. API/Function/Class Documentation (Docstrings - Non-Negotiable for Public/Reusable Code):
- For ALL new or significantly modified public/exported functions, methods, classes, interfaces, and modules, the Agent MUST generate standard API documentation using the idiomatic style for the language (e.g., JSDoc/TSDoc, Python Docstrings with Sphinx/Google/NumPy style, JavaDoc, GoDoc, Doxygen, Swift Markup, KDoc).
- This documentation MUST minimally include:
- A concise summary of the component's purpose and primary responsibility.
- Detailed description of each parameter: name, type, purpose, optional/required, default value if any.
- Detailed description of the return value: type, purpose, structure if complex.
- Any exceptions/errors explicitly thrown or specific error conditions the caller should be aware of.
- Usage examples where they significantly aid understanding (especially for complex APIs or utility functions).
- Notes on thread safety, immutability, or other non-functional characteristics if relevant.
- Logging: The generation or significant update of code-level documentation MUST be logged in the relevant
SubTask.ExecutionLog(e.g., "Generated Python docstrings for all public methods indata_processor.py.").
- B1. Inline Comments (Clarity for Complex Logic): Agent MUST generate clear, concise inline comments within the code to explain:
- C. Project-Level Documentation (User Guides, READMEs, Architectural Docs, Changelogs - As Required):
- If a task introduces new user-facing features, public APIs, significant architectural changes, new operational procedures, or breaking changes, the Agent MUST create or update relevant Bdocumentation. This is mandatory IF:
- Explicitly specified as a
Deliverablein theTaskor aSubTask.
- Explicitly specified as a
- If a task introduces new user-facing features, public APIs, significant architectural changes, new operational procedures, or breaking changes, the Agent MUST create or update relevant Bdocumentation. This is mandatory IF:
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 · 56 lines · 1,626 tokens per session scan A dd1d983d7856
documentation_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,626 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.
12-new-project
Workflow for starting a new app from this template - rebranding, identity, cleanup and first feature.
13-updating-project
Workflow for updating an existing project - dependency and SDK upgrades, migrations, refactors, bug fixes.
ankra-cli
Ankra CLI rules and best practices for managing Kubernetes clusters via the Ankra platform.
cypress-api-testing-cursorrules-prompt-file
Cursor rules for Cypress development with API testing.
cypress-e2e-testing-cursorrules-prompt-file
Cursor rules for Cypress development with E2E testing.