You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: show prerequisite status for locked skills in /progress
Add locked skills section to progress command showing prerequisites
with mastery status and "ready to learn" indicators.
Closes DOJ-2441
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Free & Open Source β github.com/dojocodinglabs/code-sensei
65
65
```
66
66
67
+
3b. Build the **Locked Skills** section by reading `data/concept-tree.json`:
68
+
69
+
- Iterate over every concept in every category of `concept-tree.json`.
70
+
- A concept is **locked** if it has at least one entry in its `prerequisites` array AND not all of those prerequisites appear in the user's `concepts_mastered` list.
71
+
- A concept is **ready to learn** when ALL prerequisites are in `concepts_mastered` but the concept itself is not yet mastered (it may or may not be in `concepts_seen`).
72
+
- For each locked concept, check each prerequisite ID against `concepts_mastered`:
73
+
- Mastered prerequisite β mark with β
74
+
- Unmastered prerequisite β mark with β
75
+
- Sort the locked concepts so that **"Ready to learn"** concepts (all prerequisites β ) appear first, followed by concepts that still have unmet prerequisites (at least one β), ordered by fewest unmet prerequisites first.
76
+
- Skip concepts whose prerequisites array is empty β those are not locked, they are always available.
77
+
- Skip concepts the user has already mastered.
78
+
- Format each locked concept as one line:
79
+
80
+
```
81
+
π [concept-id] β needs: [prereq-id] [β or β], [prereq-id] [β or β]
82
+
```
83
+
84
+
Append ` (Ready to learn!)` at the end of the line when all prerequisites are β .
0 commit comments