cursorrules

Repository guidance for Cursor and other coding agents, used alongside the project's README.md, CLAUDE.md, and AGENTS.md files. It explains which documentation to read for setup, commands, pipeline rules, and project-specific conventions.

In plain words
What is it for?
Use it when onboarding to the repository, running its pipeline, checking validation rules, working in a specific project, or finding current project counts and coverage information.
Why use it?
It helps an agent find the right instructions before changing a repository with multiple projects and directory-specific rules. This reduces the risk of using the wrong command or violating the project's architecture.

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/docxology/template/cursorrules
Clone the repo
git clone --depth 1 https://github.com/docxology/template

Made for: Cursor.

Per session 1,159 This file is loaded in full into every session.
When invoked 1,159 The same file — it is already loaded in full.
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.01159 $0.01159
Opus 5 $0.00580 $0.00580
Sonnet 5 $0.00232 $0.00232
Haiku 4.5 $0.00116 $0.00116

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

Security

Grade A, and why

cursorrules 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.

.cursorrules · 65 lines

How it starts

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

Cursor and IDE agents — repository guidance

Use this file together with README.md (onboarding), CLAUDE.md (commands and patterns for Claude Code), and AGENTS.md (full system reference, troubleshooting, configuration).

What to read first

Goal Primary doc
Clone → run pipeline README.md Quickstart, docs/RUN_GUIDE.md
Exact shell commands, CI mirror, examples CLAUDE.md
Pipeline stages, validation, multi-project rules, deep TOC AGENTS.md
Directory-specific APIs and conventions AGENTS.md / README.md within that subdirectory (each projects/<name>/manuscript/ has its own AGENTS.md)
Public project names (infrastructure.project.public_scope) docs/_generated/active_projects.md
Live counts and coverage claims docs/_generated/COUNTS.md (refresh via measured pytest + scripts/docgen/active_projects.py; see docs/_generated/README.md)

Architecture (non-negotiable)

  • Thin orchestrators: Business logic belongs only in infrastructure/ (generic) or projects/{name}/src/ (domain). Root scripts/ and projects/{name}/scripts/ coordinate I/O, subprocesses, and plotting — they call tested functions; they do not own algorithms.
  • Layer 1: infrastructure/, repo scripts/, tests/infra_tests/.
  • Layer 2: Each active project under projects/<name>/ with src/, tests/, manuscript/, scripts/, output/. Final deliverables are copied to output/<name>/.
  • Canonical exemplars (always tracked, per infrastructure.project.public_scope.PUBLIC_PROJECT_NAMES): template_active_inference, template_advanced_literature_review, template_autopoiesis, template_autoresearch_project, template_autoscientists, template_code_project, template_data_descriptor, template_eda_notebook, template_formal, template_gold_refinement, template_literature_meta_analysis, template_madlib, template_methods_paper, template_newspaper, template_pitch_deck, template_pools_rules_tools, template_prose_project, template_redacted_report, template_registered_report, template_search_project, template_sia, template_storybook, template_template, template_textbook. Authoritative roster: docs/_generated/active_projects.md. Do not assume other folder names under projects/ exist in every checkout; use discovery output above.
  • output/ is disposable: Both projects/<name>/output/ and root output/<name>/ are regenerated by the pipeline — do not commit their contents.

Read the full file on GitHub · 65 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. yesterday First seen · 65 lines · 1,159 tokens per session scan A cd1160810b3e

Subscribe to this mod's changes

cursorrules is a cursor rule published in the GitHub repository docxology/template (19 stars, last pushed yesterday), licensed Apache-2.0. It adds 1,159 tokens to every session, about $0.0058 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-08-30.