Claude Code Reference

Every slash command, built-in skill, and feature explained with practical examples. Whether you're getting started or optimizing your workflow, find what you need here.

Quick Command Reference

CommandWhat it does
/initGenerate CLAUDE.md project config
/planEnter read-only planning mode
/compactCompress conversation history
/costShow session token usage & cost
/modelSwitch between Opus/Sonnet/Haiku
/btwAsk a side question (no history)
/simplifyThree-agent code review + auto-fix
/clearWipe conversation, fresh start
/helpList all available commands
/loopRun a task on a recurring interval

Getting Started & Pricing

Installation, setup, pricing plans, and first steps with Claude Code.

Slash Commands

Built-in commands that control your Claude Code session — context management, model switching, cost tracking, and more.

What Does /compact Do in Claude Code? (Context Management Explained)

The /compact command compresses your conversation history into a summary, freeing up tokens without losing context. Here's when and how to use it.

What Does /cost Do in Claude Code? (Token Usage Tracking)

The /cost command shows your current session's token usage and estimated spend. Here's how to read it, what the numbers mean, and how to stay on budget.

What Does /init Do in Claude Code? (CLAUDE.md Setup Explained)

The /init command scans your project and generates a CLAUDE.md file — a persistent briefing that tells Claude your conventions, stack, and rules. Here's how to use it.

What Does /model Do in Claude Code? (Switching Between Opus, Sonnet, and Haiku)

The /model command lets you switch between Claude Opus, Sonnet, and Haiku mid-session. Here's when to use each model and how the opusplan mode works.

What Does /plan Do in Claude Code? (Plan Mode Before You Build)

The /plan command puts Claude Code in read-only mode so it can analyze your codebase, ask questions, and create a detailed implementation plan before writing any code.

What Does /simplify Do in Claude Code? (Three-Agent Code Review)

The /simplify skill runs three parallel review agents on your changed code — checking reuse, quality, and efficiency — then fixes what it finds automatically.

What Does /btw Do in Claude Code? (Side Questions Without Token Bloat)

The /btw command in Claude Code lets you ask quick questions without adding to your conversation history — saving tokens and keeping your session clean. Here's how to use it.

Skills & Features

Built-in skills, agent teams, routines, channels, and advanced features that extend Claude Code's capabilities.

Claude Code Routines: how to put your AI coding agent on autopilot

Claude Code Routines let you schedule tasks, react to GitHub events, and trigger Claude via API — all running in the cloud while your laptop is closed. Here's how to set them up.

Claude Routines vs Scheduled Tasks vs /loop — which one should you use?

Claude now has three ways to automate recurring work: Routines, Desktop Scheduled Tasks, and /loop. Here's when to use each one and why it matters.

How Claude Code channels changed the AI agent game forever

Claude Code channels let you message AI directly from Telegram and Discord. Here's how Anthropic outplayed open-source alternatives with this game-changing feature.

How to set up and run Claude Code agent teams in your workflow

Learn to configure multiple AI agents working together in parallel on your codebase, from setup to advanced coordination patterns that actually save time.

How Claude Code agent teams changed everything about AI coding

Learn how to set up and use multiple AI agents working together in real-time. Claude Code's agent teams coordinate like a real development team.

How to train Claude Code agents with custom skills (the game-changing method)

Learn the new approach to agent training with custom Claude Code skills that's transforming how developers build AI agents. No complex setup required.

How to supercharge Claude Code with the Last 30 Days skill

Learn how the Last 30 Days skill turns Claude Code into a research superpower by analyzing real-time trends from Reddit, X, and web sources.

How to build specialist AI subagents that replace entire development teams

Turn Claude into a complete engineering team using subagents. Learn how to create specialized AI agents that handle coding, testing, and deployment.

How to train your AI agent to learn new skills (the right way)

Learn the practical steps to teach your AI agent custom skills for browser automation, data processing, and task-specific workflows using Claude Code and OpenClaw.

Workflows & Patterns

Best practices, power-user workflows, automation patterns, and real-world use cases.

Claude Code vs Cursor — which AI coding tool should you use in 2026?

A practical comparison of Claude Code and Cursor for AI-assisted coding. Learn the differences, strengths, and which tool fits your workflow better.

Windsurf vs Cursor vs Claude Code — which AI coding tool wins in 2026?

A comprehensive comparison of Windsurf, Cursor, and Claude Code. We test all three to determine which AI coding assistant is worth your time and money.

Claude Code best practices that actually make a difference

Master Claude Code with proven techniques: CLAUDE.md setup, parallel sessions, subagents, custom commands, context management, and real workflow patterns from power users.

Claude Code vs Cursor — which AI coding tool fits your workflow?

Compare Claude Code vs Cursor in 2026: Terminal-first vs IDE-first approaches, pricing, features, and which tool works best for different developer needs.

What is vibe coding and how do you actually do it?

Learn vibe coding from basics to building apps. Discover the tools that make it work and how to start building software with natural language instead of traditional code.

How to run parallel AI agents for browser automation that actually works

Learn how to set up multiple Claude Code agents running browser tasks simultaneously. Complete guide to parallel automation with real examples.

How to build a $145K marketing machine with AI agents and MCP

Learn to automate marketing with Claude Code and MCP servers. Build AI agent workflows that generate Facebook ads, social content, and direct mail - complete setup guide.

How to build a profitable online directory with Claude Code

Learn to create a revenue-generating business directory using Claude AI and simple prompting techniques. Turn ideas into $200+ daily passive income.

Running Claude Code 24/7 gives you an autonomous coding assistant

Set up Claude Code to run continuously as an AI agent that codes while you sleep, handles GitHub issues automatically, and manages entire projects.

How to build a secure OpenClaw alternative with Claude Code

Build your own AI assistant using Claude Code and avoid the security risks that plague OpenClaw's public skills marketplace.

7 AI agent builders that actually create useful automations

Skip the hype and discover AI agent platforms that build real workflows. Compare Claude Code, n8n, Beam AI, and other tools that go beyond chatbots.

How to build complete apps with Claude Code's autonomous development workflow

Learn how to use Claude Code for end-to-end project development. From brainstorming to GitHub deployment, discover the autonomous workflow that's changing how developers build.

How to use Claude Code like its creator (proven workflow that delivers results)

Learn Boris Cherny's battle-tested Claude Code workflow: parallel sessions, plan mode, verification loops, and automated quality checks that boost productivity by 70%.