```
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ HOW COMPONENTS DIFFER โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ โ
โ SKILLS = Knowledge that loads automatically โ
โ COMMANDS = Actions you trigger manually โ
โ AGENTS = Autonomous helpers that run after you code โ
โ HOOKS = Automation that runs on system events โ
โ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
```
Skills - Passive Knowledge
What: Domain expertise that Claude learns from when relevant
When: Loads automatically based on what you're asking about
Trigger: Your questions/context match the skill description
You do: Nothing - just ask questions naturally
```
You: "How do I test my FastAPI endpoints?"
โ
Claude: [fastapi + pytest skills auto-load into my knowledge]
"Here's how to test FastAPI endpoints..."
```
Think of it as: A reference book that opens to the right page automatically
Commands - Manual Actions
What: Specific tasks you explicitly request
When: Only when you type the command
Trigger: You type /ltk:command-name
You do: Invoke it manually when you want that action
```
You: /ltk:scan-security
โ
Claude: [Runs security scan on codebase]
"Found 2 vulnerabilities..."
```
Think of it as: Buttons you press to do specific things
Agents - Proactive Helpers
What: Specialized assistants that watch what you're doing
When: After you write or edit code (automatically)
Trigger: Tool events (Write, Edit) + matching context
You do: Nothing - they activate on their own
```
You: writes Python code with SQL query
โ
Claude: [security-analyzer agent activates]
"Note: This SQL query might be vulnerable to injection.
Consider using parameterized queries."
```
Think of it as: A team of experts looking over your shoulder
Hooks - System Automation
What: Scripts/prompts that run on specific system events
When: Triggered by system events (session start, before/after edits)
Trigger: Events like SessionStart, PreToolUse, PostToolUse
You do: Nothing - happens automatically in the background
```
[Session starts]
โ
Hook: [Loads git status, project structure, TODOs]
โ
Claude: [Has project context ready]
```
Think of it as: Automatic setup and cleanup routines
Side-by-Side Comparison
| Aspect | Skills | Commands | Agents | Hooks |
|--------|--------|----------|--------|-------|
| Activation | Automatic (context) | Manual (/ltk:...) | Automatic (after code) | Automatic (events) |
| Purpose | Provide knowledge | Execute actions | Analyze & advise | Automate workflows |
| User action | Just ask questions | Type command | Write code | Nothing |
| Output | Better answers | Task results | Suggestions/warnings | Background setup |
Visual Flow
```
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ YOUR CODING SESSION โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ โ
โ SESSION START โ
โ โ โ
โ โผ โ
โ โโโโโโโโโโโ โ
โ โ HOOKS โ โโโ Load git status, project structure, TODOs โ
โ โโโโโโโโโโโ โ
โ โ โ
โ โผ โ
โ YOU ASK: "How do I add authentication to FastAPI?" โ
โ โ โ
โ โผ โ
โ โโโโโโโโโโโ โ
โ โ SKILLS โ โโโ fastapi + security-scanning skills load โ
โ โโโโโโโโโโโ โ
โ โ โ
โ โผ โ
โ CLAUDE ANSWERS with specialized knowledge โ
โ โ โ
โ โผ โ
โ YOU WRITE CODE โ
โ โ โ
โ โผ โ
โ โโโโโโโโโโโ โ
โ โ AGENTS โ โโโ security-analyzer checks your code โ
โ โโโโโโโโโโโ quality-reviewer suggests improvements โ
โ โ โ
โ โผ โ
โ YOU TYPE: /ltk:scan-security โ
โ โ โ
โ โผ โ
โ โโโโโโโโโโโโ โ
โ โ COMMANDS โ โโโ Full security scan runs โ
โ โโโโโโโโโโโโ โ
โ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
```
Quick Summary
| Component | One-liner |
|-----------|-----------|
| Skills | "Claude knows this stuff" |
| Commands | "Do this specific thing now" |
| Agents | "Watch my code and give feedback" |
| Hooks | "Run this automatically when X happens" |
Skills vs Agents - Common Confusion
```
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ SKILLS = Reference Material (Passive) โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โข A book Claude reads to learn something โ
โ โข Contains: Documentation, patterns, best practices โ
โ โข Does: NOTHING - just sits there until needed โ
โ โข Output: Better, more informed responses โ
โ