New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

cursor-rules-essentials

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cursor-rules-essentials

Essential Cursor Rules for Code Quality, Accessibility, and Best Practices

latest
Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
4
-69.23%
Maintainers
1
Weekly downloads
 
Created
Source

📏 Cursor Rules Essentials

Essential Cursor Rules for Code Quality, Accessibility, and Best Practices

npm version License: MIT

🚀 Quick Install

npx cursor-rules-essentials

One command installs 15 essential .mdc rules for Cursor IDE.

What are Cursor Rules?

Cursor Rules (.mdc files) are automatically enforced guidelines that help maintain code quality, accessibility, and best practices as you code. They work silently in the background, catching issues before they become problems.

📦 Rule Bundles

BundleRulesUse Case
Minimal3Core quality only
Standard7+ React patterns
Complete15All essential rules

📋 Rules Reference

🎯 Code Quality

RuleDescription
web-standardsReal-time code quality enforcement (component limits, hooks, styling)
pr-qualityPR validation - max files, lines, single responsibility
plan-firstRequire implementation plan for complex multi-file changes
yolo-mode-configAuto-run validation without manual intervention

⚛️ React Patterns

RuleDescription
react-functional-patternsFunctional component syntax, hooks organization, error handling
form-patternsuseWatch over watch(), memoize Yup schemas, OXForm wrapper
async-effect-patternsAbortController for async useEffect, cleanup patterns
client-boundarySSR/CSR boundary detection, prevent hydration mismatches

♿ Accessibility

RuleDescription
a11y-standardsARIA labels, keyboard navigation, focus management

🏗️ Architecture

RuleDescription
auto-adrAuto-generate Architecture Decision Records when patterns change
refactoring-gravityIdentify high-churn files with high coupling
z-index-governanceEnforce z-index token system to prevent z-index wars

🤖 Automation

RuleDescription
auto-self-healAuto-detect and fix common antipatterns while coding
bundle-budget-guardMonitor bundle size impact when adding dependencies
visual-regression-guardAuto-detect UI changes and require visual verification

💡 How Rules Work

Rules are automatically applied by Cursor based on their configuration:

# Example rule header
---
description: Real-time code quality enforcement
globs: ["**/*.tsx", "**/*.ts"]
alwaysApply: true
severity: warn
---
  • globs: Which files the rule applies to
  • alwaysApply: Whether the rule is always active
  • severity: block, warn, or info

🛠️ CLI Commands

npx cursor-rules-essentials              # Interactive install
npx cursor-rules-essentials --bundle complete -y  # Non-interactive
npx cursor-rules-essentials status       # Check installed rules
npx cursor-rules-essentials list         # List all available rules
npx cursor-rules-essentials help         # Show help

📂 Installation Structure

After installation:

.cursor/
└── rules/
    ├── a11y-standards.mdc
    ├── async-effect-patterns.mdc
    ├── auto-adr.mdc
    ├── auto-self-heal.mdc
    ├── bundle-budget-guard.mdc
    ├── client-boundary.mdc
    ├── form-patterns.mdc
    ├── plan-first.mdc
    ├── pr-quality.mdc
    ├── react-functional-patterns.mdc
    ├── refactoring-gravity.mdc
    ├── visual-regression-guard.mdc
    ├── web-standards.mdc
    ├── yolo-mode-config.mdc
    └── z-index-governance.mdc

🔄 Rule Categories

Prevention Rules (Block Bad Patterns)

  • web-standards - Component size limits, hook patterns
  • pr-quality - PR scope limits, single responsibility
  • a11y-standards - Accessibility requirements

Detection Rules (Warn About Issues)

  • refactoring-gravity - High-churn files
  • bundle-budget-guard - Bundle size growth
  • visual-regression-guard - UI changes

Automation Rules (Auto-Fix)

  • auto-self-heal - Fix antipatterns automatically
  • yolo-mode-config - Run validation without prompts

🤝 Works With

📄 License

MIT © Sharath Chandra

Write better code, automatically.

Keywords

cursor

FAQs

Package last updated on 28 Dec 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts