The Tech Pulse

December 22, 2025β€’9 min readβ€’
Tags β–Ό
  • Claude Code
  • Cloud
  • Vscode
β€’
Share β–Ό

Claude Code Tutorial for Beginners

One Sentence Summary

A hands-on walkthrough of using Claude Code (Anthropic) for end-to-end AI-assisted app development, from scratch to large architecture changes.

Main Points

  • AI-assisted coding with Claude Code, integrated into terminal and IDE workflows.
  • Start-to-finish: setup instructions for Mac, Windows, and Node.js/npm installation.
  • Prompt design: replace vague requirements with structured, prioritized prompts and plan mode for clarity.
  • Claude MD: a file injected into sessions to encode project conventions and standards.
  • Plan mode: Claude proposes implementation steps and questions before writing code.
  • TypeScript vs JavaScript: iterative reconfiguration of plans to enforce type safety.
  • Commit discipline: commit early, often, and maintain rollback-friendly workflows.
  • Claude as teammate: review and refine code together rather than handing off unreviewed output.
  • YOLO mode: dangerous skip permissions to accelerate changes (with risks acknowledged).
  • Architecture changes: exploring options, then implementing real-time syncing with a websocket server.

Takeaways

  • Treat Claude Code as a collaborative engineer; insist on plan reviews and questions.
  • Use Claude MD to encode project context and standards for consistency.
  • Prefer incremental, testable changes; use branches to isolate AI-driven edits.
  • Leverage plan mode and multiple options to evaluate architectural decisions.
  • Balance speed (YOLO) with safeguards; always verify changes in a controlled environment.

Extensive Breakdown

This tutorial demonstrates how to use Claude Code (by Anthropic) to:

  1. Create a new app from scratch
  2. Integrate Claude into an existing codebase
  3. Perform a major architectural change (real-time sync via WebSockets)

The core technology stack used:

  • Node.js
  • npm
  • React
  • TypeScript
  • Visual Studio Code
  • Local storage (initially)
  • WebSocket server (for real-time sync)

The video emphasizes:

  • Proper installation
  • Plan Mode vs YOLO mode
  • Git discipline (commit early/often)
  • Using a claude.md onboarding file
  • Explore β†’ Plan β†’ Code β†’ Commit workflow

Primary skill addressed: AI-assisted engineering using Claude Code with structured planning and safe iteration practices.


Detailed Step-by-Step Breakdown


1️⃣ Installing Claude Code

Option A – Mac (Bash Script)

  • Copy installation script from homepage
  • Run in Terminal
  • Script executes automatically

Option B – Windows (PowerShell Script)

  • Uses PowerShell installer
  • Script may fail (as noted in transcript)

Recommended Cross-Platform Method (npm Install)

Step 1 – Install Node.js

Go to:

  • Node.js

Download installer.

Verify installation:

node -v

Expected:

vXX.X.X

Step 2 – Install Claude Code via npm

npm install -g claude-code

(Exact package name assumed; transcript implies npm install command provided in resources.)


Step 3 – Initialize Claude

claude

Setup prompts:

  • Choose theme (Dark mode selected)
  • Select subscription method (Cloud account)
  • Authenticate

Successful install = CLI interface loads.


2️⃣ Integrating Claude Code into Visual Studio Code

Use:

  • Visual Studio Code

Open Integrated Terminal

Shortcut:

