# How to Prompt AI — Complete Reference (https://www.promptai.how)

> Practical, zero-fluff reference for prompting ChatGPT (GPT-5 / 4.1 / o3), Claude (Opus / Sonnet / Claude Code), and Gemini (2.5 / 3), formatting prompts, and architecting System Prompts vs. Skills (SKILL.md) vs. File Attachments.

## 1. The 5 Core Prompting Rules
1. Brief the environment (Goal, Context, Constraints, Output Format), not vague commands.
2. Pair negative prohibitions with positive replacements and concrete examples.
3. Separate reference data from instructions using Markdown headings or XML tags.
4. Show 2 to 5 few-shot examples whenever exact tone or formatting matters.
5. Skip manual "think step by step" scaffolding on native reasoning models (o3, GPT-5, Gemini Thinking).

## 2. Prompt Formats Summary (arXiv:2411.10541 + Official Docs)
- **Plain Text:** Best for quick 1-shot queries and native reasoning models.
- **Markdown (.md):** Best universal default for instructions, SKILL.md, AGENTS.md, and pasted web context.
- **XML Tags:** Best for Claude and multi-document prompts to isolate reference data from commands.
- **JSON:** Avoid for long input documents; reserve for strict structured outputs and API schemas.
- **YAML:** Best for compact metadata headers like SKILL.md trigger frontmatter.

## 3. System Prompt vs. Skills vs. Files vs. User Prompt
- **System Prompt (CLAUDE.md / AGENTS.md / Custom Instructions):** Always loaded on every turn. Keep lean for permanent identity, tone defaults, and non-negotiable guardrails.
- **Skills (SKILL.md):** Progressive disclosure (~100 token YAML trigger at rest, full workflow loads only when matched). Best for repeatable SOPs.
- **Files / Projects / MCP:** Background facts ("what you need to know") and live external systems ("the kitchen").
- **User Prompt:** Ephemeral per-turn ask and iterative refinements.

## 4. Copy-Ready Prompt Templates
### The 4C Context Stack Brief (All · Foundations)
Replace vague one-line prompts with a reusable 4-part briefing: Character, Command, Constraints, and Context.

```
Character: You are a founder who writes practical, experience-backed teardowns without hype.
Command: Draft a 180-word post explaining one concrete way teams waste time with AI prompts.
Constraints:
- Open with a sharp observation in under 12 words
- Use plain everyday verbs and short paragraphs
- Include one concrete before-and-after example
- End with a practical question, not a generic slogan
Context:
- Audience: Technical founders and marketing leads
- Voice samples:
[Paste 2 short examples of your own writing here]
```

### Anti-AI-Slop Voice Lock (Positive Replacement) (Claude · Writing)
Pairs concrete positive replacements with targeted guardrails so outputs stop reading like robotic templates.

```
<style_rules>
- Start directly with the answer. Skip greetings, preambles, and wrap-up summaries.
- Write in tight paragraphs of 2 to 4 sentences unless a table is requested.
- Replace vague buzzwords with measurable outcomes or named examples.
  Example: Replace "seamlessly streamlines workflows" with "cuts weekly reporting from 40 minutes to 5."
- Use plain verbs: use, build, cut, run, show, test.
- Avoid filler phrases: delve, leverage, utilize, robust, seamless, game-changer, landscape, "it is worth noting."
- Avoid forced "not X, but Y" contrasts and stacked 3-item adjectives.
</style_rules>

<source_draft>
[Paste draft text here]
</source_draft>

<instructions>
Edit the draft in <source_draft> using <style_rules>. Preserve every factual claim and keep my direct tone.
</instructions>
```

### Anatomy of an o3 / GPT-5 Reasoning Prompt (ChatGPT · Research)
Structured 4-part prompt built for OpenAI reasoning models without redundant step-by-step scaffolding.

```
Goal:
Identify 5 underserved B2B micro-SaaS ideas for independent e-commerce operators doing $500k-$5M/year.

Return format:
For each idea return:
1. Exact pain point and workflow broken today
2. Who holds the budget (job title)
3. Current hacky workaround they pay for
4. Minimum viable product scope buildable in 2 weeks
5. Realistic monthly pricing tier

Warnings:
- Do not suggest generic AI wrappers, chatbots, or saturated social schedulers.
- Verify every named competitor actually exists and note its current pricing gap.

Context:
I am a solo full-stack developer strong in Cloudflare Workers, APIs, and Shopify integrations. I prefer low-support utility products with clear ROI over content-heavy marketplaces.
```

