- Claude Code installed
- GitHub CLI authenticated (
gh auth login) - Copy settings.json to
~/.claude/settings.json
- Create
CLAUDE.mdat repo root with project rules - Add custom commands in
.claude/commands/
your-repo/
├── CLAUDE.md # Project rules (loaded automatically)
└── .claude/
└── commands/ # Custom slash commands
├── pr.md
└── review.md
~/.claude/projects/<project>/ # Auto-created by Claude
├── memory/MEMORY.md # Persistent memory
└── plans/ # Implementation plans
Project rules loaded automatically every session. See claude.md.
Claude maintains a MEMORY.md file per project in ~/.claude/projects/<project>/memory/. Use it to store preferences, context, and notes that persist across sessions. Just tell Claude what to remember.
When using plan mode, Claude saves implementation plans to ~/.claude/projects/<project>/plans/. Useful for complex tasks that need user approval before execution.
Claude Code supports hooks for automation. Useful hooks include notifications when Claude needs attention, or running linters before commits.
Place .md files in .claude/commands/ to register slash commands.
Work on multiple branches simultaneously:
git worktree add ../your-repo-2 feature/other-taskRun separate Claude sessions in each directory.