selectools-docs

Documentation rules for selectools and its MkDocs website. MkDocs is a tool that builds a documentation site from Markdown files.

In plain words
What is it for?
Use it when adding features to the documentation, writing guides, updating navigation, or maintaining the site structure.
Why use it?
It prevents inconsistent page locations, links, navigation, and updates when documentation changes.

Cursor rule for Cursor

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.

agentmods
npx agentmods add rules/johnnichev/selectools/selectools-docs
Clone the repo
git clone --depth 1 https://github.com/johnnichev/selectools

Made for: Cursor.

Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 545 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00000 $0.00545
Opus 5 $0.00000 $0.00272
Sonnet 5 $0.00000 $0.00109
Haiku 4.5 $0.00000 $0.00055

Measured yesterday against content hash 63251713fbd8, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

selectools-docs 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 yesterday.

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/selectools-docs.mdc · 46 lines

What it actually says

Documentation Rules

MkDocs Site Structure

  • Config: mkdocs.yml (Material theme, tab nav, emoji, code copy)
  • Landing page: docs/index.md
  • Module docs: docs/modules/<NAME>.md
  • Guides: docs/QUICKSTART.md, docs/ARCHITECTURE.md
  • Custom CSS: docs/stylesheets/extra.css
  • CHANGELOG.md is copied from root at build time (not tracked in docs/)
  • Within docs/: use relative paths (modules/AGENT.md, ../ARCHITECTURE.md)
  • To files outside docs/ (ROADMAP.md, examples/, notebooks/): use absolute GitHub URLs Example: https://github.com/johnnichev/selectools/blob/main/examples/01_hello_world.py
  • Anchor format for MkDocs: #heading-text (lowercase, hyphens, no special chars) ## Tool Policy & Human-in-the-Loop#tool-policy-human-in-the-loop (not double hyphen)

When Adding a New Feature

  1. Create docs/modules/<FEATURE>.md with full API reference and examples
  2. Add nav entry in mkdocs.yml under the appropriate tab
  3. Update docs/index.md feature table
  4. Update docs/README.md documentation index
  5. Update docs/QUICKSTART.md "next steps" table if user-facing
  6. Update docs/ARCHITECTURE.md if it adds a new system component
  7. Add section to notebooks/getting_started.ipynb
  8. Verify build: cp CHANGELOG.md docs/CHANGELOG.md && mkdocs build

Hardcoded Counts

These appear in multiple files and MUST be updated together:

  • Model count (currently 146): index.md, README.md, MODELS.md, QUICKSTART.md, ARCHITECTURE.md
  • Test count: README.md, index.md, CHANGELOG.md
  • Example count: README.md, index.md
  • Tool count (24): index.md, README.md, TOOLBOX.md

Style

  • Use admonitions (!!! tip, !!! warning) for callouts
  • Use tabbed content (=== "Tab Name") for install/usage variants
  • Use Material icons (:material-icon-name:) for feature cards
  • Code examples should be complete and runnable
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. yesterday First seen · 46 lines · 0 tokens per session scan A 63251713fbd8

Subscribe to this mod's changes

selectools-docs is a cursor rule published in the GitHub repository johnnichev/selectools (11 stars, last pushed 1mo ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 545 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.