Lv.1 0 XP

Skills — Reusable Sub-Agent Workflows with Context Isolation

Core 8 min +35 XP
💡
THE ANALOGY

Calling a specialist consultant. When you hire a database consultant to review your schema, they work independently — they don't have access to your other conversations or your main project context. They do their job and hand you a report. Skills work the same way: isolated execution, just the output comes back.

⚠️ EXAM TRAP — The Wrong Answer People Choose

Confusing Skills with Slash Commands. Slash commands inject a prompt into the CURRENT session's context. Skills run in an ISOLATED sub-agent context — their internal work (file reads, analysis) doesn't pollute the main conversation context.

KEY POINTS
1 Skills are markdown files with a SKILL.md frontmatter that run as isolated sub-agents.
2 context: fork means the skill runs in its own context — output does NOT accumulate in the main conversation.
3 Skills are used for verbose, exploratory tasks that would fill the main context window if run inline.
4 The skill's final output (its conclusion) is returned to the main conversation — not its working steps.
5 Skills are the correct pattern for: codebase exploration, test runs with verbose output, analysis tasks.