x-archetype Cursor Rules — Free Cursor Rules Template
    Neura MarketNeura Market/Cursor
    ChatGPTChatGPTClaudeClaudeGeminiGeminiCursorCursorGrokGrokPerplexityPerplexityDeepSeekDeepSeek
    CoPilotCoPilotStable DiffusionStable DiffusionMidjourneyMidjourney
    View All Directories
    OverviewRulesPromptsMCPsAgentsGamesBlogVideosGuidesCoursesCommunityExtensionsTrending
    CursorRulesx-archetype Cursor Rules
    Back to Rules
    Frontend

    x-archetype Cursor Rules

    empathyco April 15, 2026
    0 copies 0 downloads

    Modular Documentation System: This document aggregates specialized instructions for working with this Interface X Archetype project.

    Rule Content
    # AI Coding Agent Instructions
    
    > **Modular Documentation System**: This document aggregates specialized instructions for working with this Interface X Archetype project.
    
    ## Quick Start
    
    This is an **Interface X Archetype** - a Vue 3 + TypeScript search interface implementation using Empathy.co's X Components library. The project follows a pattern shared by 17+ production implementations.
    
    **Core Stack**: Vue 3.4.38+, X Components 6.0.0-alpha.x, X Tailwind 2.0.0-alpha.x, TypeScript 5.8.3+
    
    ## Documentation Index
    
    The documentation is organized into specialized topics for easier navigation:
    
    ### 0. [AI Instructions](./setup-ai-instructions/00-ai-instructions.md)
    
    Essential AI behavior guidelines.
    
    ### 1. [Project Overview](./setup-ai-instructions/01-project-overview.md)
    
    Understanding the archetypal pattern, key repositories, and core stack. Start here for project context and external references.
    
    ### 2. [Architecture](./setup-ai-instructions/02-architecture.md)
    
    Core integration patterns, adapter system, component architecture, and state management using X Components and Vuex.
    
    ### 3. [Vue & TypeScript](./setup-ai-instructions/03-vue-typescript.md)
    
    Vue 3 component patterns (script setup, async loading, device-specific), TypeScript conventions, type extensions, and module augmentation.
    
    ### 4. [Design & Tailwind](./setup-ai-instructions/04-design-tailwind.md)
    
    **🚨 CRITICAL**: X Tailwind design system usage, device breakpoints synchronization, theme customization patterns, and anti-patterns to avoid.
    
    ### 5. [Figma MCP Workflow](./setup-ai-instructions/05-figma-workflow.md)
    
    Design token mapping strategy, Figma to code translation examples, and design system first approach for transferring designs.
    
    ### 6. [Development Workflows](./setup-ai-instructions/06-development-workflows.md)
    
    Essential commands, local X Components development, E2E testing with Cypress/Cucumber, and Docker development setup.
    
    ### 7. [X Components Integration](./setup-ai-instructions/07-x-components-integration.md)
    
    X module configuration, custom wiring patterns, adapter schema overrides, and common integration patterns.
    
    ### 8. [Build System](./setup-ai-instructions/08-build-system.md)
    
    Rollup configuration, Vite setup, CSS injection patterns, dev vs production differences, and environment configuration.
    
    ### 9. [Production Patterns](./setup-ai-instructions/09-production-patterns.md)
    
    Proven patterns from 17+ production implementations: query filtering, semantic chunk naming, editable facets, tracking configuration, and Result schema extensions.
    
    ### 10. [Common Pitfalls](./setup-ai-instructions/10-common-pitfalls.md)
    
    **⚠️ READ FIRST**: Frequent mistakes and anti-patterns that cause issues - device breakpoints synchronization, type system errors, Tailwind issues, and wiring problems.
    
    ### 11. [Project Conventions](./setup-ai-instructions/11-project-conventions.md)
    
    Feature flags, internationalization, code style, file naming, import conventions, and testing patterns.
    
    ### 12. [Setup New Instance](./setup-ai-instructions/12-setup-new-instance.md)
    
    **📦 ARCHETYPE SETUP**: Complete guide for creating a new search experience from this archetype. Required configuration (lang, currency, viewMode, platform), GitHub cleanup, snippet configuration, adapter setup, and verification checklist.
    
    ## How to Use This Documentation
    
    ### For New AI Agents
    
    1. Read [Project Overview](./setup-ai-instructions/01-project-overview.md) for context
    2. Review [Common Pitfalls](./setup-ai-instructions/10-common-pitfalls.md) to avoid frequent mistakes
    3. Reference specialized documents as needed for specific tasks
    
    ### For Specific Tasks
    
    - **Implementing UI from Figma**: [Figma MCP Workflow](./setup-ai-instructions/05-figma-workflow.md) → [Design & Tailwind](./setup-ai-instructions/04-design-tailwind.md)
    - **Adding search features**: [X Components Integration](./setup-ai-instructions/07-x-components-integration.md) → [Architecture](./setup-ai-instructions/02-architecture.md)
    - **Fixing responsive issues**: [Design & Tailwind - Device Breakpoints](./setup-ai-instructions/04-design-tailwind.md#critical-device-breakpoints-synchronization)
    - **Setting up development**: [Development Workflows](./setup-ai-instructions/06-development-workflows.md)
    - **Extending types**: [Vue & TypeScript](./setup-ai-instructions/03-vue-typescript.md)
    - **Customizing wiring**: [X Components Integration](./setup-ai-instructions/07-x-components-integration.md)
    - **Creating a new instance from archetype**: [Setup New Instance](./setup-ai-instructions/12-setup-new-instance.md)
    
    ## Key References
    
    ### External Documentation
    
    - **[X Components Monorepo](https://github.com/empathyco/x)**: Core library (components, adapters, design system)
    - **[X Archetype](https://github.com/empathyco/x-archetype)**: Reference implementation
    - **[X Tailwind Design System](https://github.com/empathyco/x/tree/main/packages/x-tailwindcss)**: Theme tokens, components, utilities
    
    ### Critical Patterns to Remember
    
    1. **🚨 Device Breakpoints Synchronization**: `src/device-breakpoints.ts` must match `tailwind.config.ts` screens
    2. **Design System First**: Always use [X Tailwind tokens](https://github.com/empathyco/x/tree/main/packages/x-tailwindcss) before creating custom values
    3. **Type Extensions**: Declare in `src/shims-*.d.ts` files, override schemas in `adapter.ts`
    4. **Script Setup**: Prefer `<script setup lang="ts">` for new components
    5. **Custom Wiring**: Place in `src/x-components/wiring/` for reusable event handlers
    

    Tags

    vuetypescripttailwindcssdocker

    Comments

    More Rules

    View all

    Kechwafflesnew Cursor Rules

    C
    CODEFORYOU69

    AI DRAMA FACTORY Cursor Rules

    R
    Robert0157

    Site Cursor Rules

    R
    RaphaelVitoi

    KindnessBot Cursor Rules

    F
    foodyogi

    Neptunik Cursor Rules

    F
    fjpedrosa

    Cvcraft Cursor Rules

    C
    CedricCT

    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.

    Neura Market

    Custom AI Systems & Services

    Our team of experienced AI builders will help build custom AI systems, workflows, and solutions for your business.

    Request custom work

    Ready-made automations for this

    Workflows from the Neura Market marketplace related to this Cursor resource

    • n8n Documentation: Expert Chatbot with OpenAI RAG Pipelinen8n · $24.99 · Related topic
    • Auto-generate Documentation for n8n Workflows with GPT and Docsifyn8n · $24.99 · Related topic
    • Answer Questions About Documentation with BigQuery, RAG, and OpenAIn8n · $14.99 · Related topic
    • Automated Workflow Backup and AI Documentation with n8n and Airtablen8n · $24.99 · Related topic
    Browse all workflows