AI & Developer Tools

Claude Prompts and Shortcuts Cheat Sheet

Claude-focused prompting patterns plus a surface-labelled set of verified Claude Code commands.

Jurisdiction
Global — Claude and Claude Code
Applies to
Anthropic documentation checked 16 November 2026
Last verified
16 November 2026

At a glance

  • Claude’s current guidance emphasizes clear, direct instructions, context and representative examples.
  • For long documents, place source material before the final question and label documents consistently.
  • Slash commands listed here are for Claude Code; they are not claimed for the consumer web chat.

Structured Claude prompt

<context>
[Background and source material]
</context>
<task>
[Specific task]
</task>
<constraints>
[Scope, tone, length, exclusions]
</constraints>
<output_format>
[Required structure]
</output_format>

Before answering, identify missing evidence; do not invent it.

Claude-specific techniques

  • Use descriptive XML tags when instructions, examples and multiple documents could blur together.
  • Provide 3–5 relevant and diverse examples when exact output style matters.
  • For long context, put documents near the top and the query after them.
  • State desired concision and formatting rather than assuming a default.

Claude Code commands

CommandVerified Claude Code purpose
/helpShow help and available commands.
/modelChoose the model and, where supported, effort.
/compactSummarize context to free window space.
/diffReview working-tree changes.
/clearStart a new conversation with empty context.
/permissionsManage allow, ask and deny rules.
/doctorDiagnose setup and configuration issues.

Practical answers

Frequently asked questions

Use these answers with the dated scope and authoritative sources shown on this page.

What is Claude Prompts and Shortcuts?

Claude-focused prompting patterns plus a surface-labelled set of verified Claude Code commands.

What are the most important points about Claude Prompts and Shortcuts?

Claude’s current guidance emphasizes clear, direct instructions, context and representative examples. For long documents, place source material before the final question and label documents consistently. Slash commands listed here are for Claude Code; they are not claimed for the consumer web chat.

How should I use this claude prompts and shortcuts cheat sheet?

Read the sections on Structured Claude prompt, Claude-specific techniques, Claude Code commands, then use the Copy Claude prompt block where it fits your situation. Keep the inputs and assumptions with the copied result so somebody else can review it.

Which jurisdiction and effective date does this page cover?

It covers Global — Claude and Claude Code and is labelled for Anthropic documentation checked 16 November 2026. Rules from another jurisdiction, tax year, product version or contract may produce a different answer.

What should I verify before acting on it?

Confirm exceptions and later changes in the linked material from Anthropic. The page was last verified 16 November 2026; provider terms, forms, thresholds, software features and local rules can change after that date.

Authoritative sources

Use the linked source for current instructions and exceptions before acting.

Educational reference only. It is not legal, tax, accounting, lending, insurance or investment advice.