# Common Use Cases

## Common Use Cases

### API Development
```
"Create a REST API for product management:
- GET/POST/PUT/DELETE /products
- Pagination support
- Search and filtering
- Input validation
- Error responses following RFC 7807
- TypeScript types
- Integration tests"
```

### Component Libraries
```
"Create a form component library:
- TextInput with validation
- Select with async options
- DatePicker
- FileUpload with progress
- Form wrapper with submission handling
- Storybook stories for each
- Unit tests"
```

### Database Operations
```
"Create database layer for user management:
- Prisma schema for User model
- Repository pattern implementation
- Migration file
- Seed data script
- Query helpers for common operations"
```

### Refactoring
```
"Refactor the authentication system:
- Move from localStorage to httpOnly cookies
- Add refresh token rotation
- Update all components using auth
- Add CSRF protection
- Update tests"
```