The starting baseline should be clean and reproducible
Start the capstone from a controlled point: repository, SPEC.md, CLAUDE.md, EVIDENCE.md, and one small next task. Check the baseline state first, then begin functional implementation.
A new project can start with git init, basic directories, and the first commit. An existing repository needs a clean tree and a separate working branch.
| Artifact | Role at the start |
|---|---|
| Repository | A versioned point of reference and change history |
| CLAUDE.md | Short project rules, commands, and prohibited actions |
| docs/SPEC.md | The contract for scope, criteria, constraints, and verification |
| docs/EVIDENCE.md | A log of decisions, checks, risks, and unresolved questions |
| Backlog | Small sequential steps through one core flow |
Git baseline and .gitignore
- Check git status and confirm there are no unsaved changes.
- Add the directory structure and starting documents.
- Make sure .env files, dependencies, build output, logs, and caches are not tracked.
- Review the file list before committing.
- Create a separate baseline commit.
- Record the state from which the first small task begins.
git status
git diff --stat
git ls-filesCLAUDE.md should be short and local
Permanent rules belong in CLAUDE.md, while hypotheses, ideas, and current results belong in SPEC.md, EVIDENCE.md, or separate working notes. Do not add secrets or unverified assumptions to the instructions.
- describe the purpose of the system;
- name the real commands for running and checking it;
- record the rules for making changes;
- prohibit actions that require separate approval;
- require the report to list changed files and completed checks.
Create EVIDENCE.md immediately
- what was requested from Claude;
- what useful result was obtained;
- which decisions the developer made;
- how the result was checked;
- which risks or questions remain open.
The first task should be small
- Run the project locally.
- Implement one happy path.
- Add a smoke check.
- Record the actual result in EVIDENCE.md.
- Review the diff and update SPEC.md if needed.
- Move to the next step only after checking the previous one.
Canonical lesson source · JavaRush
Open JavaRush material