generate-topic

generate-topic is a skill for Kiro from smileynet/teach-me. It costs 40 tokens per session (2,747 once invoked), scanned A, original, MIT.

A complete lesson-production workflow that researches a topic, writes the lesson, adds supporting materials, and checks the finished result.

In plain words
What is it for?
Use it to create or complete a topic from a workspace map, research the domain and existing lessons, verify sources, generate lesson content, and run post-processing and checks.
Why use it?
It coordinates the many steps needed for a finished educational topic, reducing the chance that research, definitions, quizzes, references, or verification are skipped.

Skill for Kiro

Written for Kiro: installed under .kiro/. Also seen: mentions subagents.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python tools/concept_hints.py source-chunks/{domain}.json --topic {slug} --domain {domain}.

Good fit Use it to create or complete a topic from a workspace map…

Compare 6 skills from other repositories ↓
Install

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.

Clone the repo
git clone --depth 1 https://github.com/smileynet/teach-me
agentmods
npx agentmods add skills/smileynet/teach-me/generate-topic

Made for: Kiro.

Wrote 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.

agentmods badge for generate-topic

README.md
[![agentmods](https://agentmods.dev/badge/skills/smileynet/teach-me/generate-topic.svg)](https://agentmods.dev/skills/smileynet/teach-me/generate-topic)
Your own site
<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>
Per session 40 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,747 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 6d ago against content hash 87b9da938d89, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

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.

.kiro/skills/generate-topic/SKILL.md · 174 lines

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), and source_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)

Read the full file on GitHub · 174 lines

Files

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.

Changes

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.

  1. 6d ago First seen · 174 lines · 40 tokens per session scan A 87b9da938d89

Subscribe to this mod's changes

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.

Related

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.

bytesagain/ai-skills · 53 tokens

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.

kangarooking/cangjie-skill · 139 tokens

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…

Lingtai-AI/lingtai · 116 tokens

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.

chubbyguan/chubbyskills · 58 tokens

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.

mohi-devhub/antivibe · 50 tokens

baiyueguang-learning

Transform knowledge points into an investigable information network using the Baiyueguang Learning Method.

zhiliscope/baiyueguang-learning-skill · 27 tokens