Jump to: Adding a Rule | When to Use Rules | Templates as Rules | Browse Rule Templates
Adding a Rule
There are two ways to create and add rules on the platform:- From the Prompting Section
- From Settings
Go to the Prompting Section
Navigate to the prompting section of your project. The project must be in the prompting phase to add or create rules from here.
Add or Create a Rule
Add an existing rule to your project, or create a new one by entering a name (a concise title, e.g., “Require Test Coverage”) and a description (the full directive text).
When to Use Rules
Add a rule when you want a quality constraint enforced consistently - rather than repeating the same instruction in every prompt. Rules are ideal for standards that apply across projects and teams: test coverage requirements, code style enforcement, security analysis, and performance profiling. Because rules can be shared with teams and reused across different projects and languages, they are especially valuable for organization-wide standards that should apply regardless of the specific codebase. If you need a constraint for a single generation only, include it directly in your prompt instead.Using Templates as Rules
The rule templates provide 10 ready-to-use directive descriptions covering common quality and analysis dimensions. Copy a template’s description text and paste it into a new rule on the platform. You can also write your own custom rules from scratch. Custom rules follow the same format: a name and a description. Write the description as a directive - state what the AI should do, what patterns are forbidden, and what validation criteria apply.Browse Rule Templates
Rule Templates
View all available rule templates and their descriptions