How to Utilize Claude Code: A Plan Built by Claude

I wanted to go deeper with Claude Code. Not just use it for quick fixes, but actually understand how to get the most out of it.

So I did what many of us do: started collecting resources. Blog posts, Twitter threads, GitHub repos, official docs. Over weeks, the list grew:

But reading everything and synthesizing it? That’s where it sat.

Then I thought: why not ask Claude to do the synthesis for me? I’d give it all my collected resources and ask for a utilization plan. This post is the result.

The Utilization Plan

Here’s what Claude produced after analyzing everything I’d gathered.

Think First, Type Second

The most counterintuitive advice that kept appearing across resources: slow down before you start typing.

Most people assume that with Claude Code, the first thing you do is type. But that’s probably one of the biggest mistakes you can make. Claude has a plan mode—hit shift+tab twice—that forces you to think through architecture before implementation. The difference in output quality is dramatic.

Consider the gap between “build me an auth system” and “build email/password authentication using the existing User model, store sessions in Redis with 24-hour expiry, and add middleware that protects routes under /api/protected.” The second version eliminates ambiguity. Less wiggle room means better output.

Here’s the thing about AI agents: they’re incredible leverage. But leverage amplifies whatever you feed it. If you apply leverage to bullshit or a vague, too-wide input, you get amplified bullshit on the output. Garbage in, garbage out—just faster.

That’s why Anthropic’s official recommendation separates the work into phases: Explore → Plan → Code → Commit. Each stage is a filter. You explore to understand what exists. You plan to refine the approach and cut what’s unnecessary. Only then do you implement. The separation lets you catch problems early, before Claude multiplies them across your codebase.

CLAUDE.md as Your Leverage Point

This is the single most impactful thing you can configure. CLAUDE.md is a markdown file that Claude reads at the start of every session. It’s essentially onboarding material that shapes how Claude approaches your project.

What makes it effective? First, keep it short. Claude can reliably follow around 150-200 instructions, and the system prompt already uses about 50 of those. Every instruction you add competes for attention. If your CLAUDE.md is a novel, Claude will start ignoring things randomly.

Second, tell it why, not just what. “Use TypeScript strict mode” is okay. “Use TypeScript strict mode because we’ve had production bugs from implicit any types” is better. The why gives Claude context for judgment calls you didn’t anticipate.

Third, update it constantly. Press the # key while working and Claude will suggest additions automatically. Every time you find yourself correcting Claude on the same thing twice, that’s a signal it should be in the file.

One quote from the resources stuck with me: “Bad CLAUDE.md looks like documentation written for a new hire. Good CLAUDE.md looks like notes you’d leave yourself if you knew you’d have amnesia tomorrow.”

Claude as Teacher

There’s a risk with AI coding assistants that doesn’t get talked about enough: if you use them without reflection, your own abilities can atrophy over time. You accept the code, it works, you move on. But you didn’t learn anything.

One technique flips this dynamic. Add a paragraph to your CLAUDE.md that turns Claude into a teacher:

“For every project, write a detailed FOR[yourname].md file that explains the whole project in plain language. Explain the technical architecture, the structure of the codebase and how the various parts are connected, the technologies used, why we made these technical decisions, and lessons I can learn from it (this should include the bugs we ran into and how we fixed them, potential pitfalls and how to avoid them in the future, new technologies used, how good engineers think and work, best practices, etc). It should be very engaging to read; don’t make it sound like boring technical documentation. Where appropriate, use analogies and anecdotes to make it more understandable and memorable.”

Every project becomes a lesson. Claude doesn’t just write code—it explains what it did and why, in a way designed to make you more technical. The feedback loop runs both ways: you’re configuring Claude, and Claude is teaching you.

Context Window Reality

Here’s something most people don’t realize: context quality degrades at 20-40% capacity, not at 100%. If you’ve experienced Claude giving terrible output after compacting, that’s why. The model was already degraded before the compaction happened.

Every message you send, every file Claude reads, every piece of code it generates—all of it accumulates. And once quality starts dropping, more context makes it worse, not better.

Strategies that help: scope your conversations to one feature or task. Don’t use the same conversation to build your auth system and then also refactor your database layer. The contexts bleed together.

Use external memory. If you’re working on something complex, have Claude write plans and progress to actual files—something like SCRATCHPAD.md or plan.md. These persist across sessions. When you come back tomorrow, Claude can read the file and pick up where it left off.

