Zugzwang Cursor Rules — Cursor Rules | Neura Market
    Neura MarketNeura Market/Cursor
    ChatGPTChatGPTClaudeClaudeGeminiGeminiCursorCursorGrokGrokPerplexityPerplexityDeepSeekDeepSeek
    CoPilotCoPilotStable DiffusionStable DiffusionMidjourneyMidjourney
    View All Directories
    OverviewRulesPromptsMCPsAgentsBlogVideosGuidesCoursesCommunityExtensionsTrendingGenerate
    CursorRulesZugzwang Cursor Rules
    Back to Rules

    Zugzwang Cursor Rules

    JELGT2011 April 15, 2026
    0 copies 0 downloads
    Rule Content
    # Zugswang - Chess Puzzle Training App
    
    ## Project Overview
    A Next.js chess puzzle training application using puzzles from the Lichess database. Users can practice tactics, track their progress, and improve their chess skills.
    
    ## Tech Stack
    - **Framework**: Next.js 16 with App Router and Turbopack
    - **Language**: TypeScript (strict)
    - **Auth & Database**: Firebase (Auth + Firestore)
    - **State Management**: Zustand (stores in `src/stores/`)
    - **UI**: Tailwind CSS v4 + shadcn/ui components (Radix primitives)
    - **Chess**: chess.js for logic, react-chessboard for rendering, Stockfish for analysis
    - **AI**: OpenAI Agents SDK for hints/coaching
    
    ## Project Structure
    ```
    src/
    ├── app/           # Next.js App Router pages and API routes
    ├── components/    # React components (ui/ for shadcn primitives)
    ├── contexts/      # React contexts (Auth, Stockfish)
    ├── hooks/         # Custom React hooks
    ├── lib/           # Utility functions and services
    ├── stores/        # Zustand stores
    └── types/         # TypeScript type definitions
    ```
    
    ## General Rules
    
    ### CLI First
    - Prefer CLI tools when possible (e.g., use `mv` to rename a file, then update references)
    - Use shell commands for file operations when it's simpler than editor operations
    
    ### Incremental Progress
    - Make progress incrementally - ensure no errors exist in a file before moving on
    - Run linting/type checking after significant changes
    - Test changes in isolation when possible
    
    ### Code Style
    - Use TypeScript strictly - avoid `any` types
    - Prefer named exports over default exports
    - Keep components focused and composable
    - Use Zustand stores for shared state, React state for local UI state
    
    ## Conventions
    
    ### Stores (Zustand)
    - Use `devtools` middleware for debugging
    - Action names should be descriptive (e.g., `makeMove:correct`, `startPuzzle`)
    - Keep computed values as getter functions (e.g., `getFilteredPuzzles`)
    
    ### Components
    - Use shadcn/ui components from `@/components/ui/` for consistency
    - Chess-related components: `ChessGame.tsx`, `PuzzleBoard.tsx`
    - Keep page components in `app/` thin - extract logic to hooks
    
    ### Types
    - Puzzle types in `src/types/puzzle.ts`
    - User types in `src/types/user.ts`
    - Use Zod for runtime validation where needed
    
    ### API Routes
    - Located in `src/app/api/`
    - Use Firebase Admin SDK for server-side operations
    
    ## Development
    - Dev server runs on port 3001: `npm run dev`
    - Lint with: `npm run lint`
    

    Comments

    More Rules

    View all
    Web Development

    Next.js 15 + TypeScript Cursor Rules

    Comprehensive .cursorrules file for Next.js 15 App Router projects with TypeScript, enforcing server components by default, proper use of "use client" directive, and App Router conventions.

    C
    Community
    Backend Development

    Python FastAPI Best Practices Rules

    Cursor rules for Python FastAPI projects enforcing async patterns, Pydantic v2 models, dependency injection, and proper error handling.

    C
    Community
    Frontend Development

    React + TypeScript Component Rules

    Rules for consistent React component development with TypeScript interfaces, proper hook patterns, and component composition.

    C
    Community
    AI/ML

    Cursor Agent Mode Configuration

    Rules optimizing Cursor Agent mode behavior including multi-file editing context, session management, and autonomous task completion patterns.

    C
    Cursor Team
    Frontend Development

    Tailwind CSS + shadcn/ui Rules

    Cursor rules for projects using Tailwind CSS with shadcn/ui component library, enforcing consistent utility class usage and component patterns.

    C
    Community
    Backend Development

    Go Backend Service Rules

    Rules for Go backend services enforcing idiomatic Go patterns, proper error handling, and clean architecture conventions.

    C
    Community

    Stay up to date

    Get the latest Cursor prompts, rules, and resources delivered to your inbox weekly.

    Neura Market LogoNeura Market

    Discover the best AI prompts, plugins, and resources for Cursor and more.

    Content Types

    • Rules
    • Prompts
    • MCPs
    • Agents
    • Guides

    Platforms

    • ChatGPT Directory
    • Claude Directory
    • Gemini Directory
    • Cursor Directory
    • Grok Directory
    • Perplexity Directory
    • DeepSeek Directory
    • CoPilot Directory
    • Stable Diffusion Directory
    • Midjourney Directory
    • All Directories

    Resources

    • Blog
    • Documentation
    • Help Center
    • Marketplace

    Legal

    • Privacy Policy
    • Terms of Service

    © 2026 Neura Market. All rights reserved.

    |

    Not affiliated with any AI platform vendors.