Skip to content

bogdanmatasaru/claude-code-guide

Repository files navigation

Claude Code Guide

Claude Code Guide

The complete, always-current guide to Claude Code — from your first session to expert workflows.

Every command, flag, hook, MCP, subagent, and best practice — plus a one-command terminal + Ghostty setup. Beginner-friendly, accurate, and cited.

Stars License: MIT Last commit Docs site CI

📖 Read the guide → · 🧭 Learning path · ⚡ Cheatsheet

setup.sh bootstrapping a fresh Mac

30-second start

On a fresh Mac, go from zero to a fully-configured Claude Code + Ghostty with one command — no git or Homebrew needed first; the script installs everything:

curl -fsSL https://raw.githubusercontent.com/bogdanmatasaru/claude-code-guide/main/install.sh | bash

Then open Ghostty, type claude, and log in. That's it. → Full setup guide

Want to preview it first, or clone instead?
# See what it would do, change nothing:
curl -fsSL https://raw.githubusercontent.com/bogdanmatasaru/claude-code-guide/main/install.sh | bash -s -- --dry-run

# Or clone and run manually (same result):
git clone https://github.com/bogdanmatasaru/claude-code-guide.git
cd claude-code-guide && ./setup.sh

Piping a script to bash runs code from the internet — you can always read install.sh and setup.sh first, or use --dry-run.

Already set up? Jump straight to the Cheatsheet or pick your Learning path.

Why this exists

The official docs are excellent reference material — but they don't hold your hand on day one, and they don't show you the workflows. This guide is the missing layer:

  • Structured for every level — tutorials to learn, how-to guides to get the job done, and a deep reference to look anything up (Diátaxis).
  • Simple → complex — a first-timer and a power user both find their level.
  • Accurate & cited — facts checked against the official docs and version-stamped.
  • Copy-paste assets — drop-in CLAUDE.md templates, slash commands, hooks, and settings.
  • A real environment, not just docs — a reproducible one-command setup plus cost and rate-limit monitoring you won't find in other guides.

What's inside

Section For
🚀 Getting started Install → first win → first real session
🛠️ Guides Task recipes: onboard a codebase, fix a bug, refactor, parallel work, CI
📚 Reference One page per feature: CLI, hooks, MCP, skills, subagents, settings, models…
🧠 Explanation Mental models: how it works, the context window, when to use what
💻 Environment Terminal & Ghostty, the setup.sh bootstrap, cost monitoring
Best practices Curated, attributed tips — official vs community
🧩 Asset library CLAUDE.md templates · commands · hooks · settings · skills

Quick links

Contributing

This guide stays valuable only if it stays accurate and current — and that's a team sport. Corrections, new recipes, and assets are all welcome, no matter how small. See CONTRIBUTING.md and look for good first issue.

Star history

Star History Chart

License & disclaimer

MIT © Bogdan Matasaru. A community guide — not affiliated with Anthropic. "Claude" and "Claude Code" are trademarks of Anthropic. Facts are cited against the official docs; when in doubt, code.claude.com/docs is the source of truth.

About

Claude Code guide, cheatsheet & best practices — commands, hooks, MCP, subagents, skills, and a one-command terminal + Ghostty setup. Beginner to expert, always current.

Topics

Resources

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages