Everything AI
Everything AI tutorial

Claude Code Beginner's Guide

A practical walkthrough for getting started with Claude Code, from the first install to workflows, context management, custom instructions, MCP, hooks, and power-user habits.

Level
Beginner
Format
Article + videos
Sections
17 chapters
Focus
Build with AI coding agents
Chapter 01

What is Claude Code?

Claude Code is an AI-powered coding assistant made by Anthropic. Think of it as having a smart teammate that lives inside your computer's terminal (or code editor) and can build things for you — websites, automations, apps, data analysis, and more.

You describe what you want in plain English. Claude Code reads your files, writes code, runs commands, and asks for your permission before making changes. It is not just a chatbot — it actually creates and edits files on your computer.

How is it different from ChatGPT or Claude.ai?

Regular AI chatbots give you text responses you have to copy-paste. Claude Code works directly with your files. It reads your entire project, makes coordinated edits across multiple files, runs your tests, and commits your changes to git — all from a single conversation.

Where can you use it?

  • Terminal (command line)
  • VS Code (code editor extension)
  • Desktop app (Mac and Windows)
  • Web app (claude.ai/code)
  • JetBrains IDEs (IntelliJ, PyCharm, WebStorm)

What can you build with it?

  • "Build a landing page for my product"
  • "Create an automation for contract handling"
  • "Analyze this spreadsheet and give me insights"
  • "Build a Discord bot that posts daily updates"
  • "Create a portfolio website from scratch"
  • "Build a Chrome extension"

No coding experience required. If you can describe what you want, Claude Code can build it.

Chapter 02

How Claude Code Works

Claude Code follows a loop called the agentic loop. Here is what happens when you give it a task:

  1. You ask — describe what you want in plain English
  2. Claude gathers context — reads your files, searches your project, understands the code
  3. Claude takes action — writes code, creates files, runs commands
  4. Claude asks permission — shows you what it wants to change and waits for your approval
  5. Claude verifies — runs tests, checks for errors, confirms everything works
  6. Repeat — if something needs fixing, Claude loops back and tries again

You can interrupt at any point to steer Claude in a different direction. It works autonomously but stays responsive to your input.

The Context Window

Think of the context window as Claude's working memory. Every prompt you type, every file Claude reads, and every command it runs takes up space in this memory. There is a limit, so it is important to manage it (more on this later).

Built-in Tools

Claude Code comes with tools to:

  • Read and edit files
  • Search your project with patterns
  • Run terminal commands (build, test, git)
  • Search the web for documentation
Chapter 03

What You Need to Get Started

Before installing Claude Code, make sure you have:

1. A computer (Mac or Windows)

2. An internet connection

  1. A Claude account. You need a Claude Pro or Max subscription to use Claude Code. Sign up at claude.ai.

4. That is it. No coding experience needed.

What is a terminal?

A terminal is the text-based app where you type commands instead of clicking buttons. Every computer has one built in:

  • Mac: Open the Terminal app (find it in Applications > Utilities, or search "Terminal" with Spotlight)
  • Windows: Open PowerShell (search "PowerShell" in the Start menu)

You type a command, press Enter, and the computer does it. That is all a terminal is.

What is VS Code? (Optional but Recommended)

VS Code is a free code editor made by Microsoft. It shows your files on the left, your code in the middle, and has a built-in terminal at the bottom — all in one window. It makes working with Claude Code much easier.

Download it here: Visual Studio Code

Chapter 04

Installing Claude Code

Step 1: Install Claude Code

Open your terminal and paste one of these commands:

Mac or Linux

curl -fsSL https://claude.ai/install.sh | bash

Windows PowerShell

irm https://claude.ai/install.ps1 | iex

Alternative methods

  • Homebrew (Mac): brew install --cask claude-code
  • WinGet (Windows): winget install Anthropic.ClaudeCode

On Windows, installing Git for Windows is recommended so Claude Code can use the Bash tool. Without it, Claude Code uses PowerShell instead.

Step 2: Start Claude Code

Open your terminal and type:

claude

Step 3: Sign in

A browser window opens automatically. Sign in with your Claude account. Your credentials are saved — you only need to do this once.

VS Code Extension (Optional)

