A setup guide new engineers can follow first time with Claude
The struggle: New engineers lose their first week because the setup README is out of date and every step needs someone to explain it.
What you end up with: A setup guide proven on a clean copy of the repo, with every missing step and wrong command fixed.
Claude Code follows your README as a new hire would, in a throwaway folder, and records each place it gets stuck. You fix the guide until it runs end to end, then re-test it each quarter.
Tools: Claude. Level: Pro. Time: 2 hours once, 15 min per upgrade.
Use it if
- Every new joiner hits the same snags
- The README says works on my machine
- Someone just joined and you can watch the guide fail
Skip it if
- Setup needs secrets you cannot keep out of the session
- Your environment cannot be recreated on a clean machine
What you need first
- Claude Pro or higher
- Claude Code installed
- Your repo and its current README
The method
Open a clean clone (Claude: Claude Code)
Clone the repo into a new empty folder, with no .env file and no cached installs, and run claude --permission-mode plan there so the first look changes nothing. Do not copy your own config into it.
Prompt to copy:
I am in a fresh clone of [repo]. Confirm the folder has no .env file and no installed dependencies, and list which tools it expects (language, package manager, database). Do not install anything yet.
You get: A fresh folder that behaves like a new laptop.
Tip: A dev container or a new user account is even closer to a clean machine.
Follow the README as a beginner (Claude: Claude Code)
Leave plan mode (Shift+Tab until the status bar no longer shows plan mode on) and keep the default mode, which asks before each command. Ask Claude to follow the README one step at a time and stop at each failure instead of working around it. Approve each command yourself.
Prompt to copy:
Act as a new engineer on a clean machine. Follow README.md one step at a time. For each step report: the command, the result, and whether the README was enough. When something fails or assumes an unstated tool, version or setting, stop and describe it. Do not guess or fix silently. Never ask for or use real secrets; use placeholders.
You get: A log of steps that worked, failed, or assumed something not written down.
Tip: Read every command before approving it. Refuse anything that touches production.
Fix the README with evidence (Claude: Claude Code)
Ask Claude to propose edits to the README for each failure, with the failing output as the reason.
Prompt to copy:
For each failure you found, propose the smallest README change. Add prerequisites with exact versions, the expected output after each command, and a Troubleshooting section for the errors you saw. Show a diff and do not apply it until I approve.
You get: A diff of README changes you can read before accepting.
Tip: Insist on exact versions and the expected output after each command.
Run it again from zero (Claude: Claude Code)
Delete the clone, make a new one, and have Claude follow the updated README again until it reaches a running app and passing tests without help.
Prompt to copy:
The README was updated. In this new clean clone follow it again from the first step. Stop at the first failure and report it. If everything passes, run the tests and tell me the exact commands and outputs.
You get: One clean run end to end.
Tip: Keep a date at the top: Last verified on [date].
Have a real new joiner test it (Claude: Chat)
Give the guide to the next new engineer and watch where they stop. Add what they stumble on.
You get: A guide that survives a human.
Tip: A person not Claude catches things like a missing access request.
Where this goes wrong
- Never paste or create .env files, keys or production credentials in the session. Use example values.
- Review every command before approving it and every README change before committing.
- A clean folder is not a clean machine: tools already installed on yours can hide missing steps.
- Setup steps that need access approvals still need a person.
Sources
More like this
- An incident timeline rebuilt from your git history
- Agent pull requests checked before a human merges
- A tracking plan that cleans up your event names
Updated . Written with AI help and checked by an independent review step, as described in our editorial standards.