Skip to content

Instantly share code, notes, and snippets.

@jswank
Created August 12, 2025 21:53
Show Gist options
  • Save jswank/77a7f2abc2acdcc2d2cb714ecdb7a3fb to your computer and use it in GitHub Desktop.
Save jswank/77a7f2abc2acdcc2d2cb714ecdb7a3fb to your computer and use it in GitHub Desktop.
A snippet to include in CLAUDE.md to use Cursor rules

Cursor Rules

This project uses Cursor rules for consistent code quality and documentation standards. When working on this codebase, review and apply the relevant rules from .cursor/rules/:

Rule Application

  • Always Apply Rules: Rules with alwaysApply: true in their frontmatter should be followed for all code changes
  • Context-Specific Rules: Rules with globs patterns apply only when working with matching file types
  • General Rules: Rules without specific glob patterns apply based on their description and context

Available Rules

Check the .cursor/rules/ directory for current rules. Each rule file contains:

  • YAML frontmatter with description, globs, and alwaysApply fields
  • Detailed requirements and examples
  • Critical rules that must be followed

Before making changes, scan the rules directory to understand which rules apply to your current work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment