Les primitives Claude Code: qui invoque quoi

Command, skill, sub-agent, agent team, loop, goal, MCP: the building blocks of Claude Code look alike enough to be mixed up, and the mix-up gets expensive when you hand one the job of another. Two questions sort them out. First: who triggers it? A command is you invoking it (you type the slash). A skill is Claude reaching for it when the task fits. An MCP plugs Claude into outside tools (calendar, email, files); a skill adds know-how, not tools. Second: when does it stop? A loop reruns a prompt on a clock, again and again. A goal works until a condition is met, then stops on its own. A sub-agent works in isolation and returns a summary; an agent team shares a common report and coordinates. Two blocks often go missing from the list, and [ViDev](https://www.instagram.com/reel/Dd9zFtHEcOl/) adds them while answering a lost follower. Rules: your CLAUDE.md split into files, one per responsibility, loaded as standing instructions (where a skill waits for its activation condition). Hooks: a shell command the harness runs at a precise point in the session (before a tool, after an edit, at the end), so it runs for sure, without relying on the model's goodwill. He also pins down a sub-agent's lifespan: spawned by the main agent with its own context window, it dies as soon as its task is returned. Around them sits what is not a primitive but holds the whole thing together: the documentation you write to give the agents a process, and the tests (unit, integration, end-to-end) that tell whether their work holds.

Strengths

Limitations

Best for

Official site

View on Coeurdar