agentleFS

Cursor rules examples

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

Best matches · from page 12Worked for most · soon
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.

22mo agoReviewMountCreate a free account to mount
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.

3116mo agoReviewMountCreate a free account to mount
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.

13mo agoReviewMountCreate a free account to mount
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.

22mo agoReviewMountCreate a free account to mount
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.

119mo agoReviewMountCreate a free account to mount
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.

92mo agoReviewMountCreate a free account to mount
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.

13mo agoReviewMountCreate a free account to mount
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.

13mo agoReviewMountCreate a free account to mount
kitlangtonCursor rule

Hex / rules

kitlangton/Hex/.cursor/rules/composable-architecture-tree-navigation.mdc

Documentation for understanding how to use the Swift Composable Architecture's Tree Navigation feature.

2.9k21mo agoReviewMountCreate a free account to mount
bklitCursor rule

bklit / rules

bklit/bklit/.cursor/rules/next-js.mdc

refer to the next.js documentation whenever we're using next.js

26710mo agoReviewMountCreate a free account to mount
allthingslinuxCursor rule

tux / rules

allthingslinux/tux/.cursor/rules/docs/principals.mdc

Documentation frameworks, methodologies, and principles (Diátaxis, Write the Docs)

1659mo agoReviewMountCreate a free account to mount
allthingslinuxCursor rule

tux / rules

allthingslinux/tux/.cursor/rules/docs/structure.mdc

Documentation organization, navigation structure, and content hierarchy guidelines

1659mo agoReviewMountCreate a free account to mount
allthingslinuxReads credentialsCursor rule

tux / rules

allthingslinux/tux/.cursor/rules/docs/patterns.mdc

Practical examples, documentation templates, and decision guides for common scenarios

1659mo agoReviewMountCreate a free account to mount
allthingslinuxCursor rule

tux / rules

allthingslinux/tux/.cursor/rules/docs/style.mdc

Writing standards, formatting guidelines, and style principles for Tux documentation

1659mo agoReviewMountCreate a free account to mount
sergeyklayCursor rule

cityhive / rules

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

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

217mo agoReviewMountCreate a free account to mount
allthingslinuxCursor rule

tux / rules

allthingslinux/tux/.cursor/rules/docs/docs.mdc

Master guide for AI agents working with Tux documentation rules and workflows

1659mo agoReviewMountCreate a free account to mount
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)

05mo agoReviewMountCreate a free account to mount
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.

334mo agoReviewMountCreate a free account to mount
dirnbauerReads credentialsCursor 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.

334mo agoReviewMountCreate a free account to mount
affaan-mCursor rule

ECC / rules

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

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

Steady32 mentions in 2 weeks

16 projects use a version of this

246k2mo agoReviewMountCreate a free account to mount
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.