Skip to main content
🔒 Preview mode. The first 15 Foundations lessons are free; this one is Pro. Start a 7-day trial to unlock the editor, AI hints and the rest of the curriculum. Card required, cancel any time in Dashboard.Start 7-day trial →
← CoursesAI Engineering with PythonModule 6 · Frontier AI EngineeringSkills: pre-packaged behavior bundleswrite98 / 105
+120 XP
Task
📝 **Task:** Implement `SkillRegistry`: * `register(name: str, system: str) -> int` — adds a new version, returns its 1-based version number. * `resolve(spec: str) -> str` — `spec` is either `'name'` (return the LATEST system prompt) or `'name@N'` (return version N exactly). Raise `KeyError` if the name or version doesn't exist. The driver exercises four scenarios: canonical pin/latest, out-of-range version, unknown skill, non-numeric version, then re-isolation across two skills. Expected output: ``` 1 2 v2: be helpful and brief v1: be helpful missing missing missing 1 route urgent issues v2: be helpful and brief ``` 📋 Implement the function above. Tests run automatically. 💡 **Hint:** Re-read the theory if stuck.
✏️ Write your code here
🐍
Loading Python...
One-time download (~1 MB). Then it runs instantly.
📊 Result
Press Run to see result...

💬 Discussion

Be the first to ask a question or share a tip.
Sign in to join the discussion. Reading is free.
Loading discussion…