Module Two: Claude Code Features โ Memory, Skills, and More!
Welcome back, young coder! In Module One, we learned the basics โ what Claude is, how to set up Claude Code, and how to create a simple web page. Now, in Module Two, we will go deeper. We will learn about powerful features that make Claude Code even more amazing! We will discover CLAUDE.md (a memory file for your project), Skills (reusable instructions), MCP (connections to external tools), and more. We will also learn about hooks and subagents. These are like superpowers for your coding assistant. Let's dive in!
After completing this module, you will be able to:
Chidi's Memory Trick
Chidi was building a big website for his family's business. He had to keep telling Claude the same details over and over โ "We sell bread, our colours are brown and cream, our location is Lagos." He was tired of repeating himself. Then he discovered CLAUDE.md โ a file where he could write all the important details once. He created the file and wrote: "This is a bakery website. Colours: brown and cream. Location: Lagos." Now Claude remembered everything! Chidi saved hours of work. He said, "CLAUDE.md is like a memory stick for my project!"
Definition: CLAUDE.md is a special text file in your project folder where you write important information about your project so Claude remembers it.
Why it's important: You don't have to re-explain everything to Claude every time.
Simple explanation: It's like writing notes for yourself so you don't forget.
Real-life example: A developer writes "This project uses React and Tailwind" in CLAUDE.md.
School example: A student writes "This project is about space" in the file.
Home example: A parent writes "Our business sells clothes" in the file.
Nigerian example: A team in Abuja writes "We use TypeScript and Express" in CLAUDE.md.
Illustration โ CLAUDE.md Content:
CLAUDE.md file: "This is a bakery website. Use HTML, CSS, and JavaScript. The colours are brown and cream. The business is located in Lagos."
Mini summary: CLAUDE.md stores project info so Claude remembers it.
Definition: Creating a CLAUDE.md file is as simple as making a new text file with that name.
Why it's important: It's the first step to giving Claude project memory.
Simple explanation: Like creating a new document in your folder.
Real-life example: A developer uses a code editor to create CLAUDE.md.
School example: A student creates the file in their project folder.
Home example: A parent creates it for their small business site.
Nigerian example: A developer in Kano creates CLAUDE.md for a new project.
Illustration โ Creating the File:
Step 1: Open your project folder. Step 2: Right-click and choose "New Text File". Step 3: Name it "CLAUDE.md" (make sure the extension is .md). Step 4: Write your project information inside. Step 5: Save the file.
Mini summary: Create CLAUDE.md in your project folder with any text editor.
Definition: You can put any information that helps Claude understand your project โ like the tech stack, design choices, business rules, and goals.
Why it's important: It gives Claude context so it gives better answers.
Simple explanation: Like giving a friend background information before asking a question.
Real-life example: "We use React, Node.js, and MongoDB. The app is a social media platform."
School example: "This is a school project. Use simple HTML and CSS."
Home example: "This is a family recipe website."
Nigerian example: "This is a delivery app for Lagos. Use Pidgin English for user messages."
Illustration โ Example CLAUDE.md:
# Bakery Website Project - Languages: HTML, CSS, JavaScript - Colours: #8B4513 (brown), #FFF8DC (cream) - Location: Lagos, Nigeria - Target customers: Families - Special features: Online ordering, delivery
Mini summary: Put project details, tech stack, and design info in CLAUDE.md.
Definition: Skills are reusable instructions that you can save and use with Claude. They tell Claude exactly how to do a specific task.
Why it's important: Skills save time and make complex tasks easy.
Simple explanation: Like a recipe you can use again and again.
Real-life example: A skill called "Perfect Web Clone" copies any website into code.
School example: A "create quiz" skill for making class quizzes.
Home example: A "budget planner" skill for household expenses.
Nigerian example: A "business report" skill for Nigerian companies.
Illustration โ Skill Usage:
You: "/clone-website https://example.com" Claude: Uses the "clone website" skill to copy the site.
Mini summary: Skills are reusable instructions for Claude.
Definition: This is a skill that clones (copies) any public website into a new project with HTML, CSS, and JavaScript.
Why it's important: It's useful for learning, rebuilding lost sites, or migrating platforms.
Simple explanation: Like photocopying a page from a book.
Real-life example: You clone a site to learn how it's built.
School example: You clone a site for a class project.
Home example: You clone a site to understand web design.
Nigerian example: A developer clones a popular Nigerian site to study its structure.
Illustration โ Clone Process:
Target Site ---> Claude extracts code ---> New Project (example.com) (HTML, CSS, JS) (ready to run!)
Mini summary: Claude can clone websites for you.
Definition: MCP stands for Model Context Protocol. It lets Claude connect to external tools like databases, APIs, or file systems.
Why it's important: This makes Claude more powerful โ it can access real data.
Simple explanation: Like giving Claude a phone to call other services.
Real-life example: Claude connects to a SQLite database to query user data.
School example: Claude connects to a database to show student scores.
Home example: Claude connects to a budget tracker.
Nigerian example: Claude connects to a database of customers.
Illustration โ MCP Architecture:
Claude <-----> MCP Server <-----> Database (AI) (bridge) (data)
Mini summary: MCP connects Claude to external data and tools.
Definition: Setting up MCP means configuring it so Claude can connect to your data source.
Why it's important: You need to set it up before Claude can access external data.
Simple explanation: Like connecting a wire from your computer to a printer.
Real-life example: A developer adds an MCP configuration file to their project.
School example: A student sets up MCP for a database project.
Home example: A parent sets up MCP for a budget app.
Nigerian example: A developer in Lagos sets up MCP for a delivery app.
Illustration โ MCP Setup:
1. Create a configuration file (mcp.json). 2. Write the connection details (like database URL). 3. Save it in your project folder. 4. Claude can now connect to the data!
Mini summary: MCP setup is easy โ just a configuration file.
Definition: Hooks are scripts that run automatically before or after Claude does something โ like running tests after writing code.
Why it's important: They automate repetitive tasks.
Simple explanation: Like a robot that cleans up after you.
Real-life example: A hook runs tests every time Claude changes code.
School example: A hook checks spelling in your project.
Home example: A hook backs up your files.
Nigerian example: A hook sends a notification after deployment.
Illustration โ Hook Flow:
Claude writes code ---> Hook runs tests ---> Tests pass! โ
Mini summary: Hooks automate tasks around Claude's work.
Definition: There are different types of hooks: pre-hooks (run before) and post-hooks (run after).
Why it's important: Different tasks need different timing.
Simple explanation: Like washing your hands before eating and brushing your teeth after.
Real-life example: A pre-hook checks if your code has errors before saving.
School example: A pre-hook checks your project name.
Home example: A post-hook saves your project automatically.
Nigerian example: A pre-hook checks for Nigerian phone numbers in data.
Illustration โ Hook Types:
Pre-hook: Runs BEFORE Claude does something. Post-hook: Runs AFTER Claude does something.
Mini summary: Pre-hooks run before, post-hooks run after.
Definition: Subagents are like mini-Claudes that can work on different tasks at the same time.
Why it's important: They make complex projects faster.
Simple explanation: Like having multiple team members working on different parts.
Real-life example: One subagent builds the frontend, another builds the backend.
School example: One subagent writes the intro, another writes the conclusion.
Home example: One subagent plans the menu, another plans the budget.
Nigerian example: One subagent handles user login, another handles payments.
Illustration โ Subagents:
Main Claude ---> Subagent 1 (frontend)
---> Subagent 2 (backend)
---> Subagent 3 (database)
Mini summary: Subagents are AI helpers that work in parallel.
Definition: A full-stack app has two parts: the frontend (what users see) and the backend (the server and database).
Why it's important: Most real apps are full-stack.
Simple explanation: Like a restaurant: frontend is the dining area, backend is the kitchen.
Real-life example: A social media app with a login and posts.
School example: A student project with a sign-up page.
Home example: A family budget app with accounts.
Nigerian example: A Lagos delivery app with tracking.
Illustration โ Full-Stack:
Frontend (React) <---> Backend (Node) <---> Database (PostgreSQL) (what you see) (server logic) (data storage)
Mini summary: Claude can build both frontend and backend.
Definition: This is the best way to work with Claude Code: Explore (understand the project), Plan (decide what to do), Code (build it).
Why it's important: It gives better results and fewer mistakes.
Simple explanation: Like drawing a map before going on a trip.
Real-life example: A developer asks Claude to explore the code, then plan a new feature, then write it.
School example: A student explores a project, plans their part, and codes it.
Home example: A parent explores a template, plans changes, and edits it.
Nigerian example: A team in Abuja explores their codebase, plans a new feature, and codes it.
Illustration โ Workflow:
Explore ๐ ---> Plan ๐ ---> Code ๐ป (understand) (decide) (build)
Mini summary: Explore, Plan, Code โ the best way to work with Claude.
Definition: Testing is checking if your code works. Debugging is fixing problems.
Why it's important: Nobody wants a broken website!
Simple explanation: Like checking your homework before submitting.
Real-life example: Claude writes tests for a login form.
School example: Claude tests a school project.
Home example: Claude checks a budget app.
Nigerian example: Claude tests a payment system.
Illustration โ Debugging:
You: "Fix this error: 'Cannot read property of undefined'" Claude: "I found the problem and fixed it!"
Mini summary: Claude helps test and fix code.
Definition: Ethics means using AI responsibly โ not cheating, not sharing private data, and always reviewing AI-generated code.
Why it's important: We must use AI safely and honestly.
Simple explanation: Like not copying a friend's homework.
Real-life example: A developer checks Claude's code before shipping.
School example: A student uses Claude to learn, not to cheat.
Home example: A parent reviews AI content before sharing.
Nigerian example: A company protects customer data when using Claude.
Illustration โ Ethics:
โ DO: Review Claude's code. โ DO: Understand what the code does. โ DON'T: Share passwords or secrets. โ DON'T: Ship code without testing.
Mini summary: Use Claude safely, ethically, and responsibly.
In this module, we learned:
How to use CLAUDE.md:
How to use a Skill:
Demonstrate CLAUDE.md by creating one together. Show the "Perfect Web Clone" skill in action. Explain MCP with a simple example (like connecting to a fake database). Discuss hooks and subagents with real-world analogies. Emphasise ethics and best practices.
Help your child create a CLAUDE.md file for their project. Try the clone skill together โ clone a simple website and see how it works. Discuss the importance of reviewing AI-generated code and keeping data safe.
+------------------------------------------+ | Claude Code Features | | +--------------------------------------+ | | | CLAUDE.md โ Memory | | | | Skills โ Reusable instructions | | | | MCP โ External connections | | | | Hooks โ Automation | | | | Subagents โ Parallel workers | | | +--------------------------------------+ | +------------------------------------------+
| Feature | What It Does | When to Use |
|---|---|---|
| CLAUDE.md | Stores project memory | Every project |
| Skills | Reusable instructions | Complex tasks |
| MCP | Connects to external data | Databases, APIs |
| Hooks | Automated scripts | Testing, backups |
| Subagents | Parallel helpers | Big projects |
| Task | Without Feature | With Feature |
|---|---|---|
| Remembering project details | Re-explain every time | CLAUDE.md remembers |
| Cloning a website | Manual copy | Clone skill does it |
| Connecting to a database | Manual code | MCP handles it |
| Running tests | Manual run | Hooks automate |
| Working on multiple parts | Sequential work | Subagents parallel |
In this module, we explored the powerful features of Claude Code. We learned about CLAUDE.md โ a memory file that helps Claude remember project details. We discovered Skills โ reusable instructions that make complex tasks easy, like the "Perfect Web Clone" skill. We learned about MCP โ a way to connect Claude to external data and tools. We explored Hooks โ scripts that automate tasks, and Subagents โ mini-Claudes that work in parallel. We also reviewed the Explore-Plan-Code workflow and discussed ethics and best practices. You now have the tools to build even more amazing projects!
| Term | Definition |
|---|---|
| CLAUDE.md | A) Reusable instruction |
| Skill | B) Automated script |
| MCP | C) Memory file |
| Hook | D) Connects to external tools |
| Subagent | E) Mini-Claude helper |
Answers: CLAUDE.md-C, Skill-A, MCP-D, Hook-B, Subagent-E
Scenario 1: You are building a website and keep having to tell Claude your colour scheme and font preferences.
Task: What should you do?
Answer: Create a CLAUDE.md file and write the colour scheme and font preferences inside.
Scenario 2: You want to copy a website to learn from it.
Task: How can Claude help?
Answer: Use the "Perfect Web Clone" skill: /clone-website https://example.com.
In groups of three, create a CLAUDE.md file for a project of your choice. Then, one person plays the role of Claude and must remember the details from the file. The other two ask questions to test if Claude remembers. Share your experience with the class.
Create a CLAUDE.md file for a web project you want to build. Then, use the "Perfect Web Clone" skill to clone a website of your choice. Write down what you learned from cloning.
Build a full-stack app (frontend + backend) with Claude Code. Use CLAUDE.md to store your project details. Use MCP to connect to a fake database. Use hooks to test your code. Present your project to the class.
Write a report on how you used the features from this module. Include:
Clone a website using the "Perfect Web Clone" skill. Then, add a new feature to the cloned site (like a dark mode button). Use CLAUDE.md to remember the project details. Write down the steps you took.
Fill-in-the-blank: 1. CLAUDE.md, 2. Skill, 3. Model Context Protocol, 4. Hook, 5. Subagent, 6. clones, 7. Full-stack, 8. Plan, 9. review, 10. Pre-hook
True/False: 1T, 2T, 3F, 4T, 5F, 6F, 7T, 8F, 9F, 10F
Multiple Choice: 1A, 2A, 3A, 4A, 5A, 6A, 7A, 8A, 9A, 10A, 11A, 12A, 13A, 14A, 15A
Matching: CLAUDE.md-C, Skill-A, MCP-D, Hook-B, Subagent-E
In Module Three, we will put everything together and build a complete web application. We will use all the features we learned โ CLAUDE.md, Skills, MCP, Hooks, and Subagents โ to build a real-world project. Get ready to become a full-stack developer with Claude!
๐ Congratulations! You have completed Module Two: Claude Code Features ๐
You are now ready for Module Three โ Building a Complete Web App!