|
| 1 | +--- |
| 2 | +description: |
| 3 | +globs: |
| 4 | +alwaysApply: false |
| 5 | +--- |
| 6 | +# Write a Challenge lesson |
| 7 | + |
| 8 | +Write a practical challenge lesson that guides learners through implementing concepts they learned in previous theory lessons. The lesson should be hands-on, step-by-step, and focused on creating something functional. Use a encouraging but direct tone that assumes the learner has absorbed the theoretical concepts and is ready to apply them practically. |
| 9 | + |
| 10 | +## Constraints |
| 11 | + |
| 12 | +- Keep the lesson focused on one primary implementation goal |
| 13 | +- Provide specific, actionable steps with exact commands and code |
| 14 | +- Use simple, clear language with no motivational fluff |
| 15 | +- Include practical testing and verification steps |
| 16 | +- Ensure the challenge builds directly on previous lesson concepts |
| 17 | +- Make the outcome immediately testable and verifiable |
| 18 | +- Focus on getting something working rather than explaining theory |
| 19 | +- Use consistent naming and examples throughout |
| 20 | +- Form a checklist of instructions that users can follow step-by-step |
| 21 | +- All content should be written in AsciiDoc format |
| 22 | +- Use bullet point outlines from the lesson file to create hands-on challenges |
| 23 | + |
| 24 | +## Required Structure |
| 25 | + |
| 26 | +### 1. Challenge Introduction |
| 27 | + |
| 28 | +- Start with a short, succinct recap of the previous lesson (read the directory alphabetically to find the previous lesson content) |
| 29 | +- Follow with a single paragraph stating what the reader will do to complete the challenge |
| 30 | +- Use format: "In this challenge, you will [action] using [method/tool]" |
| 31 | +- Clear statement of the practical goal |
| 32 | + |
| 33 | +### 2. Challenge Goals |
| 34 | + |
| 35 | +- Numbered list (1-5 goals maximum) of specific, measurable outcomes |
| 36 | +- Each goal should be actionable and verifiable |
| 37 | +- Goals should build logically toward the final implementation |
| 38 | + |
| 39 | +### 3. Step-by-Step Instructions |
| 40 | + |
| 41 | +Break implementation into logical steps (typically 4-6 steps) forming a checklist of instructions: |
| 42 | + |
| 43 | +#### Step Structure: |
| 44 | +- **Step N: [Action-oriented title]** (use second-level headings like a to-do or checklist) |
| 45 | +- Brief explanation of what this step accomplishes |
| 46 | +- Exact commands to run (in code blocks) |
| 47 | +- Code to write (in code blocks with filenames) |
| 48 | +- Any important notes or explanations |
| 49 | +- Instructions should be concise and describe what the user should do |
| 50 | + |
| 51 | +#### Essential Steps to Include: |
| 52 | +- Project setup and initialization |
| 53 | +- Dependency installation |
| 54 | +- Core implementation (the main code) |
| 55 | +- Configuration and integration |
| 56 | +- Testing and verification |
| 57 | + |
| 58 | +### 4. Verification Section |
| 59 | + |
| 60 | +- Clear checklist of what should be working |
| 61 | +- Specific tests or examples to try |
| 62 | +- Expected outcomes or behaviors |
| 63 | +- Simple troubleshooting hints if needed |
| 64 | + |
| 65 | +### 5. Next Steps Section |
| 66 | + |
| 67 | +- Congratulatory statement acknowledging completion |
| 68 | +- Brief summary of what was accomplished |
| 69 | +- Connection to the bigger picture or learning objectives |
| 70 | + |
| 71 | +### 6. Experimentation Tips |
| 72 | + |
| 73 | +- Optional "[TIP] Experiment further" section |
| 74 | +- 3-4 specific suggestions for extending the implementation |
| 75 | +- Focus on variations or enhancements, not completely new concepts |
| 76 | + |
| 77 | +### 7. Summary Section |
| 78 | + |
| 79 | +- Use AsciiDoc format: `[.summary]` and `== Summary` |
| 80 | +- Provide a one-paragraph summary of the actions that the user has carried out |
| 81 | +- Can use bullet points with **bold key concepts** learned for more complex challenges |
| 82 | +- Brief description of each major accomplishment |
| 83 | +- Reference to the next lesson topic |
| 84 | + |
| 85 | +Example formats: |
| 86 | +```asciidoc |
| 87 | +[.summary] |
| 88 | +== Summary |
| 89 | + |
| 90 | +You can now install the `neo4j` library and connect to Neo4j by creating a new driver instance. |
| 91 | + |
| 92 | +In the next lesson, you will learn how to execute your first Cypher query. |
| 93 | +``` |
| 94 | + |
| 95 | +Or for more complex challenges: |
| 96 | +```asciidoc |
| 97 | +[.summary] |
| 98 | +== Summary |
| 99 | + |
| 100 | +In this challenge, you demonstrated how to use the `neo4j` library to connect to Neo4j. |
| 101 | +``` |
| 102 | + |
| 103 | +## Implementation Guidelines |
| 104 | + |
| 105 | +### Using Bullet Point Outlines: |
| 106 | +- If the lesson file contains bullet point outlines, use them to create hands-on challenges |
| 107 | +- Convert each bullet point into a concrete, actionable step |
| 108 | +- Maintain the logical flow and structure of the original outline |
| 109 | +- Transform abstract concepts into specific implementation tasks |
| 110 | + |
| 111 | +### Code and Commands: |
| 112 | +- Always provide exact, copy-pasteable code |
| 113 | +- Use consistent file names and project structure |
| 114 | +- Include command-line instructions with proper syntax |
| 115 | +- Specify which directory to run commands from |
| 116 | + |
| 117 | +### Testing: |
| 118 | +- Include real-world testing scenarios |
| 119 | +- Use actual tools and environments (VS Code, browsers, etc.) |
| 120 | +- Provide specific examples to test with |
| 121 | +- Make verification steps concrete and measurable |
| 122 | + |
| 123 | +### Tone: |
| 124 | +- Encouraging but matter-of-fact |
| 125 | +- Assume competence while providing clear guidance |
| 126 | +- Celebrate success without excessive enthusiasm |
| 127 | +- Focus on practical outcomes over learning theory |
| 128 | + |
| 129 | +## Instruction |
| 130 | + |
| 131 | +Write the final lesson content directly using AsciiDoc format. Do not include bullet points, notes, or meta-commentary. This is the learner-facing copy that guides them through the complete implementation challenge. |
0 commit comments