Skip to main content

Prompt Engineering Guide

Prompt Guide Her
Prompting is one of the most important skills when working with AI. A well-written prompt helps the AI understand what you’re building, how you want it built, and what should not change. Better prompts generally lead to:
  • Higher quality outputs
  • Fewer retries
  • Lower credit consumption
  • Faster development
  • More consistent results

How AI Understands Your Prompt

Every prompt goes through a reasoning pipeline before the final output.
Think of AI like a developer joining your project. The more information you provide, the better it can understand your intent. The AI works best when your prompt includes:

Context

Explain what you’re building.

Goal

Describe what you want to achieve.

Requirements

List required features.

Constraints

Explain what should NOT change.

Examples

Reference previous screens or designs.

Output

Specify the desired format or result.

The Anatomy of a Great Prompt

Prompt Guide Anatomy
A good prompt usually follows this structure:

Example: Poor Prompt

Bad Vs Good Prompt
Problems:
  • No context
  • No requirements
  • No design direction
  • AI must guess
Result:
  • Generic output
  • More retries
  • More credits

Example: Great Prompt

This gives the AI everything it needs.

Give the AI Context

Context Matters
Instead of saying:
Try:

Tell the AI What NOT to Change

Scoped Changes
This is one of the biggest mistakes users make. Instead of:
Use:
This keeps the AI focused.

Make Small Changes

Big Vs Small Prompts
Large prompts usually create larger code changes. Instead of:
Break it into steps:
  1. Improve navbar
  2. Improve dashboard
  3. Improve settings page
  4. Improve mobile layout
  5. Improve performance
Smaller prompts are easier to review and often require fewer credits.

Why Better Prompts Save Credits

Credits Comparison
Every AI task consumes credits based on the computing resources required to complete it. A detailed prompt helps the AI understand your request more accurately, which can reduce unnecessary iterations and make development more efficient. Poor prompts often require multiple attempts before reaching the desired result.

Example

❌ Poor Prompt

Possible outcome:
  • AI guesses your intent
  • Multiple sections may change unexpectedly
  • Additional prompts are needed to refine the result
  • More credits may be consumed across repeated iterations

✅ Better Prompt

Possible outcome:
  • AI focuses only on the requested section
  • Fewer revisions
  • More predictable results
  • Reduced overall credit usage

Why Credit Usage Varies

Credit usage depends on the amount of work the AI performs, not simply the length of your prompt. Factors include:
  • Number of files modified
  • Complexity of the requested changes
  • AI model used
  • Images or videos generated
  • Code generation
  • External tools or integrations
  • Research and reasoning required
A short prompt can still consume more credits if it results in significant code generation or complex processing.

Best Practices

Be Specific

Describe exactly what should be changed instead of asking for broad improvements.

Protect Existing Work

Tell the AI which parts of your project should remain unchanged.

Break Large Tasks

Split large requests into smaller, focused prompts for better control.

Refine Instead of Restarting

Update your prompt based on the previous result instead of starting over whenever possible.

Use Existing Components

Instead of:
Try:

Ask the AI to Think Before Coding

A useful pattern is:
This reduces unnecessary rewrites.

For Large Projects

If your application has many files: Tell the AI:

Working With Existing Code

Instead of:
Use:

Image Generation Tips

Image Prompt Workflow
Good prompt:
Bad prompt:

Video Generation Tips

Video Prompt
Always specify:
  • duration
  • language
  • subtitles
  • aspect ratio
  • animation style
  • camera movement
  • background music
  • audience
Example:

Website Generation Tips

Example:

Mobile App Generation Tips

Example:

Document Generation Tips

Instead of:
Use:

Before Pressing Generate

  • Did I explain the goal?
  • Did I mention my framework?
  • Did I tell the AI what NOT to change?
  • Did I include examples?
  • Did I explain the expected output?
  • Is my request specific?

Common Mistakes

Short prompts force the AI to guess your intent.Always include context and requirements.
Break large tasks into smaller prompts.
Tell the AI what should remain unchanged.
Instead of clicking Generate again, improve your prompt.
Large rewrites are harder to review and can introduce unnecessary changes.Modify one feature at a time.

AI Limitations

Even with excellent prompts, AI may occasionally:
  • Misinterpret instructions
  • Produce unexpected results
  • Require multiple iterations
  • Generate inefficient code
  • Miss edge cases
Always review generated output before publishing.

Best Practices

Give Context

Explain your project before asking for changes.

One Task at a Time

Small prompts usually produce better results.

Protect Existing Code

Tell the AI what should not change.

Use References

Screenshots, designs, and examples improve accuracy.

Review Before Publishing

Always test AI-generated changes.

Iterate

Improve prompts instead of regenerating repeatedly.

Related Guides

  • How Credits Work
  • AI Limitations
  • Website Hosting
  • Common Mistakes