openddil-stack Cursor Rules — Cursor Rules | Neura Market
    Neura MarketNeura Market/Cursor
    ChatGPTChatGPTClaudeClaudeGeminiGeminiCursorCursorGrokGrokPerplexityPerplexityDeepSeekDeepSeek
    CoPilotCoPilotStable DiffusionStable DiffusionMidjourneyMidjourney
    View All Directories
    OverviewRulesPromptsMCPsAgentsBlogVideosGuidesCoursesCommunityExtensionsTrendingGenerate
    CursorRulesopenddil-stack Cursor Rules
    Back to Rules
    DevOps

    openddil-stack Cursor Rules

    edgy-solutions April 15, 2026
    0 copies 0 downloads

    for the OpenDDIL DDIL-resilient CQRS framework.

    Rule Content
    # =============================================================================
    # OpenDDIL Stack — Cursor Rules
    # =============================================================================
    # Enforces coding styles and tech stack conventions for AI coding assistants.
    # =============================================================================
    
    # Project Identity
    You are working in the openddil-stack repository — the central HQ infrastructure
    for the OpenDDIL DDIL-resilient CQRS framework.
    
    # Tech Stack (DO NOT deviate without explicit approval)
    - Database: PostgreSQL 16+ (always wal_level=logical)
    - Schema Management: Atlas (declarative HCL, NOT imperative SQL migrations)
    - Message Bus: Redpanda (Kafka-compatible API, NOT Apache Kafka)
    - Event Processor: Restate (durable, exactly-once handlers)
    - Read-Path Sync: ElectricSQL (HTTP Shape API, NOT legacy ELECTRIC ENABLE DDL)
    - Contracts: Protobufs (defined in openddil-contracts, NOT in this repo)
    - Infrastructure: Docker Compose (for local dev)
    
    # Schema Rules
    - All schema changes MUST be made in schema/schema.hcl using Atlas HCL syntax.
    - NEVER write raw ALTER TABLE / CREATE TABLE SQL for schema evolution.
    - ALWAYS follow Expand/Contract migration pattern:
      1. Expand: Add new columns/tables (backward-compatible).
      2. Deploy: Update processors and SDKs.
      3. Contract: Remove old columns/tables after migration.
    - All tables MUST use UUID primary keys with gen_random_uuid() default.
    - All tables MUST include created_at and updated_at timestamptz columns.
    - Use snake_case for all table and column names.
    
    # Docker Compose Rules
    - All services MUST be on the openddil-net bridge network.
    - All long-running services MUST have health checks.
    - All services depending on another MUST use depends_on with condition: service_healthy.
    - Init containers (like atlas-init) use restart: "no".
    - Long-running services use restart: unless-stopped.
    - Use named volumes for data persistence, never bind mounts for data.
    
    # ElectricSQL Rules
    - ElectricSQL is READ-PATH ONLY. Writes go through Outbox → Redpanda → Restate.
    - Only tables intended for Edge sync should be in the PUBLICATION.
    - audit_log and other HQ-internal tables must NEVER be published to Edge.
    - Use the Shape API (GET /v1/shape?table=...) for client sync configuration.
    
    # Naming Conventions
    - Docker container names: openddil-{service-name}
    - Docker volume names: {service}_data
    - Network: openddil-net
    - Database name, user, password (dev only): openddil
    
    # File Conventions
    - YAML: 2-space indent
    - HCL: 2-space indent
    - SQL: UPPERCASE keywords, lowercase identifiers
    - Comments: Block header comments with === dividers for major sections
    
    # Security Notes (Dev Environment)
    - ELECTRIC_INSECURE=true is acceptable for local dev ONLY.
    - Default credentials (openddil/openddil) are for local dev ONLY.
    - Never commit production secrets to this repository.
    

    Tags

    docker

    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.