Skip to content
Claude · Cheat Codes

Claude Cheat Codes (2026): Prompt Shortcuts for Anthropic's Model

Claude responds especially well to structured, XML-tagged prompts and role framing. These shortcuts express intent in a way that plays to Claude 3.5/4 Sonnet and Opus strengths — long-form reasoning, faithful summaries, and safe refusals.

Updated 2026-07-28

🧠 Reasoning & Analysis

Cheat CodeUseExample
/thinkEnable extended thinking/think plan a 12-week course
/chainofthoughtShow reasoning steps/chainofthought debug SQL
/critiqueCritique the given text/critique this pitch deck copy
/redteamAttack your own plan/redteam launch strategy
/steelmanBest version of opposing view/steelman remote-first
/assumptionsSurface hidden assumptions/assumptions our pricing model
/tradeoffsName the trade-offs/tradeoffs Postgres vs Mongo

📚 Long-Context (200K)

Claude handles very long inputs — use these to steer what it does with them.

Cheat CodeUseExample
<document>…</document>Tag source material<document>{paste}</document>
/faithfulOnly use provided text/faithful summarise <document>
/citeQuote sources inline/cite claims with page numbers
/extractPull structured fields/extract names, dates, amounts
/dedupeRemove duplicate points/dedupe these bullet lists
/indexBuild a topical index/index this 80-page PDF
/redactMask PII in output/redact emails and phones

✍️ Writing (Claude excels here)

Cheat CodeUseExample
/rewriteRewrite in same tone/rewrite tighter, keep voice
/editorialEditor pass/editorial line edit this essay
/toneShift tone/tone warm but direct
/styleMatch a style sample/style <sample>…</sample>
/humanizeSound less AI/humanize this LinkedIn draft
/explainerLong-form explainer/explainer VAT for freelancers
/faqConvert to FAQ/faq this help article

💻 Claude Code / Coding

Cheat CodeUseExample
/planPlan before coding/plan a rate limiter
/writeWrite the code/write the module from plan
/testGenerate tests/test edge cases too
/reviewReview a diff/review <diff>…</diff>
/refactorRefactor safely/refactor extract handlers
/typescriptTS-first output/typescript strict, no any
/nofluffCode only, no prose/nofluff /write

🤖 Roles & Guardrails

Cheat CodeUseExample
/actasAdopt a role/actas senior legal writer
/audienceSet the reader/audience non-technical CFO
/formatLock the output shape<format>markdown table</format>
/constraintsHard constraints<constraints>≤200 words</constraints>
/safeRefuse if unsafe/safe legal boundaries only
/uncertainFlag uncertainty/uncertain rate 0-1 per claim

⭐ The Master Formula

Stack shortcuts inside a structured prompt to get repeatable, high-quality output every time.

<role>Senior policy writer</role>
<task>{what you want}</task>
<document>{paste sources}</document>
<format>Markdown with H2s, tables where useful</format>
<constraints>Max 600 words. Cite from <document> only.</constraints>

Frequently asked questions

Does Claude actually parse XML tags?

It doesn't 'parse' them, but Anthropic's own docs recommend XML tags because Claude was trained to treat them as strong structural signals.

Is extended thinking always better?

No. Use /think for planning, multi-step reasoning, or ambiguous problems. For simple rewrites it just adds latency.