Ctrl + Shift + `

Initialize Git:

git init

Switch terminal to Command Prompt (if required)

Start Claude:

claude

Trust directory:

Press 1

3️⃣ Creating a New React App (Correct Way)

❌ Bad Prompt (Vague)

Make a chore app to manage chores at the office...

Problem:

  • No tech stack defined
  • No storage defined
  • No architecture defined
  • No engineering principles defined

βœ… Proper Prompt Structure

Prompt includes:

  • Bullet list of product requirements

  • Explicit request for clarification questions

  • Instruction to ask about:

    • Tech stack
    • Storage
    • Constraints
    • Architecture
    • Engineering principles

Multi-line input:

Alt + Enter (Mac Option + Enter)

Enable Plan Mode

Shift + Tab

Plan mode behavior:

  • Claude reasons
  • Asks clarifying questions
  • NEVER writes code automatically

Example Selections

  • React app
  • Local storage
  • No authentication
  • Enable extra features

Submit answers:

Press 1

Claude generates:

  • File structure
  • Data models
  • Implementation plan
  • Tech stack decisions

Modifying the Plan

Detected issue:

  • JavaScript instead of TypeScript

When prompted:

Option 3 β†’ Modify Plan

Instruction:

Use TypeScript instead of JavaScript.

Claude regenerates plan.

Confirmed via:

.ts
.tsx

Executing Plan

Two options:

  • Auto accept changes
  • Manual review

After code generation:

Claude requests:

npm install

Approve or deny per security preference.


Starting Dev Server Manually

Instead of allowing Claude:

cd app-directory npm run dev

App loads.


4️⃣ Git Discipline (Critical Practice)

Before fixing bugs:

git add . git commit -m "Initial working version"

Principle:

Commit early. Commit often.

Reason:

  • Prompts may introduce regressions
  • Easy rollback

Work inside branches.


5️⃣ Using Claude in an Existing Project

Clear conversation history:

/clear

Simulates fresh onboarding.


6️⃣ Creating claude.md

Purpose: Onboard Claude into project standards.

File:

claude.md

Injected into every session.


Structure of claude.md

Layer 1 – Tech Stack & Structure

  • Frameworks
  • Packages
  • Folder layout

Layer 2 – Purpose of Components

  • Responsibilities
  • Domain model

Layer 3 – Operational Rules

  • Run tests after changes
  • Create branch before feature
  • Engineering constraints

Progressive Disclosure Pattern

Instead of large file:

  • Index file

  • Links to:

    • architectural-patterns.md
    • design decision docs
    • conventions

7️⃣ Bug Fix Workflow

Example bug: Calendar click β†’ wrong time assigned.

Procedure:

  1. Exit Claude
  2. Restart Claude
  3. Provide simple bug prompt:
Bug fix:
Clicking calendar sets wrong time.

Claude:

  • Locates TSX file
  • Requests new Git branch

Creates branch automatically.

Fix applied.

Manual verification:

  • Add chore at 8:00 AM
  • Confirm correct rendering

8️⃣ Major Architecture Change (Real-Time Sync)

Requirement: Changes reflect across browser tabs without refresh.


Enable YOLO Mode

Shift + Tab

Toggle: Dangerously skip permissions

Behavior:

  • Claude runs commands automatically
  • No confirmation prompts

⚠ Risky but fast.


Follow Explore β†’ Plan β†’ Code β†’ Commit

In Plan mode:

Prompt:

  • Explain architecture change
  • Ask Claude to explore files
  • Request 3 implementation options

Claude proposed:

  1. Browser-based sync
  2. Local sync method
  3. WebSocket server

Selected: Option 3 (Full real-time server)


Result

Claude:

  • Created WebSocket server
  • Modified client to connect
  • Implemented real-time broadcasting

Verified:

  • Two browser instances
  • Add team member β†’ reflects instantly
  • Add chore β†’ sync confirmed

Key Technical Details

Commands Used

node -v npm install -g claude-code claude git init git add . git commit -m "message" npm install npm run dev

Modes

ModeBehavior
NormalAsks permission for commands
Plan ModeReasons, no code written
YOLO ModeExecutes without approval

Project Stack (Final)

  • React
  • TypeScript
  • LocalStorage
  • WebSocket server
  • Git
  • VS Code

Pro Tips

1. Treat Claude Like a Senior Engineer

  • Clear
  • Specific
  • Direct
  • No fluff

2. Always Start in Plan Mode

Avoid:

  • Uncontrolled code generation
  • Poor architecture decisions

3. Modify Plans Before Execution

Use:

Option 3 β†’ Modify Plan

Example:

Use TypeScript instead of JavaScript

4. Use claude.md for Consistency

Critical for:

  • Coding standards
  • Architecture compliance
  • Automated branching rules

5. Commit Before Prompting

Avoid regression risk.


6. Use Progressive Disclosure in claude.md

Keep:

  • Core rules in main file
  • Detailed architecture in separate markdown files

7. Prompt Engineering Still Applies

Example:

Give me 3 options

Forces architectural diversity.


Potential Limitations / Warnings

⚠ YOLO Mode Risk

  • Executes commands blindly
  • Can install packages
  • Can modify project structure

Use only when confident.


⚠ Over-Prompting Risk

Each prompt:

  • May introduce regressions
  • May rewrite large code areas

⚠ claude.md Must Be Universally Applicable

If too specific:

  • Claude ignores instructions

⚠ Review AI Code

Treat Claude like:

  • A new team member
  • Not an infallible system

Always review:

  • Architecture
  • Side effects
  • Security implications

Recommended Follow-Up Resources

  • Claude Code documentation
  • React documentation
  • TypeScript handbook
  • Visual Studio Code terminal & Git integration docs
  • WebSocket protocol documentation
  • Git branching strategies (Git Flow / trunk-based development)

Suggested books to read

  1. Designing Data-Intensive Applications β€” Martin Kleppmann (Kindle) (Paperback) A deep dive into modern data systems architecture, this book explains the principles behind scalable, reliable, and maintainable applications. It covers storage engines, replication, consistency models, distributed systems, and real-time data flow β€” all highly relevant when evolving an app from local storage to WebSocket-based real-time synchronization as demonstrated in the tutorial. It strengthens architectural decision-making, especially when introducing servers, state synchronization, and multi-client coordination.

  2. Clean Architecture β€” Robert C. Martin (Kindle) (Paperback) This book focuses on building maintainable, testable, and scalable software systems using clear separation of concerns and dependency rules. As AI-assisted coding becomes more common, strong architectural principles are essential to prevent codebase degradation. The concepts in this book help guide how you structure React apps, backend services, and shared models β€” especially when working with tools like Claude that generate large volumes of code quickly.

  3. Refactoring (2nd Edition) β€” Martin Fowler (Kindle) (Hardcover) A practical guide to improving existing code without changing its behavior, this book is invaluable when using AI to iterate on an app. Since the tutorial emphasizes reviewing and refining AI-generated code, this book teaches systematic techniques to restructure components, improve readability, reduce duplication, and maintain TypeScript-based React applications cleanly as features expand.

  4. Pro Git β€” Scott Chacon and Ben Straub This comprehensive guide to Git explains branching strategies, commits, rebasing, collaboration workflows, and recovery techniques. The tutorial strongly emphasizes committing early and often, working in branches, and safely reverting changes after AI prompts introduce regressions. Mastery of Git ensures you can confidently experiment with Claude’s Plan Mode or YOLO mode without risking your codebase.

  5. Fullstack React β€” Anthony Accomazzo, Nathaniel Murray, and Ari Lerner A practical guide to building real-world React applications, this book walks through project structure, component architecture, state management, and integration patterns. It complements the tutorial’s focus on building a React + TypeScript app from scratch and evolving it into a real-time application. It helps solidify understanding of what Claude generates so you can critically review, modify, and extend the AI-produced code with confidence.

Get New Posts

Follow on your preferred channel for new articles, notes, and experiments.

Related Posts