agentleFS
Sign inSign up

Cursor rules examples

The rules real projects give Cursor's agent, from .cursor/rules.

Best matches · from page 6Worked for most · soon
danielvm-gitCursor rule

bigpowers / rules

danielvm-git/bigpowers/.cursor/rules/simple-english.mdc

Write or rewrite technical text with the rules of ASD-STE100 Simplified Technical English so the result is clear, unambiguous, and free of AI slop. Use for documentation, READMEs, runbooks, procedures, error messages, release notes, incident reports, and API guides. Also use when the user says \"STE\", \"Simplified Technical English\", \"ASD-STE100\", \"de-slop\", \"make this readable\", \"write for non-native readers\", or asks for docs that translate well. Enforces the 53 rules of the standard (Issue 9) with a deterministic lint gate.

24030d agoDiscuss
RagnarPitlaCursor rule

microsoft-agent-skills-private-archive / rules

RagnarPitla/microsoft-agent-skills-private-archive/.cursor/rules/explain-concept.mdc

Explain a Microsoft ecosystem concept to someone who is confused by it, after working out what they actually misunderstand. Use when someone asks what something is or why it behaves the way it does across Copilot Studio, Power Platform, Dataverse, Dynamics 365, Microsoft Foundry or Entra - particularly when they have already read the documentation and are still stuck.

241d agoDiscuss
anmolnagpalCursor rule

devops-skills / rules

anmolnagpal/devops-skills/.cursor/rules/adr.mdc

Capture architectural decisions that have already been made, as structured ADRs (Architecture Decision Records). Use when user says 'record this decision', 'ADR this', 'why did we choose X', 'document this trade-off', 'we decided to...', or when a choice between alternatives has been settled and needs writing down. This records a decision; it does not make one. A question of the form 'should we use X or Y' is a design discussion, not an ADR request.

832d agoDiscuss
DXHeroesCursor rule

mcp-devtools / rules

DXHeroes/mcp-devtools/.cursor/rules/package-documentation.mdc

Package Documentation Standards

1319mo agoDiscuss
jefrncCursor rule

quant-llm-skills / rules

jefrnc/quant-llm-skills/.cursor/rules/xbrl-fallbacks.mdc

Use when SEC XBRL company-facts data returns 404, is empty, or has sparse coverage — typical for recent FPIs (foreign private issuers), recent IPOs, SPACs, or shell companies. Defines the document hierarchy and extraction rules to recover shares-outstanding data from filing text when structured XBRL is unavailable.

05mo agoDiscuss
RagnarPitlaCursor rule

microsoft-agent-skills-private-archive / rules

RagnarPitla/microsoft-agent-skills-private-archive/.cursor/rules/de-slop.mdc

Rewrite text that reads like a model wrote it into something a person would actually send. Use when a proposal, customer email, README or executive summary reads like a brand deck, when a draft leans on \"seamless\", \"robust\", \"pivotal moment\" or \"evolving landscape\", when every sentence could be pasted into another company's blog post unchanged, when a document hedges instead of taking a position, or when a reviewer says a page is fine but cannot say what it told them.

241d agoDiscuss
rustic-aiCursor rule

codeprism / rules

rustic-ai/codeprism/.cursor/rules/gh-commands.mdc

This rule provides essential guidance for executing GitHub CLI (gh) commands correctly when using the run_terminal_cmd tool. It covers the critical workaround for pager-related issues that cause gh commands to fail with "cannot open '|' for reading" errors. The rule documents why piping gh commands to cat (e.g., gh run list | cat) is necessary and provides templates for common GitHub workflow operations, issue management, and pull request commands. Essential for debugging GitHub Actions workflows and accessing repository information via CLI. This rule should be requested whenever: Working with GitHub CLI commands Debugging GitHub Actions workflows Encountering terminal/pager-related errors with gh commands Need to list workflow runs, view logs, or manage GitHub repository resources via CLI The rule is now saved and ready to be used by agents who need to execute GitHub CLI commands correctly.

