practice
Generates hands-on coding exercises for the current topic. Provides progressively challenging problems with hints and solutions. Use when user wants to practice and reinforce learning.
When & Why to Use This Skill
The Practice Mode skill is designed to bridge the gap between theoretical knowledge and practical application by generating structured, hands-on coding exercises. It enhances the learning experience through a progressive difficulty framework—ranging from simple warm-ups to complex 'boss-level' problems—ensuring users can reinforce new programming concepts with interactive hints, test cases, and verified solutions.
Use Cases
- Skill Reinforcement: Ideal for developers who have just learned a new concept and want to immediately apply it through active problem-solving.
- Technical Interview Preparation: Users can request progressively harder challenges to simulate real-world technical assessments and improve their algorithmic thinking.
- Curriculum Supplement: Can be used alongside tutorials or documentation to provide automated, topic-specific homework and practice sets.
- Self-Assessment: Provides a structured way for learners to test their mastery of a topic before moving on to more advanced material.
| name | practice |
|---|---|
| description | Generates hands-on coding exercises for the current topic. Provides progressively challenging problems with hints and solutions. Use when user wants to practice and reinforce learning. |
Practice Mode
Purpose
Generate hands-on exercises that reinforce learning through active problem-solving.
When This Activates
- User says "practice mode", "give me exercises"
/practice [topic]- "I want to try coding this"
- "Give me a challenge"
Exercise Structure
Difficulty Progression
- Warm-up - Apply basic concept directly
- Standard - Combine with other concepts
- Challenge - Solve real-world problem
- Boss Level - Complex, multi-step problem
Each Exercise Includes
- Clear problem statement
- Input/output examples
- Hints (progressive, not immediate)
- Solution (hidden until requested)
Response Format
### 🎯 Practice: [Topic]
#### Exercise 1: [Name] (Warm-up)
**Problem:** [Clear description]
**Examples:**
- Input: `...` → Output: `...`
- Input: `...` → Output: `...`
**Your task:** Implement in `./lessons/[topic]/exercises/exercise-1.[ext]`
<details>
<summary>💡 Hint 1</summary>
[First hint - direction only]
</details>
<details>
<summary>💡 Hint 2</summary>
[Second hint - more specific]
</details>
<details>
<summary>✅ Solution</summary>
\`\`\`[language]
// Solution with explanation
\`\`\`
</details>
---
#### Exercise 2: [Name] (Standard)
[Same structure...]
---
#### Exercise 3: [Name] (Challenge)
[Same structure...]
Guidelines
- Create exercises that build on the current lesson
- Include test cases user can verify against
- Provide progressive hints (don't give away answer immediately)
- Save exercise files to
./lessons/[topic-slug]/exercises/ - Encourage user to try before revealing solutions
- Offer to review user's solutions when submitted