Enhance Prompt

Documentation Coming The Enhance Prompt feature transforms basic prompts into more detailed, specific, and effective instructions that yield better results from the Gamecraft Agent.

This AI-powered enhancement automatically refines your input by adding context, clarifying requirements, and incorporating best practices for prompt engineering.

What is Enhance Prompt?

Enhance Prompt is an intelligent preprocessing feature that analyzes your initial prompt and automatically improves it before sending to the main Gamecraft Agent. It:

  • Expands Brevity: Converts short, basic requests into comprehensive instructions

  • Adds Context: Incorporates relevant technical details and constraints

  • Clarifies Intent: Makes ambiguous requests more specific and actionable

  • Applies Best Practices: Integrates proven prompt engineering techniques

  • Maintains Focus: Preserves your original intent while improving clarity

How It Works

The Enhancement Process

  1. Input Analysis: The feature examines your original prompt for context, intent, and scope

  2. Content Expansion: Adds relevant technical details, constraints, and specifications

  3. Structure Improvement: Organizes the request in a clear, logical format

  4. Best Practice Integration: Applies effective prompting techniques automatically

  5. Output Delivery: Returns an enhanced version ready for the Gamecraft Agent

AI-Powered Intelligence

The enhancement process uses a dedicated language model to:

  • Understand the technical context of your request

  • Identify missing information that would improve results

  • Apply Unity and game development best practices

  • Structure requests for optimal AI comprehension

  • Preserve your original goals while adding helpful details

Using Enhance Prompt

Accessing the Feature

The Enhance Prompt feature is available through the sparkle icon (✨) located next to the send button in the chat interface.

To enhance a prompt:

  1. Type Your Initial Prompt: Enter your basic request in the chat input area

  2. Click the Sparkle Icon: Click the ✨ icon next to the send button

  3. Wait for Enhancement: The system processes your prompt (indicated by a loading animation)

  4. Review Enhanced Version: The improved prompt appears in the input area

  5. Send or Modify: Either send the enhanced prompt or make additional edits

Button States

  • Enabled (✨): Ready to enhance your prompt

  • Loading (🔄): Currently enhancing your prompt

  • Disabled: Not available (when sending is disabled or no text entered)

Automatic Behavior

If you click the enhance button with an empty input field, the system automatically provides a helpful description of the enhance prompt functionality, guiding you on how to use the feature effectively.

Enhancement Examples

Basic to Enhanced: Code Improvement

Original Prompt:

Make this code better

Enhanced Prompt:

Analyze and improve the following code by focusing on:

1. **Code Quality**: Enhance readability, maintainability, and adherence to best practices
2. **Performance Optimization**: Identify and resolve performance bottlenecks
3. **Unity Best Practices**: Apply Unity-specific patterns and conventions
4. **Error Handling**: Add robust error handling and edge case management
5. **Documentation**: Include clear comments and documentation
6. **Testing Considerations**: Suggest approaches for unit testing and debugging

Please provide the improved code along with explanations for each enhancement made.

Basic to Enhanced: Feature Implementation

Original Prompt:

Add multiplayer to my game

Enhanced Prompt:

Implement multiplayer functionality for my Unity game with the following requirements:

**Technical Specifications:**
- Target platform: [Specify PC/Mobile/Console]
- Player count: [Specify max concurrent players]
- Network architecture: [Client-Server vs P2P preference]
- Synchronization needs: [Real-time vs turn-based]

**Implementation Approach:**
1. **Network Layer**: Choose appropriate Unity networking solution (Netcode, Mirror, or custom)
2. **State Synchronization**: Design systems for player positions, game state, and user actions
3. **Connection Management**: Handle player connections, disconnections, and reconnection
4. **Data Security**: Implement basic anti-cheat and data validation
5. **UI Integration**: Add lobby system, connection status, and error handling

**Deliverables:**
- Core networking scripts and architecture
- Player synchronization components
- Connection management system
- Integration guidelines for existing game systems
- Testing and debugging recommendations

Please provide step-by-step implementation guidance suitable for my current project structure.

