Skills with the Claude Agent SDK
Lesson Files
You can find all the files for L7 here, with a few variations from what's shown in the video:
- Used
haikuas the model for each subagent - Specified the exact list of MCP tools to use
Here are some key files to explore:
- System prompts for the main agent and subagents
- Files for the
learning-a-toolskill - utils.py (message formatting)
- agent.py
- The learning guide generated during filming
To run the agent, follow the instructions in the README file. You'll need an Anthropic API key (no subscription required).
About costs: Running the agent with the same requests costs approximately $3.43 in API credits if you use haiku as the subagent model (and using sonnet with the main agent), or $6.35 if you use sonnet with the subagents.
Prompts Used in the Lesson
Step 1: Start the research process
Help me get started with MinerU. Create a learning guide. Show me your plan first.
Note: The agent might take around 15 minutes to complete. You can always update the skill's instructions and agent definitions if you want faster research or a simpler learning guide.
Step 2: Review and approve the plan
You can agree with the plan or provide your feedback and suggestions.
Step 3 (Optional): Export to Notion
If you'd like to try the MCP integration with Notion:
Write ./learning-mineru/resources.md to the "Resources" subpage under Learning in Notion. The subpage already exists. Use rich formatting. For Notion MCP: You can use the full range of Notion block types for proper formatting.
Note: In the Notion account used in the lesson, we created a page called Learning with a subpage called Resources.
More Advanced Options
- Advanced Permission Control
- Building a Continuous Conversation Interface (interrupt, new conversation, exit)
References
- Claude Agent SDK Documentation
- Python Agent SDK
- Agent Skills in the SDK
- Claude Agent SDK Demos