Learning Progress: Week 2 of 21
Welcome to Week 2! This week you'll master CLAUDE.md files and slash commands - the secret weapons that make Claude Code remember your preferences and execute powerful shortcuts. It's like teaching your AI assistant your habits and giving it superpowers! ๐ฆธโโ๏ธ
Ever wished your AI assistant could remember things about you? Like how you like your code formatted, what project you're working on, or your favorite shortcuts? That's exactly what CLAUDE.md does!
Every single session:
Ugh! So repetitive! ๐ซ
Claude already knows:
Just start coding! ๐
There are different "levels" of memory - like difficulty levels in a game!
Let's see if you already have a CLAUDE.md file:
ls -la | grep CLAUDEls ~/.claude/Found one? Awesome! Don't have one yet? We'll create it tomorrow! ๐
Today we're going to CREATE your very own CLAUDE.md file! It's like writing a user manual for how YOU like to code. Let's make Claude the perfect coding buddy!
Let's create a CLAUDE.md for a fun project - choose one:
Option 1: Quick Start (Easy)
Option 2: Manual Creation (More Control)
CLAUDE.md in your project folderIf it's in your project folder, your team might see it through git!
Create TWO CLAUDE.md files:
Example personal preferences:
Get ready for the COOLEST feature! Slash commands are like cheat codes for Claude Code. Instead of typing long requests, just type a slash and a word - BOOM! Instant action! ๐ฅ
/help shows all commands, /clear resets everything,
/review checks your code for problems. One command = instant power! ๐ช
Your command encyclopedia! Shows EVERY available command. Like the help menu in a game.
Fresh start! Clears the conversation. Like pressing "New Game".
Code inspector! Finds bugs and suggests improvements. Like a spell checker for code!
Edit your CLAUDE.md files! Quick access to Claude's brain.
Bug hunter mode! Helps find and squash those pesky bugs in your code.
Check your usage! See how much you've used Claude today. Budget tracking!
Time machine! Go back to a previous point in the conversation. Undo mistakes!
Memory saver! Shrinks your conversation to save space. Like zipping a file!
Watch how fast and easy this is:
Try out at least 5 different slash commands today:
/help - See the full list!/cost - Check your usage/review/memory - See your CLAUDE.md/clear - Start freshPro move: Take notes on which commands you find most useful!
/doctor - Diagnoses problems with your setup/sandbox - Creates a safe testing environment/export - Saves your conversation/re + TAB = /review
Just like autocomplete when texting! ๐ฑ
This is where you become a WIZARD! ๐งโโ๏ธ You can create your OWN slash commands that do exactly what YOU want. Have a prompt you use all the time? Save it as a command and use it with one word!
/explain and it expands into a whole detailed
request like "Explain this to me like I'm a beginner, use simple words, give examples..." ๐ฏ
Usage: /explain-simple โ Claude explains things simply!
Usage: /add-feature power-ups โ Claude helps add power-ups!
Usage: /check-homework โ Instant homework review!
Usage: /fix-bug game crashes when score hits 100
Let's make commands that'll save you tons of time:
Step 1: Create the commands folder
Step 2: Create your first command
Step 3: Add your command content
Step 4: Test it!
Create these 3 commands:
/explain-simple - Explains code simply/make-better - Improves your code/daily-checklist - Lists what to do todaydescription field! Without it, your command won't show up in
/help. Always add a description so you remember what it does!
Make your commands even SMARTER with $ARGUMENTS!
$ARGUMENTS captures everything you type after the command! Magic! โจ
.claude/commands/school/, .claude/commands/games/, etc.
The command name comes from the filename, not the folder!
Congratulations! You've made it to the FINAL DAY! Today we combine everything you've learned into a SUPER POWERED setup that'll make you code like a PRO! ๐
Your CLAUDE.md can pull in content from other files - like including power-ups!
Add things to Claude's memory INSTANTLY with the # shortcut!
Claude reads BOTH! Personal + Project = Ultimate Power! ๐ฅ
Create your complete power user configuration:
โ Checklist:
Create a command that uses EVERYTHING you learned:
Usage: /analyze performance or /analyze security
You've mastered CLAUDE.md files and slash commands!
You can now:
โ
Create memory files for Claude
โ
Use built-in slash commands
โ
Create your own custom commands
โ
Build a power user setup
โ
Import files and use quick memory
You're officially a Configuration Master! ๐