✨ Supercharge your UEFN (Unreal Editor for Fortnite) development with AI-powered assistance for the Verse programming language! This repository provides comprehensive reference materials to help AI assistants generate accurate, idiomatic Verse code.
Verse is a relatively new programming language, and UEFN is an emerging platform. This presents unique challenges for AI-assisted development:
- Limited Training Data: As a new language, there's less publicly available Verse code for AI models to learn from.
- Platform Complexity: UEFN's specific implementation details and best practices are still being established.
- Accuracy Concerns: Without proper context, AI models may generate incorrect or inefficient code that doesn't follow Verse's paradigms.
- Lack of Specialized Models: There are currently no widely-available AI models specifically fine-tuned for Verse development.
To address these challenges, we've created a comprehensive set of reference materials to guide AI assistants in generating high-quality Verse code.
This repository contains several carefully crafted resources for Verse development in UEFN:
- .verseRules/verse-reference.md: Comprehensive Verse language reference
- .verseRules/verse-patterns.md: Common implementation patterns and best practices
- .verseRules/verse-common-errors.md: Solutions to frequent Verse programming issues
- .verseRules/verification-checklist.md: Code quality and correctness checklist
-
.cursor/ - Configuration for Cursor IDE
- Rules for code generation and assistance
- Development workflow guidelines
- API usage patterns
- Error handling strategies
- Software engineering best practices
- Feature request template
-
.windsurf/ - Configuration for Windsurf IDE (mirrors .cursor/)
- Same structure as .cursor/ for compatibility with Windsurf
- .verseRules/setup-ai-assistant.ps1: PowerShell script for initial setup (if needed)
- .verseRules/feature-request-example.md: Template for submitting feature requests
-
📥 Download or clone the repository
git clone https://github.com/PlayUGC/verse-ai-rules.git
-
💻 Open your UEFN project's code-workspace
- Launch Windsurf or Cursor IDE
- Open your UEFN project's workspace
-
🛠 Install the rules
- Drag the
.cursorfolder into your project (for Cursor users) OR - Drag the
.windsurffolder into your project (for Windsurf users) - Also drag in the
.verseRulesfolder which contains additional Verse-specific rules and references
- Drag the
-
🤖 Start coding with AI assistance
- The AI will now use these reference materials when helping with Verse development
- You'll get consistent, idiomatic Verse code following UEFN best practices
- The AI will reference the appropriate patterns and error prevention techniques
The AI will check these resources in the following order:
- .verseRules/verse-reference.md - Language reference and syntax
- .verseRules/verse-patterns.md - Implementation patterns and best practices
- .verseRules/verse-common-errors.md - Common issues and solutions
- .verseRules/verification-checklist.md - Code quality standards
- .digest.verse files - UEFN API references (automatically included in projects)
This structured approach ensures accurate, consistent code generation with proper error handling and best practices.
- Dual IDE Support: Works with both Cursor and Windsurf IDEs
- Structured Development: Clear guidelines for feature implementation and task breakdown
- Comprehensive Coverage: All common Verse programming patterns and error scenarios
- Improved Accuracy: Structured reference materials improve AI's understanding of Verse
- Consistent Style: Ensures code follows established Verse conventions
- Error Prevention: Built-in verification checklists and common error references
If you see an error about the script not being digitally signed, you'll need to change your PowerShell execution policy:
-
Recommended Method (Temporary for current session):
powershell -ExecutionPolicy Bypass -File .\.verseRules\setup-ai-assistant.ps1
-
For Current User (Permanent):
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
Then try running the script again.
-
AI not recognizing the rules
- Make sure you've dragged the correct folder (
.cursor/or.windsurf/) into your project - Verify that the
.verseRulesfolder is also in your project root - Restart your IDE after adding the rules
- Make sure you've dragged the correct folder (
-
Missing files
- Ensure you've cloned the entire repository
- Check that all files are properly extracted if downloaded as a ZIP
-
Rules not applying
- Verify your IDE has the necessary permissions to access the rule files
- Check for any error messages in your IDE's output console
- Make sure you're using a compatible version of Cursor or Windsurf