# Prompt Engineering Master

> Source: https://x-rush.ai/zh/docs/prompt-engineering-master

The quality of AI output depends directly on the quality of input. Prompt engineering is the skill of crafting inputs that maximize the value of AI assistance. This guide teaches you to write prompts that deliver exceptional results.

<h2 id="the-clear-framework">The CLEAR Framework</h2>

<h3 id="context">C — Context</h3>

Provide background information that helps AI understand your situation:
    <em>&quot;I run a small coffee shop targeting professionals aged 25-40 in an urban area&quot;</em>

<h3 id="goal">L — Goal</h3>

State clearly what you want to achieve:
    <em>&quot;I need a compelling landing page that converts visitors to newsletter subscribers&quot;</em>

<h3 id="examples">E — Examples</h3>

Show, don&apos;t just tell. Include references:
    <em>&quot;Like the Apple product pages but with warmer tones&quot;</em>

<h3 id="audience">A — Audience</h3>

Define who the content is for:
    <em>&quot;Busy professionals who appreciate quality but value convenience&quot;</em>

<h3 id="restrictions">R — Restrictions</h3>

Specify constraints and boundaries:
    <em>&quot;No more than 3 sections above the fold, mobile-first design&quot;</em>

<h2 id="advanced-techniques">Advanced Techniques</h2>

<h3>Role Prompting</h3>

Assign a persona: &quot;You are an experienced direct-response copywriter...&quot;

<h3>Chain of Thought</h3>

Request reasoning: &quot;Think step by step about the best approach...&quot;

<h3>Iterative Refinement</h3>

Build progressively: start broad, then refine based on initial output.

<h2 id="content-type-specific-tips">Content-Type Specific Tips</h2>

<h3 id="text-generation">Text Generation</h3>

<ul>
      <li>Include tone and style preferences</li>
      <li>Specify word count or length</li>
      <li>List required elements</li>
    </ul>

<h3 id="image-generation">Image Generation</h3>

<ul>
      <li>Be specific about subjects and actions</li>
      <li>Include style, lighting, and mood</li>
      <li>Mention composition and perspective</li>
    </ul>

<h3 id="video-generation">Video Generation</h3>

<ul>
      <li>Describe visual storytelling</li>
      <li>Specify pacing and mood</li>
      <li>Include audio style</li>
    </ul>