Basic to Enhanced: Bug Fixing

Original Prompt:

Fix this bug

Enhanced Prompt:

Diagnose and fix the bug in my Unity project:

**Current Issue:**
- Specific symptoms: [Describe what's happening vs. expected behavior]
- Error messages: [Include any console errors or warnings]
- Reproduction steps: [How to consistently trigger the bug]
- Affected systems: [Which game components are impacted]

**Debugging Approach:**
1. **Root Cause Analysis**: Identify the underlying cause of the issue
2. **Code Review**: Examine relevant scripts and component configurations
3. **Unity-Specific Considerations**: Check for common Unity pitfalls and version-specific issues
4. **Testing Strategy**: Develop methods to verify the fix works correctly

**Solution Requirements:**
- Provide corrected code with clear explanations
- Highlight specific changes made and why
- Include preventive measures to avoid similar issues
- Suggest testing approaches to validate the fix
- Consider impact on related game systems

Please analyze the code, identify the bug's source, and provide a comprehensive fix.

Best Practices

When to Use Enhance Prompt

Ideal Scenarios:

  • ✅ Short, basic requests that need more detail

  • ✅ Vague requirements that could benefit from clarification

  • ✅ Complex tasks that need structured breakdown

  • ✅ Learning situations where you want to see good prompt examples

  • ✅ Unfamiliar technical domains where you need guidance

When Not to Use:

  • ❌ Already detailed, well-structured prompts

  • ❌ Simple, single-action requests (e.g., "Create a new file")

  • ❌ Time-sensitive tasks where immediate response is needed

  • ❌ Prompts that are already optimized for your specific needs

Enhancement Strategy

Progressive Enhancement:

  1. Start with your natural, conversational request

  2. Use Enhance Prompt to see a structured version

  3. Learn from the enhanced format

  4. Apply those patterns to future prompts

  5. Gradually reduce reliance on enhancement as your skills improve

Learning Opportunity:

  • Compare original vs. enhanced prompts to understand improvements

  • Note recurring enhancement patterns for different request types

  • Identify missing elements in your original prompts

  • Develop intuition for effective prompt structure

Quality Control

Review Enhanced Prompts:

  • Always review the enhanced prompt before sending

  • Ensure the enhancement preserves your original intent

  • Modify or remove irrelevant additions

  • Add project-specific details that the enhancer couldn't know

Iterative Improvement:

  • If the enhancement misses the mark, try rephrasing your original prompt

  • Provide more context in your initial request for better enhancement

  • Use the enhanced version as a starting point for further refinement

Troubleshooting

Common Issues

Poor Enhancement Quality:

  • Provide more context in your original prompt

  • Be more specific about your requirements and constraints

  • Try breaking complex requests into smaller, focused prompts

Loading Issues:

  • Wait for the enhancement process to complete (may take a few seconds)

  • Check your internet connection

  • Verify API service availability

  • Try refreshing the Gamecraft Agent interface

Error Messages

"No prompt text provided"

  • Enter text in the input area before clicking enhance

  • Ensure your prompt contains actual content beyond whitespace

Advanced Usage

Integration with Workflows

Prompt Development Cycle:

  1. Draft initial request naturally

  2. Enhance for structure and completeness

  3. Add project-specific context and constraints

  4. Send refined prompt to Gamecraft Agent

  5. Iterate based on results

Learning and Training:

  • Use enhancement to learn effective prompt patterns

  • Study enhanced versions to improve prompt writing skills

  • Create templates based on successful enhancement patterns

  • Share effective enhancement approaches with team members

Performance Considerations

Cost Management:

  • Enhancement uses additional API calls

  • Consider cost when enhancing frequently

  • Balance enhancement quality with usage costs

Speed Optimization:

  • Enhancement adds processing time to your workflow

  • Use for important or complex requests

  • Skip for simple, well-understood tasks

  • Consider batch enhancing multiple related prompts

By mastering the Enhance Prompt feature, you can significantly improve the quality and effectiveness of your interactions with the Gamecraft Agent, leading to better results and more productive development sessions.

Last updated