Most people run Claude Code in an empty folder, so they repeat the same instructions every session. Set these four things up once.
The layout
my-project/
CLAUDE.md
.claude/
skills/
slides/SKILL.md
commands/
review.md
settings.json1. CLAUDE.md: the rules it reads every session
Claude Code reads this file at the start of every session in the folder.
# Project rules - Stack: TypeScript, Next.js - Keep functions short. No new dependencies without asking. - Never touch /legacy. - Run the tests before you say a task is done. - Brand voice: plain, no hype.
2. Skills: playbooks it loads only when needed
Each skill is a folder with a SKILL.md. Claude reads the description and only loads the rest when a task matches.
--- name: slides description: Use when making a sales or pitch deck for the business. --- 1. Ask for the audience and the one decision the deck must get. 2. Max 10 slides, one idea per slide, our brand colours.
3. Commands: your shortcuts
A markdown file in .claude/commands becomes a slash command. review.md gives you /review.
Review the changes since the last commit. List bugs first, then risky changes, then small fixes. Don't edit anything.
4. Hooks: checks that run on their own
In .claude/settings.json, this runs a check after every file Claude edits:
{
"hooks": {
"PostToolUse": [
{ "matcher": "Edit|Write",
"hooks": [ { "type": "command", "command": "npm run lint --silent" } ] }
]
}
}Swap npm run lint for whatever check your project uses.
Watch out for
- Hooks run commands on your machine. Only add commands you understand.
Some links are affiliate links: I may earn a commission at no cost to you. Not affiliated with Anthropic.
