promptschat
Gives Claude Code access to the prompts.chat library, letting you search, retrieve and improve AI prompt templates, and find and install Agent Skills from its registry.
Teaches a technical concept through a runnable code example and a structured walkthrough instead of a wall of definitions. Triggers when a user asks to understand a concept, such as asking to explain something.
Claude Code
> /plugin marketplace add JackyYang258/agent-teacher> /plugin install agent-teacher@agent-teacher
Codex
$ npx skills add JackyYang258/agent-teacher -a codex
Cursor
$ npx skills add JackyYang258/agent-teacher -a cursor
Gemini CLI
$ npx skills add JackyYang258/agent-teacher -a gemini-cli
GitHub Copilot
$ copilot plugin marketplace add JackyYang258/agent-teacher$ copilot plugin install agent-teacher@agent-teacher
OpenCode
$ npx skills add JackyYang258/agent-teacher -a opencode
Windsurf
$ npx skills add JackyYang258/agent-teacher -a windsurf
I read AI papers all the time, and the gap between "skimmed it" and "got it" is largest when the concept is dense — group-relative advantage in GRPO, expert routing in MoE, attention tiling in FlashAttention. The default LLM explanation hits one of two failure modes: prose with no code to anchor it, or code buried under 60 lines of model and dataloader setup before the actual algorithm appears.
AgentTeacher gives it a shape: every concept gets the same six-part spine — intuition, example, walkthrough, trap, pointers, test questions — and the example is either a 10-line runnable REPL snippet or PyTorch pseudocode with shape annotations on every line that matters. Once the structure is locked in, the quality of explanations levels up the moment the model stops improvising.
Built primarily for AI/ML concepts: training algorithms (GRPO, PPO, DPO, RLHF), architectures (MoE, FlashAttention, Mamba, attention variants). Works the same on general programming concepts when needed — closures, generators, channels, ownership.
The actual frozen output from running the skill on two AI/ML concepts:
Each answer comes with a lightweight pseudocode file (grpo-pseudocode.py, moe-pseudocode.py) so you can open the code in an editor with syntax highlighting while reading the explanation.
Claude Code
npx skills add JackyYang258/agent-teacher -a claude-code -g -y
Claude Code plugin marketplace (requires Claude Code v2.1.142+)
/plugin marketplace add JackyYang258/agent-teacher
/plugin install agent-teacher@agent-teacher
Generic agents (Codex, OpenCode, Pi, and other tools that read from ~/.agents/)
npx skills add JackyYang258/agent-teacher -a '*' -g -y
Claude Desktop
Download agent-teacher.zip, open Customize > Skills > "+" > Create skill, and upload the ZIP directly (no need to unzip). The ZIP is ~45KB.
Local development
ln -s /path/to/AgentTeacher ~/.claude/skills/agent-teacher
The skill auto-triggers from natural requests, no slash command needed. Example prompts:
explain GRPO / what is mixture of experts / teach me FlashAttention with code / how does PPO clipping actually work讲一下 GRPO / MoE 怎么路由 token / 教我 FlashAttention 的 tiling 思路 / Python 的 GIL 到底是什么The spine has six parts; each has its own job.
| Part | Job | Length |
|---|---|---|
| Intuition | Frame the problem the concept solves | 1–2 sentences |
| Example | Runnable code (5–20 lines) or structured pseudocode for architectures and training algorithms | one code block |
| Walkthrough | Group the example into purpose units, not line-by-line narration | 2–4 paragraphs |
| Trap | The bug the concept exists to prevent or the wrong intuition newcomers reach for | one snippet + one line |
| Pointers | 2–3 adjacent concepts. No expansion | 3 lines |
| Test questions | 2–3 questions at increasing difficulty (recall/contrast → read the code → design/trap). Hints, no answers | 3 questions |
Two example modes:
/tmp/<concept>-pseudocode.py for editor viewing.Full per-layer playbook: references/teaching-method.md. Code style rules: references/code-style-for-teaching.md. Concept → language mapping: references/concept-to-language.md.
Not a tutorial generator; a constraint system for technical explanations. Documents should read as composed lessons, not improvised dumps.
| Element | Rule |
|---|---|
| Form | Six parts, no exceptions. The trap is the section most lessons skip; the test questions are what most lessons omit entirely |
| Code | Real names (gate_logits, expert_outputs), not abbreviations (g, e) |
| Shapes | Every transition annotated: [B, T, D] → [B, T, E] → [B, T, K] → [N, D]. In Mode B this is non-negotiable |
| Pseudocode | Valid Python/PyTorch with scaffolding removed. Never natural-language FOR each token DO ... — that throws away what code form gives you |
| Comments | One # WHY comment is worth ten # WHAT comments. The walkthrough carries the rest |
| Length | 150–400 words of prose + code blocks + 2–3 test questions. One screen of focused reading |
| Test questions | Hints not answers; framed as questions someone could pose, not as self-checks ("if rewards were all identical, what would happen to the gradient?") |
Code language is picked per concept: PyTorch pseudocode for architectures / training-algos, Python for general CS and algorithms, Go for channels / goroutines, Rust for ownership / borrowing, C for pointers / memory, JavaScript for DOM / event loop, TypeScript or Haskell for type systems / monads. Full mapping in references/concept-to-language.md.
Eight optional enrichments. When the concept's nature warrants, the spine opts into up to five extras: math tier (canonical formula or Big-O recurrence), state tracking (tensor shapes for DL / participant state for protocols / data trace for algorithms), design rationale ("why √d and not √2d", "why exponential backoff"), cousin matrix (BN vs LN, GRPO vs PPO, TCP vs UDP), prerequisite + variants map, classic misconception list, visualization (heatmaps, state machines, sequence diagrams), and invariants the concept guarantees (heap property, Raft safety properties, BST invariant). Each fires only when the concept warrants. The framework was tuned for DL/ML but several modules apply across CS: data structures, distributed protocols, complex algorithms. Full decision rules and per-module playbook (DL and non-DL examples) in references/enrichments.md.
MIT License. Worked examples in assets/examples/ are illustrative and may be used or modified freely.
Gives Claude Code access to the prompts.chat library, letting you search, retrieve and improve AI prompt templates, and find and install Agent Skills from its registry.
A Claude Code skill for generating editable PPTX presentations and slides from a workflow, with reusable brand, style, layout, and deck workspaces, native charts, speaker notes, and template filling.
Gives AI agents control over Word, Excel and PowerPoint files, with skills for building .docx reports, academic papers, Excel dashboards and Morph-style animated slides.
A skill that builds animation-rich HTML presentations from scratch or converts PowerPoint files to web slides. Useful for anyone turning a deck into a web presentation.
Teaches a technical concept through a runnable code example and a structured walkthrough instead of a wall of definitions. Triggers when a user asks to understand a concept, such as asking to explain something. Install it with the command on its page. It includes agent-teacher. Its skills do not fire on their own yet. Free and open source.
Is this plugin yours?
Claim it with GitHubSubmit a pluginPromote it