Discover MCPs & agents
Loading MCPs and agents…
Loading MCPs and agents…
Instead of writing comments, your coding agent asks you to explain the code it just wrote, then grades the answer and awards XP. Retrieval practice for AI-assisted development.
Jump to setup instructionsFetched from the repository for this visit.
An Agent Skill that stops your AI from explaining your own codebase to you.
When an AI writes code and comments it, you read a fluent explanation, feel understanding, and retain nothing. Recognition isn't recall — the comment does the remembering so you don't have to.
Teach.ai removes the comment and puts a question in its place. You have to generate the explanation from the code itself, which is the act that actually builds durable memory. XP, levels and streaks exist for one reason: to make you willing to do a slightly effortful thing you'd otherwise skip.
The code always ships first. The question comes after, and never blocks the work.
You ask for rate limiting on an API client. You get working code, with no explanatory comments:
export function tryConsume(key: string, cost = 1): boolean {
const now = Date.now();
const capacity = 60;
const refillPerMs = capacity / 60_000;
let b = buckets.get(key);
if (!b) { b = { tokens: capacity, updatedAt: now }; buckets.set(key, b); }
b.tokens = Math.min(capacity, b.tokens + (now - b.updatedAt) * refillPerMs);
b.updatedAt = now;
if (b.tokens < cost) return false;
b.tokens -= cost;
return true;
}
Then:
This refills continuously rather than resetting a counter every 60s. What does a fixed 60s window let through that this doesn't? —
rate-limiting/token-bucket
You: "the window one is less accurate"
Right direction, but there's a sharper version: a fixed window allows a 2× burst at the boundary — 60 calls at 0:59 and 60 more at 1:01, so 120 in two seconds. Continuous refill has no boundary to straddle.
+25 XP(partial) ·rate-limiting/token-bucket ☆☆☆☆☆· Level 1 · review tomorrow
Your answer, corrected, goes into .teach-ai/journal.md. The concept comes back for review
tomorrow because you half-missed it.
Agent Skills is an open standard, so the same folder works across harnesses — only the
destination path changes. The .skill file is a zip containing a top-level teach-ai/
directory, so unzip into the skills directory, not into a teach-ai/ subfolder.
| Harness | Personal (all projects) | Project / workspace |
|---|---|---|
| Claude Code | ~/.claude/skills/ | .claude/skills/ |
| Gemini CLI | ~/.gemini/skills/ | .gemini/skills/ |
| Codex CLI | ~/.codex/skills/ | — |
.skillunzip teach-ai.skill -d ~/.claude/skills/
git clone https://github.com/Henriquepb22/teach-ai.git /tmp/teach-ai
cp -r /tmp/teach-ai/teach-ai ~/.claude/skills/
Swap the destination for ~/.gemini/skills/ or ~/.codex/skills/ as needed. Gemini CLI
can also install straight from a URL:
gemini skills install https://github.com/Henriquepb22/teach-ai
Upload the .skill file in a conversation and use the Save skill button on the file
card. Note that claude.ai's filesystem resets between sessions, so XP won't persist there —
the questions still work, but the scoreboard is session-only.
Gemini CLI also reads ~/.agents/skills/ and .agents/skills/ as aliases. Keep the real
directory there and symlink the rest, so you maintain one source of truth:
mkdir -p ~/.agents/skills
cp -r teach-ai ~/.agents/skills/
ln -s ~/.agents/skills/teach-ai ~/.claude/skills/teach-ai
ln -s ~/.agents/skills/teach-ai ~/.codex/skills/teach-ai
/doctor/skills list, then /skills reload if you just added the files.
Workspace skills only load in a trusted folder; run /trust and restart if it's missing.If it doesn't appear, the cause is almost always the frontmatter. name: and description:
are both required and the --- delimiters must be the very first thing in the file — no
blank line, no comment, no H1 above them.
Python 3.8+ on PATH. progress.py is standard library only — no pip install, no
dependencies, no network access.
On first use, Teach.ai initializes a directory at your project root and adds it to
.gitignore:
.teach-ai/
├── progress.json XP, level, streak, per-concept mastery, review schedule
├── journal.md every question, your answer, and the correction
└── card.html rendered progress card (generated on demand)
This is a personal practice record, not a team artifact — hence gitignored by default. If
you'd rather share it, remove the entry init adds.
Nothing else in your repo is touched.
Teach.ai doesn't register a command of its own — you drive it by talking to the agent, and
the plain-language forms work in every harness. In Claude Code the skill is also invocable
directly as a slash command named after its folder, so /teach-ai <request> works there.
| Say | Claude Code shortcut | Effect |
|---|---|---|
| "show my teach.ai status" | /teach-ai status | XP, level, streak, weak concepts, due reviews |
| "show my progress card" | /teach-ai card | Render the progress card |
| "run a review session" | /teach-ai review | Quiz over concepts that are due |
| "show my learning journal" | /teach-ai journal | Show recent journal entries |
| "stop quizzing me" / "quiz me again" | /teach-ai off / /teach-ai on | Suspend or resume for this session |
| "ask harder/easier questions" | /teach-ai harder / /teach-ai easier | Shift question difficulty up or down |
The tracker is also usable directly, which is handy for debugging or scripting:
SKILL_DIR=~/.claude/skills/teach-ai
python "$SKILL_DIR/scripts/progress.py" status
python "$SKILL_DIR/scripts/progress.py" due
python "$SKILL_DIR/scripts/progress.py" card
Questions come in four ascending tiers — recall (10 XP), comprehension (25),
analysis (50), synthesis (75) — multiplied by verdict: correct ×1, partial ×0.5,
missed a flat 5, skipped 0. A correct answer on a scheduled review earns ×1.5, and long
streaks add up to +50%.
Concepts carry a mastery score of 0–5 and resurface on an expanding schedule (1, 3, 7, 16, 35 days) until they retire at five correct answers. Anything with 3+ attempts and under 50% correct gets flagged weak — that list, not the XP total, is the genuinely useful output.
Full tables in references/xp-and-levels.md.
A wrong answer pays 5 XP, not 0. A zero teaches you to skip anything you're unsure of — which is precisely the set of questions worth answering. Attempting is the behavior being reinforced.
Skips are completely free. No XP, no penalty, no attempt logged, no effect on accuracy or mastery. The moment declining a question can hurt your record, this becomes a toll booth on your own codebase.
Streak freezes are generous. One banked per 7 days, so a 21-day streak survives a long weekend. The first broken 40-day streak is when people abandon these systems.
Most of the skill is about not asking. Skip lists for trivial changes, a ceiling of three questions per turn, and an explicit rule to go silent when production is broken or you're clearly frustrated. Over-asking gets a skill uninstalled; under-asking just costs a little learning.
Comments aren't banned, just rare. They're reserved for code whose why lives outside the file — an upstream API quirk, a race window, a spec-mandated constant, or anything that looks wrong but is right and will get "fixed" into a bug. When you've answered well, your own corrected words become the comment.
Bug fixes are asked about only after the fix is verified. A question mid-diagnosis costs you the thread you were holding. A landed fix is the richest thing in the session, because the system just demonstrated something true that nobody believed five minutes ago.
teach-ai/
├── SKILL.md the instructions the agent reads
├── references/
│ ├── question-design.md archetypes, calibration, anti-patterns
│ └── xp-and-levels.md XP tables, level curve, streak and mastery rules
└── scripts/
└── progress.py tracker: XP math, mastery, journal, card
SKILL.md stays in context as metadata; the references load only when the agent needs
them. Keeping the question-design guidance out of the main file means it costs nothing on
turns where no question gets asked.
Any git repo works across all three harnesses — clone and copy into the skills directory.
If your team is on Claude Code, a plugin marketplace is smoother. Add a .claude-plugin/
directory to this repo, push it, and teammates run:
/plugin marketplace add YOUR_ORG/teach-ai
/plugin install teach-ai@teach-ai
Plugin skills are namespaced and coexist with anything already in .claude/skills/. See
the plugin marketplace docs for the
required layout.
The instruction the whole mechanism depends on is "ask the question, then stop talking" —
the pull toward immediately explaining is strong, and a question you've already answered is
just a comment with extra formatting. Claude models hold this reasonably well. On other
harnesses you may need to strengthen that section of SKILL.md.
"The fix is verified" is a judgment call, and an agent can decide it's true too early during
a long multi-turn debugging session. If it starts asking mid-hunt, tell it to stop —
/teach-ai off in Claude Code, or "stop quizzing me" anywhere — for the rest of the session.
Concept slugs drift if they're allowed to get too specific. async/cancellation accumulates
a dozen questions over months and its mastery score means something;
async/cancellation-in-the-beat-scheduler collects exactly one and tells you nothing. The
slug conventions in references/question-design.md exist to prevent this, but it's worth
skimming progress.py status occasionally to see whether the vocabulary is staying coarse.
GitHub checked 16h ago - refresh overdue. Recently viewed repositories target hourly refresh.
Find a documented setup for your client. No sign-in, installation, or tool execution.
If this MCP is also published on mcpchannel.ai, you can subscribe from Browse and use the gateway config there instead.