Sub-agents via Task
The Task tool spawns a sub-agent — a fresh subprocess with its own options, prompt, and tool set, isolated from the parent. Useful for delegating big tasks (run a 50-step workflow, return only the summary) without polluting the parent's context. Sub-agents bill separately; budget accordingly.
Slash commands as user shortcuts
The Agent SDK supports slash commands defined as Markdown files in ~/.claude/commands/ (CLI-shared) or in your project. A slash command is a parameterized prompt fragment — /review <file> expands to a structured review prompt. Same plumbing the Claude Code CLI uses; the SDK respects the same definitions.
Skills as packaged behaviors
Skills (Anthropic's term for portable agent behaviors) live in ~/.claude/skills/ as folders with metadata, instructions, and optional resources. The Agent SDK loads available skills and the model invokes them via the Skill tool. A skill is a way to bundle 'this is how to do X' so it can be reused across sessions and machines.