Module
Module 3 of 5Lesson 2 of 2~22 min

Subagents, skills, commands and MCP servers: the right tool for each need

Lesson 2 of the module "Plan, then delegate with method" in the course "Work with Claude Code on a real project: context, planning, review".

Lesson objective

By the end of this lesson, you will be able to choose between CLAUDE.md, skill or command, subagent, MCP server and hook for a given need, create a review subagent and a reusable command in your repository, and connect an MCP server with limited scope and rights.

Where it fits

Plan, then delegate with method

How do I run a real task without the agent heading the wrong way, and which tool do I give it for what?

Lessons in this module

  1. Explore, plan, code, commit on existing code
  2. Subagents, skills, commands and MCP servers: the right tool for each need (this lesson)

What you will learn in the course

This lesson is part of the course Work with Claude Code on a real project: context, planning, review

  • Explain what fills Claude Code's context window and manage it (/context, /clear, /compact, resuming and naming sessions), taking cost into account.
  • Write a short, useful CLAUDE.md placed at the right level of the hierarchy (user, project, local, subdirectory, path-scoped rules), with imports if needed.
  • Run a task on existing code as explore, plan, code, commit, with plan mode, verification criteria and Git rather than checkpoints alone.
  • Choose and justify the right mechanism for a need (CLAUDE.md, skill or command, subagent, MCP server, hook) and set it up in the repository.
  • Choose a permission mode and write allow, ask and deny rules suited to the project's risks, in the right settings file.
  • Write simple hooks as deterministic guardrails (block, format, verify) and know their risks and limits.
  • Review the agent's work with a checklist (scope, tests, secrets, migrations, dependencies) and an independent review, and know when to automate it in non-interactive mode or in GitHub Actions.