Sources & references
Anthropic on YouTube: Mastering Claude Code in 30 minutes ↗
Follow Anthropic’s ~28-minute official walkthrough to structure CLAUDE.md instructions, plan before editing, verify changes with real checks, and enforce rules with hooks.
The external player loads when you choose to watch. The source link is always available.
Follow the steps, example prompts and result checks below.
This lesson follows Mastering Claude Code in 30 minutes, published on Anthropic’s official YouTube channel (28:07 runtime, English audio with YouTube captions). Before practicing on Claude Code, install the native binary (curl -fsSL https://claude.ai/install.sh | bash on macOS/Linux/WSL or irm https://claude.ai/install.ps1 | iex in Windows PowerShell), sign in with your Claude subscription or Anthropic Console account, and open a local repository with Git history.
Run claude at your project root, ask for a high-level codebase overview first, and record only non-obvious build/test commands and hard constraints in CLAUDE.md so your context window stays lean.
Check: A fresh session picks up your test runner and repo rules without extra prompting.
For multi-file changes or unfamiliar modules, ask Claude Code to inspect relevant files and propose a step-by-step plan before writing code. Confirm the affected file list and edge cases first.
Check: Claude outputs a clear implementation scope before editing disk files.
Include exact unit test, linter, or build verification commands in your prompt or CLAUDE.md, instructing Claude to run them after edits and fix failures against real output.
Check: Completed turns report observed test passes rather than unverified guesses.
Delegate broad file discovery to subagents to preserve main-thread context, use Git worktrees when running parallel tasks, and resume prior sessions across sittings instead of restarting from scratch.
Check: Main session context stays focused and parallel branches do not collide.
For rules that allow no exceptions—such as running checks before stopping or blocking sensitive paths—pair permission rules and sandboxing with deterministic Claude Code hooks.
Check: Restricted actions are blocked by configuration rather than relying on memory.
Because the YouTube release has no official chapter timestamps, FindGoodAI distilled these workflow rules alongside the official Claude Code best practices docs. Save this starter as CLAUDE.md in your repository root and customize the commands:
# CLAUDE.md (save in repository root)
## Build and Verification Commands
- Unit tests: pytest -q
- Lint check: ruff check .
## Repository Conventions
- Update or add matching tests whenever modifying API handlers or schemas.
- List affected files in Plan mode and confirm scope before touching migrations or production config.
To compare agentic coding tools side by side, visit Cursor and Codex, explore our AI Coding Agents & Dev Stack collection, or browse more sessions in AI Tutorials. Refer to the official Claude Code documentation for the latest CLI flags and IDE surfaces.
Anthropic on YouTube: Mastering Claude Code in 30 minutes ↗