There’s also the copy-paste reset trick. When context gets bloated, copy everything important from the terminal, run /compact to get a summary, then /clear the context entirely, and paste back only what matters. Fresh context with critical information preserved.

And know when to clear. If a conversation has gone off the rails, just /clear and start fresh. Claude still has your CLAUDE.md.

Skills and Commands

The next level is moving beyond ad-hoc prompting to reusable components.

Custom slash commands live in a .claude/commands/ folder. They’re prompt templates you use repeatedly, packaged as commands. If you run the same kind of task often—debugging, reviewing, deploying—make it a command.

Skills are more versatile. You can reference them in system prompts, manually inject them with @, or trigger them automatically using keywords. Nick Tune categorizes skills into four types: orchestration (the workflow Claude follows, like a TDD process), knowledge (information to weight heavily, like design principles), task (independent tasks like analyzing code), and personality (how Claude should behave—direct, challenging, enthusiastic).

The insight here is important: you’re not just using Claude. You’re configuring it for your specific work. Several GitHub repositories—from mitsuhiko, affaan-m, alirezarezvani—contain extensive examples of skills and commands you can adapt.

Auto-Review via Hooks

A well-crafted system prompt will increase code quality. But here’s the uncomfortable truth: Claude ignores instructions regularly. As one source put it, “as the context window fills up and starts to intoxicate them, all bets are off.”

The solution is building feedback cycles. Claude Code has hooks—scripts that run automatically before or after certain events. The pattern that emerged from the resources: use a Stop hook to trigger a separate subagent that reviews modified files before control returns to you.

What should this review check? Semantic issues that lint tools can’t catch. Naming problems like “helper” and “utils” that should be better domain names. Logic leaking out of the domain model. Dangerous default fallback values that Claude loves to add.

The key principle: asking the main agent to mark its own homework isn’t a good approach. Use a separate subagent with a critical mindset.

When Stuck

Sometimes Claude loops. It tries the same thing, fails, tries again, fails, and keeps going. The instinct is to keep pushing—more instructions, more corrections, more context. But the better move is changing the approach entirely.

Start simple: clear the conversation. Accumulated context might be confusing it. Then simplify the task. If Claude is struggling with something complex, break it into smaller pieces. If it’s still struggling, your plan mode was probably insufficient.

Show instead of tell. If Claude keeps misunderstanding what you want, write a minimal example yourself. “Here’s what the output should look like. Now apply this pattern.” Claude is good at pattern-matching from examples.

And try reframing. “Implement this as a state machine” versus “handle these transitions”—different framing can unlock progress. The meta-skill is recognizing when you’re in a loop early. If you’ve explained the same thing three times and Claude still isn’t getting it, more explaining won’t help.

Bonus: Running Claude Locally

Sometimes you can’t access a paid Claude subscription. Maybe you’re between jobs, maybe your company hasn’t approved the expense yet, or maybe you just want complete privacy with no data leaving your machine.

There’s an option: run Claude Code with local open-source models using Ollama. The setup involves four steps. First, install Ollama—it runs quietly in the background and hosts AI models locally. Then download a coding-focused model. For powerful machines, something like qwen3-coder:30b works well. For lower RAM, qwen2.5-coder:7b or even gemma:2b will do.

After installing Claude Code normally, you redirect it to your local Ollama instance instead of Anthropic’s servers:

export ANTHROPIC_BASE_URL="http://localhost:11434"
export ANTHROPIC_AUTH_TOKEN="ollama"
export CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=1

Then launch with your chosen model: claude --model qwen2.5-coder:7b

No API calls. No cloud processing. Zero cost. The tradeoff is that local models aren’t as capable as Claude’s flagship models—but for many tasks, they’re good enough. And for learning the Claude Code workflow itself, the experience is nearly identical.

Conclusion

Claude Code is a powerful tool. But the power doesn’t come from the model alone—it comes from how you configure and use it.

The engineer’s task is to build the right context: a well-crafted CLAUDE.md, a phased workflow that filters out ambiguity, awareness of context window limits, and skills that encode your specific needs. Get this right, and Claude becomes genuine leverage. Get it wrong, and you’re just amplifying noise.

The best part? This investment pays off twice. Your productivity improves because Claude produces better output. And your skillset improves too—especially if you treat Claude as a teacher, not just a code generator. The compound effect is real: every refinement to your setup makes the next session better.