| name | source-command-learn-practice |
| description | Hands-on practice — Project Mode creates real code files for your IDE, Chat Mode for conceptual discussion |
source-command-learn-practice
Use this skill when the user asks to run the migrated source command learn-practice.
Command Template
Use the learn-anything-practice skill to handle the user's /learn-practice request.
Follow the workflow defined in the skill:
0. Determine practice mode: Project Mode for coding topics (create real files in .learn/topics//exercises/), Chat Mode for conceptual topics
- Load context: match topic and concept from state.json (single source of truth) → check prerequisites
- Assess difficulty level based on state.json concept fields (beginner/intermediate/challenge)
- Project Mode: use Bash to create exercise dir → use Write to create README.md + starter file → tell user to open in IDE
Chat Mode: generate exercise in chat (background → requirements → code template → hint)
- Project Mode: use Read to review user's code file → optionally use Bash to run it → compose feedback → Write session file FIRST → echo file content verbatim to conversation + Edit state.json (last_practiced, practice_count, confidence, status) + run render.mjs
Chat Mode: review code submitted in chat → compose feedback → Write session file FIRST → echo file content verbatim to conversation + Edit state.json + run render.mjs