### Claude Long-Context Document Synthesis (XML) (Claude · Research)
Follows Anthropic official placement: reference documents at the top, grounded instructions at the bottom.

```
<documents>
  <document index="1">
    <source>customer-call-01.md</source>
    <document_content>
      [Paste transcript or report]
    </document_content>
  </document>
  <document index="2">
    <source>customer-call-02.md</source>
    <document_content>
      [Paste transcript or report]
    </document_content>
  </document>
</documents>

<instructions>
1. Analyze only the facts present inside <documents>.
2. Extract the top 5 recurring buyer objections ranked by frequency.
3. For each objection, include a verbatim quote with its source filename.
4. Flag any contradictions between documents separately.
</instructions>

<output_format>
Return a clean Markdown table with columns: Objection | Frequency | Verbatim Quote | Source.
</output_format>
```

### Gemini Inverted Context-First Analysis (Gemini · Research)
Places large docs, code, or media first and bridges cleanly to a concise, direct command at the end.

```
[Attach or paste full PDF, codebase, transcript, or video here]

Based strictly on the information provided above:
1. Summarize the core architecture in 5 bullet points (max 20 words each).
2. List every unresolved dependency, risk, or missing requirement with exact section references.
3. Propose a 3-step execution order prioritized by lowest effort and highest impact.

Format: Concise Markdown with a summary table first. Do not repeat background details I already supplied.
```

### XML Meta-Prompt Optimizer (All · Meta-Prompting)
Have ChatGPT, Claude, or Gemini audit and upgrade your rough prompt without over-engineering simple tasks.

```
<role>
You are a senior prompt architect. Improve prompts while preserving the user's original intent and voice.
</role>

<task>
Analyze and improve this prompt:
<prompt>
[Paste your rough prompt here]
</prompt>
</task>

<rules>
1. Only change what meaningfully improves output quality.
2. Add structure (headings or XML tags) only if the task has multiple inputs or constraints.
3. Never bloat a simple 2-line request into a wall of text.
4. If my core intent is ambiguous, STOP and ask up to 3 clarifying questions instead of guessing.
</rules>

<output_format>
Return:
1. Optimized Prompt (ready to copy)
2. Key Changes (bullet list explaining why each change improves accuracy)
</output_format>
```

### 6-Step Competitor Mapping Sequence (All · Marketing & SEO)
Run with web search enabled to map an entire category, pricing tiers, positioning claims, and review complaints in 20 minutes.

```
Run web search to map the competitive landscape for [category] sold to [target buyer]. Complete these 4 passes in one structured table:

1. Lineup: List every direct competitor with entry price, top tier price, and free-tier availability.
2. Positioning: Quote each competitor's exact homepage headline and primary promise.
3. Friction: Pull the top 2 recurring complaints from public G2, Trustpilot, or Reddit reviews for each brand.
4. White Space: Identify 3 concrete positioning angles or missing features nobody owns clearly today.

Output a Markdown comparison table followed by the 3 positioning gaps with evidence.
```

### Semantic Similarity Rating (SSR) Buyer Simulation (All · Marketing & SEO)
Inspired by Colgate research: get raw, unfiltered buyer thoughts instead of safe 3/5 ratings.

```
Do NOT give a numeric score yet. Roleplay 3 distinct realistic buyers reacting candidly to the product concept below:

Buyer 1: Skeptical budget-conscious buyer currently using a free spreadsheet workaround.
Buyer 2: Busy team lead who hates onboarding new software.
Buyer 3: Power user frustrated with slow enterprise tools.

Product concept:
[Describe product, offer, and price]

For each buyer, write their unfiltered internal monologue (3-4 sentences): what immediately confuses them, what feels overpriced or risky, and what single proof point would make them click buy. Then summarize the 3 highest-impact fixes.
```

### GSC Striking-Distance Click-Lift Audit (Claude · Marketing & SEO)
Turn Google Search Console exports into concrete title, H2, and answer-block upgrades without writing new pages from scratch.

```
<context>
Attached is a Google Search Console export of queries and pages from the last 90 days.
</context>

<instructions>
Act as an SEO analyst, not a ghostwriter.
1. Filter for queries ranking in positions 4 to 20 with the highest impressions and below-average CTR.
2. Group queries by target page URL.
3. For the top 5 highest-opportunity pages, identify:
   - Missing subtopics implied by those queries
   - A sharper meta title under 60 characters aligned with search intent
   - Two specific H2 sections or comparison tables to add
   - Internal link anchor text suggestions from related pages
</instructions>

<output_format>
Return a prioritized 30-day action table sorted by impression volume.
</output_format>
```