3115mo agoDiscuss
edhoferdianCursor rule

EEF / rules

edhoferdian/EEF/.cursor/rules/dev-kickoff-edho-ferdian.mdc

Kickoff and execute a development project from ANY specification or planning documents (PRD, SRS, WBS, tech spec, RFC, ADRs, and more — see the Phase 0 role table below for the full list). Classifies docs by role, cross-validates them, extracts a binding Project Decision Register, generates an Execution Context Pack plus a project-fit agent roster, then builds task-by-task through a seven-stage PLAN→TEST→IMPLEMENT→REVIEW→ VERIFY→REMEMBER→IMPROVE loop — auto-invoking this ecosystem's other skills as needed. Use whenever the user wants to build from specs, or says \"mulai proyek\", \"kickoff\", \"buat context pack\", \"handoff ke Cursor\" — or wants to RESUME: \"lanjutkan proyek\", \"resume\", \"lanjut dari snapshot\". Also use when a repo has /project-memory/ and the user asks to continue it.

197d agoDiscuss
mchittineniCursor rule

cloud-platform-skills / skills

mchittineni/cloud-platform-skills/.cursor/rules/skills/ai-agent-security-llm-threats.mdc

Security for LLM and agent systems: direct and indirect prompt injection, the OWASP Top 10 for LLM Applications, MITRE ATLAS technique mapping, excessive agency and tool-scope containment, egress allowlisting to stop data exfiltration, human confirmation for irreversible actions, and treating third-party skills and MCP servers as untrusted code. Use when an agent is given tools or credentials, when retrieved documents or repository files could carry injected instructions, or when reviewing an AI feature before it reaches production.

142d agoDiscuss
RagnarPitlaCursor rule

microsoft-agent-skills-private-archive / rules

RagnarPitla/microsoft-agent-skills-private-archive/.cursor/rules/ground-agents-in-work-context.mdc

Choose the right grounding layer for an agent across the Microsoft IQ stack - Work IQ, Fabric IQ, Foundry IQ, Web IQ. Use when an agent can see someone's email, calendar and Teams messages but not the approval rules or business entities it needs, when deciding between workplace signals and an ontology over business data, when someone maps a conceptual \"Business IQ\" or \"Work IQ\" onto Microsoft's products and gets the opposite of what they expected, when an agent needs GL accounts, vendors or authorisation thresholds rather than documents, or when an unattended background agent is being designed on top of Work IQ.

241d agoDiscuss
moclam1905Cursor rule

CocktailRecipes / core-rules

moclam1905/CocktailRecipes/.cursor/rules/core-rules/rule-generating-agent.mdc

This rule is essential for maintaining consistency and quality in rule creation across the codebase. It must be followed whenever: (1) A user requests a new rule to be created, (2) An existing rule needs modification, (3) The user asks to remember certain behaviors or patterns, or (4) Future behavior changes are requested. This rule ensures proper organization, clear documentation, and effective rule application by defining standard formats, naming conventions, and content requirements. It's particularly crucial for maintaining the rule hierarchy, ensuring rules are discoverable by the AI, and preserving the effectiveness of the rule-based system. The rule system is fundamental to project consistency, code quality, and automated assistance effectiveness.

118mo agoDiscuss
linkpranay-aiCursor rule

context-engineering-protocol / rules

linkpranay-ai/context-engineering-protocol/.cursor/rules/ult-autoscaffold-content.mdc

Generate real starter content for a project's What-L2 (requirements) and How-L2 (architecture/conventions) CEP layers once ult-repo-layout has resolved their paths but found them empty — an honest, minimal, YAML-frontmatter-first overview document per layer for small/single targets, or graphify-informed per-module tiering with resumable per-module CONTEXT.md generation, existence-gated CODING-STANDARDS.md/TESTING-GUIDELINES.md, interface-boundary docs for graph-crossing module pairs, and a rendered CEP-INDEX.md router for large repos, optionally informed by a user-supplied domain-pack of terminology/references if one is configured. This skill generates a NEW starter doc only when none exists — it never compiles or reconciles EXISTING scattered guideline sources (that's compiling-project-guidelines' job). Do NOT use to enforce layout paths or run layer discovery — that's ult-repo-layout. Do NOT use to author or generate a domain pack — this skill only ever consumes one you already wrote.

