Rule Management
Create, organize, and deploy context rules that guide your AI coding assistants.
Rules are the core of Prism Context Engine — they define the patterns, conventions, and architectural decisions your AI should follow.
What Are Rules?
Rules are structured instructions that tell AI assistants how to write code for your project. They can define:
- Coding patterns - How to structure components, handle errors, etc.
- Design system tokens - Colors, typography, spacing values
- Architectural decisions - File organization, naming conventions
- Tech stack requirements - Which libraries to use (and avoid)
Rule Guides
Creating Rules
Write effective context rules from scratch
Rule Templates
Start with pre-built templates for common stacks
Exporting Rules
Export to .cursorrules, .windsurfrules, and more
Security Rules
Enforce security best practices
Rule Categories
| Category | Purpose | Example |
|---|---|---|
| Architecture | File structure, patterns | ”Use App Router, not Pages” |
| Styling | Design tokens, CSS | ”Primary color is #06b6d4” |
| Security | Auth, validation | ”Always validate with Zod” |
| Testing | Coverage, patterns | ”Use Vitest for unit tests” |
Last updated on