Overview
Enferno leverages Cursor Rules for AI-powered development assistance, providing context-aware code generation and guidance through modern IDEs like Cursor. This approach replaces traditional template-based generation with more flexible, intelligent assistance.What Are Cursor Rules?
Cursor Rules are documentation-as-code specifications that provide structured guidance to AI assistants in modern IDEs. They contain information about:- Code patterns and conventions
- Framework-specific best practices
- Integration techniques
- Component usage examples
- UI/UX standards
Available Rules
Enferno includes rules for key development aspects:Vue-Jinja Patterns
Guidelines for integrating Vue.js with Flask Jinja templates:UI Components
Standards for Vuetify components and usage:Python Standards
Flask patterns and backend conventions:API Design
RESTful API design patterns:Using Cursor Rules
When working with Cursor IDE:- The AI assistant automatically understands these rules
- Reference specific patterns in your questions
- Ask for help with implementation details
- Get context-aware suggestions
- “Create a data table for users following our UI patterns”
- “Show how to integrate Vue with Jinja for a product page”
- “Generate a RESTful endpoint following our API standards”
Benefits
The Cursor Rules approach offers several advantages:-
Contextual Awareness
- AI understands your entire codebase
- Suggestions consider existing patterns
- Better integration with your code
-
Flexible Generation
- Not limited to predefined templates
- Adaptable to your needs
- Custom implementations supported
-
Development Environment Integration
- Works within your IDE
- No external dependencies
- Immediate feedback
-
Continuous Learning
- Rules evolve with your codebase
- Team knowledge integration
- Pattern refinement over time
Creating Custom Rules
Extend the rules for your project:- Create markdown files in
cursor/rules
- Follow the established format
- Include concrete examples
- Reference existing patterns
- Organize by domain or feature