Skip to main content

Claude Code Basics Lesson 30 of 46

Example: From Repeating Yourself to Never Again

In short
  • The exact same job done three times, in three different conditions.
  • Only where the information lives changes: in your head, in a file, or in its own notes.
  • The payoff isn't in the first round: it's from the second one on.
  • And it shows what doesn't belong in permanent instructions.

The job

Every Monday morning you take the documents that came in during the week, rename them with the date and client name, sort them into the right folder, and put together a list of what arrived.

A boring, repetitive, always-the-same job: the perfect candidate.

Monday 1 — you explain everything

You open Claude Code in the folder and tell it the whole story: how clients are named, what format you want for the names, which folders things go into, that documents starting with "draft" get ignored, and that you want the list at the end in a text file.

It works. It took you ten minutes to explain and two to get it done. And in seven days none of it will be left: the desk emptied out the moment you closed it.

Monday 2 — the written instructions

This time, before starting, you run /init. It looks at the folder and proposes an instructions file with what it worked out on its own: which folders exist, how files are usually named.

Then you add the three things that can't be seen from the folder, written the way they should be — short and checkable:

  • file names go in the format year-month-day client;

  • files starting with "draft" don't get touched;

  • at the end of every reorganization, update the list in the file arrivals.txt.

Now Monday's request is down to a single line: "do this week's reorganization." You no longer repeat the fundamentals: it reads them on its own when it starts.

Monday 3 — memory does the rest

A case comes up that wasn't in the instructions: a client who sends documents under two different names. You tell it once — "these two names are the same client, always use the second one" — and it notes it down on its own.

The following Monday you don't tell it again. And when you see the line about recalled notes pop up, you know exactly what's happening, because you saw it in the last lesson. You go check what it wrote for itself, it checks out, you close it.

From here on the job takes two minutes, and neither of the two original ten-minute steps repeats anymore.

The thing we did NOT put in the instructions

Notice something: in all of this we never wrote the procedure into the instructions file. We wrote facts — formats, folders, exceptions — and made the request out loud.

If we'd also written the twelve reorganization steps in there, those twelve steps would have sat on the desk in every session, including the ninety-nine where you're doing something completely different.

Long procedures need a different home: one that only loads when it's needed. That's the next chapter.

And now

Second bucket closed: you know what Claude knows about you and how to make it find things already written. In the next chapter we turn the things you redo the same way every time into procedures you can call up with a word.

Did you get it?

Two minutes, no grade. Trying to answer — even getting it wrong — cements the concepts far more than rereading. Not in the mood? Skip it: the lesson still counts as complete.

In the example, what changes between the first and second session?

Which of these things does NOT belong in CLAUDE.md?

Course Claude Code Basics
  1. Chapter 1 Introduction

    1. 1 The Claude Ecosystem and Where Claude Code Fits
    2. 2 What Claude Code Is: The Collaborator Who Walks Into Your Studio
    3. 3 How an Agent Works: The Loop
  2. Chapter 2 What's Underneath

    1. 4 Claude Code in Action: The Loop, for Real
    2. 5 The Model Has No Memory: It Starts Over Every Time
    3. 6 The Harness: The Engine and the Gear Around It
    4. 7 The Map: Four Buckets
  3. Chapter 3 You Choose the Engine

    1. 8 There's No Single Claude: The Model Lineup
    2. 9 Which Model for Which Job
    3. 10 Effort: How Hard It Should Think
    4. 11 Model or Effort? The Question That Trips Everyone Up
    5. 12 The Bill: Why Saving Money Can Cost You More
  4. Chapter 4 First Time at the Controls

    1. 13 Where to Run It: Four Doors In
    2. 14 What You Need Before You Start
    3. 15 Installing Claude Code
    4. 16 The Folder: Where You Open It Decides What It Works On
    5. 17 Choosing the Engine, in Practice
    6. 18 Your First Task: Small, Yours, and It Works
  5. Chapter 5 What You Let It Touch

    1. 19 Why It Asks for Permission
    2. 20 The Rules: Always Yes, Ask Me, Never
    3. 21 The Modes: How Much Leash You Give It
    4. 22 Plan Mode: Get the Plan Before the Work
    5. 23 Verification in the Loop: Give It a Yardstick
    6. 24 Example: Putting the Bucket Together
  6. Chapter 6 What It Knows About You

    1. 25 CLAUDE.md: The Notes It Reads the Moment It Walks In
    2. 26 How to Write a CLAUDE.md That Actually Works
    3. 27 The Context Window: How Much It Can Hold at Once
    4. 28 Cleaning Up: Compact and Clear
    5. 29 Automatic Memory
    6. 30 Example: From Repeating Yourself to Never Again
  7. Chapter 7 Skills

    1. 31 What a Skill Is: A Procedure Written Once
    2. 32 Creating Your First Skill
    3. 33 The Description Decides Whether It Gets Used
    4. 34 Example: A Skill That Saves You the Week
  8. Chapter 8 How Many You Put to Work

    1. 35 The Subagent: A Helper With Its Own Desk
    2. 36 When a Helper Is Worth It (and What It Costs)
    3. 37 Teams: When Agents Talk to Each Other
    4. 38 Example: Searching Without Cluttering the Desk
  9. Chapter 9 What It's Connected To

    1. 39 MCP: The Standard Plug Into Your Tools
    2. 40 Plugins: Packaging Up and Borrowing
    3. 41 Example: When You Stop Copying and Pasting
  10. Chapter 10 Automating the Setup

    1. 42 Hooks: The Thing That Always Happens
    2. 43 Where It Fires and What It Can Do
    3. 44 When You Actually Need One (and When It's Too Much)
  11. Chapter 11 Wrap-Up

    1. 45 The Project: Your Expense Tracker
    2. 46 Wrap-Up: What You're Taking Home
From a Confusing Brief to a Complete UX/UI A vague brief becomes a navigable app. Product Ad From a Single Photo A photo becomes an animated ad, no code required. Get Claude to Watch Your Videos Claude watches your videos and turns them into text. Higgsfield Inside Claude Code Generate images and video while you code in Claude Code. Turn a Loom Recording Into a Web Page A screen recording becomes a web page, no code. Vertical Shorts With NotebookLM Your sources become a vertical short. Luxury Landing Pages on Lovable A luxury landing page from a single prompt. Excalidraw Running Locally Excalidraw free on your computer, no code. Mistral OCR in Your Workflow Extract text from documents with Mistral OCR. Claude SEO in the Terminal 25 free SEO skills inside Claude Code. Google Search Console inside Claude Code Search Console data inside your terminal. Claude Code Routines Claude working on its own, computer off. Clone a Landing Page in React With v0 Clone a real landing page into React code. Context Economy With Claude Work light and don't burn through Claude's limits. From Prompt to Self-Improving Skill Claude skills that learn from your mistakes. From NotebookLM to Canva: Presentations NotebookLM slides, finally editable in Canva. The Map for Understanding Every AI Tool 12 categories for placing any AI tool. Transparent PNGs With ChatGPT Real transparency, not a fake checkerboard. Animated Infographics With Gemini Infographics that loop, animated with Gemini. Market Research With Deep Research Deep Research as your market analyst. Get Cited by AI Search Engines (AEO) Become a source that ChatGPT and Perplexity cite.