Claude Code Setup: A Free One-File Kit for Any Project

Abdo Samy working through a problem with two business owners at a table with laptops

Quick answer: To set up Claude Code well, give it four things: project memory (a CLAUDE.md file), short rules, a way to check its own work, and guardrails for risky actions. My free, open-source Claude Code Setup Kit builds all four for you. Drop one file into your project, tell Claude Code to follow it, and you are running a disciplined build team in about 10 minutes.

Claude Code is brilliant out of the box. But out of the box, it also forgets your project between sessions, works without guardrails and can push a broken change straight to your live app.

I fixed that for my own projects. Then I packaged the fix for everyone.

Why does Claude Code need a proper setup?

Anthropic’s own best practices say it plainly. The defaults handle a lot. Setup matters when your project holds things Claude cannot see from the code: a deploy process that lives in someone’s head, a file it must never read, a check that has to pass before anything counts as done.

Without that, three things go wrong:

A good setup closes all three gaps. That is exactly what the kit is for.

What is the Claude Code Setup Kit?

It is one Markdown file, SETUP-CLAUDE-STRUCTURE.md, that you drop into any project. Claude Code reads it, interviews you, studies your code and builds a proven working structure around it.

I built it from three sources: Anthropic’s official guidance, how the Claude Code team shares that it works, and what I tested on my own live websites and AI agents. I kept what worked and dropped the noise. It is an independent project, not affiliated with or endorsed by Anthropic.

Here is what you get:

What Where it lives Why it matters
Project memory CLAUDE.md and a docs/ folder Every session starts knowing what is live, what is next and what was decided
House rules .claude/rules/ Security, testing, clean code and plain-language communication, every time
Helper agents .claude/agents/ A team of 9 specialists (search, build, test, review) so the main chat stays focused
Lanes Green, amber, red The riskier the change, the more checks it gets, automatically
Push guard A hook Blocks pushes to the wrong place, force pushes and pushes with failing checks
Tests and lint Automatic A broken change never reaches your users
/update-docs A skill One command saves your progress for the next session

There are also optional extras: an off switch for apps that email or text real people, a leak check for public repos, and a backup of your Claude setup with a tested restore.

What is a CLAUDE.md file, and what goes in it?

CLAUDE.md is a plain text file that Claude Code reads at the start of every session. Think of it as a briefing note for a new team member who has total amnesia every morning.

It should hold what Claude cannot work out alone: what the project is, how to run and test it, how you want it to behave, and where things live.

Two rules from Anthropic’s docs are worth remembering:

  1. Keep it short. The official guidance recommends staying under 200 lines. Running /init gives you a starting version, and from there the work is mostly removing lines.
  2. Use the right tool for the job. A CLAUDE.md line is a guideline. Claude may decide it does not apply. If something must happen every time, make it a hook or a deny rule. Anthropic’s guide to steering Claude Code explains when to use each.

The kit follows both. It keeps CLAUDE.md lean, moves detail into rules files, and puts the non-negotiables into hooks and permission rules.

How do I install the Claude Code Setup Kit?

Three steps. No setup skills needed.

  1. Download the file. Open SETUP-CLAUDE-STRUCTURE.md on GitHub and choose “Download raw file”.
  2. Drop it in your project. Put it in the root folder. A brand-new, empty folder works too.
  3. Open Claude Code in that folder and say:
Follow SETUP-CLAUDE-STRUCTURE.md

Then Claude takes over:

Claude Code protects the .claude/ folder, so it will ask permission before writing each file there. That is expected. Choose Allow.

Is it safe? What will it never do?

I built the safety promises in on purpose. They matter most if you are not a developer.

Already have a CLAUDE.md? It stays. Claude keeps your content, moves it into the right place, and git keeps the old version.

What are lanes, helper agents and the push guard?

Three ideas do most of the heavy lifting.

Lanes. Every change starts by picking a size: green (small), amber (medium) or red (large). A small copy fix does not need a full review. A change to sign-in or payments does. The riskier the change, the more checks it gets.

Helper agents. Claude Code supports subagents, specialist assistants that work in their own context. The kit creates nine of them. Cheaper, faster models search, build and test. Plans and reviews of bigger changes always run on the stronger Opus model, even when you chat on a cheaper one.

The push guard. A hook runs before any push. It blocks the wrong destination, force pushes and failing checks. This is deterministic. It does not rely on Claude remembering a rule.

It works for business owners, vibe coders, IT people and developers, on new ideas and existing repositories. It suits Cloudflare Workers best and adapts to other stacks.

If you are earlier in your AI journey, start with my 7 AI tips for business owners. They are the habits behind this kit: write your rules down once, give AI a home, make it check its own work. The kit is those habits, built into your project for you.

I am Abdo Samy, a Fractional AI & Automation Lead based in Sydney. My job is to help business owners put AI to work for real results, not just play with it. You can read more about me and how I work.

FAQ

How do I set up Claude Code properly?

Give it project memory (a CLAUDE.md file), a few short rules, a way to check its own work, and guardrails for risky actions. The free Claude Code Setup Kit does all four: drop one file into your project, tell Claude Code to follow it, answer five questions and approve the plan.

What is a CLAUDE.md file?

CLAUDE.md is a plain text file in your project that Claude Code reads at the start of every session. It holds what Claude cannot learn from your code alone: how your project works, what is live, what was decided and how you want it to behave. Anthropic recommends keeping it under 200 lines.

Do I need to be a developer to use the Claude Code Setup Kit?

No. The kit is written for business owners and vibe coders as well as developers. Claude explains each step in plain words and does the technical work. You only approve the plan and make the decisions.

Will the kit overwrite my existing CLAUDE.md?

No. If you already have a CLAUDE.md, Claude keeps your content and moves it into the right place. Git keeps the previous version, so you can always go back.

Is the Claude Code Setup Kit free?

Yes. It is open source under the CC BY 4.0 licence, free to use, share and adapt, including commercially. If you share or adapt it, credit Abdo Samy and link back to the GitHub repository.

Does it work outside Cloudflare, or on Windows?

Yes to both, with a note. Claude detects your stack and skips the Cloudflare-only parts if you are not on it. The push guard is a bash script, so on Windows use WSL or Git Bash.

Get the free kit

Stop re-teaching Claude Code your project every morning. Build the memory, the rules and the guardrails once.

Download the Claude Code Setup Kit on GitHub, drop it into your project and say “Follow SETUP-CLAUDE-STRUCTURE.md”. If it helps, give the repo a star. If you hit a snag, open an issue. I read everything.