← Prompts
Meta / Create Agent Rules (steipete)

Guidelines for creating and maintaining Cursor rules to ensure consistency and effectiveness

Guidelines for creating and maintaining Cursor rules to ensure consistency and effectiveness.

- **Required Rule Structure:**
  ```markdown
  ---
  description: Clear, one-line description of what the rule enforces
  globs: path/to/files/*.ext, other/path/**/*
  alwaysApply: boolean
  ---

  - **Main Points in Bold**
    - Sub-points with details
    - Examples and explanations
  ```

- **File References:**
  - Use `[filename](mdc:path/to/file)` ([filename](mdc:filename)) to reference files
  - Example: [prisma.mdc](mdc:.cursor/rules/prisma.mdc) for rule references
  - Example: [schema.prisma](mdc:prisma/schema.prisma) for code references

- **Code Examples:**
  - Use language-specific code blocks
  ```typescript
  // ✅ DO: Show good examples
  const goodExample = true;
  
  // ❌ DON'T: Show anti-patterns

Sign in to view the full prompt.

Sign In

Classification

Meta Prompts about prompting conventions
Meta Create
Generate or transform
Scope Project
This codebase
Manual Manually placed / Persistent