# Cursor Rules for PunimTag Viewer

## File Management

- NEVER create history files or backup files with timestamps
- NEVER create files in .history/ directory
- NEVER create files with patterns like: *_YYYYMMDDHHMMSS.* or *_timestamp.*
- DO NOT use Local History extension features that create history files
- When editing files, edit them directly - do not create timestamped copies

## Code Style

- Use TypeScript for all new files
- Follow Next.js 14 App Router conventions
- Use shadcn/ui components when available
- Prefer Server Components over Client Components when possible
- Use 'use client' directive only when necessary (interactivity, hooks, browser APIs)

## File Naming

- Use kebab-case for file names: `photo-grid.tsx`, `search-content.tsx`
- Use PascalCase for component names: `PhotoGrid`, `SearchContent`
- Use descriptive, clear names - avoid abbreviations

## Development Practices

- Edit files in place - do not create backup copies
- Use Git for version control, not file history extensions
- Test changes before committing
- Follow the existing code structure and patterns

