Custom rules#
Rules define practices, guidelines, and patterns that maintain code quality for your projects. When connected to GitHub, each repository becomes a project with its own learned rules. You can also create manual rules that apply globally or to specific projects. kluster.ai Verify code automatically checks newly generated code against these rules.
Rule Types#
- Manual rules: Custom rules you create based on your team's specific requirements and coding standards.
- Learned rules: Automatically extracted from your GitHub repositories, continuously updated to reflect your codebase patterns.
Set up instructions#
You can create manual rules to enforce your team's coding standards or connect GitHub to automatically extract patterns from your repositories. Rules can be applied globally or to specific projects.
Extraction rate limit
Rule extraction from repositories is limited to once per hour. Wait 60 minutes between extraction requests.
-
Access the platform: Navigate to Custom Code Review Rules.
-
Connect GitHub (Optional): Connect your GitHub account to enable project-specific rules. In this context, each GitHub repository is treated as a 'project' - Verify code learns patterns from each repository and applies those specific rules when reviewing code for that project.
-
Click Add review rule to create custom rules.
-
Configure rule scope: Enter your rule and select the scope:
- All: Rules apply globally to all your coding sessions.
- Project-specific: Select a repository from the dropdown (requires GitHub connection).
-
Click Save & Add Another to add multiple rules or Save to finish.
Next steps#
- View all integrations: Set up Verify code in your preferred IDE.
- See real examples: Walk through a complete Firebase migration case study.