agentic-ai-course

Module 4 — Skills & Specialization

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.

What you’ll learn

The core idea

def 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:

Run it

pip 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.

Next

Module 5 — Production Guardrails — combining tools with the safety mechanisms a real deployed agent needs.