PrepGenAICerts

Claude Code's Five Core Component Types

Core

Identify Claude Code's core component types · Difficulty 1/5

0%
claude-coderulesskillscommandsagents

Explanation

The Five Component Types

Claude Code organizes its extensibility surface into five distinct component types:

ComponentWhat it is
RulesStanding instructions/conventions Claude Code should always follow in the repo (coding style, do/don't). Often expressed in CLAUDE.md.
SkillsPackaged, reusable capabilities defined by a SKILL.md (instructions + optional scripts/resources) that Claude loads when relevant.
CommandsSlash commands -- built-in (e.g., /clear, /init, /help) and custom commands defined as Markdown prompt files in .claude/commands/.
AgentsSubagents with focused roles/tool sets that Claude Code can delegate to.
Agent MemoryPersisted context (notably CLAUDE.md) that survives across turns/sessions so Claude "remembers" project conventions.

Telling Them Apart

Each component solves a different operational problem:

  • Rules are passive, always-on conventions -- they don't get invoked, they just constrain behavior continuously.
  • Skills are invoked on relevance -- Claude loads a SKILL.md when the task matches what it packages.
  • Commands are invoked explicitly by name (/foo) -- either built-in or authored as a Markdown file.
  • Agents are delegated to -- a focused-role, focused-tool-set Subagent handles a subtask and returns a result.
  • Agent Memory persists across turns and sessions, most visibly as `CLAUDE.md`.

A useful discriminator: Skills and Commands both package reusable instructions, but a Command is explicitly invoked by name (/command-name) while a Skill is loaded automatically when Claude judges it relevant to the task at hand.

Common exam traps

  • Confusing Skills with Commands because both are markdown-authored, reusable instructions. The distinguishing factor is invocation: Commands are named and explicitly called; Skills are loaded implicitly based on relevance.
  • Treating Agent Memory and CLAUDE.md as two different things -- CLAUDE.md is the primary, most visible instance of Agent Memory, not a separate mechanism.
  • Assuming Rules must live only in CLAUDE.md -- CLAUDE.md is the common place to express them, but the concept (standing conventions Claude always follows) is distinct from any one file.

Key Takeaways

  • The five core component types are Rules, Skills, Commands, Agents, and Agent Memory
  • Rules are passive, always-on conventions; Skills load on relevance; Commands are explicitly invoked by name; Agents are delegated subtasks; Agent Memory persists context across sessions
  • The Skill vs. Command distinction is invocation: implicit/relevance-based (Skill) vs. explicit/named (Command)
  • CLAUDE.md is the primary instance of Agent Memory, not a separate mechanism

Glossary Terms

Related Concepts

PrepGenAICerts is an independent exam-prep site. It is not affiliated with, endorsed by, or sponsored by Anthropic, PBC. Claude and Anthropic are trademarks of Anthropic, PBC. Exam details are taken from publicly available Anthropic and Pearson documentation. About PrepGenAICerts.