cursorrules
AGENTS.md88 starsChanged 13 months agoMITView on GitHub
This document explains how to use the rules in this repository with Cursor and serves as a single entry point that references the existing rule files. It avoids duplication by linking directly to the .cursor/rules/*.mdc sources. If you installed these rules via the installer, a project‑local AGENTS.md can be generated that lists only the rules you chose. By default, the installer writes AGENTS.md if absent; it overwrites only when you pass --yes. Tag taxonomy is documented in TAG_STANDARDS.md.
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository70 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- .cursor/rules/accessibility-standards.mdcCursor rule
- .cursor/rules/api-standards.mdcCursor rule
- .cursor/rules/behat-ai-guide.mdcCursor rule
- .cursor/rules/behat-steps.mdcCursor rule
- .cursor/rules/build-optimization.mdcCursor rule
- .cursor/rules/code-generation-standards.mdcCursor rule
- .cursor/rules/confluence-editing-standards.mdcCursor rule
- .cursor/rules/cursor-rules.mdcCursor rule
- .cursor/rules/debugging-standards.mdcCursor rule
- .cursor/rules/docker-compose-standards.mdcCursor rule
- .cursor/rules/drupal-authentication-failures.mdcCursor rule
- .cursor/rules/drupal-broken-access-control.mdcCursor rule
- .cursor/rules/drupal-cryptographic-failures.mdcCursor rule
- .cursor/rules/drupal-database-standards.mdcCursor rule
- .cursor/rules/drupal-file-permissions.mdcCursor rule
- .cursor/rules/drupal-injection.mdcCursor rule
- .cursor/rules/drupal-insecure-design.mdcCursor rule
- .cursor/rules/drupal-integrity-failures.mdcCursor rule
- .cursor/rules/drupal-logging-failures.mdcCursor rule
- .cursor/rules/drupal-security-misconfiguration.mdcCursor rule
- .cursor/rules/drupal-ssrf.mdcCursor rule
- .cursor/rules/drupal-vulnerable-components.mdcCursor rule
- .cursor/rules/generic_bash_style.mdcCursor rule
- .cursor/rules/git-commit-standards.mdcCursor rule
- .cursor/rules/github-actions-standards.mdcCursor rule
- .cursor/rules/improve-cursorrules-efficiency.mdcCursor rule
- .cursor/rules/javascript-broken-access-control.mdcCursor rule
- .cursor/rules/javascript-cryptographic-failures.mdcCursor rule
- .cursor/rules/javascript-identification-authentication-failures.mdcCursor rule
- .cursor/rules/javascript-injection.mdcCursor rule
- .cursor/rules/javascript-insecure-design.mdcCursor rule
- .cursor/rules/javascript-performance.mdcCursor rule
- .cursor/rules/javascript-security-logging-monitoring-failures.mdcCursor rule
- .cursor/rules/javascript-security-misconfiguration.mdcCursor rule
- .cursor/rules/javascript-server-side-request-forgery.mdcCursor rule
- .cursor/rules/javascript-software-data-integrity-failures.mdcCursor rule
- .cursor/rules/javascript-standards.mdcCursor rule
- .cursor/rules/javascript-vulnerable-outdated-components.mdcCursor rule
- .cursor/rules/lagoon-docker-compose-standards.mdcCursor rule
- .cursor/rules/lagoon-yml-standards.mdcCursor rule
- .cursor/rules/multi-agent-coordination.mdcCursor rule
- .cursor/rules/new-pull-request.mdcCursor rule
- .cursor/rules/node-dependencies.mdcCursor rule
- .cursor/rules/php-drupal-best-practices.mdcCursor rule
- .cursor/rules/php-drupal-development-standards.mdcCursor rule
- .cursor/rules/php-memory-optimisation.mdcCursor rule
- .cursor/rules/project-definition-template.mdcCursor rule
- .cursor/rules/pull-request-changelist-instructions.mdcCursor rule
- .cursor/rules/python-authentication-failures.mdcCursor rule
- .cursor/rules/python-broken-access-control.mdcCursor rule
- .cursor/rules/python-cryptographic-failures.mdcCursor rule
- .cursor/rules/python-injection.mdcCursor rule
- .cursor/rules/python-insecure-design.mdcCursor rule
- .cursor/rules/python-integrity-failures.mdcCursor rule
- .cursor/rules/python-logging-monitoring-failures.mdcCursor rule
- .cursor/rules/python-security-misconfiguration.mdcCursor rule
- .cursor/rules/python-ssrf.mdcCursor rule
- .cursor/rules/python-vulnerable-outdated-components.mdcCursor rule
- .cursor/rules/react-patterns.mdcCursor rule
- The first 60 shown.
The file
We split this AGENTS.md into the rules it gives an agent
5 rules. About 0 are common, 1 is distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 5
If you installed these rules via the installer, a project‑local AGENTS.md can be generated that lists only the rules you chose.
- Distinctive: line 9
Keep this AGENTS.md handy as your quick index to the rule set.
- Very specific: line 114
Before opening a pull request, prepend a new entry to CHANGELOG.md describing your changes (latest release first) and never delete prior …
- Very specific: line 115
Ensure the summary in CHANGELOG.md matches the work being done and that CURSOR_RULES_VERSION reflects the next release number.
- Very specific: line 126
All rule sources: .cursor/rules/*.mdc
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Cursor Agents Guide (Using Cursor Rules)
This document explains how to use the rules in this repository with Cursor and serves as a single entry point that references the existing rule files. It avoids duplication by linking directly to the .cursor/rules/*.mdc sources.
If you installed these rules via the installer, a project‑local AGENTS.md can be generated that lists only the rules you chose. By default, the installer writes AGENTS.md if absent; it overwrites only when you pass --yes.
How To Use With Cursor
- Open your project in Cursor. Rules under
.cursor/rulesare discovered automatically by Cursor. - Keep this AGENTS.md handy as your quick index to the rule set.
- For installation methods and advanced options, see
README.md.
Installation Options
For full installation details and examples, see README.md.
- Core rules only:
--core - Web stack (includes core):
--web-stackor--ws - Python (includes core):
--python - JavaScript security (includes core):
--javascript - All rules:
--all - Tag-based selection:
--tags "<expression>"or--tag-preset <name> - Ignore files control:
--ignore-files yes|no|ask
Tag taxonomy is documented in TAG_STANDARDS.md.
Rule Bundles (Source of Truth)
Below are the rule bundles and their rule files. Each item links directly to the authoritative file under .cursor/rules/.
Core
- .cursor/rules/cursor-rules.mdc
- .cursor/rules/git-commit-standards.mdc
- .cursor/rules/github-actions-standards.mdc
- .cursor/rules/improve-cursorrules-efficiency.mdc
- .cursor/rules/pull-request-changelist-instructions.mdc
- .cursor/rules/readme-maintenance-standards.mdc
- .cursor/rules/testing-guidelines.mdc
- .cursor/rules/confluence-editing-standards.mdc
Web Stack
- .cursor/rules/accessibility-standards.mdc
- .cursor/rules/api-standards.mdc
- .cursor/rules/build-optimization.mdc
- .cursor/rules/code-generation-standards.mdc
- .cursor/rules/debugging-standards.mdc
- .cursor/rules/docker-compose-standards.mdc
- .cursor/rules/drupal-authentication-failures.mdc
- .cursor/rules/drupal-broken-access-control.mdc
- .cursor/rules/drupal-cryptographic-failures.mdc
- .cursor/rules/drupal-database-standards.mdc
- .cursor/rules/drupal-file-permissions.mdc
- .cursor/rules/drupal-injection.mdc
- .cursor/rules/drupal-insecure-design.mdc
- .cursor/rules/drupal-integrity-failures.mdc
- .cursor/rules/drupal-logging-failures.mdc
- .cursor/rules/drupal-security-misconfiguration.mdc
- .cursor/rules/drupal-ssrf.mdc
- .cursor/rules/drupal-vulnerable-components.mdc
- .cursor/rules/generic_bash_style.mdc
- .cursor/rules/javascript-performance.mdc
- .cursor/rules/javascript-standards.mdc
- .cursor/rules/lagoon-docker-compose-standards.mdc
- .cursor/rules/lagoon-yml-standards.mdc
- .cursor/rules/multi-agent-coordination.mdc
- .cursor/rules/node-dependencies.mdc
- .cursor/rules/php-drupal-best-practices.mdc
- .cursor/rules/php-drupal-development-standards.mdc
- .cursor/rules/php-memory-optimisation.mdc
- .cursor/rules/project-definition-template.mdc
- .cursor/rules/react-patterns.mdc
- .cursor/rules/security-practices.mdc
- .cursor/rules/secret-detection.mdc
- .cursor/rules/tailwind-standards.mdc
- .cursor/rules/tests-documentation-maintenance.mdc
- .cursor/rules/third-party-integration.mdc
- .cursor/rules/vortex-cicd-standards.mdc
- .cursor/rules/vortex-scaffold-standards.mdc
- .cursor/rules/vue-best-practices.mdc
- .cursor/rules/behat-steps.mdc
- .cursor/rules/behat-ai-guide.mdc
Python
- .cursor/rules/python-authentication-failures.mdc
- .cursor/rules/python-broken-access-control.mdc
- .cursor/rules/python-cryptographic-failures.mdc
- .cursor/rules/python-injection.mdc
- .cursor/rules/python-insecure-design.mdc
- .cursor/rules/python-integrity-failures.mdc
- .cursor/rules/python-logging-monitoring-failures.mdc
- .cursor/rules/python-security-misconfiguration.mdc
- .cursor/rules/python-ssrf.mdc
- .cursor/rules/python-vulnerable-outdated-components.mdc
- .cursor/rules/security-practices.mdc
JavaScript Security
- .cursor/rules/javascript-broken-access-control.mdc
- .cursor/rules/javascript-cryptographic-failures.mdc
- .cursor/rules/javascript-identification-authentication-failures.mdc
- .cursor/rules/javascript-injection.mdc
- .cursor/rules/javascript-insecure-design.mdc
- .cursor/rules/javascript-security-logging-monitoring-failures.mdc
- .cursor/rules/javascript-security-misconfiguration.mdc
- .cursor/rules/javascript-server-side-request-forgery.mdc
- .cursor/rules/javascript-software-data-integrity-failures.mdc
- .cursor/rules/javascript-vulnerable-outdated-components.mdc
Tag-Based Selection
The installer supports tag expressions and presets. Examples:
--tags "language:javascript category:security"--tags "framework:react"--tags "language:php standard:owasp-top10"--tag-preset js-owasp
See TAG_STANDARDS.md for the complete tag taxonomy and guidance.
Maintainer Checklist
- Before opening a pull request, prepend a new entry to
CHANGELOG.mddescribing your changes (latest release first) and never delete prior history. - Ensure the summary in
CHANGELOG.mdmatches the work being done and thatCURSOR_RULES_VERSIONreflects the next release number. - Record key implementation notes in this
AGENTS.mdonly when they affect installer behaviour or rule coverage so the instructions stay current. - Regenerate project-local
AGENTS.mdfiles with--yeswhen you need to refresh them after significant rule or command updates.
Updating Or Removing
- To update, re-run the installer with your preferred options (it will copy over updated rules). See
README.md. - To remove rules, delete files from
.cursor/rulesand remove any generated.cursorignorefiles if not needed.
References
- Project README: README.md
- Tag standards: TAG_STANDARDS.md
- All rule sources:
.cursor/rules/*.mdc
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

