This is a dynamic form chatbot project using LangGraph + LangChain for backend, LobeChat for frontend, and Railway for deployment. The system uses JSON Schema + Pydantic for configuration and validation.
# Cursor Rules for FormChat Project ## Project Overview This is a dynamic form chatbot project using LangGraph + LangChain for backend, LobeChat for frontend, and Railway for deployment. The system uses JSON Schema + Pydantic for configuration and validation. ## Technology Stack - Backend: LangGraph, LangChain, FastAPI, Pydantic, SQLAlchemy, Redis - Frontend: LobeChat (avec plugins personnalisés), React/TypeScript - Database: PostgreSQL + Redis - Deployment: Railway, Docker - Configuration: JSON Schema with custom extensions ## Hierarchical Rules Organization This project uses a hierarchical organization of cursor rules with clear separation of objectives: ### 🌍 Universal Rules (for ALL software projects) - `universal/development/error-handling.mdc` - **Universal error handling patterns** ⭐ - `universal/development/logging.mdc` - **Universal logging patterns** ⭐ - `universal/development/validation.mdc` - **Universal validation patterns** ⭐ - `universal/development/async.mdc` - **Universal async patterns** ⭐ - `universal/development/style.mdc` - **Universal code style standards** ⭐ - `universal/development/patterns-index.mdc` - **Index of universal patterns** ⭐ - `universal/security/encryption.mdc` - **Universal encryption patterns** ⭐ - `universal/security/compliance.mdc` - **Universal security compliance (RGPD)** ⭐ - `universal/infrastructure/resilience.mdc` - **Universal resilience patterns** ⭐ - `universal/devops/deployment.mdc` - **Universal deployment practices** ⭐ - `universal/devops/testing.mdc` - **Universal testing strategies** ⭐ - `universal/devops/documentation.mdc` - **Universal documentation standards** ⭐ - `universal/tools/terminal.mdc` - **Universal terminal usage rules** ⭐ - `universal/organization/structure.mdc` - **Universal project structure** ⭐ ### 🐍 Python Rules (for ALL Python projects) - `python/patterns/advanced.mdc` - **Advanced Python patterns** (Configuration, Cache, Monitoring, MCP) - `python/frameworks/fastapi.mdc` - **FastAPI design patterns and conventions** ⭐ - `python/frameworks/pydantic.mdc` - **Pydantic model generation and validation** ⭐ - `python/frameworks/validation.mdc` - **JSON Schema extensions and validation** ⭐ - `python/libraries/redis.mdc` - **Redis caching strategies** ⭐ - `python/performance/optimization.mdc` - **Python performance optimization** ⭐ ### 🎯 Project Rules (specific to FormChat) - `project/overview.mdc` - **Project context and requirements** ⭐ - `project/context.mdc` - **Business context and domains** ⭐ - `project/stack/langgraph.mdc` - **LangGraph agent architecture** ⭐ - `project/stack/lobechat.mdc` - **LobeChat components and plugins** ⭐ - `project/features/i18n.mdc` - **Multi-language support** ⭐ - `project/data/database.mdc` - **Database models and relations** ⭐ - `project/api/authentication.mdc` - **API authentication and authorization** ⭐ - `project/tools/agents/tools.agent.docs.mdc` - **Documentation agent** ⭐ - `project/tools/agents/tools.agent.quality.mdc` - **Code quality agent** ⭐ - `project/tools/agents/tools.agent.security.mdc` - **Security audit agent** ⭐ - `project/tools/agents/tools.agent.test.mdc` - **Test monitoring agent** ⭐ - `project/tools/agents/tools.agent.impact.mdc` - **Impact analysis agent** ⭐ - `project/tools/agents/tools.agent.temp.mdc` - **Temporary files management** ⭐ - `project/tools/mcp.mdc` - **MCP server integration** ⭐ ### 📚 Documentation - `README.mdc` - **Main guide and hierarchical organization** ⭐ - `universal/README.mdc` - **Universal rules guide** ⭐ - `python/README.mdc` - **Python rules guide** ⭐ - `project/README.mdc` - **Project rules guide** ⭐
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.
Cursor rules for Python FastAPI projects enforcing async patterns, Pydantic v2 models, dependency injection, and proper error handling.
Rules for consistent React component development with TypeScript interfaces, proper hook patterns, and component composition.
Rules optimizing Cursor Agent mode behavior including multi-file editing context, session management, and autonomous task completion patterns.
Cursor rules for projects using Tailwind CSS with shadcn/ui component library, enforcing consistent utility class usage and component patterns.
Rules for Go backend services enforcing idiomatic Go patterns, proper error handling, and clean architecture conventions.