How-To
Step-by-step guides with video, screenshots and code. Set up your tools, connect integrations, fix errors and ship faster. Search or filter by category, then follow each guide one step at a time.
New guides in your inbox
Fresh step-by-step how-to guides as we publish them. One email a week, no more.
How to Install Claude Code on macOS
Install the Claude Code CLI on a Mac, authenticate it, and confirm the install works before you point it at a real project.
How to Install Claude Code on Windows with WSL
Set up Windows Subsystem for Linux, install Claude Code inside it, and run the CLI from a real Linux shell on Windows.
How to Install Claude Code on Windows Natively (No WSL)
Install Claude Code straight on Windows with the PowerShell installer or WinGet, no WSL required, then authenticate and confirm it runs from any terminal.
How to Start Your First Project with Claude Code
Open Claude Code in a real folder, ask it to make a small change, and review and accept the edit safely.
How to Create a CLAUDE.md File for Your Project
Generate or hand-write a CLAUDE.md so Claude Code knows your conventions, commands, and project layout from the first message.
How to Layer Global, Project, and Local CLAUDE.md Files
Use a personal global memory, a shared project CLAUDE.md, and an untracked local override so each layer holds the right kind of instruction.
How to Configure Claude Code with settings.json
Edit the user and project settings files to set your model, environment variables, and defaults without touching every session.
How to Set Up a Permissions Allowlist in Claude Code
Pre-approve safe commands and block dangerous ones so the agent stops asking about routine actions but still pauses before risky ones.
How to Connect an MCP Server to Claude Code
Add a Model Context Protocol server so Claude Code can use external tools like a database, browser, or docs source.
How to Add a Custom Slash Command in Claude Code
Save a reusable prompt as a Markdown file so a single slash command runs your repeatable workflow on demand.
How to Use Claude Code Inside VS Code
Install the VS Code extension so Claude Code edits appear as inline diffs in the editor instead of only in the terminal.
How to Fix command not found After Installing Claude Code
Diagnose and repair a PATH problem so the claude command runs from any terminal after install.
How to Add a Filesystem MCP Server to Claude Code
Give Claude Code structured read and write access to a specific folder through the official filesystem MCP server.
How to Connect the GitHub MCP Server to Claude Code
Let Claude Code read issues, review pull requests, and search code across your GitHub repositories through a remote MCP server.
How to Create Your First Subagent in Claude Code
Build a reusable, specialized subagent with its own prompt and tool access using the /agents command.
How to Restrict the Tools a Subagent Can Use
Lock a subagent down to a minimal, safe tool set so it can only do the one job it was built for.
How to Block Risky Commands with a Claude Code Hook
Use a PreToolUse hook to inspect Bash commands before they run and deny dangerous ones automatically.
How to Auto-Format Files After Edits with a PostToolUse Hook
Run Prettier automatically every time Claude Code writes or edits a file using a PostToolUse hook.
How to Create a Custom Slash Command in Claude Code
Turn a repeated prompt into a one-word slash command by saving a Markdown file in .claude/commands.
How to Pass Arguments to a Claude Code Slash Command
Make slash commands dynamic with $ARGUMENTS and positional placeholders so one command handles many inputs.
How to Manage MCP Server Scopes in Claude Code
Choose between local, project, and user scope so each MCP server is shared or private exactly as intended.
How to Debug a Failing MCP Server in Claude Code
Diagnose why an MCP server shows as failed using the /mcp panel, the CLI, and verbose logging.
How to Get a Notification When Claude Code Finishes a Task
Use a Stop hook to fire a desktop or sound notification the moment Claude Code finishes responding.
Claude Code Hooks Explained: Events, Config, and Blocking
How Claude Code hooks work end to end: the lifecycle events you can hook, the settings.json structure, and how a hook blocks or approves an action.
How to Generate Unit Tests for a Function with Claude Code
Point Claude Code at a single function and get a focused, runnable test file in your project's existing test framework.
How to Raise Test Coverage on a Specific File with Claude Code
Use a coverage report to find untested branches in one file and have Claude write tests that target only the gaps.
How to Refactor a Long Function Safely with Claude Code
Pin behavior with a test first, then have Claude break a long function into smaller pieces without changing what it does.
How to Debug a Failing Test with Claude Code
Feed Claude Code the failing test output and let it trace the root cause instead of guessing at fixes.
How to Review Your Own Diff Before Committing with Claude Code
Run a focused self-review of your staged changes with Claude Code to catch bugs and leftovers before they land.
How to Review a Teammate's Pull Request with Claude Code
Check out a PR locally and have Claude Code summarize the change and flag risks so your review is faster and deeper.
How to Add an Integration Test for an API Route with Claude Code
Have Claude Code write an end-to-end style test that hits a real route handler and asserts status, body, and side effects.
How to Rename a Symbol Across the Codebase with Claude Code
Rename a function, type, or variable everywhere it is used without missing call sites or breaking imports.
How to Debug a Runtime Error from a Stack Trace with Claude Code
Turn a production stack trace into a located, explained bug by handing Claude Code the trace and the relevant files.
How to Find Which Commit Broke a Test with Claude Code
Pair git bisect with Claude Code to locate the exact commit that introduced a regression and explain why.
How to Teach Claude Code Your Test Conventions with CLAUDE.md
Write a project CLAUDE.md so every test, refactor, and fix Claude Code produces matches your team's conventions.
How to Give a Coding Agent a Clear Stop Condition
Define done up front so an agent finishes the task instead of looping, over-editing, or asking what to do next.
How to Make an Agent Plan Before It Edits
Ask for a written plan first so you can correct the approach before any file changes, saving rework on bigger tasks.
How to Pin a Specific Model for One Project
Set a model per project so everyone on the repo gets consistent behavior without passing a flag each session.
How to Keep an Agent Session Focused by Clearing Context
Clear stale context between unrelated tasks so the agent stops dragging earlier work into a fresh request.
How to Use Claude Code Slash Commands (Full List + Examples)
Every built-in Claude Code slash command explained with real examples, plus how custom commands and skills add your own.
How to Add Custom Slash Commands to Claude Code (Arguments + Frontmatter)
Write project-specific slash commands that run a prepared instruction with one keystroke, pass arguments, and pre-approve tools with frontmatter.
How to Set Up Hooks for Automation in Claude Code
Run shell commands automatically at key points in Claude Code's lifecycle: auto-format code, block dangerous commands, send notifications, and enforce project rules without manual intervention.
How to Add Any MCP Server to Claude Code
Learn the claude mcp add command, the difference between stdio and remote servers, where the config lives, and how to verify a server with /mcp.
Best MCP Servers for Coding in 2026
A short, verified list of the MCP servers worth adding to Claude Code for real coding work, with what each one does and the exact command to install it.
Context7 Alternatives: MCP Servers for Up-to-Date Docs
What Context7 does, when you might want something else, and the real MCP servers that keep Claude Code reading current documentation instead of stale guesses.