Claude Code: from install to your first feature
For ClaudeClaude Code is an agent that works in your terminal — it reads your codebase, edits across files, runs commands, and ships. This gets you from nothing installed to a real, committed change.
- 1
Install the CLI
You'll need Node.js installed first. Then install Claude Code globally from your terminal. Once it's installed, go into a project folder and run it there — it works on the code in whatever directory you launch it from.
ClaudeIllustration$ npm install -g @anthropic-ai/claude-code $ cd your-project $ claude
npm install -g @anthropic-ai/claude-code cd your-project claude - 2
Let it read the codebase first
Before asking for changes, ask it to orient itself: 'Give me a map of this project — the main folders, the entry point, and how a request flows through it.' This both checks that it understands your code and gives you a useful overview. It reads files on its own; you don't paste anything.
ClaudeIllustration❯ claude "add a dark-mode toggle" ● Reading project files… ● Proposing a plan…
- 3
Describe the change as an outcome
Don't dictate implementation line by line. Say what you want to be true when it's done, and let the agent plan. For anything non-trivial, ask it to propose a plan before it edits.
ClaudeIllustration1Add a theme context2Wire the toggle button3Persist the choiceAdd a dark-mode toggle to the site header. It should remember the choice across reloads and default to the system setting. Show me your plan before you change files. - 4
Review every diff before accepting
Claude Code shows you the exact changes it wants to make. Read them. Accept the good ones, reject or redirect the rest. This is the habit that keeps you in control — the agent is fast, but the diff is where you stay the engineer, not a spectator.
ClaudeIllustration- const theme = 'light' + const theme = useTheme() + toggle(theme)
If a change is wrong, tell it what's wrong in plain words ('you edited the wrong file' / 'keep the existing naming style') rather than fixing it yourself. It learns the constraint for the rest of the session. - 5
Have it run and verify its own work
Ask it to run the tests, start the dev server, or hit the endpoint it just changed. A good instruction is 'make the change, then prove it works.' It can run the commands, read the output, and fix what it broke before handing back to you.
ClaudeIllustration$ npm test ✓ renders header ✓ toggles theme 2 passing
- 6
Commit when you're happy
Once the change is right, ask it to commit with a clear message, or do it yourself. Then move to the next task in the same session — it keeps the context of everything it has learned about your code, so later tasks go faster.
ClaudeIllustration❯ claude "add a dark-mode toggle" ● Reading project files… ● Proposing a plan…
Keep learning
All tutorialsClaude: set it up for real work
Get Claude configured for long documents, code, and careful writing.
Claude: Projects and Artifacts, properly
Set up a reusable workspace and build things you can edit live.

Claude Tutorial for Beginners — Step by Step
How to use Claude from scratch, step by step.

