Skip to content

Lesson 25 ยท Projects and Reference

Claude Glossary and Cheat Sheet

A quick reference to Claude terms, prompting patterns, Claude Code commands, API fields, stop reasons and safety checks, with a short self-test quiz to finish.

Use this page to look things up after the course. Product details here are as of December 2026 and can change, so confirm them in the official documentation. This tutorial is independent of Anthropic.

Glossary

Term Meaning
Agent A system in which a model chooses steps and uses tools in a loop
API key A secret that authorizes API requests, which are billed to you
Artifact A reusable output that opens beside the chat
CLAUDE.md An instruction file that Claude Code loads as context
Claude Code Anthropic's coding agent
Connector A link between Claude and another service
Content block One typed part of a message, such as text or tool use
Context window The input a model can consider at once, plus room for its reply
Effort A setting for how much work the model puts into a response
Hallucination A plausible but false or unsupported statement
Hook A command that Claude Code runs at a set point
MCP Model Context Protocol, a standard for connecting tools and data
Prompt caching Reuse of an identical, already processed prompt prefix
Prompt injection Content that tries to override the user's intent
Skill A folder of instructions and files that is loaded when relevant
Structured outputs Responses constrained to a JSON Schema
Subagent A helper agent with its own context
System prompt Top-level instructions in an API request
Token A unit of text that models read and produce
Tool use Claude requesting a function that is then run for it

Prompting cheat sheet

TEXT
1. Goal and purpose
2. Audience
3. Context and material (in descriptive XML tags)
4. Constraints, with reasons
5. Output format
6. Examples: relevant, varied, correct
7. Long documents first, the question after them
8. "If it isn't in the sources, say so."

Claude Code cheat sheet

Task Command or file
Start a session claude
One-off scripted request claude -p "..."
Continue the latest conversation claude -c
Empty the context / summarize it /clear / /compact
Review changes / go back /diff / /rewind
Project instructions CLAUDE.md, /init, /memory
Permissions /permissions, --permission-mode plan
Skills .claude/skills/<name>/SKILL.md
Subagents .claude/agents/
MCP servers claude mcp add, /mcp
Hooks settings.json, /hooks

API cheat sheet

Python
client = anthropic.Anthropic()          # key from ANTHROPIC_API_KEY

response = client.messages.create(
    model="claude-opus-5-5",            # required
    max_tokens=4000,                    # required: output ceiling
    system="...",                       # optional, top-level
    messages=[{"role": "user", "content": "..."}],  # required
    output_config={"effort": "medium"},  # low, medium, high, xhigh, max
    # also optional: tools=[...], thinking={"type": "adaptive"}
)
text = "".join(b.text for b in response.content if b.type == "text")
Model ID Input / output, USD per million tokens
claude-fable-5-2 8 / 40
claude-opus-5-5 4 / 20
claude-sonnet-5-5 2 / 10
claude-haiku-5-5 0.10 / 0.50 up to 100K-token prompts; 0.50 / 2.50 beyond
stop_reason What to do
end_turn, stop_sequence Use the result after validating it
max_tokens, model_context_window_exceeded Treat it as truncated
tool_use Run the tools and return results
pause_turn Send the content back to continue
refusal Handle the declined request

Remember: do not send the sampling parameters (temperature, top_p, top_k) under the current API version, budget_tokens on the 5.5 models, or assistant prefill on current models. Do not force tool_choice on Fable 5.2, Opus 5.5 or Sonnet 5.5.

Safety checklist

  • May I share this data, and does the task need it?
  • Did I check facts, numbers, citations and code?
  • Does each tool have the least access that it needs?
  • Does a person approve actions that are hard to undo?
  • Is untrusted content treated as data?
  • Are there limits on steps and spending?

Test yourself

This small program prints flash cards. Cover the answers, say them aloud, then check. Add the terms you already know to the hidden set.

Python Flash cards for key terms

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Where to learn more

A final routine

Before any task that matters, run through five short questions. What exactly do I want, and for whom? What does Claude need to know that only I can tell it? How will I check the result? What data am I sharing, and may I share it? What could happen if an action is wrong, and who approves it?

These questions work in a chat, in Claude Code and in an API program. Products and model names will change, but this routine will stay useful.

Keep your own notes

Copy the parts of this sheet that you use into your own notes, and add the date. Next to each one, keep a prompt, command or snippet that you have personally tested. Your tested examples will serve you better than any general list.

Common mistake: copying a value from a cheat sheet into production months later without checking it. Model IDs, prices, commands and limits change.

Check your understanding

Quick check ยท 4 questions

of 4 answered You scored / 4 ยท perfect!

  1. 1. Which three fields are required in a basic Messages request?

    The system prompt, tools and output settings are optional.
  2. 2. Which stop reason asks you to run a function?

    Run the tool and return a tool_result.
  3. 3. Which feature runs a command at a fixed point in Claude Code?

    Hooks run at lifecycle events.
  4. 4. Which is the safest way to limit what an agent can delete?

    Access that does not exist cannot be misused.

Summary

  • Prompt with a purpose, context, constraints and checks.
  • In code, filter content blocks and handle every stop reason.
  • Limit access, verify output and check the current documentation.
  • Return to the Claude tutorial overview to review any chapter.

Next: Back to the Claude Tutorial

Your progress is saved in this browser. No account needed.