Set up Claude Code as your daily coding partner
Set up Claude Code in 20 minutes with a short CLAUDE.md, private notes, a reusable skill, shared MCP servers and plan mode for bigger changes.

What you need
Step 1: Write a short CLAUDE.md
5 minClaude reads this file at the start of every session, so it should hold only what the code can't tell it.
- In your project, run
claude, then type/initto draft the file. - For each line, ask whether Claude would get something wrong without it. If not, cut it.
- Keep exact commands, misleading spots in the code and team decisions.
Your CLAUDE.md# Commands - Test one file: [TEST COMMAND] [PATH TO FILE] - Typecheck: [TYPECHECK COMMAND] # Gotchas - [OLD FOLDER] is still live, but don't copy its patterns. - Integration tests need [VARIABLE NAME] set. See .env.example.
You should see your file listed under Memory files when you run
/context all.Claude keeps ignoring a line?
Make the file shorter so the line stands out. Writing IMPORTANT won't help. A rule that can never bend belongs in a hook or a deny rule.
The file can live at
./CLAUDE.mdor./.claude/CLAUDE.md. Anthropic suggests keeping it under 200 lines.- In your project, run
Step 2: Keep personal notes in CLAUDE.local.md
2 minYour own preferences load in every session here, but stay out of the shared repo.
- Create
CLAUDE.local.mdat the project root. - Add your sandbox URLs, test data and personal habits.
- Run the command below to keep the file out of git.
Run thisecho "CLAUDE.local.md" >> .gitignore
You should see no
CLAUDE.local.mdingit status, and the file under Memory files in/context all.Your notes are missing in another worktree?
An ignored file exists only in the worktree where you made it. Import a file from your home folder instead, with a line like
@~/.claude/my-project-notes.md.Never put API keys or passwords in either file. Claude reads both into its context.
- Create
Step 3: Turn a repeated task into a skill
5 minA skill holds a procedure Claude reads only when the task needs it, so it doesn't weigh on every session.
- Create the folder
.claude/skills/pr-summary/in your project. - Save the text below in it as
SKILL.md. - Type
/pr-summaryin a session to run it. Claude can also pick it up when you ask for a PR description.
Your SKILL.md--- name: pr-summary description: Write a pull request title and description for the current branch. Use when asked for a PR summary or description. --- 1. Run `git diff main...HEAD` and read the changes. 2. Write a title of 60 characters or fewer. 3. List what changed and why in 3 to 5 bullets. 4. Add a "How to test" section with exact commands.
You should see
/pr-summaryin the menu when you type/, and a ready PR description after it runs./pr-summarydoesn't show up?Check that the file is named
SKILL.mdand that---is its first line. Runclaude plugin validate .claude/skillsto find a broken header.For a skill with side effects, such as a deploy, add
disable-model-invocation: true. Then it runs only when you type it.- Create the folder
Step 4: Share MCP servers with your team
3 minServers listed in
.mcp.jsonreach every teammate who clones the repo.- Run
claude mcp listto see the servers you have now. - Add a team server with
--scope project, as below. Claude Code writes it to.mcp.jsonat the project root. - Commit
.mcp.json. Each teammate approves it once, the first time they runclaudethere.
Run thisclaude mcp add --transport http notion --scope project https://mcp.notion.com/mcp
You should see the new server in
claude mcp list, with a status next to its name.The server says it's pending approval?
Project servers need your OK once. Run
claudein the project and approve the server when asked.Keep tokens out of
.mcp.json. Write${API_KEY}in the file and set the real value as an environment variable.- Run
Step 5: Plan before bigger changes
5 minIn plan mode, Claude reads the code and writes a plan, but edits nothing until you approve.
- Start your prompt with
/plan, as below. Or press Shift+Tab until the status bar shows plan mode. - Read the plan. Press Ctrl+G to open it in your editor and change it.
- Pick an approve option, such as Yes, manually approve edits, to let Claude start.
Your prompt/plan Add [FEATURE] to [PART OF THE APP]. Read the code it touches first. List the files you'd change and why, and name the tests that will prove it works.
You should see a written plan of files and steps, and no changes to your code yet.
Shift+Tab skipped past plan mode?
New sessions start in auto mode. From there the order is manual, accept edits, then plan, so it takes 3 presses.
- Start your prompt with
You get
Claude Code set up with your project's rules, your private notes, a reusable skill, shared tools and a plan-first habit
Try next
Did this guide work for you?
Thanks. It helps us fix the steps.


