{communication_language}This step will generate content and present choices for each rule category:
Collaboratively generate specific, critical rules that AI agents must follow when implementing game code in this project.
Document the exact technology stack from discovery:
Core Technologies: Based on user skill level, present findings:
Expert Mode: "Technology stack from your architecture and project files: {{exact_technologies_with_versions}}
Any critical version constraints I should document for agents?"
Intermediate Mode: "I found your technology stack:
Game Engine: {{engine_with_version}}
Key Dependencies: {{important_dependencies_with_versions}}
Are there any version constraints or compatibility notes agents should know about?"
Beginner Mode: "Here are the technologies you're using:
Game Engine: {{friendly_description_of_engine}}
Important Notes: {{key_things_agents_need_to_know_about_versions}}
Should I document any special version rules or compatibility requirements?"
Focus on unobvious engine patterns agents might miss:
Unity Rules (if applicable): "Based on your Unity project, I notice some specific patterns:
Lifecycle Rules: {{unity_lifecycle_patterns}}
Serialization Rules: {{serialization_requirements}}
Assembly Definitions: {{assembly_definition_rules}}
Coroutine/Async Patterns: {{async_patterns}}
Are these patterns correct? Any other Unity-specific rules agents should follow?"
Unreal Rules (if applicable): "Based on your Unreal project, I notice some specific patterns:
UPROPERTY/UFUNCTION Rules: {{macro_usage_patterns}}
Blueprint Integration: {{blueprint_rules}}
Garbage Collection: {{gc_patterns}}
Tick Patterns: {{tick_optimization_rules}}
Are these patterns correct? Any other Unreal-specific rules agents should follow?"
Godot Rules (if applicable): "Based on your Godot project, I notice some specific patterns:
Node Lifecycle: {{node_lifecycle_patterns}}
Signal Usage: {{signal_conventions}}
Scene Instancing: {{scene_patterns}}
Autoload Patterns: {{autoload_rules}}
Are these patterns correct? Any other Godot-specific rules agents should follow?"
Document performance-critical patterns:
Frame Budget Rules: "Your game has these performance requirements:
Target Frame Rate: {{target_fps}}
Frame Budget: {{milliseconds_per_frame}}
Critical Systems: {{systems_that_must_meet_budget}}
Hot Path Rules: {{hot_path_patterns}}
Any other performance rules agents must follow?"
Memory Management: "Memory patterns for your project:
Allocation Rules: {{allocation_patterns}}
Pooling Requirements: {{object_pooling_rules}}
Asset Loading: {{asset_loading_patterns}}
Are there memory constraints agents should know about?"
Document project structure and organization:
Folder Structure: "Your project organization:
Script Organization: {{script_folder_structure}}
Asset Organization: {{asset_folder_patterns}}
Scene/Level Organization: {{scene_organization}}
Any organization rules agents must follow?"
Naming Conventions: "Your naming patterns:
Script/Class Names: {{class_naming_patterns}}
Asset Names: {{asset_naming_patterns}}
Variable/Method Names: {{variable_naming_patterns}}
Any other naming rules?"
Focus on testing patterns that ensure consistency:
Test Structure Rules: "Your testing setup shows these patterns:
Test Organization: {{test_file_organization}}
Test Categories: {{unit_vs_integration_boundaries}}
Mocking Patterns: {{mock_usage_conventions}}
Play Mode Testing: {{play_mode_test_patterns}}
Are there testing rules agents should always follow?"
Document platform-specific requirements:
Target Platforms: "Your platform configuration:
Primary Platform: {{primary_platform}}
Platform-Specific Code: {{platform_conditional_patterns}}
Build Configurations: {{build_config_rules}}
Input Handling: {{input_abstraction_patterns}}
Any platform rules agents must know?"
Identify rules that prevent common mistakes:
Anti-Patterns to Avoid: "Based on your codebase, here are critical things agents must NOT do:
{{critical_anti_patterns_with_examples}}
Edge Cases: {{specific_edge_cases_agents_should_handle}}
Common Gotchas: {{engine_specific_gotchas}}
Performance Traps: {{performance_patterns_to_avoid}}
Are there other 'gotchas' agents should know about?"
For each category, prepare lean content for the project context file:
## Technology Stack & Versions
{{concise_technology_list_with_exact_versions}}
## Critical Implementation Rules
### Engine-Specific Rules
{{bullet_points_of_engine_rules}}
### Performance Rules
{{bullet_points_of_performance_requirements}}
### Code Organization Rules
{{bullet_points_of_organization_patterns}}
### Testing Rules
{{bullet_points_of_testing_requirements}}
### Platform & Build Rules
{{bullet_points_of_platform_requirements}}
### Critical Don't-Miss Rules
{{bullet_points_of_anti_patterns_and_gotchas}}
After each category, show the generated rules and present choices:
"I've drafted the {{category_name}} rules for your project context.
Here's what I'll add:
[Show the complete markdown content for this category]
What would you like to do? [A] Advanced Elicitation - Explore nuanced rules for this category [P] Party Mode - Review from different implementation perspectives [C] Continue - Save these rules and move to next category"
sections_completed: [...]When user selects 'C' for a category, append the content directly to {output_folder}/project-context.md using the structure from step 8.
After completing all rule categories and user selects 'C' for the final category, load ./step-03-complete.md to finalize the project context file.
Remember: Do NOT proceed to step-03 until all categories are complete and user explicitly selects 'C' for each!