In Part 1, I covered the first half of Claude Code 101, including the Agentic Loop, Context Management, Permission Modes, and the Explore → Plan → Code → Commit workflow.
Those lessons helped me understand how Claude Code works and how developers can stay involved in and manage the development process.
This post covers the second half of the course: CLAUDE.md, Skills, Subagents, MCP, and Hooks.
These features go beyond having Claude Code write code. They let developers provide project guidelines, delegate specific tasks, connect external tools, and automate parts of a workflow.
CLAUDE.md: Defining Project Guidelines
CLAUDE.md is a file that Claude Code uses to store instructions for a project.
Different projects usually have their own architecture, naming conventions, and development practices. Having to explain all of that again every time I open Claude Code would get tedious.
With CLAUDE.md, I can write down information that stays relevant over time, so Claude Code has a consistent set of project guidelines to refer to while working.
For example:
- Project information: The technology stack, main directory structure, and architecture.
- Development conventions: Naming rules, error handling, and existing coding practices.
- Common commands: Build, test, and other commands needed for the project.
- Important notes: Constraints and special rules to follow when making code changes.
That said, I don’t think every project document belongs in CLAUDE.md.
If the file becomes too long, it can use up context space unnecessarily. It makes more sense to include information that Claude Code will need frequently and that applies to most development tasks.
The course also points out an important limitation.
Putting a rule in CLAUDE.md doesn’t guarantee that Claude Code will follow it every time.
CLAUDE.md provides instructions for the model to consider; it isn’t a mechanism that enforces rules automatically.
For checks or actions that need to run when specific events occur, Hooks—which I’ll cover later—may be a better fit.
What’s the Difference Between Skills and Subagents?
Alongside CLAUDE.md for project guidelines, Claude Code offers Skills and Subagents to help organize different kinds of work.
Skills: Reusing the Same Workflow
Skills let developers package instructions for a particular task into a reusable workflow that Claude Code can refer to when needed.
For example, whenever I run a Code Review, I may want it to check the program logic, error handling, security, and test coverage.
Repeating the same instructions every time is inconvenient, and it’s easy to leave something out.
Instead, I can put those guidelines into a Skill, so Claude Code can follow a consistent approach for similar tasks.
For work that comes up repeatedly, such as Code Reviews or standard test procedures, Skills can reduce the need to explain the same rules over and over.
Subagents: Delegating Tasks to Other Agents
Subagents are more about task delegation.
Claude Code can assign a particular task to a Subagent. The Subagent works in its own Context Window and sends the result back to the main session when it’s done.
For example, if a project has a large volume of test logs to analyze, a Subagent could review the error messages, identify possible causes, and report its findings to the main Claude Code session.
That keeps all the logs and intermediate analysis out of the main conversation and helps reduce the amount of context used there.
There is one important detail to remember, though.
A Subagent doesn’t automatically receive the full history of the main conversation, and I shouldn’t assume it has exactly the same tool permissions as the main agent.
When delegating a task, I still need to think about what information the Subagent needs and which tools it should be allowed to use.
The Main Difference
| Feature | Main purpose |
|---|---|
| Skills | Define how to carry out a task so the workflow can be reused |
| Subagents | Delegate a task to a separate agent and return its results |
Put simply, Skills focus on how work should be done, while Subagents focus on who handles the work.
They aren’t mutually exclusive and can be used together when it makes sense.
MCP: Connecting External Data and Tools
MCP (Model Context Protocol) is an open standard that allows Claude Code to connect to external tools and data sources.
In real development work, not all the information I need lives in the codebase.
For example, a team might manage development issues in Linear or need to look up up-to-date documentation for dependencies through Context7.
With MCP, Claude Code can connect to these tools and retrieve information needed for the task, rather than having a developer copy everything into the conversation manually.
HTTP and stdio Servers
The course introduces two ways to connect to MCP servers:
| Type | Purpose |
|---|---|
| HTTP Server | Connects to a remote service over the network, usually hosted by the service provider |
| stdio Server | Runs as a local process and communicates through standard input and output |
In short, HTTP is generally used to connect to remotely hosted MCP services, while stdio lets Claude Code communicate with a program running locally.
Claude Code also provides commands for adding and managing MCP servers:
| Command | Purpose |
|---|---|
claude mcp add |
Add an MCP server |
/mcp |
View and manage MCP servers |
The tools exposed by MCP servers also take up space in the Context Window.
If I’m not using certain MCP servers, I can disable them through /mcp to reduce unnecessary context usage.
Local, User, and Project Scopes
When adding an MCP server, I can also choose its Scope:
| Scope | Where it applies |
|---|---|
| Local | Available to me only in the current project |
| User | Available to me across all my projects |
| Project | Shares the configuration with other project members through a version-controlled .mcp.json file |
For example, I can use Local for an MCP server needed only by the current project.
If I want to use the same server across multiple projects, User is an option.
For a server the whole team needs, Project may make more sense. Its configuration can be stored in .mcp.json and committed to version control.
However, even when a team shares the same MCP configuration, each person still needs to authorize access to the external service.
What makes MCP interesting to me is that it lets Claude Code go beyond working with local source files and interact with other development tools and services.
Hooks: Running Checks and Actions Automatically
For checks or actions that should run at specific points, Hooks offer another option.
Hooks trigger predefined commands when particular events occur in Claude Code. They don’t depend on Claude deciding for itself whether to run those commands.
For example, I could configure a Hook to run a code formatter automatically whenever Claude Code changes a file.
Configuring Hooks
The course explains how to configure Hooks in settings.json. There are three main parts:
| Setting | Purpose |
|---|---|
| Event | Determines when the Hook is triggered |
| Matcher | Optionally limits which tools the Hook applies to |
| Command | Specifies the command to run when the event is triggered |
A Matcher isn’t required for every event. Whether to use one depends on the event type and what the Hook needs to do.
The course introduces several common Hook events:
| Event | When it runs |
|---|---|
PreToolUse |
Before a tool is called |
PostToolUse |
After a tool call completes |
UserPromptSubmit |
After a user submits a prompt, before Claude processes it |
Stop |
When Claude finishes its response |
Notification |
When Claude sends a notification |
For example, the course shows how PostToolUse, combined with an Edit|Write Matcher, can run Prettier automatically after Claude Code edits or writes a file.
PreToolUse can also run checks before a tool executes, such as blocking dangerous actions that would modify production environment configuration files.
This makes it possible to build checks and other actions into the Claude Code workflow instead of running them manually each time.
I can also use /hooks to inspect the Hooks currently configured. In the course, /hooks opens a read-only list, making it easier to see which Hooks are set up.
CLAUDE.md vs. Hooks
Both features can help manage a development workflow, but they serve different purposes.
Put simply, CLAUDE.md tells Claude Code how it should work, while Hooks execute predefined procedures when the configured events occur.
However, Hook commands can still fail, so I need to check that the configuration is correct and that the command produces the expected result.
What stands out to me is that Hooks can turn some checks from written instructions into actual operations triggered by events.
For teams with rules that need to be checked repeatedly, Hooks offer another way to manage those routines.
Thoughts After Finishing the Course
Part 1 was mostly about understanding how Claude Code works and how it fits into the development process. The features in Part 2 made me think more about how to adapt Claude Code to the needs of different projects.
One difference that stood out to me was between CLAUDE.md and Hooks.
When I’ve used AI coding tools in the past, I’ve usually explained the rules I wanted the AI to follow through prompts. This course helped me see that some guidelines are better placed in CLAUDE.md, while checks that need to run at specific points can be handled through Hooks.
Skills and Subagents also helped me understand that reusing a workflow and delegating a task to a separate agent are two different things.
MCP is something I’d especially like to explore further. Beyond connecting external tools, there’s still a lot to consider when integrating it into a project: managing MCP servers, choosing the right scope, and keeping context usage under control.
I’ve finished Claude Code 101 and understand the basic purpose of these features, but I haven’t configured and tested all of them myself yet. I wouldn’t say I’m fully comfortable with them at this point.
Next, I plan to continue with Claude Code in Action and the courses dedicated to Skills and Subagents, then gradually apply what I’ve learned to real development projects.
For me, finishing Claude Code 101 doesn’t mean I’ve mastered every Claude Code feature. It means I now have a more complete understanding of how it works, where its limitations are, and how it can fit into a software development workflow.
References