A general-purpose assistant is fine, but a specialist is often better: a code reviewer, a SQL tutor, a financial analyst. This module loads specialization from plain Markdown files, so switching what the agent is an expert at is a file swap — not a code change.
skills/*.md, decoupled from the agent’s Python code entirelydef build_system_prompt(skill_name: str) -> str:
skill_content = load_skill(skill_name)
return base + "\n\n=== ACTIVE SKILL ===\n" + skill_content
Each file in skills/ is a self-contained persona definition — tone, expertise, constraints, examples. The agent code (skill_agent.py) never changes when you add a new skill; you just drop in a new .md file and it appears in the menu. This module deliberately has no tools — it’s about specialization through instructions alone, isolating that one concept before Module 5 combines specialization with tool use and safety guardrails.
Included skills:
code_reviewer.mdemail_drafter.mdfinancial_analyst.mdsql_tutor.mdpip install -r requirements.txt
export ANTHROPIC_API_KEY=your_key_here
python skill_agent.py
Pick a skill, chat, then type switch to try another without restarting.
Module 5 — Production Guardrails — combining tools with the safety mechanisms a real deployed agent needs.