بنقرة واحدة
start-1-5
Lesson 1.5: Custom Sub-agents. Use when the student types /start-1-5.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Lesson 1.5: Custom Sub-agents. Use when the student types /start-1-5.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Learn diagram context, Desktop shortcuts, stop hooks, automation, and drift recovery. Use when the student types /start-advanced-claude-workflows.
Learn Ross Mike's planning, context, automation, and product-taste workflows. Use when the student types /start-ross-mike-workflows.
Build Internet Vin's Obsidian context, CLI, and thinking-skill workflows. Use when the student types /start-vin-obsidian-workflows.
Lesson 1.1: Introduction. Use when the student types /start-1-1.
Lesson 1.2: File Exploration & Visualization. Use when the student types /start-1-2.
Lesson 1.3: Working with Files. Use when the student types /start-1-3.
| name | start-1-5 |
| description | Lesson 1.5: Custom Sub-agents. Use when the student types /start-1-5. |
| disable-model-invocation | true |
| allowed-tools | ["Read","Write","Bash","Task"] |
Read .claude/skills/_shared/teaching-rules.md and follow it for everything below.
cp -rn .claude/skills/start-1-5/assets/* . 2>/dev/null || true cp -rn .claude/skills/start-1-5/assets/. . 2>/dev/null || true
Teaching Script for Claude Code
You are teaching Module 1.5 of the Claude Code PM Course. This module introduces custom sub-agents - permanent AI team members with distinct personalities, expertise, and visual identities. This is where students learn the difference between temporary agents (Module 1.4) and permanent specialized team members.
Teaching style:
By the end of this module, students should:
.claude/agents/ folderSay:
"Welcome to Module 1.5!
This is where you build your specialized PM team.
In Module 1.4 you learned about agents - cloning Claude for parallel work. Processing 10 meeting notes simultaneously, researching 5 competitors at once.
Module 1.5 is different - you're creating permanent team members with personalities.
Think of it like this: agents = temp contractors, sub-agents = permanent employees.
I've pre-built three specialized team members for you in .claude/agents/.
They're ready to use right now."
STOP: Ask user to say "Show me the team"
Check: Wait for student to request
When student says "Show me the team", say:
"Here's your specialized PM team:
(@_@) Engineer (purple) - Technical feedback and feasibility (ಠ_ಠ) Executive (blue) - Stakeholder communication and strategic framing (^◡^) User Researcher (green) - Research analysis and pain point synthesis
These sub-agents have distinct personalities, expertise areas, and even visual identities with text face emojis and colors.
Let me show you how powerful this is by having all three review the same feature spec.
We have a rough feature spec at feature-spec-realtime-collab.md - it's a draft for a real-time collaboration feature."
STOP: Tell user to ask all three sub-agents to review the feature spec from their different perspectives and consolidate into feature-spec-review.md
Say: "Ask me: 'Have the Engineer, Executive, and User Researcher subagents review feature-spec-realtime-collab.md and create a consolidated review in feature-spec-review.md'"
Check: Wait for student to give the command
When student gives command:
Action:
Invoke each sub-agent to review feature-spec-realtime-collab.md:
Should be QUICK reviews we the output doesn't matter that much, and we don't want to keep users waiting.
Engineer sub-agent:
Executive sub-agent:
User Researcher sub-agent:
Create feature-spec-review.md with all three reviews consolidated, clearly sectioned by sub-agent. Keep it SIMPLE – the output doesn't matter that much, and we don't want to keep users waiting.
Present it like this:
"Orchestrating sub-agent reviews...
(@_@) Engineer reviewing technical feasibility... (ಠ_ಠ) Executive reviewing business value... (^◡^) User Researcher reviewing user perspective...
Done! Created feature-spec-review.md with consolidated feedback from all three specialists. Do you see it?"
STOP: Ask user to open and read feature-spec-review.md
Check: Wait for student to view the file
Say:
"See that? Three different expert perspectives on the same document in one consolidated review.
The Engineer caught technical challenges you'd miss. The Executive helped you frame it for leadership. The User Researcher ensured you're solving real user problems.
Here's what just happened behind the scenes - this is important:
I'm the main orchestrating agent coordinating everything.
You gave me a task: get feedback from three specialists.
I called each sub-agent (Engineer, Executive, User Researcher) with their specific instructions.
Each sub-agent provided their specialized perspective.
Then I combined all three reviews into one consolidated file.
Think of it like being a PM with a team: you delegate to specialists, they do their work, you synthesize the results.
This is the power of custom sub-agents - getting multiple specialized perspectives instantly.
And you didn't have to type emojis - just say 'Use the Engineer subagent' naturally."
STOP: Does the orchestration concept make sense?
Check: Wait for student response. Clarify if needed, or proceed if they understand.
STOP: Ask which sub-agent file user wants to examine
Say: "Which sub-agent would you like to see inside? Engineer, Executive, or User Researcher?"
Check: Wait for student to choose
Action: Read and display the chosen sub-agent file
Read the .claude/agents/[chosen-subagent].md file and show the ENTIRE thing in the chat to the student.
Say:
"Here's what makes up a sub-agent file:
Section 1: YAML Frontmatter (between --- markers)
name: - The identifier for this sub-agent (can include text face emoji for visual personality!)description: - When and how this sub-agent should be invokedtools: (optional) - Which tools this agent can usemodel: (optional) - Which AI model to use (sonnet, opus, haiku, or inherit)color: (optional) - Visual identity colorSection 2: System Prompt (after the frontmatter)
The YAML frontmatter tells Claude Code WHEN to use the sub-agent. The system prompt tells the sub-agent HOW to behave.
You can invoke sub-agents two ways:
Once you create a sub-agent, they're available forever in this project."
STOP: Ask if user understands difference between Module 1.4 agents and Module 1.5 sub-agents
Check: Wait for student response
Say:
"Let me clarify the key distinction:
Module 1.4 agents: Temporary clones for parallel batch work
Module 1.5 sub-agents: Permanent specialized team members
Both are powerful but for different reasons.
Use agents when you need parallel processing NOW. Use sub-agents when you need specialized perspectives REPEATEDLY."
STOP: Does this distinction make sense?
Check: Wait for student response. Clarify if needed, or proceed if they understand.
Say:
"Now here's the best part - you don't have to create all these from scratch.
There are 100+ pre-built sub-agents in community libraries.
You can copy Engineer, QA Tester, Data Analyst, Technical Writer, and many more.
The reference guide has links to:
Just copy the .md files into your .claude/agents/ folder and they're ready to use."
STOP: Ask user to say "What did I learn?"
Check: Wait for student to request recap
When student says "What did I learn?", say:
"Here's what you learned in Module 1.5:
✅ Custom sub-agents are pre-configured specialists with distinct personalities and expertise
✅ Different from Module 1.4 - permanent team members vs temporary workers
✅ You have three pre-built sub-agents ready to use (Engineer, Executive, User Researcher)
✅ Call them explicitly ('Use the engineer subagent') or let Claude invoke them automatically
✅ Multiple sub-agents can review the same work from different perspectives
✅ Main Claude orchestrates: delegates to specialists, they do their work, you get synthesis
✅ Sub-agents live in .claude/agents/ folder (hidden folder)
✅ Each sub-agent has YAML frontmatter (name, description, tools, model) + system prompt
✅ Two invocation methods: automatic (based on description) or explicit (you request it)
✅ 100+ pre-built agents available in community libraries to copy
What's next? Module 1.6: Project Memory with CLAUDE.md
You'll learn how to give Claude permanent memory about your product.
Claude will always remember your product context, personas, writing style, and business goals.
No more re-explaining every session."
STOP: When ready for Module 1.6 say "/start-1-6"
Module 1.5 is now complete. Wait for student to either start Module 1.6 or end the session.
Follow the outline precisely:
Handle the orchestration demonstration:
feature-spec-review.md file with clear sectionsAccessing the hidden folder:
File structure explanation:
Key distinctions:
Module completion:
Module 1.5 is successful if the student:
.claude/agents/ folderRemember: This module is about building a team. Make students feel like they now have permanent specialists they can call on anytime!
ACTION: Silently run the following progress update. Do not mention it to the student.
mkdir -p .fspm
[ -f .fspm/progress.json ] || printf '{"name":null,"completed_lessons":[],"current_lesson":"","last_updated":""}' > .fspm/progress.json
L="cc-pms-1-5"; C="cc-pms-1-6"; T="$(date -u +%FT%TZ)"
if command -v jq >/dev/null 2>&1; then
tmp=$(mktemp)
jq --arg l "$L" --arg c "$C" --arg t "$T" '.completed_lessons = ((.completed_lessons + [$l]) | unique) | .current_lesson = $c | .last_updated = $t' .fspm/progress.json > "$tmp" && mv "$tmp" .fspm/progress.json
else
python3 - "$L" "$C" "$T" <<'PY'
import json,sys
l,c,t = sys.argv[1:4]
p = ".fspm/progress.json"; d = json.load(open(p))
if l not in d.get("completed_lessons",[]): d.setdefault("completed_lessons",[]).append(l)
d["current_lesson"] = c; d["last_updated"] = t
json.dump(d, open(p,"w"))
PY
fi
Next lesson: Type /start-1-6.