Neura MarketNeura Market/Cursor
    ChatGPTChatGPTClaudeClaudeGeminiGeminiCursorCursorGrokGrokPerplexityPerplexityDeepSeekDeepSeek
    CoPilotCoPilotStable DiffusionStable DiffusionMidjourneyMidjourney
    View All Directories
    OverviewRulesPromptsMCPsAgentsBlogVideosGuidesCoursesCommunityExtensionsTrendingGenerate
    CursorRulesGATI-C-2 Cursor Rules
    Back to Rules
    Frontend

    GATI-C-2 Cursor Rules

    CarlosVerasteguii April 15, 2026
    0 copies 0 downloads

    - **Clarity and Readability:** Code must be self-documenting where possible. Use clear, descriptive names for variables, functions, and components. Prioritize simplicity over cleverness.

    Rule Content
    ## GATI-C Project Rules (v1.0)
    # This file defines the core principles and coding standards for the GATI-C project.
    # Adherence to these rules is mandatory for all code generation and modification.
    
    # --- General Principles ---
    - **Clarity and Readability:** Code must be self-documenting where possible. Use clear, descriptive names for variables, functions, and components. Prioritize simplicity over cleverness.
    - **Modularity:** Enforce strict module separation in the backend. Communication between modules MUST use the internal Event Bus, direct imports are forbidden. Components in the frontend should be small and single-purpose.
    - **Transparency and Auditing:** Every action that mutates data MUST be logged. Assume every operation needs a clear audit trail.
    - **User-Centric Design:** All UI components must be implemented with a focus on a fluid, modern, and professional user experience, following the CFE Visual Style Guide.
    
    # --- Frontend (React/Next.js/TypeScript) ---
    - **Component Naming:** Use PascalCase for all React components (e.g., `ProductTable.tsx`).
    - **File Structure:** Group related components, hooks, and types within feature-specific directories (e.g., `app/inventario/components/`).
    - **State Management:** Use Zustand for global state. For local component state, use React's `useState` and `useReducer` hooks.
    - **Styling:** Use Tailwind CSS utility classes exclusively. Avoid custom CSS files unless absolutely necessary for complex animations.
    - **Documentation:** All components must have JSDoc comments explaining their purpose, props, and usage. Example:
      /**
       * Renders a specialized badge for displaying product status.
       * @param {object} props - The component props.
       * @param {string} props.status - The status to display (e.g., 'Disponible', 'Prestado').
       * @returns {JSX.Element} The status badge component.
       */
    - **Accessibility (WCAG 2.1 AA):** All components must be keyboard-navigable. All interactive, non-text elements (like icon buttons) MUST have an `aria-label`. Ensure sufficient color contrast.
    
    # --- Backend (Node.js/Express/TypeScript) ---
    - **API Versioning:** All API routes must be prefixed with `/api/v1/`.
    - **Input Validation:** Every API endpoint that receives data (POST, PUT, PATCH) MUST validate the incoming body/params/query using a Zod schema before processing. Reject invalid data with a `400 Bad Request` status and a clear error message.
    - **Error Handling:** Implement a global error-handling middleware in Express. All errors should be caught and formatted into a standard JSON response: `{ success: false, error: { code: 'ERROR_CODE', message: '...' } }`. Never leak raw database or system errors to the client.
    - **Services Layer:** Abstract all business logic into a "services" layer. Controllers in Express should only handle HTTP request/response logic and call services to do the actual work.
    - **ORM Usage:** All database interactions must go through the Prisma ORM. Raw SQL queries are only permitted for read-only reporting endpoints with a documented performance justification.
    
    # --- Git & Version Control ---
    - **Commit Messages:** Follow the Conventional Commits specification. Examples:
      - `feat(inventory): Implement advanced QTY display`
      - `fix(auth): Correct UI blocking bug on quick actions modal`
      - `docs(srs): Update database design section`
      - `refactor(ui): Improve modal layouts for better responsiveness`
    - **Changelog:** After every significant feature implementation or bug fix, update the `CHANGELOG.md` file following its established format. 

    Tags

    nextjsreacttypescripttailwindcss

    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.

    GATI-C-2 Cursor Rules — Cursor Rules | Neura Market