A Cursor skill that scaffolds learning repos where the AI acts as a tutor, not a contractor.
- Invoke the skill with a goal — e.g.
/learn-init build a toy Redis in Go to learn networking. - The skill scaffolds a minimal repo:
git init, anAGENTS.mdteaching contract, and a Cursor hook that blocks the AI from editing source files. - You open that repo as its own workspace and start learning. The AI reads your goal, calibrates to your experience, and proposes one session-sized checkpoint at a time in
docs/nextcheckpoint.md. - You write the code. The AI guides with questions, explanations, and (only when you're stuck) small examples in chat — never in your files.
| Layer | Role |
|---|---|
AGENTS.md |
Teaching contract: Socratic by default, explain-back before moving on, incremental checkpoints |
.cursor/hooks/guard-edits.sh |
Blocks AI edits to everything except docs/ (checkpoints) and .cursor/ (skills, rules) |
docs/nextcheckpoint.md |
Single active checkpoint — one clear step toward the goal |
The hook is tamper-protected: only you can change the guard itself.
Copy or symlink this skill into your Cursor skills directory, then invoke /learn-init with your learning goal.
Requires jq for the edit guard hook (brew install jq on macOS).