How to Use Claude Code: Complete Beginner's Guide (2026)
Learn how to use Claude Code from scratch. Installation, first session, basic commands, skills, MCP servers, and CLAUDE.md — everything a beginner needs in one guide.

How to Use Claude Code: Complete Beginner's Guide (2026)
I remember the first time I opened Claude Code. I had heard developers raving about it, installed it, typed claude into my terminal, and then sat there wondering what to actually say. The blinking cursor felt like a blank page. Where do you start? What can it do? What should you ask first?
This guide is everything I wish someone had told me that day. No assumptions about your experience level. No jargon without explanation. Just a clear path from "I have never used this" to "I am productive with Claude Code" in about 15 minutes of reading and 10 minutes of setup.
Table of Contents
- What Is Claude Code? (30-Second Version)
- Installing Claude Code
- Your First Session — A Complete Walkthrough
- Essential Commands Every Beginner Should Know
- Setting Up CLAUDE.md — Your Project Config
- Installing Skills — Give Claude Superpowers
- Connecting MCP Servers — External Tools
- 5 Things to Try in Your First Week
- Common Mistakes Beginners Make
- Where to Go from Here
- Frequently Asked Questions
What Is Claude Code? (30-Second Version)
Claude Code is a coding assistant that lives in your terminal. You describe what you want in plain English, and Claude writes code, edits files, runs commands, debugs errors, and explains concepts — all through a conversation.
It is not an IDE plugin that suggests the next line. It is not a chatbot that generates code snippets for you to copy-paste. It is an agent that works directly in your project — reading your files, understanding your codebase, making changes, and running your tools.
Three things make it different from other AI coding tools:
- It works in the terminal. You keep your existing editor (VS Code, Neovim, whatever). Claude runs alongside it, modifying files that your editor reflects in real time.
- It reads your whole project. Claude does not just see the file you are working on. It can read any file in your project, understand how they connect, and make changes across multiple files.
- It takes action. Claude does not just suggest — it edits files, creates new ones, runs terminal commands, and interacts with external services through MCP servers.
That is it. Now let me show you how to set it up.
Installing Claude Code
The installation takes about 3 minutes. You need two things: Node.js and a terminal.
Step 1: Install Node.js (if you do not have it)
Claude Code requires Node.js version 18 or higher. Check if you already have it:
node --version
If the output shows v18.x.x or higher, skip to Step 2. If you get "command not found" or a version below 18, download Node.js from nodejs.org — choose the LTS (Long Term Support) version.
Windows users: Download the .msi installer and follow the prompts. Make sure "Add to PATH" is checked.
Mac users: Download the .pkg installer, or use Homebrew: brew install node
Linux users: Use your package manager: sudo apt install nodejs npm (Ubuntu/Debian) or sudo dnf install nodejs (Fedora)
Step 2: Install Claude Code
Open your terminal and run:
npm install -g @anthropic-ai/claude-code
The -g flag installs it globally so you can use the claude command from any directory. The installation downloads the CLI and its dependencies. This takes 30-60 seconds on a typical connection.
Verify it worked:
claude --version
You should see a version number. If you get "command not found," close and reopen your terminal (the PATH needs to refresh).
Step 3: Log In
claude login
This opens your web browser to Anthropic's login page. Create a free account if you do not have one — no credit card required. Once you authenticate in the browser, the terminal confirms you are logged in.
That is it. Claude Code is installed and ready.
Your First Session — A Complete Walkthrough
Navigate to any project you are working on. For this walkthrough, I will use a simple web project, but Claude works with any language and any project structure.
cd ~/projects/my-app
claude
Claude starts up and reads your project. You see a welcome message and a prompt. This is where you type.
Your first message: understand the project
Type this (or something like it):
Read through this project and give me a summary. What is the tech stack, what does it do, and how is it organized?
Claude scans your files — package.json, configuration files, source code — and gives you a structured summary. This is useful even for your own projects because Claude often spots patterns and dependencies you have forgotten about.
Your second message: do something useful
Now ask Claude to do actual work. Here are some good first requests depending on what you need:
If you want to add a feature:
Create a dark mode toggle component. Use the existing design patterns in the project. Add it to the header.
If you want to fix a bug:
The login form submits even when the email field is empty. Add client-side validation to all form fields in src/components/LoginForm.tsx.
If you want to understand code:
Explain how the authentication flow works in this project. Walk me through what happens from when a user clicks "Sign In" to when they see the dashboard.
If you want tests:
Write unit tests for src/utils/formatDate.ts. Cover edge cases — null input, invalid dates, different timezones.
What happens next
Claude reads the relevant files, thinks about your request, and then acts. You will see it:
- Read files — Claude tells you which files it is reading
- Propose changes — Claude shows you what it wants to do
- Ask for approval — For file changes and terminal commands, Claude asks before executing
- Execute — Once approved, Claude makes the changes
This approval step is important for beginners. Claude will not silently modify your files or run dangerous commands. You always have the chance to review and accept or reject.
Iterating
If Claude's output is close but not quite right, just say so:
Good, but change the toggle icon to a moon/sun instead of a switch. And use the existing color tokens from the theme, not hardcoded colors.
Claude reads the previous context, understands the correction, and updates accordingly. This iterative conversation is where Claude Code shines — each message builds on the last.
Essential Commands Every Beginner Should Know
Claude Code has built-in commands that start with /. You do not need to memorize all of them, but these five will cover 90% of beginner needs:
/help — See all available commands
When in doubt, type /help. It lists every command with a brief description.
/clear — Start a fresh conversation
If a conversation gets confused or you want to change topics entirely, /clear resets the context. Your project files and configuration are preserved — only the conversation history is cleared.
/compact — Compress the conversation
Long conversations consume context window space. When Claude starts forgetting things you mentioned earlier, type /compact. Claude summarizes the conversation into a shorter form, freeing up context for new information. This is especially useful on the free tier where context is standard size.
/cost — Check your usage
Shows how many messages you have used and how many remain for the day. Essential for managing your daily allocation, especially on the free tier (~5/day) or Pro (~45/day).
/init — Generate a CLAUDE.md
If your project does not have a CLAUDE.md configuration file yet, /init asks Claude to analyze your project and generate one. This is the fastest way to set up project-specific configuration.
Bonus: /vim and /editor
If you want to write a longer, more detailed message without the pressure of the single-line input, /editor opens a temporary file in your default text editor. Write your prompt there with formatting, code blocks, and all the detail you want, then save and close. The content becomes your message.
Setting Up CLAUDE.md — Your Project Config
CLAUDE.md is the most impactful thing you can set up as a beginner. It is a Markdown file in your project's root directory that Claude reads automatically at the start of every session.
Think of it as a permanent briefing document. Instead of telling Claude "this project uses Next.js with TypeScript and Tailwind" at the start of every conversation, you write it once in CLAUDE.md and Claude knows it forever.
Quick setup method
In your project directory, ask Claude:
Analyze this project and create a CLAUDE.md file that captures the tech stack, coding conventions, file structure, and any patterns you notice.
Claude generates a comprehensive config file. Review it, tweak anything that is wrong, and save. Done.
What to include
A good CLAUDE.md for a beginner covers:
# Project Name
## Tech Stack
- Framework: Next.js 15 (App Router)
- Language: TypeScript (strict mode)
- Styling: Tailwind CSS
- Database: Supabase
- Deployment: Vercel
## Project Structure
- src/app/ — Routes and pages
- src/components/ — Reusable React components
- src/lib/ — Utility functions and helpers
- src/types/ — TypeScript type definitions
- prisma/ — Database schema
## Conventions
- Use functional components with hooks
- All components go in src/components/
- Tests adjacent to source files (Component.test.tsx)
- Use Zod for runtime validation
- Prefer server components by default
## Important
- Never modify prisma/schema.prisma without discussing first
- Always run `npm run lint` before suggesting a task is complete
- This project uses the App Router — do not use Pages Router patterns
As you work with Claude, you will naturally add more context to CLAUDE.md. It grows with your project.
For inspiration and templates, browse the CLAUDE.md examples gallery — it has configurations for different stacks and project types.
Installing Skills — Give Claude Superpowers
Skills are one of Claude Code's most powerful features, and they take seconds to install.
A skill is a Markdown file that gives Claude specialized knowledge. Installing the "Frontend Design" skill means Claude knows your design system tokens, accessibility patterns, and component conventions. Installing a "Security Auditing" skill means Claude proactively checks for vulnerabilities.
How to install a skill
claude skill install <url>
For example, to install a security skill from GitHub:
claude skill install github.com/anthropics/claude-skill-security-review
The skill file downloads to your .claude/skills/ directory and takes effect immediately. No restart needed.
Where to find skills
The skiln.co skill directory is the largest curated collection with over 60,000 community-published skills. Browse by category:
- Developer Skills — Language-specific patterns, framework best practices
- Security Skills — Vulnerability detection, audit patterns
- Content Skills — Writing, documentation, copywriting
- DevOps Skills — CI/CD, infrastructure, deployment
Recommended starter skills
If you are not sure where to start, these five cover the most common needs:
- A style guide for your language — TypeScript best practices, Python PEP 8, etc.
- A testing skill — Ensures Claude writes tests alongside code
- A security skill — Catches common vulnerabilities automatically
- Your framework's official skill — Next.js, React, Django, Rails, etc.
- A code review skill — Teaches Claude your team's review standards
For a deeper dive into what skills are and how they work under the hood, read What Are Claude Skills?.
Managing installed skills
claude skill list # See all installed skills
claude skill remove <name> # Uninstall a skill
Skills are composable — you can install multiple skills that work together. A TypeScript skill plus a React skill plus a testing skill gives Claude a combined expertise that is greater than any single skill.
Connecting MCP Servers — External Tools
MCP (Model Context Protocol) servers let Claude interact with external tools and services beyond your local files. This is an intermediate topic, but understanding the basics early will serve you well.
What MCP servers do
Without MCP servers, Claude can read and write files in your project and run terminal commands. With MCP servers, Claude can also:
- Create GitHub pull requests (GitHub MCP)
- Query your database (Supabase MCP, PostgreSQL MCP)
- Control a web browser (Playwright MCP)
- Search the web (Web search MCP)
- Manage cloud infrastructure (AWS, Vercel, Cloudflare MCPs)
Each MCP server adds a specific capability. You install only the ones you need.
How to add an MCP server
claude mcp add <name> -- <command>
For example, to add the GitHub MCP server:
claude mcp add github -- npx @modelcontextprotocol/server-github
Or the filesystem server for safe file access:
claude mcp add filesystem -- npx @modelcontextprotocol/server-filesystem /path/to/project
Recommended first MCP servers
For beginners, start with:
- Filesystem — Gives Claude structured file access
- GitHub — If you use GitHub for version control
- Playwright — If you need browser automation or screenshots
For the complete list of available servers and detailed setup instructions, read our Complete Guide to MCP Servers. If you want curated recommendations, check Top MCP Servers for Developers.
Checking your MCP connections
claude mcp list
This shows all connected servers and their status.
5 Things to Try in Your First Week
Once Claude Code is set up, here are five tasks that demonstrate its range and help you build confidence:
1. Ask Claude to Explain Your Codebase
Read through this entire project and explain the architecture.
How do the main modules connect? What are the key entry points?
Are there any patterns or anti-patterns you notice?
This is valuable even for projects you wrote yourself. Claude often spots architectural patterns, dead code, and potential issues that are invisible when you are deep in the codebase. It also teaches Claude about your project for future conversations.
2. Generate a Real Component or Function
Create a reusable data table component that supports sorting, pagination,
and search filtering. Use the same patterns as the existing components in
src/components/. Include TypeScript types and make it accessible.
Watch how Claude reads your existing components to match your patterns, then creates something that fits naturally into your project. This is where CLAUDE.md and skills pay off — Claude follows your conventions automatically.
3. Write Tests for Existing Code
Write comprehensive unit tests for src/utils/. Cover happy paths, edge cases,
error conditions, and boundary values. Use the testing setup that already
exists in this project.
Testing is one of Claude Code's strongest use cases. Claude reads your source code, understands the expected behavior, and generates thorough tests — including edge cases you might not think of. This alone can save hours per week.
4. Refactor a Messy File
Everyone has that one file. The one with 500 lines, three different patterns, and a comment that says "TODO: clean this up" from 2024.
Refactor src/api/handlers.ts. Break it into smaller, focused modules.
Maintain the same external API — nothing that imports from this file
should need to change. Explain your decisions.
Claude handles the tedious work of extracting functions, creating new files, updating imports, and ensuring nothing breaks. The "explain your decisions" part teaches you Claude's reasoning so you can learn from the refactor.
5. Set Up Your CLAUDE.md
If you did not already:
Based on everything you have learned about this project, create a
comprehensive CLAUDE.md. Include the tech stack, conventions, file structure,
testing patterns, and any important rules for working in this codebase.
This becomes your project's permanent Claude configuration. Future sessions start from this foundation instead of from scratch.
Common Mistakes Beginners Make
After onboarding dozens of developers to Claude Code, these are the patterns I see most often:
Mistake 1: Prompts that are too vague
Bad: "Make the homepage better" Good: "Add a hero section to the homepage with a headline, subheadline, CTA button, and a feature grid below. Use the existing Tailwind design tokens and match the style of the About page."
Claude performs dramatically better with specific instructions. You do not need to specify every detail, but the key elements — what to build, where to put it, what style to match — make the difference between a useful response and a generic one.
Mistake 2: Not setting up CLAUDE.md
Without CLAUDE.md, you spend 2-3 messages per session re-explaining your project. With CLAUDE.md, Claude starts every session already knowing your stack, conventions, and preferences. Set it up on day one.
Mistake 3: Approving changes without reading them
Claude asks for approval before modifying files. Read what it proposes. Not because Claude is unreliable — but because understanding the changes is how you learn and catch any misunderstandings early. Blindly approving everything eventually leads to a mess you do not understand.
Mistake 4: Using Claude for trivial tasks on limited plans
On the free tier (5 messages/day) or even Pro (45/day), do not burn messages on things you can do faster manually. Renaming a variable, fixing a typo, adding an import — do those yourself. Save Claude for tasks that benefit from AI reasoning: architecture, debugging, multi-file changes, test generation.
Mistake 5: Never installing skills
Vanilla Claude Code is powerful. Claude Code with 3-5 relevant skills installed is substantially more powerful. Skills add domain expertise that makes every conversation better. Take 10 minutes to browse the skill directory and install a few that match your stack.
Where to Go from Here
You now know enough to use Claude Code productively. Here is a reading path for leveling up:
Understand the ecosystem:
- Claude Skills vs MCP Servers vs Plugins — How the different extension types compare
- What Are Claude Skills? — Deep dive into the skill system
- What Is MCP? — The protocol that powers external connections
Get practical:
- How to Install Claude Skills — Step-by-step installation guide
- Best Claude Skills for Developers — Curated recommendations
- CLAUDE.md Examples Gallery — Templates for every tech stack
Go deeper:
- Claude Code Hooks Guide — Automate pre/post task actions
- Build Your Own Claude Skill — Create custom skills
- Claude Code Workflows That Save Time — Advanced productivity patterns
Pricing and plans:
- Claude Code Pricing — Every plan compared
- Is Claude Code Free? — What the free tier includes
- Claude Max Review — Is the $100/month plan worth it
If you want to accelerate your learning, the Claude Code Power User Kit bundles optimized CLAUDE.md templates, curated skill packs, and workflow guides that would take weeks to assemble yourself.
Final Thoughts
Claude Code is the most capable AI coding tool I have used, and it is also the simplest to start with. There is no IDE to learn, no complex configuration, no paradigm shift in how you write code. You open a terminal, describe what you want, and Claude does it.
The three things that will determine your experience:
- CLAUDE.md — Set it up on day one. It transforms Claude from a generic assistant into a project-specific expert.
- Skills — Install 3-5 relevant ones. They compound with every session.
- Prompt quality — Be specific about what you want. One clear message is worth more than five vague ones.
Start free, get comfortable, and upgrade when it makes sense for your workflow. There is no rush. The tool is patient, the free tier is permanent, and the ecosystem will still be here when you are ready to go deeper.
Welcome to Claude Code. You are going to build some interesting things.
Frequently Asked Questions
Q: Do I need to be a programmer to use Claude Code? A: You need basic comfort with a terminal (navigating directories, running commands) and a general understanding of programming concepts. Claude Code is not designed for non-programmers, but you do not need to be an expert. Beginners and junior developers often find it more useful than seniors because it fills larger knowledge gaps.
Q: Which programming languages does Claude Code support? A: All of them. Claude Code is language-agnostic. It works with JavaScript, TypeScript, Python, Rust, Go, Java, C++, Ruby, PHP, Swift, Kotlin — any language with text-based source files. It also handles markup (HTML, CSS, Markdown), configuration files (YAML, JSON, TOML), and infrastructure code (Terraform, Docker, Kubernetes manifests).
Q: Can Claude Code break my project? A: Claude always asks for approval before modifying files or running commands. You review every change before it happens. As long as you read the proposed changes (do not blindly approve), Claude cannot break anything you do not agree to. Additionally, using version control (Git) means every change is reversible with git checkout or git stash.
Q: How is Claude Code different from ChatGPT for coding? A: ChatGPT generates code snippets that you copy-paste into your project. Claude Code works directly in your project — reading your actual files, making real changes, running your actual commands. It has context of your entire codebase, not just a code snippet you paste into a chat window. It also integrates with external tools through MCP servers, which ChatGPT cannot do.
Q: Can I use Claude Code in a team? A: Yes. Each team member installs Claude Code individually and logs in with their own Anthropic account. The CLAUDE.md and skills in the project repository are shared via Git, so the entire team gets the same Claude configuration. For centralized team management (admin controls, shared billing, SSO), look into Enterprise pricing.
