What You'll Build
In this hands-on exercise, you'll apply everything learned in the Claude Code & Skills - EXERCISE module. Budget 25 minutes - but take longer if you need to. Understanding matters more than speed.
Before you start
Make sure you have Python 3.8+, the anthropic SDK installed, and your API key set as an environment variable.
Step-by-Step Instructions
Follow along with the code examples. Each step builds on the previous one.
Exercise approach
Don't just copy-paste. Type each line, understand what it does, then modify it. The learning happens in the modification, not the copying.
Bonus Challenges
- Modify the solution to handle edge cases
- Add error handling and retry logic
- Optimize for cost (use Haiku where possible)
- Add logging to track token usage
Key Takeaways
- This lesson covered exercise: build and publish a workflow skill
- Apply these concepts in your own projects before moving on
- Refer back to this lesson when you encounter related challenges