Example Prompt
Analyze my selected dbt™ project files and create a .dinorules that capture my existing SQL formatting, naming conventions, folder structure, and documentation patterns.

Recommended: Add context by selecting multiple files that represent your best practices. include well-structured models from different folders (staging, marts), your dbt_project.yml, and existing schema files. This gives DinoAI a comprehensive view of your standards.
How to use
To generate a .dinorules file that matches your team standards, do the following:- Open DinoAI by clicking the DinoAI icon (🪄) in the right panel
- Enter prompt - You can use the above example or create your own
- Add files as context using the ”@” icon in the DinoAI panel. Select representative files from different folders.
- Examples: staging models, intermediate models, marts models, your dbt_project.yml, and schema.yml files
How It Works
After you enter your prompt:- DinoAI analyzes the structure and patterns in your selected files
- It identifies consistent naming conventions, SQL formatting styles, and organizational patterns
- It examines your folder structure and materialization strategies
- It creates a .dinorules file that codifies these discovered patterns
- The generated rules ensure future AI-generated code matches your established standards
Example Output
DinoAI will generate a comprehensive .dinorules file like this:Example .dinorules file
Example .dinorules file
Key Benefits
- Consistency: Ensures all future AI-generated code matches your existing standards
- Discovery: Reveals patterns you may not have consciously documented
- Team Alignment: Codifies implicit knowledge that experienced team members understand
- Efficiency: Creates comprehensive rules without starting from scratch
- Accuracy: Based on your actual codebase rather than generic best practices
When to Use This
- When setting up .dinorules for the first time
- When your project has evolved organically and you want to formalize conventions
- Before major refactoring efforts to ensure consistency
- When preparing to scale your team and need documented standards