05: Daily Workflows That Actually Work
30 minutes | You need: your codebase open, ~5 minutes per scenario
Pick real tasks from your codebase for each scenario. The learning is in seeing Claude work with your actual code, not hypotheticals.
Do This
Section titled “Do This”Scenario 1: Debug (5 min)
Section titled “Scenario 1: Debug (5 min)”Paste a real error from your logs or a failing test:
I'm getting this error: [paste error]. Trace through the codebase, find the root cause, and fix it.Claude-specific techniques:
- Start in Plan Mode (
/plan) for non-obvious bugs. Claude will investigate and reason before touching code — you review the diagnosis before any edit happens. - If the fix is wrong, press
Esc Escto rewind to the checkpoint before the edit. Try a different approach without losing your conversation. - For subtle bugs, add “think hard” to your prompt — it allocates more reasoning depth for that turn.
- If Claude is going in circles, try
/effort highto bump reasoning for subsequent turns.
Scenario 2: Write tests (5 min)
Section titled “Scenario 2: Write tests (5 min)”Pick an untested module:
Write comprehensive tests for src/services/auth.ts. Cover happy paths, edge cases, and error handling. Use our existing test patterns. Run the tests and fix any failures.The key phrase is “Run the tests and fix any failures” — this creates a feedback loop. Claude writes tests, runs them, sees failures, fixes them. Without this, you get tests that look right but don’t pass.
For TDD-style iteration: Use /loop (a bundled skill) to watch tests continuously:
/loop 30s Run the tests for auth.ts and fix any failuresScenario 3: Refactor (5 min)
Section titled “Scenario 3: Refactor (5 min)”Use Plan Mode (Shift+Tab) for this one:
Refactor src/utils/ to eliminate code duplication. Flag functions with >70% similarity and propose shared utilities. Don't change any public APIs.Review the plan before execution. For large refactors across many files, use /batch (a bundled skill):
/batch Rename all instances of userId to accountId across the codebase, updating types, tests, and imports./batch creates parallel git worktrees — multiple Claude instances working on different files simultaneously, then merging the results.
Scenario 4: Create a PR (5 min)
Section titled “Scenario 4: Create a PR (5 min)”After any of the above:
Commit these changes with a descriptive message, push to a new branch, and create a PR with a summary of what changed and why.Claude handles staging, committing, branching, and PR creation in one go. If you have GitHub MCP connected (Module 7), it uses that. If not, it falls back to the gh CLI — both work.
Scenario 5: Parallel work with worktrees (5 min)
Section titled “Scenario 5: Parallel work with worktrees (5 min)”Git worktrees let you run multiple Claude sessions on isolated copies of your repo — each on its own branch, without interfering with each other or your working directory.
# Start Claude in an isolated worktree for a featureclaude --worktree auth-refactorThis creates a separate checkout. You can have your main session working on one thing while the worktree session works on another. Changes stay isolated until you’re ready to merge.
When to use worktrees:
- Working on two features simultaneously
- Trying an experimental approach without risking your current branch
- Running a long task in the background while you continue other work
/batch uses worktrees under the hood — it creates one worktree per file group, runs parallel Claude instances, and merges the results. You used this in Scenario 3 for large refactors.
Scenario 6: Explore unfamiliar code (5 min)
Section titled “Scenario 6: Explore unfamiliar code (5 min)”Pick a module you’ve never touched. Delegate this to a subagent to keep your main context clean:
Use a subagent to explore src/payments/ and explain: the main components, how they connect, data flow for a typical transaction, and any existing retry/error handling I should know about.The subagent reads dozens of files in its own context window. You get the summary. Your context barely grows.
Scenario 7: Code review (5 min)
Section titled “Scenario 7: Code review (5 min)”Use the built-in review skill:
/simplifyThis reviews all changed files by launching 3 parallel agents — one checking for existing utilities you should reuse instead of rewriting, one flagging code quality issues (redundant state, copy-paste, leaky abstractions), and one catching efficiency problems (N+1 queries, missed concurrency, hot-path bloat). It then fixes everything it finds. Or do a targeted review:
Review the changes in the last 3 commits. Look for: missing error handling, potential race conditions, and anything that breaks our existing patterns.Prompting patterns worth remembering
Section titled “Prompting patterns worth remembering”| Pattern | Example | Why it works |
|---|---|---|
| Feedback loop | ”Run tests and fix failures” | Claude self-corrects instead of guessing |
| Constraint | ”Don’t change any public APIs” | Prevents scope creep |
| Delegation | ”Use a subagent to research X” | Saves your context for the actual work |
| Escalation | ”think hard about this” | More reasoning depth for one turn |
| Checkpoint | Esc Esc after a bad edit | Undo without losing conversation |
Session management
Section titled “Session management”| Command | What it does |
|---|---|
claude -c | Resume most recent session |
claude --resume | Pick from previous sessions |
/rename my-feature | Label current session for easy resume |
/voice | Voice input mode — dictate prompts hands-free (supports 20 languages) |
/remote-control | Continue this session from your phone via claude.ai/code |
Artifact
Section titled “Artifact”At least 3 completed workflow runs on your real codebase. A sense of which patterns work best for your specific project.
Go Deeper
Section titled “Go Deeper”Playbook M02 — Prompt Engineering for named techniques (zero-shot, few-shot, chain-of-thought) and the research behind them. Playbook M09 — Code Review for the Writer/Reviewer pattern.
Modules 6-8 add power-user capabilities — skills, MCP connections, and hooks. Modules 9-12 cover research patterns, verification, multi-agent orchestration, and adversarial review — essential for production use.