Cursor rules can make an AI agent more consistent with a project’s conventions, commands, and workflows—but they cannot guarantee correct code or eliminate poor output. Put project-specific instructions in .cursor/rules, scope each rule to the work it applies to, and verify changes with the same review and checks you use for code written by a person.
Where do Cursor rules go?
For instructions that belong to a particular codebase, create rule files in the project’s .cursor/rules directory. Project rules are scoped to that codebase and can be committed to version control, so teammates can use the same guidance.
As an Amazon Associate I earn from qualifying purchases.
Cursor also supports user-level rules and Memories. User rules are for personal preferences that should apply across projects; project rules are for conventions and workflows that belong to one repository. Memories are distinct from explicit rules: use a written rule when you need a deliberate, reviewable instruction the team can maintain.
Quick wins for a faster PC:
Repair Windows errors before they cause bigger problemsFix Now →Fix the driver behind crashes, sound loss and screen glitchesFind Drivers →Cursor identifies .cursorrules as a legacy, deprecated format and recommends Project Rules instead. Its documentation also describes AGENTS.md as a plain Markdown alternative. For Cursor CLI users, the CLI reads root-level AGENTS.md and CLAUDE.md alongside .cursor/rules; do not assume that CLI-specific behavior describes every Cursor interface. See Cursor’s Rules documentation and CLI instructions.
#1 Best Overall
- EVOLUTION AMD RYZEN AI MAX+ 395 MINI PC - GMKtec EVO-X2 is the next evolution in AI mini PC Ryzen Strix Halo series. Thanks to AMD Simultaneous Multithreading (SMT) the core-count is effectively doubled, to 32 threads. Ryzen AI Max+ 395 has 64 MB of L3 cache and can boost up to 5.1 GHz, depending on the workload. The Ryzen AI Max+ 395 is currently rated as the "most powerful x86 APU" on the market for AI computing.
- AI NPU with XDNA 2 ARCHITECTURE - Powered by 16 “Zen 5” CPU cores, 50+ peak AI TOPS XDNA 2 NPU and a truly massive integrated GPU driven by 40 AMD RDNA 3.5 CUs, the Ryzen AI MAX+ 395 is a transformative upgrade and delivers a significant performance boost over the competition. The Ryzen AI Max+ 395 excels in consumer AI workloads like the llama.cpp-powered application: LM Studio. Shaping up to be the must-have app for client LLM workloads, LM Studio allows users to locally run the latest language model without any technical knowledge required and unleash their creativity and productivity.
- AMD RADEON 8090S iGPU GAMING PC - The AMD Radeon RX 8060S offers all 40 CUs with up to 2.9 GHz graphics clock and uses the new RDNA 3.5 architecture. The powerful iGPU is positioned between an RTX 4060 and 4070 laptop GPU and therefore enables gaming in FHD at maximum details in most demanding games. The 8060S can also utilize the full 128GB pool, which is perfect for running LLMs such as Deepseek 70B Q8, which runs comfortably on this machine.
- EIGHT CHANNEL LPDDR5X - LPDDR5X is a new ground breaking memory small form factor installed on-board. With blazing speeds up to to 8000MT/s, it runs 1.5x faster than the DDR5 SODIMMs; 90% better performance over DDR5 SODIMMs in video conferencing and photo editing; 30% better performance in productivity apps; 12% better performance in digital content workloads.
- QUAD SCREEN 8K DISPLAY SUPPORT - EVO-X2 AI Mini PC support 4-screen 4K/8K output via HDMI 2.1 (8K@60Hz), DisplayPort 1.4 (4K@60Hz), and dual USB 4 40Gbps Transfer speed (supporting PD3.0/DP1.4/DATA). Ideal for gaming, video editing, and multitasking, it provides expansive and crisp multi-display support.
Choose the narrowest useful scope
Cursor project rule files use MDC metadata to describe how and where instructions apply. Choose based on whether the guidance is universal, tied to particular files, or useful only when an agent selects it.
| Rule type | How it is activated | Best fit |
|---|---|---|
| Always | Included broadly as guidance for work in the project. | Short, foundational conventions that are relevant to nearly every task. |
| Auto Attached | Attached when the files being worked on match the rule’s path globs. | Language, framework, or directory-specific conventions. |
| Agent Requested | Made available for the agent to select; include a description so it can identify when the rule is relevant. | Less frequent workflows or specialized guidance that should not be included broadly. |
Cursor describes these types and the metadata used to configure rules in its Rules documentation. Avoid treating every rule as if it automatically applies to every request: scope and activation affect whether the guidance is in context.
How do I create a Cursor rules file?
-
Identify a repeated correction or stable project fact the agent needs. Examples include which validation helper to use, how to run tests, or which existing component demonstrates the project’s preferred pattern.
Recommended Free Tools
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy. -
Create a rule file in
.cursor/rulesand give it metadata appropriate to its scope, such as a description, path globs, or an always-applied setting. Use the activation type that fits the instruction rather than making every rule global.Rank #2
AMD Ryzen™ AI Halo - Personal AI Desktop Computer - Developer Platform - Linux OS- Built for Local AI Development: AMD Ryzen AI Halo is designed for local AI development and inference, featuring 128GB unified memory and support for up to 200B parameter models to build and run intensive AI workloads locally.
- 128GB Unified Memory: Features 128GB LPDDR5x unified memory at 8000 MT/s with 256 GB/s memory bandwidth, providing a shared memory pool across the CPU, GPU, and NPU to support larger AI models.
- AMD Ryzen AI Max+ 395 Processor: Features 16 cores, 32 threads, and Zen 5 architecture, paired with AMD Radeon 8060S integrated graphics featuring 40 RDNA 3.5 compute units and an AMD XDNA 2 NPU with up to 50 TOPS.
- Linux AI Developer Platform: Purpose-built for Linux-based AI development with full AMD ROCm software support and preloaded tools, models, and workflows optimized for local AI development.
- Compact, Connected Design: Includes a 2TB M.2 SSD, 10GbE LAN, Wi-Fi 7, Bluetooth 5.4, USB-C connectivity, and HDMI 2.1b.
-
Write specific actions and point to relevant project files. For example, tell the agent to use the existing API validation helper at
src/...and follow the pattern in a named canonical file. Replace these illustrative paths with files that actually exist in your repository. -
Include the project’s real commands where they matter, such as the build, type-check, or test command, and say when to run them. Cursor’s coding-agent best practices recommend useful context, concrete instructions, and review rather than relying on vague aspirations.
-
Inspect the rule in a real task, review the generated changes, and revise the instruction if the repository or workflow changes.
Free tools Windows power users keep installed
One-click scans. No signup required.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
How do I write a useful Cursor rules file?
Cursor’s Rules documentation says, “Good rules are focused, actionable, and scoped.” It also advises: “Avoid vague guidance. Write rules the way you would write a clear internal doc.” Translate those principles into instructions an agent can follow and a developer can check.
Rank #3
- EVOLUTION RYZEN AI MAX+ 395 MINI PC - GMKtec EVO-X2 is the next evolution in AI mini PC Ryzen Strix Halo series. Thanks to AMD Simultaneous Multithreading (SMT) the core-count is effectively doubled, to 32 threads. Ryzen AI Max+ 395 has 64 MB of L3 cache and can boost up to 5.1 GHz, depending on the workload. The Ryzen AI Max+ 395 is currently rated as the "most powerful x86 APU" on the market for AI computing.
- AI NPU with XDNA 2 ARCHITECTURE - Powered by 16 “Zen 5” CPU cores, 50+ peak AI TOPS XDNA 2 NPU and a truly massive integrated GPU driven by 40 AMD RDNA 3.5 CUs, the Ryzen AI MAX+ 395 is a transformative upgrade and delivers a significant performance boost over the competition. The Ryzen AI Max+ 395 excels in consumer AI workloads like the llama.cpp-powered application: LM Studio. Shaping up to be the must-have app for client LLM workloads, LM Studio allows users to locally run the latest language model without any technical knowledge required and unleash their creativity and productivity.
- AMD RADEON 8090S iGPU GAMING PC - The AMD Radeon RX 8060S offers all 40 CUs with up to 2.9 GHz graphics clock and uses the new RDNA 3.5 architecture. The powerful iGPU is positioned between an RTX 4060 and 4070 laptop GPU and therefore enables gaming in FHD at maximum details in most demanding games. The 8060S can also utilize the full 128GB pool, which is perfect for running LLMs such as Deepseek 70B Q8, which runs comfortably on this machine.
- EIGHT CHANNEL LPDDR5X - LPDDR5X is a new ground breaking memory small form factor installed on-board. With blazing speeds up to to 8000MT/s, it runs 1.5x faster than the DDR5 SODIMMs; 90% better performance over DDR5 SODIMMs in video conferencing and photo editing; 30% better performance in productivity apps; 12% better performance in digital content workloads.
- QUAD SCREEN 8K DISPLAY SUPPORT - EVO-X2 AI Mini PC support 4-screen 4K/8K output via HDMI 2.1 (8K@60Hz), DisplayPort 1.4 (4K@60Hz), and dual USB 4 40Gbps Transfer speed (supporting PD3.0/DP1.4/DATA). Ideal for gaming, video editing, and multitasking, it provides expansive and crisp multi-display support.
Prefer observable actions to broad quality demands
“Write clean code” does not define what the project considers clean. More useful guidance names an action or constraint: use the existing API validation helper, preserve the error response shape, or add tests using the repository’s established test pattern. Keep each instruction tied to a real convention, not a preference the team cannot explain.
Use real commands and canonical examples
Replace generic directions with the exact build, type-check, and test commands used by your project. Point to a representative file when it is the clearest example of a pattern. Referencing a maintained example is usually more useful than copying a large body of documentation into a rule that can become stale.
Keep rules concise and composable
Cursor recommends keeping rules under 500 lines as a good target; this is documentation guidance, not a measured threshold at which agent quality changes. Split large topics into focused rules, then scope each one to the relevant files or workflow. A short rule that clearly applies is easier to maintain than a sprawling file full of unrelated advice.
Windows Errors? Fix Them Before They Spread
Repair common Windows errors and clear accumulated junk for a smoother, more stable PC - no reinstall needed.Free scan · no reinstallOutdated Drivers Are Slowing You Down
One free scan finds every outdated or missing driver and matches the right update for your exact hardware.Free scan · exact hardware matchHow do I stop Cursor from changing code conventions?
Put stable conventions in the rule that applies to the relevant code, and name the pattern the agent should preserve. If the project uses a shared helper or established component structure, identify it directly. When a convention differs by language or directory, use path-based activation rather than burying the exception in a broad rule.
Rank #4
Rules can shape the context Cursor uses; they are not a guarantee that a change follows the convention. Check which instructions are active for the task, inspect the diff for unwanted pattern changes, and run the project’s normal checks. Cursor’s agent guidance discusses reviewing agent work at Best practices for coding with agents.
When should I update a rule?
-
Update or remove instructions when commands, helpers, directories, or team conventions change.
-
After repeated corrections, decide whether the issue reflects a stable project rule or a one-off request. Only the stable guidance belongs in a maintained rule.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy. -
If a rule regularly appears in unrelated work, narrow its scope. If an important instruction is missed, check its activation and description before adding more text.
-
Keep generated code subject to human review and project checks; the presence of a rule is not evidence that a change is correct.
Quick Recap
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.