### 5-Part Deep Research Strategist Brief (All · Research)
Structure Deep Research runs like a strategy consultant instead of getting generic intern-level summaries.

```
1. Context:
We are a [company type / size] selling [product] to [ICP]. Current quarterly goal: [specific KPI].

2. Assignment:
Conduct deep research on [topic / vendor category] to identify approaches backed by public proof, not hype.

3. Objectives & Key Metrics:
Prioritize options that demonstrate measurable lift in [metric 1] and [metric 2] within 90 days.

4. Scope & Priorities:
- Focus on primary sources, case studies with numbers, and real pricing pages
- Exclude generic listicles and unverified social claims
- Compare top 5 options head-to-head

5. Define Output:
Return: (a) 5-bullet executive recommendation, (b) structured comparison table with pricing and tradeoffs, (c) concrete 30-day test plan.
```

### Starter SKILL.md Folder Template (Anthropic Spec) (Skill · Skills)
Turn any prompt you paste 3+ times into a portable, progressive-disclosure Skill that loads only when needed.

```
---
name: technical-spec-review
description: Audit technical proposals, PRDs, or architecture docs for missing edge cases, security risks, and unclear scope. Use when reviewing a spec or planning doc before implementation.
---

# Technical Spec Review Workflow

## 1. Check Completeness
Verify the document explicitly defines:
- Problem statement and measurable success criteria
- Data schema, API contracts, and auth boundaries
- Failure modes, rate limits, and rollback plan

## 2. Flag Hidden Risks
List any assumptions that could fail in production (third-party quotas, cache staleness, auth edge cases).

## 3. Output Format
Return a crisp triage report:
- Blocking Gaps (must resolve before coding)
- Medium Risks (address during build)
- Concrete Questions for the Author (max 5)
```

### Chain-of-Verification (CoVe) Accuracy Check (All · Foundations)
Research-backed technique from The Prompt Report that cuts hallucinations by forcing independent verification questions.

```
Task: [Insert factual, technical, or policy question]

Follow this 4-step verification protocol:
1. Draft an initial concise answer.
2. List 3 to 5 specific verification questions that would expose any factual errors, outdated dates, or unsupported assumptions in your draft.
3. Answer each verification question independently and flag anything you cannot verify with certainty.
4. Provide the final corrected answer with every unverified claim removed or clearly marked.
```

## 5. Articles Index
- **Best Prompt Format: Plain Text vs. Markdown, XML, JSON & YAML** (https://www.promptai.how/blog/best-prompt-format-markdown-xml-json): Compare Plain Text, Markdown (.md), XML tags, JSON, and YAML for AI prompts. Backed by arXiv benchmarks and official OpenAI, Anthropic, and Google guidance.
- **System Prompt vs. Skills vs. File Attachments: Where Each Rule Belongs** (https://www.promptai.how/blog/system-prompt-vs-skills-vs-context-files): Learn what belongs in your system prompt vs. Claude Skills (SKILL.md) vs. file attachments and MCP. Avoid context rot with progressive disclosure.
- **Best Claude Skills & How to Build Your First SKILL.md Folder** (https://www.promptai.how/blog/best-claude-skills): Learn what Claude Skills are, how SKILL.md progressive disclosure works, and the 5 best Claude Skills to build for writing, SEO, design, and coding.
- **Marketing Skills for Claude: Reusable Playbooks for SEO & Copy** (https://www.promptai.how/blog/marketing-skills-claude): Build high-ROI marketing skills for Claude using SKILL.md. Includes copyable workflows for competitor mapping, GSC SEO audits, and Deep Research briefs.
- **How to Stop AI From Writing Like AI (Copy-Paste Voice Rules)** (https://www.promptai.how/blog/how-to-stop-ai-writing-like-ai): Stop ChatGPT, Claude, and Gemini from sounding robotic. Copy-paste positive replacement rules, formatting guardrails, and few-shot voice templates.
- **ChatGPT vs. Claude vs. Gemini: How to Prompt Each Model in 2026** (https://www.promptai.how/blog/chatgpt-vs-claude-vs-gemini-prompting): Learn the exact prompting differences between ChatGPT, Claude, and Gemini in 2026. Official best practices for XML tags, long context, reasoning, and Skills.
