Everything to know before your first Lesson: what this course teaches, what to install, and how to read a page here.
Your goals
By the end of this Lesson
- You'll be able to say which of the course's four Parts to turn to for a given problem.
- You'll be able to set up Claude Code with the native installer, an eligible plan, a terminal and git, and know when you'd need Node.js.
- You'll be able to use a Lesson's Checkpoints as you read, and its dated sources to spot a renamed Skill.
- You'll be able to start
/teachin a folder of its own to learn a side topic over several sessions.
What this course is
This is a course on working with a coding agent: an AI that reads your files, runs commands and writes code while you steer. The agent is Claude Code, Anthropic's coding agent, which runs in your terminal (the window where you type commands). The method comes from Matt Pocock, a developer and teacher who publishes a popular set of Skills for Claude Code. A Skill is a short instruction file the agent loads when you type its name, like /grill-me, or, for some Skills, when your request matches what it's for.
It's for you if you've never coded with an agent.
Why Skills? In March 2026 Matt compared agents to a team of decent engineers on call, adding that "the weird thing about these engineers is they have no memory." So the process must be written down, and his Skills are that process, from idea to shipped code. In an October 2026 review, Colin Eberhardt of Scott Logic found their practices sound but said they don't remove the need for your judgement. So the course teaches both: what each Skill does, and which decisions stay yours.
The worked example throughout is this site, built with these same Skills.
What you need
- A computer and a terminal. A recent Mac, Windows or Linux machine with 4 GB of RAM or more. Use Terminal on a Mac, PowerShell on Windows, any terminal app on Linux.
- Claude Code, from the native installer, which keeps itself up to date. On a Mac, Linux or WSL (Linux running inside Windows):
curl -fsSL https://claude.ai/install.sh | bash. In Windows PowerShell:irm https://claude.ai/install.ps1 | iex. Then open a new terminal window and runclaude --version. Still not found? Follow the fix the installer printed under "Setup notes", then open another window. - An eligible plan: a paid Pro, Max, Team or Enterprise plan, or a Claude Console account (Anthropic's developer account, paid with credits you buy in advance). The free claude.ai plan doesn't include Claude Code. Running
claudestarts a session: one conversation with the agent, until you quit or clear it. - Git, which saves snapshots of a project so you can compare and undo changes. Most of the course happens in a repo: a folder git tracks. On Windows, install Git for Windows (git-scm.com), which also lets Claude Code use Bash, a common command shell. On Linux, use your package manager.
- Node.js is optional. Claude Code doesn't need this JavaScript tool. You'd only use it to run this site's code, or for a second way of installing Matt's Skills that this course doesn't use.
Install Claude Code with the native installer. It shows no progress while it downloads, so give it a minute.
Open a new terminal window, then check it. A version number means it worked. If it's still not found, follow the fix the installer printed under "Setup notes", then open another window.
Check git too. If it's missing, your Mac offers to install it.
Make an empty practice folder and turn it into a repo, one command per line.
Start Claude Code. The first time, answer its setup questions and log in when a browser opens. Then it asks whether you trust this folder: choose Yes.
Checkpoint 1 of 4
Show the answer
Answer: Open a new terminal window and try again.
- Install Node.js, then run the installer again. Claude Code's native installer doesn't need Node, so that isn't the problem.
- Open a new terminal window and try again. Right. The window you installed from keeps the PATH it started with (the list of folders your terminal searches for commands), so the docs say to check in a new window first. If it's still missing, the installer's folder isn't on your PATH. The installer doesn't change PATH itself, but the "Setup notes" it prints give the fix.
- Reinstall it with a different installer. Don't reinstall yet. First rule out the old window, then check the installer's Setup notes about PATH.
- Log in first, then run the version check again. There's nothing to log in to yet: the terminal can't find
claudeat all. You log in the first timeclaudestarts.
How to read a Lesson
- Goals. 3–4 things you'll be able to do. The Final test checks them.
- Scenes. Small pictures beside the text (above it on a phone), such as a chat, a terminal, a flow chart or a file list, each with numbered captions to read in order. "Illustrative" marks a made-up session that behaves like the real Skill.
- Checkpoints. One question right after the idea it checks. Pick an answer, then open "Show the answer" to see why each option is right or wrong. They never count, so guess freely.
- Try it yourself. The exact prompt to copy, numbered steps and an "It's working if" checklist.
- The Site story box. How the author really used the Skill on this site, mistakes included. It's kept apart from the teaching: the story is what happened, the teaching is what to do.
- The Final test. Questions at the end on the Lesson's goals. Answer them all, then open the box under each one to check yourself.
- Sources, each dated. Skill facts match version 1.3.1 of Matt's Skills, and Claude Code facts 23 October 2026 (version 2.1.309). Matt renames Skills, so an older video may say write-a-prd where this course says
/to-spec.
Checkpoint 2 of 4
Show the answer
Answer: /grill-with-docs, since the teaching is the current advice.
/grilling, because it's what really worked on this site. The Site story is one real run, mistakes and all. It records what happened, not what's recommended.- Either one, since the story and the teaching are equally good advice. They aren't equal. The story can show a choice the author made before knowing better. The teaching is what to do now.
/grill-with-docs, since the teaching is the current advice. Right. The teaching is what to do now. The story sits in its own box so you can tell what happened from what to do.- Both, one after the other, so you follow the story and the teaching. No need.
/grill-with-docsalready runs the/grillinginterview, and writes docs as it goes. The teaching is the one to follow.
The four Parts
The 20 Lessons sit in four Parts. Read them in order the first time.
- Part 1, Foundations: how an agent works, why its working memory fills up and its work slips in a long session, and what a Skill is. Start here, How coding agents work, The context window, Skills.
- Part 2, The main flow: Matt's path from idea to shipped code, step by step (this section's Scene walks through it), then the whole map. Grilling, Domain modeling, Prototype, Spec + tickets, TDD, Implement, Code review, PR + ship, The main flow.
- Part 3, When things go wrong: a stubborn bug, a pile of incoming requests, steps only a human can do. Diagnosing bugs, Triage, Wizard.
- Part 4, Level up: a codebase agents can work in, learning from each build, huge projects, choosing models. Architecture, Retro, Wayfinder, Models, effort & ultracode.
Part 2 follows what Matt calls the Main flow: the path most work takes through his Skills.
- Grill the idea
- Detour: a quick prototype
- Big build: spec, then tickets
- Small change: build it right here
- Build it test-first
- Pull request
- Retro
Most changes start with an interview:
/grill-with-docsasks questions until you and the agent want the same thing.A question that talking can't settle, like how a page should look, takes a detour: a quick throwaway build with
/prototype, and you bring back what you learned.A build too big for one session gets written up as a spec (what to build and why) with
/to-spec, then split by/to-ticketsinto tickets: pieces the agent can finish one at a time.A small change skips the spec and tickets:
/implementbuilds it right here, in the same conversation.Either way,
/implementbuilds by driving/tdd(test-driven development: one small automated check, then just enough code to pass it), and closes with a code review against your coding standards and, when there is one, the spec.A pull request, or PR (a proposed change, checked before it joins the main code), is how the work reaches the live site. The agent writes its description with
/pr./retrolooks back on the session and suggests changes to the agent's setup; you choose which to make. It gets its own Lesson, in Part 4.
Checkpoint 3 of 4
Show the answer
Answer: Diagnosing bugs
- Diagnosing bugs Right. It's in Part 3, When things go wrong, built for a problem that resists a first look.
- Triage Triage sorts a pile of incoming reports and requests. You have one problem you can't explain.
- Code review Code review checks a finished change against your coding standards and, when there is one, the spec. Here something misbehaves and nobody knows why, so the first job is finding the cause.
- Models, effort & ultracode A stronger model or more effort won't tell you why comments vanish. First you need the cause, and that's what Diagnosing bugs is for.
Learn anything with /teach
If the terminal, git or anything else here is new to you, Matt has a Skill for it, once his Skills are installed (step 5 of the Try below). /teach is user-invoked (only you can start it, by typing its name), and it teaches one topic over several sessions.
It turns the folder you run it in into a teaching workspace and keeps everything there as files. First it asks why you want to learn, and saves that as the mission. It doesn't trust what the AI already knows: it finds trusted sources, cites them in every lesson, and recommends one to read yourself.
- MISSION.mdaddedchanged
- RESOURCES.mdaddedchanged
- lessons/0001-what-a-commit-is.htmladdedchanged
- assets/lesson.cssaddedchanged
- learning-records/0001-commits.mdaddedchanged
- reference/git-cheat-sheet.htmladdedchanged
- lessons/0002-branches.htmladdedchanged
You type
/teach git basicsin an empty folder. It asks why you want to learn, then writes your answer down as the mission.It searches for trusted sources before it teaches anything.
Your first lesson: one short web page (an HTML file) with practice and a source to read yourself, styled by a shared stylesheet.
You get the practice right. It writes down what you've shown you know, so the next lesson builds on it.
It keeps a cheat sheet you'll come back to.
Next week, in a fresh session in the same folder,
/teachreads these files and plans lesson two.
So run it in an empty folder of its own, never in your project. To carry on later, open Claude Code in that folder and type /teach again. Its memory is in files, so /clear, a Built-in command (part of Claude Code itself) that empties the conversation, loses nothing.
In his June 2026 video, Matt learns to solve a Rubik's Cube with it, opening a session by saying where he's stuck. There's no level check, so say what you already know in your first message, and check lessons against the source it recommends.
Checkpoint 4 of 4
Show the answer
Answer: In ~/learn-chess, type /teach, as its files hold your progress.
- In
~/learn-chess, paste last week's lesson so it remembers you. Pasting doesn't start/teach: only typing its name does. And its files already hold what you've learned. - Start from scratch, because
/clearerased everything it knew./clearempties the conversation, not the folder. The mission, lessons and learning records are still there. - Make a new empty folder, since each session needs a fresh workspace. The opposite: one workspace per topic, reused every session. A new folder starts from zero, with no mission or records.
- In
~/learn-chess, type/teach, as its files hold your progress. Right. It reads its own files, sees what you've learned and plans the next lesson. Tell it where you're stuck, as Matt does.
Try it yourself
Your turn
You need a terminal and an eligible plan. Press Enter after each command.
- Check your tools. If either isn't found, install it (see What you need), then open a new terminal window.
claude --version
git --version
- Make a practice repo and start Claude Code in it. Answer its first-run questions, and log in when a browser opens. When it asks whether you trust this folder, choose Yes.
mkdir agent-practice
cd agent-practice
git init
claude
- Type
/help, then ask the question below. While the agent works, Esc stops it. If it asks permission to do something you didn't ask for, choose No.
What's in this folder? Don't change anything.
- Type
/exitto quit. - Optional: install Matt's Skills as a plugin (an add-on that updates itself), then start a learning folder of its own.
claude plugin install mattpocock-skills@claude-plugins-official
mkdir ~/learn-git
cd ~/learn-git
claude
/teach git basics. I've never used git.
Answer its questions, then type /exit.
It's working if:
- Both version commands print a version number.
/helplists commands, and the agent describes the folder as empty apart from git's hidden folder.- (Optional)
/teachasks why you want to learn before it shows a lesson, andlsin~/learn-gitlistsMISSION.md.
Cheat sheet
| You want to | Do this |
|---|---|
| Check the install | claude --version, in a new window |
| Start a session | cd into your repo, then claude |
| Stop the agent, or quit | Esc stops it; /exit quits |
| Find which Skill fits | Type /ask-matt, then your situation, in one message (Skills covers it) |
| Learn a side topic | /teach, in a folder of its own |
Final test
6 questions on everything above. Pick your answer, then open the box under it to check.
Show the answer
Answer: Part 1, Foundations
- Part 1, Foundations Right. Foundations explains how an agent works and why its working memory fills up over a long session, which is what you're seeing.
- Part 2, The main flow The main flow walks you from idea to shipped code. It relies on knowing why a long session goes downhill, and Part 1 explains that.
- Part 3, When things go wrong Part 3 is for problems in your project: a stubborn bug, a pile of incoming requests, steps only a human can do. This one is about how the agent itself works.
- Part 4, Level up Part 4 covers choosing models, but even the best model slips as a long session fills its working memory. Why that happens is a foundation, in Part 1.
Show the answer
Answer: A paid plan or a Console account
- No, their chat account works once they log in Free claude.ai chats don't include Claude Code at all. They need a paid plan or a Console account.
- A GitHub account to log in with Claude Code logs in with a Claude account in the browser, not with GitHub.
- A paid plan or a Console account Right. Claude Code needs a paid Pro, Max, Team or Enterprise plan, or a Claude Console account with credits bought in advance.
- Node.js installed alongside Claude Code The native installer doesn't need Node. The plan is what's missing.
Show the answer
Answer: Step 2, installing Node.js
- Step 1, the native installer The native installer is the recommended way to get Claude Code, and it keeps itself up to date.
- Step 2, installing Node.js Right. The native installer doesn't need Node.js. She'd only want it to run this site's code, or for a second way of installing Matt's Skills that this course doesn't use.
- Step 3, the new terminal window The docs say to check the install in a new window, and the version number proves it worked.
- Step 4, the practice repo Most of the course happens in a git repo, so a fresh practice repo is exactly the right place to start.
Show the answer
Answer: Answer it anyway, then read the feedback on every option.
- Skip it, since a wrong guess lowers your Final test score. Checkpoints never count towards anything. A wrong guess costs nothing, and the feedback teaches you.
- Reread the whole Lesson from the top before you answer. A Checkpoint sits right after the idea it checks, so the section just above is all you need.
- Jump to the Final test, since only it shows the answers. Every Checkpoint has its own answer box, with feedback on each option.
- Answer it anyway, then read the feedback on every option. Right. Checkpoints never count, so a wrong answer costs nothing, and the feedback shows what you missed.
Show the answer
Answer: In a new empty folder, so lesson files stay out of your code.
- In a new empty folder, so lesson files stay out of your code. Right. One topic per workspace, outside your project. Its mission, lessons and records live there between sessions.
- In
~/recipes, so it can learn from your real code. It would turn your project folder into a teaching workspace, mixing lesson files in with your code. Even for learning a codebase, Matt suggests starting the learner in a separate workspace and pointing it at the code. - Nowhere, since asking in your recipe session works just as well. Asking in passing suits one explanation. Two weeks of learning that builds session by session is what
/teachis for. - In your home folder, so every project you have can use it. A shared folder mixes topics.
/teachkeeps one mission per workspace, so give SQL a folder of its own.
Show the answer
Answer: Matt has renamed that Skill since the post was written.
- Bug-hunting Skills only start on their own, never by typing. Any of Matt's Skills starts when you type its name, and some can also start on their own. The name in the post is out of date.
- That Skill only starts inside a git repo. Matt's Skills come as a plugin, which works in any folder.
/teachworks, so they're loaded; this name is out of date. - Matt has renamed that Skill since the post was written. Right. Matt renames Skills, so check a source's date. This course uses the 1.3.1 names, where that Skill is
/diagnosing-bugs. - That Skill needs a higher plan, such as Max. Every eligible plan runs the same Skills. The plan isn't the problem; the name is out of date.
