Instructions & Guidelines
Instructions are saved in aLEO_RULES.md file at the root of your project. Leo reads this file at the start of each conversation to understand your project’s requirements.
What to Include
- Project-specific rules - “Always use TypeScript strict mode”
- Coding style preferences - “Use 2-space indentation”, “Prefer arrow functions”
- Naming conventions - “Use camelCase for variables, PascalCase for components”
- External documentation - Links to design systems or API docs
- Business logic - Key rules Leo should always follow
How to Use
- Go to Settings → Knowledge
- Enter your instructions in the text area
- Click Save
Example Instructions
Project Memories
Memories are pieces of information that Leo remembers across all conversations. They’re perfect for context that should always be applied. Learn more about Project MemoriesWhen to Use Each
| Use Case | Instructions | Memories |
|---|---|---|
| Coding standards | Yes | - |
| Business rules | Yes | Yes |
| Company info | - | Yes |
| Design preferences | Yes | Yes |
| Technical requirements | Yes | - |
| Quick facts | - | Yes |
Instructions vs Memories
- Instructions - Detailed guidelines and rules (technical, structured)
- Memories - Quick facts and preferences (simple, contextual)
Best Practices
- Be specific - Vague instructions lead to inconsistent results
- Keep it concise - Focus on what matters most
- Update regularly - Adjust as your project evolves
- Use examples - Show Leo what good output looks like
- Organize with sections - Use markdown headers for clarity
