Claude Code guideReel keyword: TEAM

3 vibecoders, 1 repo, 0 chaos: the rules and our CLAUDE.md

An AI agent can write two hundred lines in a minute. Without rules, one bad prompt goes straight to your customers. These three rules let three people work in one repository with Claude Code while the live site stays safe.

Part 1 open with your account Full program 7 modules Time About 2 hours for part 1

What you get

  • The branch setup: protected main, develop and one branch per task
  • Our CLAUDE.md template with the team rules, ready to copy
  • Worktrees, so each developer's Claude works in its own checkout
  • A review prompt for every pull request

You need

  • A Git repository on GitHub and the GitHub CLI (gh)
  • Admin rights on the repository
  • Claude Code for every developer
  • A staging copy of the site for develop (can come later)

Why AI makes team rules more important

With AI, every developer types less and changes more. That is great until three agents edit the same files, or one push of half tested code reaches the live site. The problem is not the agent. It is a repository without rules.

Two words first. main is the branch with what is live right now. develop is where everything new lands first and is tested on a staging copy of the site.

Rule 1. Two branches that never mix

main is what is live. develop is where everything is tested first. Nobody pushes to main, ever. Code reaches main only after it works on the staging copy.

Rule 2. One task, one branch, one pull request

Every task gets its own branch from develop, named feature/TASK-number-short-name. Our task board creates that name automatically, and every task links to its pull request, so you always see what is waiting for review.

And every developer's Claude gets its own worktree: a separate checkout of the repository on its own branch. Two agents never edit the same files.

Rule 3. One shared CLAUDE.md and a review gate

The team rules live in CLAUDE.md in the root of the repository. Claude reads it at the start of every session, so every agent on the team follows the same rules. Claude reviews every pull request. A human merges. Secrets never go into the repository.

That is how three people ship fast, and the live site stays safe.

Part 1 · Open with your account

Set up the repository for three developers

What part 1 covers

  1. The setup prompt
  2. The CLAUDE.md template
  3. One Claude per developer: worktrees
  4. The review gate
  5. Release to main

Create your account to open part 1

Enter your email and click the activation link we send you. Part 1 opens right away, at no cost.

Full program · Paid

Team repository, full program

Part 1 gives you a working first version. The full program takes it all the way to a setup you can run every day.

  1. From task board to branchBranch names from task numbers, and every task linked to its pull request.
  2. Staging for developAn automatic deploy of develop to a test copy of the site.
  3. Checks before reviewTests, build and a secret scan on every pull request.
  4. Conflicts without panicUpdating a task branch from develop and resolving conflicts with Claude.
  5. Releases and rollbackRelease pull requests, tags and going back fast when something breaks.
  6. Secrets.env out of git, encrypted backups and what to do after a leak.
  7. A new developer's first dayAccess, CLAUDE.md, the checklist and a first small task.
PriceThe price is shown here before payment opens.
Get the full program

All eleven programs in one bundle · Terms of sale

Sources

  1. Common workflows: worktrees, Claude Code docscode.claude.com/docs/en/common-workflows
  2. Worktrees, Claude Code docscode.claude.com/docs/en/worktrees
  3. Memory and CLAUDE.md, Claude Code docscode.claude.com/docs/en/memory
  4. About protected branches, GitHub Docsdocs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-protected-branches/about-protected-branches

Questions and answers

Do we need GitHub for this?

The rules work with any Git host. The commands in this guide use GitHub and its command line tool gh, because branch protection and pull requests are set up there in a few lines.

Why not let Claude merge the pull requests?

Because a person must own what goes live. Claude reviews, explains and fixes. A human reads the review and presses merge. That one rule stops a confident agent from shipping its own mistake.

Is one approving review enough for three people?

For a small team, one approving review plus Claude's review is a good balance between speed and safety. When the team grows or the code handles payments or personal data, raise it to two.

What happens if someone pushes to main by mistake?

With branch protection on and admins included, GitHub refuses the push. The developer opens a pull request into develop instead, which is exactly the habit you want.

About the author

Vladyslav Lysechko
Vladyslav Lysechko, Performance marketer, Lysechko Digital, Rånåsfoss, Nes, Norway

I have worked with ads on Google, Meta and TikTok for more than seven years and personally managed ad budgets from $1,000 a day up to $50,000 a month. For the last two years I have built websites, automations and AI assistants with AI every day. I help local businesses in Oslo and on Romerike get more calls and bookings. LinkedIn

More Claude Code guides

EVAAbout 3 hours for part 1

Eva: an AI ads manager for Meta ads

Step by step guide to Eva, an AI ads manager in your team chat: Meta ads reports, cost per qualified lead and rules that work like a specialist.

Part 1: open with your accountFull program: 7 modules

DASHBOARDAbout 3 hours for part 1

A Facebook ads dashboard in kroner

Build a one link Facebook ads dashboard with Claude Code: spend, leads, cost per lead and cost per qualified lead in kroner, token safe on the server.

Part 1: open with your accountFull program: 6 modules

FACTS5 minutes to read, part 1 about 1 hour

Opus 5.5: facts and fakes, with sources

Is Opus 5.5 really on the Free plan? When did it come out? Four fakes and six facts about Claude Opus 5.5, each checked on Anthropic's own pages.

Part 1: open with your accountFull program: 6 modules

All guides

Let's have a short call

Tell me a little about your business and you get a concrete suggestion with a fixed price.

Email vlad@lysechko.com · Phone +47 462 17 168

Book a short call WhatsApp (opens in a new tab)