Skills
Work with an AI coding agent like a senior engineer — commands, context, skills, hooks, MCP and scaling.
From the first claude in a terminal to running agents in CI: the commands and shortcuts, how context and CLAUDE.md shape results, skills, subagents and hooks, MCP connections, model choice, cost control, scaling out and staying secure. Each subject links the official Claude Code documentation.
The subjects follow the roadmap.sh Claude Code roadmap.
Claude Code is Anthropic's agentic coding tool: it reads your codebase, edits files, runs commands and iterates until a task is done, with you approving what it does. Learn what an agent is and how its loop works before learning the commands.
Building software by describing what you want and accepting what the AI writes with little review. Fine for prototypes; for real projects you stay the engineer — plan, review diffs and test.
An AI that does not just suggest code but takes actions — reading files, editing, running tests and shell commands — to complete a goal, checking its own results along the way.
Gather context, take an action with a tool, look at the result, decide the next step — repeated until done. Good prompts, tests and CLAUDE.md make each turn of the loop better informed.
Understanding an unfamiliar codebase, fixing bugs from an error message, refactoring, writing tests, reviewing PRs, writing commit messages and docs, and automating chores in CI.
The same agent runs in several places: the terminal CLI, IDE extensions, the desktop app, the web and your phone. Sessions and configuration carry across, so pick whichever surface fits the moment.
The original and most complete surface: run claude in a project directory. Everything else in this roadmap works here first.
VS Code (and forks like Cursor) and JetBrains integrations show diffs inline, share your selection and open files as context.
A graphical app for macOS and Windows running local sessions with visual diffs, parallel sessions and scheduled tasks.
Start and steer sessions from your phone — through the Claude app, remote control of a session running on your machine, or channels that push messages from chat apps.
An ecosystem around Claude Code: usage trackers like ccusage, apps that run many agents in parallel, and community plugins, skills and MCP servers.
Install it, sign in with a subscription or an API key, and learn the core concepts every later subject builds on: context, permission modes, models, tools and slash commands — and how CLAUDE.md, skills, subagents, hooks, MCP and plugins differ.
Install with the native installer (or npm), run claude in a repo, log in, and run /doctor if anything looks off.
Pro, Max, Team and Enterprise plans include Claude Code with usage limits that reset on a schedule — predictable cost for daily use.
Pay per token with a Claude Console API key, or through Amazon Bedrock, Google Vertex AI or Microsoft Foundry — common for teams and automation.
Everything the model sees this session: the system prompt, CLAUDE.md, files read, tool results and the conversation. It is finite — the quality of the work depends on keeping it relevant.
Permission modes decide how much Claude may do without asking: default (asks before edits and commands), accept edits, plan (read-only), auto, and bypass for sandboxes only.
Choose Opus, Sonnet or Haiku per session or per task, trading capability against speed and cost.
The built-in actions Claude can take — Read, Edit, Write, Bash, Grep, Glob, WebFetch, WebSearch and more — each governed by permission rules.
Type / for built-in commands (/clear, /compact, /model…) and your own: skills you write appear here too.
CLAUDE.md is always-on project knowledge; skills are knowledge loaded on demand; subagents are separate workers with their own context; hooks are deterministic scripts on events; MCP connects external tools; plugins package all of these for sharing.
A handful of keys make the terminal UI fast: interrupting, rewinding, switching modes, and prefixes that change what your input means.
Cancels the current input or generation; press it twice to exit.
Searches your prompt history backwards, like in a shell.
Interrupts Claude mid-task without losing the conversation, so you can correct course right away.
Pressed twice, opens the rewind menu to jump back to an earlier message — and optionally restore the code to that point.
Cycles permission modes — default, accept edits, plan — without leaving the prompt.
Starts bash mode: the line runs as a shell command and its output lands in the conversation as context.
A backslash before Enter inserts a new line, for multi-line prompts in any terminal.
Mentions a file or folder with autocomplete, pulling it into context directly — faster and more precise than describing where code lives.
How you start a session decides what it can see and whether it is interactive. These flags cover daily use, scripting and picking up where you left off.
Starts an interactive session in the current directory, which becomes the project Claude works in.
Starts an interactive session with a first prompt already sent.
Print mode: runs one prompt non-interactively and prints the result — for scripts, pipes (cat log | claude -p "explain") and CI.
Continues the most recent conversation in this directory.
Resumes a specific earlier session — by id, by name, or from an interactive picker.
Gives the session access to more directories than the one it started in — a sibling repo or a shared library.
Slash commands manage the session itself: help, usage and cost, exporting, health checks and settings. Learn these early; you will use them every day.
Lists the commands available right now, including your own skills and plugins.
Shows how much of your plan's usage limits you have used and when they reset.
Token usage and estimated spend for the session — mainly useful when paying per token through the API.
Starts a fresh conversation in the same session — use it between unrelated tasks so old context does not leak in.
Version, model, account and connection status at a glance.
Opens the settings interface — theme, model, notifications and more — instead of editing settings.json by hand.
Checks the installation and configuration for problems — the first thing to run when something is off.
Exports the conversation to a file or the clipboard, for sharing or keeping a record.
Ends the session; you can resume it later.
The reliable loop for real work: explore the code, plan before editing, implement in small verified steps, then commit. Permission modes, plan mode, sessions and checkpoints are the controls that keep you in charge.
Claude explores and proposes a plan without changing anything; you review and approve before it edits. Use it for anything bigger than a small fix.
Switches straight into plan mode from the prompt.
Default asks for edits and commands, accept-edits trusts file changes, plan is read-only, auto lets a classifier approve safe actions, and bypass skips checks — only inside a sandbox.
View and edit allow, ask and deny rules — for example allowing Bash(npm test:*) so routine commands stop prompting.
Each conversation is saved; name sessions, run several in parallel, and pick them up again later.
Pick up a previous session with its full history — claude -c, claude -r or /resume inside a session.
Checkpoints let you roll back the conversation, the code, or both to an earlier point when an approach goes wrong.
Opens the checkpoint list to choose what to restore — the same as pressing Esc twice.
Usage limits and token bills are driven by context size. Keep sessions focused, clear between tasks, delegate noisy work, and be selective about extensions that load into every request.
Subscriptions cap usage over time windows; the API bills input, output and cached tokens per model. Opus costs more per token than Sonnet, and Haiku least.
/clear when switching tasks; /compact with instructions when a long task needs to continue with a summary instead of the full history.
Every MCP server's tool definitions and every always-loaded instruction cost tokens on each request. Disable what a project does not need.
Send exploratory searches and log reading to a subagent so only its summary returns, and let hooks handle formatting and checks without spending model turns.
Claude Code reuses the unchanged start of each request from cache, which is much cheaper and faster. Switching models or rewriting early context mid-session throws the cache away.
Persistent instructions loaded into every session: how to build and test, conventions, architecture and gotchas. It is the highest-leverage file in a Claude Code project — keep it short, specific and current.
Commands to run, code style, architecture notes and things Claude keeps getting wrong — as concise bullet points. Import other files with @path rather than pasting them in.
Organisation policy, the project (./CLAUDE.md, shared through git), your user file (~/.claude/CLAUDE.md) for personal preferences, and files in subdirectories loaded when Claude works there.
Analyses the codebase and writes a starting CLAUDE.md for you to trim and refine.
Opens your memory files for editing, so you can fix an instruction the moment you notice it is missing or wrong.
Skills are folders of instructions, scripts and resources that Claude loads only when a task needs them — only their short description sits in context until then. They turn repeatable know-how into a reusable /command.
A SKILL.md with a name and a description that says when to use it, in .claude/skills/ (project) or ~/.claude/skills/ (personal), plus any scripts or reference files it needs.
Write a precise description so the skill triggers at the right time, keep the main file short and link details, prefer scripts for deterministic steps, and test it on real tasks.
Pair an MCP server with a skill that teaches Claude how and when to use its tools well — the server gives access, the skill gives judgment.
Specialised assistants with their own context window, system prompt, tools and model. Delegating keeps the main conversation clean: the subagent does the noisy work and returns only a summary.
Markdown files with frontmatter (name, description, tools, model) in .claude/agents/ or ~/.claude/agents/. Restrict tools to what the role needs — a reviewer may not need Edit.
Create, edit and list subagents interactively, including generating one from a description.
Hooks run your own commands at fixed points in Claude's lifecycle — guaranteed, unlike instructions the model might forget. Use them to format after edits, block dangerous commands, inject context or notify you.
Each hook names a lifecycle event and, for tool events, a matcher such as Edit|Write or Bash that selects which tools trigger it.
Command hooks run a shell command; prompt-based hooks ask a model to judge the situation, for decisions that need understanding rather than a script.
Hooks receive JSON on stdin (session, tool name, tool input). Exit code 2 blocks the action and shows stderr to Claude; JSON output can allow, deny, ask or add context.
Shows the hooks configured across your settings files.
Runs when a session begins or resumes — load recent context such as open issues or the current branch.
Runs before your prompt is processed — validate it or add context automatically.
Runs before a tool call and can block it — the place to forbid edits to protected files or risky shell commands.
Runs after a tool succeeds — run the formatter or linter on edited files and feed problems back to Claude.
Runs when Claude finishes responding — run tests, or tell Claude to keep going if the work is not done.
Runs when the session ends — clean up temporary files or log what happened.
/loop reruns a prompt on an interval inside an open session — watch a deploy, babysit a pull request, poll a queue. Give it an interval for a fixed schedule, or let Claude pace itself.
Output quality drops as the context window fills with stale material. Watch how full it is, compact or clear at the right moments, and keep big exploration in subagents.
A status line under the prompt can show the model, git branch, context usage or cost. Configure a command in settings that receives session JSON on stdin and prints one line — or ask /statusline to write it for you.
The Model Context Protocol connects Claude to external tools and data — issue trackers, databases, browsers, design tools. Add servers per project or per user, authenticate, and only trust servers you would trust with the same access yourself.
Run prompts on a schedule: /loop while a session is open, one-off reminders, and scheduled tasks or routines that run without you — a nightly dependency check, a morning issue summary.
Match the model to the job: the strongest for hard reasoning and planning, faster ones for routine edits and subagents. Set a default in settings and switch per session as the work changes.
Switches model mid-session, and sets effort where the model supports it.
The most capable model — complex refactors, architecture, subtle bugs and long autonomous tasks, at the highest cost.
The balanced everyday model: strong coding at lower cost and higher speed than Opus.
The fastest, cheapest model — good for simple edits, quick questions and lightweight subagents.
A model setting that uses Opus while in plan mode and switches to Sonnet to carry the plan out — strong reasoning where it matters, lower cost for the typing.
Extended thinking and effort levels control how much the model reasons before acting. Raise them for hard design or debugging problems; lower them for speed on simple work.
Output styles change how Claude talks to you by adjusting its system prompt: the default concise engineer, Explanatory (adds insights about the code), Learning (leaves parts for you to write), or your own custom style.
Plugins bundle skills, subagents, hooks, commands and MCP servers into one installable package, distributed through marketplaces. Install a team's setup in one step, or package your own.
Plugins that connect a language server (LSP), giving Claude go-to-definition, references and type information like an IDE instead of text search.
Go beyond one session at your keyboard: run Claude headless in scripts and CI, several sessions in parallel on separate worktrees, coordinated teams of agents, and sessions that react to outside events.
claude -p with --output-format json or stream-json and pre-approved tools runs Claude in scripts, CI and pipelines; the Agent SDK embeds the same loop in your own programs.
Each parallel session gets its own checkout of the repo, so several Claudes can work on different branches without overwriting each other.
An experimental mode where a lead session coordinates several teammate sessions working in parallel and messaging each other — for big tasks that split cleanly.
MCP-based channels push messages, alerts and webhooks from chat apps and services into a running session, so Claude can react while you are away.
An agent that runs commands needs boundaries. Keep permission prompts on outside sandboxes, deny access to secrets, review what MCP servers and plugins can do, watch for prompt injection in fetched content, and review every diff before it ships.
Anthropic's vulnerability scanning for codebases: Claude finds security issues, verifies them to cut false positives, and proposes fixes for people to review.