# .Cursorrules Integration

## .cursorrules Integration

### Embedding Prompts

```yaml
# .cursorrules

prompts:
  component:
    template: |
      Create React component following:
      - Functional component with TypeScript
      - Tailwind for styling
      - Handle loading/error states
      - Include prop types interface

  api:
    template: |
      Create API route following:
      - Zod validation
      - Proper error responses
      - TypeScript types
      - Logging included
```

### Prompt Aliases

```yaml
shortcuts:
  /component: "Create a new React component..."
  /api: "Create a new API endpoint..."
  /test: "Write tests for..."
  /review: "Review code for issues..."
```
