Here's what I covered in this section.
- Your -token context fills fast. Use
/clearto start fresh; reach for/compactonly when you can't restart. - Press Shift+Tab twice to enter plan mode. Planning first cuts task time by more than half.
- The
-pflag lets you pipe Claude into scripts and CI/CD pipelines. PreToolUsehooks block tool calls before they run.PostToolUsehooks react after.- Write a SPEC.md for any non-trivial feature. Specs survive context resets.
- Keep CLAUDE.md under characters. Move detailed decisions into ADR files.
- A shared CLAUDE.md in the repo root gives every team member the same starting rules.
anthropics/claude-code-actionruns Claude as a headless CI agent for PR review and auto-fix.claude -w <name>opens an isolated session on its own branch. Run + in parallel.- Giving Claude a verification step catches bugs before you see them.