Overview
Custom Project Knowledge allows you to provide specific instructions and context to the AI assistant for your project. This feature ensures the AI follows your preferred patterns, styles, and conventions when generating or modifying code.Accessing Project Settings
To add custom knowledge to your project:- Click the dropdown menu in the top-left corner of the editor
- Select Project Settings
- Find the Custom Instructions section
How It Works
When you add custom instructions, they are included as a pre-prompt with every chat interaction. This means the AI will:- Apply your preferences automatically
- Follow your specified patterns consistently
- Maintain your project’s unique requirements
Example Instructions
Here are some effective custom knowledge prompts you can use:Design Preferences
Code Style
Business Logic
Component Patterns
Best Practices
Effective Custom Instructions:
- Be specific and clear about your requirements
- Reference existing patterns in your codebase
- Focus on repeatable conventions rather than one-time changes
- Update instructions as your project evolves
Avoid:
- Contradictory instructions
- Overly complex rules that might confuse the AI
- Instructions that conflict with platform limitations
Advanced Usage
You can combine multiple types of instructions:Tips for Success
- Start simple: Add a few clear instructions and test their effectiveness
- Iterate: Refine your instructions based on the AI’s responses
- Document patterns: Include examples of existing code patterns you want to maintain
- Review regularly: Update instructions as your project requirements change