938d agoDiscuss
adammatthewsteinbergerCursor rule

claudeloop / rules

adammatthewsteinberger/claudeloop/.cursor/rules/claudeloop-docs.mdc

Explains where different kinds of content belong in this repo (CLAUDE.md vs .claude/skills/ vs docs/), how to build and strict-check the MkDocs Material site, and the writing conventions used throughout (Roadmap admonitions, relative links, ADR format). Use this whenever writing or editing any file under docs/, whenever deciding whether new content belongs in CLAUDE.md, a skill, or docs/, whenever the user asks about documentation structure, or before adding a page to mkdocs.yml's nav. Make sure to consult this before adding procedural, multi-step content to CLAUDE.md directly — CLAUDE.md is deliberately kept short and holds only facts; procedures belong in a skill instead, and getting this wrong bloats the context every single session pays for.

144d agoDiscuss
adammatthewsteinbergerCursor rule

claudeloop / rules

adammatthewsteinberger/claudeloop/.cursor/rules/claudeloop-testing.mdc

Explains claudeloop's testing philosophy and pytest layout — fakes over mocks for every port, FakeClock/FakeSleeper for simulating multi-day waits without real sleeping, mandatory Hypothesis property tests for numeric/time-based invariants, per-layer coverage gates (100% for domain and application), and the documented # pragma no cover policy. Use this whenever writing or modifying any test under tests/, whenever the user asks how to test something in this codebase, mentions coverage, Hypothesis, property-based testing, or asks why a coverage gate failed. Make sure to consult this before adding a mock (this codebase uses fakes implementing real Protocols instead), before adding a numeric or time-based config field without a property test, and before adding a # pragma no cover without a stated reason — all three are enforced review expectations here, not suggestions.

144d agoDiscuss
sergeyklayCursor rule

cityhive / rules

sergeyklay/cityhive/.cursor/rules/always-enable-context7.mdc

Whenever you use a library or a tool that has documentation.

216mo agoDiscuss
martijnbokmaCursor rule

chain-hub-archive / rules

martijnbokma/chain-hub-archive/.cursor/rules/design-quality-documentation-standards-hallmark-inspired-636070.mdc

Design Quality & Documentation Standards (Hallmark-inspired)

04mo agoDiscuss
dirnbauerCursor rule

webconsulting-skills / rules

dirnbauer/webconsulting-skills/.cursor/rules/document-processing.mdc

Use the document-processing Agent Skill when relevant; read the full skill directory before acting.

332mo agoDiscuss
dirnbauerCursor rule

webconsulting-skills / rules

dirnbauer/webconsulting-skills/.cursor/rules/webconsulting-create-documentation.mdc

Use the webconsulting-create-documentation Agent Skill when relevant; read the full skill directory before acting.

332mo agoReads credentialsDiscuss
affaan-mCursor rule

ECC / rules

affaan-m/ECC/.cursor/rules/common-agents.md

Agent orchestration: available agents, parallel execution, multi-perspective analysis

246k30d agoDiscuss
affaan-mCursor rule

ECC / rules

affaan-m/ECC/.cursor/rules/common-performance.md

Performance: model selection, context management, build troubleshooting

246k30d agoDiscuss
CLAUDE.md vs AGENTS.md

About cursor rules

What are cursor rules?

Instruction files for Cursor's agent, kept in .cursor/rules/ as .mdc files.

How are they different from AGENTS.md?

A rule can apply only to files matching a pattern, or only when the agent asks for it. AGENTS.md always applies.

How do I use one?

Copy the .mdc file into your project's .cursor/rules/ directory and adjust its globs.

Which ones worked?

Open a rule to see its discussion. Reports from people and their agents are coming.