documentation

documentation is a cursor rule for Cursor from bernierllc/agents-environment-config. It costs 1,038 tokens per session, scanned A, original, MIT.

A set of rules for writing documentation, organizing files, and managing content.

In plain words
What is it for?
Use it when creating, editing, or arranging project documentation and related content.
Why use it?
It gives a project consistent expectations for where documentation belongs and how it should be written.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/. Also seen: mentions Cursor.

Good fit Use it when creating, editing, or arranging project documentation and related content.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/bernierllc/agents-environment-config/documentation
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/bernierllc/agents-environment-config

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 documentation

README.md
[![agentmods](https://agentmods.dev/badge/rules/bernierllc/agents-environment-config/documentation/github.svg)](https://agentmods.dev/rules/bernierllc/agents-environment-config/documentation)
Your own site
<a href="https://agentmods.dev/rules/bernierllc/agents-environment-config/documentation"><img src="https://agentmods.dev/badge/rules/bernierllc/agents-environment-config/documentation/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 documentation

Your own site · 80×15
<a href="https://agentmods.dev/rules/bernierllc/agents-environment-config/documentation"><img src="https://agentmods.dev/badge/rules/bernierllc/agents-environment-config/documentation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,038 This file is loaded in full into every session.
When invoked 1,038 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.01038 $0.01038
Opus 5.5 $0.00415 $0.00415
Sonnet 5.5 $0.00208 $0.00208
Haiku 4.5 $0.00104 $0.00104

Measured 2mo ago against content hash d8602d35964a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

documentation 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 2mo 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/general/documentation.mdc · 137 lines

How it starts

The opening of the file, as written. The whole thing — 137 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Documentation Rules

Documentation Standards

File Organization

  • Documentation: Store in /docs/**/*.md
  • Planning Docs: Store in ./plans/**/*.md
  • Cursor Rules: Store in .cursor/rules/*.mdc
  • Architecture Notes: Note in .cursor/rules/*.mdc files

Content Standards

  • Be Pithy: Link to files in /docs/ rather than including all content
  • Cross-References: Use task lists (- [ ] / - [x]) and cross-link related docs
  • No Emojis: Do not use emojis in markdown, ./docs, or ./plans files
  • Self-Documenting: Prefer clear code over extensive documentation

Documentation Types

Architecture Documentation

  • Design Principles: Note in .cursor/rules/architecture.mdc
  • System Design: Link to detailed docs in /docs/
  • Component Relationships: Document in planning docs
  • Decision Records: Track architectural decisions

Implementation Documentation

  • Code Comments: Minimal, only when necessary
  • API Documentation: Docstrings on every public symbol
  • Function Documentation: Clear parameter and return descriptions
  • Class Documentation: Purpose and usage examples

Planning Documentation

  • Task Lists: Use - [ ] for pending, - [x] for completed
  • Cross-Links: Link to related planning and implementation docs
  • Refactoring Plans: Document in ./plans/ when code gets too large
  • Feature Planning: Track feature development and dependencies

Documentation Maintenance

Update Requirements

  • Functionality Changes: Update docs when functionality changes
  • Mock Implementations: Ensure implementation docs are added/updated for mocks
  • API Changes: Update API documentation immediately
  • Architecture Changes: Update architecture documentation

Documentation Workflow

  1. Create: Write documentation alongside code
  2. Review: Review documentation for accuracy
  3. Update: Keep documentation current with changes
  4. Validate: Ensure links and references work
  5. Archive: Move outdated docs to archive

Read the full file on GitHub · 137 lines

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. 2mo ago Changed · -3 tokens per session d8602d35964a
  2. 3mo ago First seen · 137 lines · 1,041 tokens per session scan A 4f59e19bdb81

Subscribe to this mod's changes

documentation is a cursor rule published in the GitHub repository bernierllc/agents-environment-config (11 stars, last pushed yesterday), licensed MIT. It adds 1,038 tokens to every session, about $0.0042 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-31.

Related

documentation compared with cursor rules from other repositories

documentation next to 6 cursor rules from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
documentationbernierllc/agents-environment-configCursor rule11yesterdayMITA1,038Cursor
css-stylingConsensys/doc.lineaCursor rule48010d agoApache-2.0A0Cursor
kotlin-springboot-rulesholtwood/awesome-cursorrules-zhCursor rule2441mo agoMITA0Cursor
creating-cursor-rulespr-pm/prpmCursor rule1251mo agoMITA16Cursor
springboot-jpa-best-practicesholtwood/awesome-cursorrules-zhCursor rule2441mo agoMITA0Cursor
python-django-generalholtwood/awesome-cursorrules-zhCursor rule2441mo agoMITA195Cursor
error-handling-and-validationholtwood/awesome-cursorrules-zhCursor rule2441mo agoMITA185Cursor