Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/smileynet/teach-menpx agentmods add skills/smileynet/teach-me/generate-topicWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/smileynet/teach-me/generate-topic)<a href="https://agentmods.dev/skills/smileynet/teach-me/generate-topic"><img src="https://agentmods.dev/badge/skills/smileynet/teach-me/generate-topic.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00040 | $0.02747 |
| Opus 5 | $0.00020 | $0.01373 |
| Sonnet 5 | $0.00008 | $0.00549 |
| Haiku 4.5 | $0.00004 | $0.00275 |
Grade A, and why
generate-topic scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 174 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Generate Topic
Orchestrates the full lesson generation pipeline for one topic. Ensures every downstream step (jargon, quiz, reference, SVG theming, verification) actually happens — not just the lesson writing.
When to use
- Generating a new topic from a MAP.md
- "Completing" an existing topic that's missing artifacts (run against it to fill gaps)
- Any time you want the full pipeline, not just a quick lesson draft
Input
- A workspace path (e.g.,
library/oidc-rust) - A topic slug from the workspace's MAP.md (e.g.,
token-validation-middleware) - The topic's prereqs should already be complete
The Pipeline (4 Phases)
Phase 1: Research (PARALLEL — fan out 2-4 subagents)
Dispatch simultaneously:
| Agent | Task | Output |
|---|---|---|
| Domain research | Web search for topic concepts, key facts, 3+ sources | .scratch/research/{slug}.md |
| Workspace context | Read MAP.md, existing lessons, RESOURCES.md — what's taught, what prereqs cover, avoid repetition | .scratch/research/{slug}-context.md |
| Source verification | Check top URLs from RESOURCES.md are live, extract key claims relevant to this topic | .scratch/research/{slug}-sources.md |
Source-ingested topics: If source-chunks/{domain}.json exists, this topic was derived from a source document. In this case:
- Skip web research — the source chunks ARE the research
- Read the chunk(s) matching this topic's heading from the JSON
- Use chunk content as the authoritative source for the lesson
- When writing SR questions, populate
source_section(chunk heading),source_page(chunk page_start), andsource_quote(exact passage from the chunk content) on every card
After all return: Synthesize in main context. Resolve conflicts between sources. Determine: what to teach, what to cite, what the learner already knows from prereqs.
Concept hints (opt-in): If source-chunks/{domain}.json exists, run:
python tools/concept_hints.py source-chunks/{domain}.json --topic {slug} --domain {domain}
This produces .scratch/concepts/{slug}.json with:
- Ranked candidate glossary terms (use as starting checklist for jargon, not a mandate)
- L-level suggestions per concept (L1=core recall, L2=practice, L3=analysis — informed by foundational-ness score + prerequisite depth)
- Prerequisite edge suggestions (use for "explain why X depends on Y" question framing)
What ships with it
1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 6d ago First seen · 174 lines · 40 tokens per session scan A 87b9da938d89
generate-topic is a skill published in the GitHub repository smileynet/teach-me (3 stars, last pushed 2d ago), licensed MIT. It adds 40 tokens to every session and 2,747 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
anki
Anki spaced repetition learning system reference. Covers the science of SRS and SM-2 algorithm, card design principles, optimal deck settings, FSRS scheduler, study workflow, essential add-ons, custom templates, filtered decks, and AnkiConnect API.
reading-metaskill
A reading and learning guide based on building a regular reading habit, choosing books, and understanding difficult subjects through original works and explanation.
textbook-distillation
Turn a textbook or long-form source into a self-paced learning track: chapter map, lesson plan, then self-contained HTML lecture notes (styled as the human specifies) with worked examples, exercises, and checkpoint questions. Read this for "lecture notes" / "study notes" / "course" / "syllabus" requests from a…
learning-notes-automation
A workflow for turning videos, podcasts, and articles into structured learning notes. It extracts key ideas and creates flashcards that can be imported into Anki, a spaced-repetition study app.
antivibe
Code learning and audit framework. Analyze any codebase — new, legacy, or AI-generated — and produce educational explanations or architectural audits. Use when the user wants to understand WHAT and WHY behind any code, not just accept it.
baiyueguang-learning
Transform knowledge points into an investigable information network using the Baiyueguang Learning Method.