---
title: "11 Quick Claude Code Fixes for Everyday Problems"
author: "Ecem Karaman"
source: "https://aiwithecem.com/guides/claude-code-techniques"
published: 2026-11-14
tools: ["Claude"]
topics: ["Skills","AI Agents","Building"]
---

# 11 Quick Claude Code Fixes for Everyday Problems

Most Claude Code advice comes as a flat list of tips. It's easier to use when you start from what's going wrong: Claude agrees with everything, forgets how your project works, or says "done" when it isn't. Below are 11 techniques grouped by the problem each one fixes, with a prompt or file you can copy for each.

**Details checked against [Claude Code's docs](https://code.claude.com/docs) on November 14, 2026.**

> **In this guide**
>
> 1. [Claude agrees with everything](#claude-agrees-with-everything)
> 2. [Claude forgets how your project works](#claude-forgets-how-your-project-works)
> 3. [You keep repeating yourself](#you-keep-repeating-yourself)
> 4. [Big tasks get messy](#big-tasks-get-messy)
> 5. ["Done" doesn't mean it works](#done-doesnt-mean-it-works)
> 6. [Your setup stops improving](#your-setup-stops-improving)
> 7. [Start with these three](#start-with-these-three)

## Claude agrees with everything

**1. Ask for pushback before it builds.** If you describe an approach and Claude starts coding right away, a weak design gets locked in early. Press **Shift+Tab** until the status bar shows plan mode, so Claude reads and proposes without editing anything, then invite disagreement:

```text
Before you write any code, tell me what's wrong with this approach. Name one alternative and when it would be better. If my plan is fine, say so and explain why.
```

To make it a standing rule, add one line to your CLAUDE.md: "If a request has a simpler or safer alternative, say so before implementing."

## Claude forgets how your project works

**2. Keep CLAUDE.md short and about how to work.** CLAUDE.md loads into every session. Use it for build and test commands, conventions and the rules Claude can't infer from the code. The docs suggest keeping each file under 200 lines, since longer files cost context and get followed less reliably.

- Run `/init` to generate a first draft from your codebase, then cut what Claude would figure out anyway.
- Move rules that only apply to part of the codebase into `.claude/rules/` with a `paths:` field, so they load only when Claude touches matching files.

**3. Keep the spec in its own file.** CLAUDE.md says *how* to work. A spec says *what* you're building: users, requirements, decisions and what's out of scope. Put it in something like `docs/spec.md` and point to it:

```text
Read docs/spec.md before planning. If what I'm asking conflicts with the spec, flag it instead of choosing for me.
```

Mixing the two makes CLAUDE.md long, and every session pays for it.

## You keep repeating yourself

**4. Turn a repeated workflow into a skill.** If you've explained the same process three times, write it down once. A skill is a folder with a `SKILL.md` file. Claude loads it when your request matches its description, or you run it with `/skill-name`.

```text
.claude/skills/release-notes/SKILL.md

---
description: Writes release notes from merged changes. Use when the user asks for release notes or a changelog entry.
---
1. List changes since the last tag.
2. Group them into Added, Fixed and Changed.
3. Write one plain-language line per change. Skip internal refactors.
```

Only skill descriptions sit in context until a skill is used, so you can have several without paying for all their instructions every turn.

**5. Keep one copy of shared context.** If three skills all need your style rules, don't paste them three times. Keep the rules in one file and point each skill to it. In CLAUDE.md, `@docs/style.md` imports the file, but imports still load in full, so use them for things every session needs.

## Big tasks get messy

**6. Hand side work to subagents.** A subagent runs in its own context window and returns only a summary, so research, log digging or code review don't flood your main conversation. Define a reusable one in `.claude/agents/`. Subagents use the same plan limits as your main session, so use them where the separation pays off. More in [Subagents](/guides/subagents).

**7. Clear between tasks, compact with a focus.** Most current models have a large context window and compact automatically, so running out is rare. A focused context still gives better answers and costs less.

| Command | Use it when |
| --- | --- |
| `/clear` | You're switching to unrelated work, or you've corrected the same mistake twice |
| `/compact keep the API changes and test commands` | You want to continue but drop the noise |
| `/context` | You want to see what's using space |

## "Done" doesn't mean it works

**8. Put a gate in front of "finished."** Instructions in CLAUDE.md are guidance, so Claude can skip them. Hooks always run. This one, in `.claude/settings.json`, runs your linter after every file edit:

```json
{
  "hooks": {
    "PostToolUse": [
      {
        "matcher": "Edit|Write",
        "hooks": [{ "type": "command", "command": "npm run lint --silent" }]
      }
    ]
  }
}
```

**9. Make testing part of the task.** Don't make your first step finding what broke. Ask for proof:

```text
When you finish, run the tests and the build, then show me the output. If anything fails, fix it before saying you're done.
```

For app changes, the bundled `/verify` skill builds and runs your app to check that a change does what it should, rather than relying on tests alone.

## Your setup stops improving

**10. Let memory hold what doesn't belong in the repo.** Claude Code has two layers. Keep them separate so CLAUDE.md doesn't turn into a dumping ground:

| | CLAUDE.md | Auto memory |
| --- | --- | --- |
| Written by | You | Claude |
| Holds | Rules and workflows | Your preferences and corrections |
| Check it | Open the file | `/memory` |

**11. End with a retro.** After a task that took more back-and-forth than it should have:

```text
Looking at this session, what should change so the next one goes faster? Suggest specific edits: a CLAUDE.md line, a new skill, a hook or a missing test.
```

Apply one suggestion, not all of them. To keep the setup from drifting over time, see [Claude Code maintenance](/guides/claude-code-maintenance).

## Start with these three

- [ ] **Technique 1:** add the "say so before implementing" line to your CLAUDE.md
- [ ] **Technique 9:** end your next task prompt with "run the tests and show me the output"
- [ ] **Technique 11:** run the retro prompt after your next long session and apply one change

**Go deeper:** [Claude Code docs: memory](https://code.claude.com/docs/en/memory) · [Skills](https://code.claude.com/docs/en/skills) · [Hooks](https://code.claude.com/docs/en/hooks-guide) · [Claude Code commands](/guides/claude-code-commands) · [Harness Engineering](/guides/harness-engineering)