If you use VS Code, search for "Claude Code" in the Extensions panel (Ctrl+Shift+X on Windows, Cmd+Shift+X on Mac) and install it. Then open the Command Palette (Ctrl+Shift+P / Cmd+Shift+P), type "Claude Code", and select Open in New Tab.

Chapter 05

Your First Prompt

Now that Claude Code is installed, let's use it.

Step 1

Open your terminal (or VS Code's built-in terminal with Ctrl+`` on Windows or Cmd+`` on Mac)

Step 2

Navigate to a project folder:

cd path/to/your/project

Or create a new one:

mkdir my-first-project
cd my-first-project

Step 3

Start Claude Code:

claude

Step 4

Type your first prompt. Try something like:

Create a simple personal webpage with my name, a short bio, and a contact section. Make it look modern and clean.

Watch what happens:

  • Claude scans the folder
  • Creates HTML/CSS files
  • Shows you what it wants to do
  • Asks for your approval before writing files

Once approved, open the file in your browser to see the result.

Pro tip — Run /init on every project

Type /init and Claude scans your entire project and generates a claude.md file — a cheat sheet that maps out your project's structure, conventions, and key files. Next session, Claude already knows all of it. No need to re-explain.

Chapter 06

The Daily Workflow: Explore, Plan, Code, Commit

This is the core loop you will use with Claude Code every day. It comes from Anthropic's official course.

1. Explore Start by asking Claude to understand your code:

Look at this project and explain what each file does

Or run /init to have Claude automatically scan and map your project.

2. Plan Before building anything, enter Plan Mode by pressing Shift+Tab. In Plan Mode, Claude can read and research your code, but it will not change anything until you approve.

Claude will:

  • Outline the steps it plans to take
  • Ask clarifying questions
  • Map out the approach before writing a single line of code

Tip: Tell Claude: "Ask me questions until you are 95% confident you understand exactly what I need." This alignment up front prevents rounds of revisions later.

3. Code Once you approve the plan, switch out of Plan Mode and tell Claude to execute. Claude reads files, writes code, and runs tests.

Tip: Give Claude problems, not commands. Instead of "Write a login function," try "How should we handle user authentication?" When Claude reasons through the approach itself, the output quality improves.

4. Commit When you are happy with the result:

Commit my changes with a descriptive message

Claude creates a git commit for you. Git is a version control system that saves snapshots of your project — think of it as an "undo history" for your entire project.

Chapter 07

Context Management

The context window is Claude's memory during a conversation. Every prompt, file read, and command output takes up space. When it fills up, Claude's performance drops. Managing context is one of the most important skills to learn.

Key Commands

/context — See exactly what is eating your tokens. Claude breaks down system prompts, file contents, MCP servers, and more into percentages.

/compact — Compress your conversation history. Use this when context hits roughly 60%. You can tell Claude what to keep:

/compact but keep all API decisions and database schema

Claude shrinks the rest while preserving what matters.

/clear — Wipe the conversation for a completely fresh start. Your claude.md and project files remain intact.

Best Practices

  • Keep context small: do not dump your entire codebase into a conversation. Give Claude only what it needs for the current task.
  • Break big problems into small, focused steps.
  • If Claude starts going down the wrong path, hit Escape to stop it. Correct course and re-prompt. Every token spent in the wrong direction is wasted context.
Chapter 08

Code Review with Claude Code

Claude Code is great at reviewing code — yours or anyone else's. Ask it to:

Review this file and suggest improvements for readability and performance

Or for a pull request:

Review my changes and suggest improvements

Tips for better reviews

  • If Claude gives you something that is just "okay," push back. Try: "This is not good enough, try a more elegant approach." Claude often produces dramatically better output on the second try when the bar is set higher.
  • Build verification steps into your workflow. Tell Claude: "Take a screenshot and check that everything looks right before moving on."
  • Once a better approach lands, tell Claude to update your claude.md so the same mistake is not repeated.
Chapter 09

Customizing Claude Code: The CLAUDE.md File

The claude.md file is your project's memory. It loads automatically at the start of every Claude Code session, so Claude always knows your project's conventions, architecture, and rules.

How to create one

Run /init and Claude generates it by scanning your project. Or create it manually — it is just a markdown file in your project root.

What to put in it

  • Project structure and tech stack
  • Build and test commands
  • Coding conventions and style rules
  • Architecture decisions
  • Links to detailed docs

Keep it lean

The claude.md loads into every conversation and takes up context. Keep it under 200 lines. If it grows too large, move detailed docs into separate files and link to them from claude.md — Claude knows where to look without loading everything every turn.

Update it often

Whenever there is a new discovery, new pattern, gotcha, or convention, tell Claude to update the claude.md. Next session, Claude already knows all of it.

Example of a great CLAUDE.md

Andrej Karpathy's CLAUDE.md — four simple behavioral guidelines that prevent common AI coding mistakes:

  1. Think before coding — state assumptions, ask if uncertain
  2. Simplicity first — minimum code that solves the problem
  3. Surgical changes — touch only what you must
  4. Goal-driven execution — define success criteria, loop until verified
Chapter 10

Customizing Claude Code: Subagents

Claude Code can spin up isolated sub-agents — separate Claude instances, each with their own context window and (optionally) their own AI model.

When to use them

  • Complex tasks that can be broken into parallel pieces
  • Research tasks where you want multiple angles explored at once
  • Large codebases where one agent handles frontend and another handles backend

How to use them

Tell Claude in your prompt: "Use sub-agents to work on this in parallel." Claude spins up the agents, they work independently, and report their results back to the main agent.

Cost optimization

You can set cheaper models (like Haiku) on sub-agents for simple tasks like data processing or research, while keeping the main agent on a more powerful model (like Opus) for synthesis and decision-making.

Chapter 11

Customizing Claude Code: Skills

Skills are reusable prompt files that live in your .claude/skills/ directory. Think of them as templates for tasks you do repeatedly.

Examples

  • A code-review skill that defines exactly how to review your codebase
  • A tech-debt skill that scans for technical debt
  • A deploy skill that walks through your deployment checklist

How to use them

  • Create a folder in .claude/skills/ with a SKILL.md file
  • Invoke it with a slash command: /my-skill
  • Or just mention it in natural language: "Run the code review skill"

Share with your team

Commit your skills to GitHub so everyone on the team uses the same workflows.

Pre-built skill framework

Claude Superpowers is a complete development methodology built as composable skills — brainstorming, debugging, test-driven development, code review, and parallel agent workflows. Install it and get a structured approach to every task.

Useful skill libraries from Everything AI

  • Anthropic Official Skills Library — official open-source skills for Claude Code, including document skills, MCP/server-builder examples, Playwright web-app testing, creative skills, and a skill creator.
  • Awesome Claude Skills — community-curated Claude skill examples and resources focused on Claude Code workflows.
  • Awesome Agent Skills — 1000+ cross-platform agent skills compatible with Claude Code, Codex, Gemini CLI, Cursor, and more.
  • Superpowers — a structured skill framework for planning, debugging, test-driven development, code review, and parallel work.
  • n8n skill — skillset for helping Claude Code build reliable n8n workflows.
  • UI UX Pro Max — design intelligence skill for professional UI/UX work.
Chapter 12

Customizing Claude Code: MCP

MCP (Model Context Protocol) is an open standard that lets Claude Code connect to external tools and services. Think of it as giving Claude new superpowers by plugging in integrations.

What you can connect

  • GitHub (read/write repos, PRs, issues)
  • Slack (read/send messages)
  • Databases (query and update data)
  • Google Drive, Notion, Jira, and more
  • Custom internal tools

How to add an MCP server

Use the /mcp command or add it to your project's .mcp.json file.

Context 7 MCP — A Must-Have

Install the Context 7 MCP server. It provides up-to-date documentation for thousands of libraries (React, Next.js, MongoDB, and more). Claude's training data has a cutoff, so it sometimes suggests functions that have been renamed or deprecated. Context 7 pulls current docs before Claude writes any code.

Watch your context

MCP servers load tool definitions into your context. If tokens are tight, consider hitting a direct API endpoint instead of loading a full MCP server with dozens of tools you do not need.

Useful integrations from Everything AI

Chapter 13

Customizing Claude Code: Hooks

Hooks are automated actions that run when certain events happen in Claude Code — like auto-formatting a file after every edit, running lint before a commit, or playing a notification sound when Claude finishes a task.

How to set them up

Type /hooks in Claude Code, or describe what you want in natural language:

Set up a notification sound when you finish a task

Hooks are defined in your .claude/settings.json file and run shell commands in response to events like PostToolUse (after Claude uses a tool) or PreToolUse (before Claude uses a tool).

Common uses

  • Auto-format files after edits (e.g., run Prettier)
  • Play a sound when Claude finishes
  • Run tests after code changes
  • Send a notification to your phone

This frees you to work on something else while Claude runs — you will hear when it needs your attention.

Chapter 14

What Can You Build?

Here are real examples of prompts you can give Claude Code:

  • "Build a landing page for my product"
  • "Create an automation for contract handling for my business"
  • "Analyze this spreadsheet and give me insights"
  • "Build a Discord bot that posts daily updates"
  • "Create a portfolio website from scratch"
  • "Fix bugs in my existing project"
  • "Build a Chrome extension"
  • "Set up a database and API for my app"

Clone inspiration sites

Take screenshots of sites you like, feed them to Claude, and say "make it look like this." Claude recreates design patterns without producing generic output.

No-SQL data analytics

Connect CLI tools (like BigQuery) to Claude Code and ask plain-English questions like "What were our top 10 revenue sources last quarter?" Claude translates the question into the right query, runs it, and returns the answer.

Chapter 15

Slash Commands Cheat Sheet

Here are all the essential commands you should know:

Command What It Does
/init Scan your project and generate a claude.md
/compact Compress conversation history to free up context
/clear Fresh start — wipe conversation, keep claude.md
/context See what is using your token budget
/rewind Undo — roll back to a previous point
/model Switch AI model (Sonnet, Opus, Haiku)
/statusline Add a live dashboard showing context %, model, and cost
/hooks Configure automation hooks
/mcp Manage MCP server connections
/help Show all available commands
/login Switch accounts
/doctor Diagnose installation issues

Keyboard Shortcuts

Shortcut What It Does
Shift+Tab Cycle between modes: Normal, Auto-accept edits, Plan Mode, Auto
Escape Stop Claude mid-response
Ctrl+`` (or Cmd+``) Open terminal in VS Code
Up arrow Scroll through command history
Tab Command completion
Chapter 16

10 Power User Tips

From 32 Claude Code Hacks by Nate Herk

1. Set Up a Status Line Type /statusline to add a mini dashboard at the bottom of your terminal showing context percentage, current model, and cost. Helps you avoid running out of context without realizing it.

2. Use Screenshots Claude can see images. Feed it error messages, design mockups, or inspiration websites. Run a self-check loop: "Take a screenshot of the website and tell me if the layout looks right." Three passes before V1 produces a much higher-quality result.

3. Clone Inspiration Sites Take screenshots of sites you like, feed them to Claude, and say "make it look like this." Claude recreates design patterns without producing generic output.

4. Use /rewind for Quick Undos Made a wrong turn? Type /rewind and Claude rolls back to a previous point in the conversation. No need to start over.

5. Remote Control From Your Phone Claude Code supports controlling local sessions from your phone or any browser. Start a task at your desk, walk away, and keep steering from your pocket. Your code never leaves your machine.

6. Ultrathink When Claude needs to reason through a hard problem (architecture, complex debugging, big refactors), type ultrathink. Claude allocates maximum thinking budget (~32,000 tokens) before responding. Do not use for simple tasks.

7. Edit Permissions for Safe Autonomy Instead of skipping all permission prompts (dangerous), explicitly allow commands you know are safe and deny destructive ones (deletes, removes). Same speed, much less risk.

8. Use Chrome DevTools Claude can open a browser, interact with your app, and verify functionality — buttons, forms, and flows. Great for front-end work.

9. Git Worktrees for Parallel Sessions Two Claude sessions in the same folder overwrite each other. Use claude-worktree feature-name to create isolated workspaces on separate branches. Run three, four, or five sessions in parallel, then merge the branches.

10. Agent Teams Sub-agents work in parallel but cannot talk to each other. Agent Teams can — they share a task list, communicate, and assign work between themselves. Costlier, but far more cohesive output for big projects.

Chapter 17

Essential Resources

Official Documentation

Videos

CLAUDE.md Examples

Skills

Integrations

Community

Share what you build and ask questions right here in the Everything AI Discord!