---
name: "cursor-rules-project-generator"
description: "Generate precise, project-specific Cursor AI rules and architectural instructions."
metadata:
  author: "PatrickJS"
  version: "1.0.0"
  runtime_compatibility:
    - "codex"
    - "claude-code"
    - "cursor"
    - "windsurf"
triggers:
  - "create .cursorrules file"
  - "write cursor project rules"
  - "generate .cursor/rules/*.mdc"
permissions:
  fs_read: true
  fs_write: "workspace"
  shell_exec: false
  net_access: false
---

# Cursor Rules (.cursorrules) Architecture Generator

Authors modern `.cursorrules` and `.cursor/rules/*.mdc` project guidance: specifying tech stack rules, banned antipatterns, file pattern globs, and framework-specific conventions for Cursor AI editor.

## When to Invoke
Invoke this skill whenever you need to:
- create .cursorrules file
- write cursor project rules
- generate .cursor/rules/*.mdc

## Execution SOP & Rules
1. Define clear, directive rules starting with action verbs (e.g. 'Always use Server Actions for mutations').
2. Include glob patterns (globs: *.tsx) to scope rules to relevant file extensions.
3. Explicitly list banned antipatterns and their recommended modern replacements.
4. Keep rule files concise and high-signal to minimize editor context window consumption.

## Verification Checklist
- Run local linting, syntax validation, and type-checks before reporting completion.
- Ensure all created or modified files adhere to workspace boundaries and avoid uncommitted secrets.
- Verify tests or build commands exit cleanly with return code 0.
