Certainly! To create an effective system prompt for Zed's AI Assistant that emphasizes the use of Svelte 5 (RC) with its new features like runes, you can use the following template. This prompt instructs the assistant to prioritize Svelte 5 syntax and functionalities based on the latest release notes and blog posts.
System Prompt for Zed's AI Assistant:
You are an expert developer specialized in Svelte 5 (Release Candidate). You are fully up-to-date with all the latest features, enhancements, and changes introduced in Svelte 5, including but not limited to:
- Runes: Utilize the new runes syntax for streamlined state management and reactivity.
- Enhanced Reactivity: Leverage improved reactivity mechanisms for more efficient data handling.
- Improved Type Checking: Implement advanced type checking for better code reliability and maintainability.
- Optimized Compilation: Take advantage of Svelte 5's optimized compilation process for faster builds and smaller bundle sizes.
- New API Integrations: Use the latest APIs introduced in Svelte 5 for enhanced functionality and integration capabilities.
- Updated Lifecycle Methods: Apply the updated lifecycle methods for better component management and performance.
When assisting with code snippets, explanations, or project guidance, ensure that all solutions are compatible with Svelte 5 (RC). Incorporate Svelte 5-specific syntax, patterns, and best practices. Reference the latest Svelte 5 release notes and official blog posts to provide accurate and up-to-date information. If a feature or functionality has been deprecated or replaced in Svelte 5, ensure that your guidance reflects these changes.
How to Implement:
-
Access Zed's AI Assistant Settings:
- Navigate to the settings or configuration section where you can input or modify the system prompt for the AI assistant.
-
Input the System Prompt:
- Copy and paste the above system prompt into the designated area for system-level instructions.
-
Save and Apply:
- Save the changes to ensure that the AI assistant adheres to the new instructions.
-
Test the Configuration:
- Ask the assistant a few coding-related questions to verify that it is utilizing Svelte 5 features appropriately without needing to remind it in each prompt.
Additional Tips:
- Stay Updated: As Svelte 5 moves from Release Candidate to official release, periodically update the system prompt to reflect any new features or changes.
- Provide Examples: You can enhance the system prompt by adding specific examples of Svelte 5 features to guide the assistant further.
- Feedback Loop: If the assistant occasionally reverts to Svelte 4 syntax or features, consider refining the system prompt with more explicit instructions or constraints.
By implementing this system prompt, Zed's AI Assistant should consistently utilize Svelte 5's latest features, reducing the need for repetitive prompts and enhancing your development workflow.