documentation

documentation is a cursor rule for Cursor from neuromechanist/research-skills. It costs 4 tokens per session (571 once invoked), scanned A, original, BSD-3-Clause.

A set of standards for building project documentation with MkDocs, a tool that turns Markdown files into a searchable website. It covers site setup, page structure, and automatic API reference pages from Python code.

In plain words
What is it for?
It is for creating a documentation site, organizing guides and API pages, configuring search and navigation, and publishing documentation from a project.
Why use it?
It gives developers a consistent documentation layout and helps new contributors find setup guides and API information quickly.

Cursor rule for Cursor

Written for Cursor: a Cursor rule (.mdc).

Good fit It is for creating a documentation site, organizing guides and API pages, configuring search and navigation, and publishing documentation from a project.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/neuromechanist/research-skills/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/neuromechanist/research-skills

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/neuromechanist/research-skills/documentation.svg)](https://agentmods.dev/rules/neuromechanist/research-skills/documentation)
Your own site
<a href="https://agentmods.dev/rules/neuromechanist/research-skills/documentation"><img src="https://agentmods.dev/badge/rules/neuromechanist/research-skills/documentation.svg" alt="Measured on agentmods" height="20"></a>
Per session 4 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 571 The whole file, excluding the scripts and references it only reads on demand.
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.00004 $0.00571
Opus 5 $0.00002 $0.00285
Sonnet 5 $0.00001 $0.00114
Haiku 4.5 $0.00000 $0.00057

Measured 3d ago against content hash 533dcce42900, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-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 3d 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.

plugins/project/templates/cursor/core_rules/documentation.mdc · 95 lines

How it starts

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

Documentation Standards (MkDocs)

Core Philosophy: Write for Your Future Self

Good docs answer questions before they're asked. Think: What would confuse me in 6 months? Goal: New developers productive in <1 hour.

Setup

Install: uv add --group docs mkdocs mkdocs-material mkdocstrings[python]
Config: mkdocs.yml in project root

Minimal mkdocs.yml

site_name: {{PROJECT_NAME}}
site_url: https://example.com
repo_url: https://github.com/user/repo

theme:
  name: material
  features: [navigation.tabs, search.suggest]
  
nav:
  - Home: index.md
  - API: api/
  - Guides: guides/

plugins:
  - search
  - mkdocstrings:
      handlers:
        python:
          options:
            show_root_heading: yes
            members_order: source

markdown_extensions:
  - pymdownx.highlight
  - pymdownx.superfences
  - admonition
  - toc

Structure

docs/
  index.md           # Home page
  guides/
    getting_started.md
    advanced.md
  api/               # Auto-generated from docstrings
    module_a.md      # Contains ::: my_project.module_a

API Documentation

# Module A
::: my_project.module_a
    handler: python
    options:
      show_source: no

Commands

  • Develop: mkdocs serve (live preview at localhost:8000)
  • Build: mkdocs build (generates site/)
  • Deploy: mkdocs gh-deploy (to GitHub Pages)

Writing Tips (Think Like a Teacher)

  • Start with why: Context before details
  • Show, don't tell: Examples > explanations
  • Use admonitions: !!! warning "Common mistake"
  • Code blocks: Include full context, not fragments
  • Progressive disclosure: Simple first, then advanced

Ask yourself:

  • Would a new developer understand this?
  • Did I explain the "why" not just the "how"?
  • Are there examples for each concept?

CI/CD Integration

See ci-cd.mdc for auto-deployment workflow

Documentation Mindset

You're not just documenting - you're teaching. Every README should get someone running in minutes. Every guide should prevent a support question. Think: "What would I want to know?"

Read the full file on GitHub · 95 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. 3d ago First seen · 95 lines · 4 tokens per session scan A 533dcce42900

Subscribe to this mod's changes

documentation is a cursor rule published in the GitHub repository neuromechanist/research-skills (45 stars, last pushed 5d ago), licensed BSD-3-Clause. It adds 4 tokens to every session and 571 once invoked, about $0.0000 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-09-04.