agent-teacher CLAUDE.md

agent-teacher CLAUDE.md is an instructions file for Claude Code from JackyYang258/agent-teacher. It costs 914 tokens per session, scanned A, original, MIT.

Instructions for AgentTeacher, a tool that teaches technical concepts through an explanation, example, walkthrough, common mistake, references, and questions.

In plain words
What is it for?
Use it to create lessons with runnable examples or pseudocode, explain how the examples work, point out traps, and ask follow-up test questions.
Why use it?
It provides a consistent teaching format for explaining unfamiliar programming ideas and checking understanding.

Instructions file for Claude Code

Written for Claude Code: Claude Code plugin machinery. Also seen: mentions CLAUDE.md; mentions Claude Code; mentions AGENTS.md.

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/jackyyang258/agent-teacher/claude-md
Clone the repo
git clone --depth 1 https://github.com/JackyYang258/agent-teacher

Made for: Claude Code.

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 agent-teacher CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/jackyyang258/agent-teacher/claude-md.svg)](https://agentmods.dev/instructions/jackyyang258/agent-teacher/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/jackyyang258/agent-teacher/claude-md"><img src="https://agentmods.dev/badge/instructions/jackyyang258/agent-teacher/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 914 This file is loaded in full into every session.
When invoked 914 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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.00914 $0.00914
Opus 5 $0.00457 $0.00457
Sonnet 5 $0.00183 $0.00183
Haiku 4.5 $0.00091 $0.00091

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

Security

Grade A, and why

agent-teacher CLAUDE.md 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.

CLAUDE.md · 33 lines

How it starts

The opening of the file, as written. The whole thing — 33 lines — stays where its author put it; the contents beside it link to each section on GitHub.

AgentTeacher

Concept-teaching skill: explains a technical concept through a fixed six-part structure — intuition → example (runnable or pseudocode) → walkthrough → trap → pointers → test questions.

Before you start

  • Personal / global agent rules belong outside this repo. This file records only AgentTeacher's Claude Code entry and maintenance rules.
  • The full repository map, working rules, current risk areas, verification, and release flow live in AGENTS.md.
  • The skill itself starts at SKILL.md. Teaching method: references/teaching-method.md. Code style for teaching: references/code-style-for-teaching.md. Concept→language mapping: references/concept-to-language.md. Enrichments: references/enrichments.md.
  • For contributors (English / 中文 onboarding): see CONTRIBUTING.md / CONTRIBUTING.zh-CN.md.

Common commands

bash scripts/package-skill.sh                  # build dist/agent-teacher.zip

The project has no build / render pipeline — output is markdown delivered in chat. There is no test runner; verification is done by running the skill on a real prompt and inspecting the lesson.

Project-specific hard rules

  • The six-part spine (intuition → example → walkthrough → trap → pointers → test questions) is the contract. Don't add a seventh part, don't drop parts. If one feels redundant for a specific concept, write a one-liner — don't skip.
  • Mode A (runnable) vs Mode B (pseudocode) is binary. Mode B auto-writes a sidecar file at /tmp/<slug>-pseudocode.<ext>; Mode A writes a file only when the user asks.
  • Pseudocode must be real Python / PyTorch syntax with state annotations on every line where state changes. Natural-language pseudocode (FOR each token DO ...) is forbidden — it throws away the precision code form gives.
  • The test questions section is not a comprehension check. Hints, no answers. Phrase each question concretely ("if all rewards in a group were identical, what happens to the gradient?" — not "do you understand?"). Don't frame as interview questions; don't use the word "interview" in skill output.
  • The eight enrichments (math tier, state tracking, design rationale, cousin matrix, prerequisites + variants, misconception list, visualization, invariants) are concept-driven, not concept-default. Decision table is in references/enrichments.md. Hard cap 5 per lesson, hard floor 0 (plain six-part lesson is the right answer for most concepts). The framework was tuned for DL/ML but state tracking / design rationale / cousin matrix / prereqs+variants / visualization / invariants also apply to data structures, distributed protocols, and complex algorithms. Language features (closures, generators, channels) never get enrichments.
  • Mode B has three flavors: DL (tensor shape annotations), protocols (participant state + message arrows), algorithms / data structures (invariants + concrete trace). State tracking means the right thing in each flavor — don't apply DL shape-annotation conventions to a protocol pseudocode block.
  • When changing SKILL.md, sync the matching playbook in references/teaching-method.md. SKILL.md is the contract; references are the expanded playbook with examples. They must agree.
  • Project canonical docs are English-only (SKILL.md, AGENTS.md, CLAUDE.md, references/). Bilingual surfaces are README and CONTRIBUTING (both in English and Chinese versions) and assets/examples/ (each example exists as -en.md and -zh.md). See CONTRIBUTING.md for the full bilingual policy.
  • Don't bundle evals/ / .claude-plugin/ / dist/ into the release zip. The exclude list lives in scripts/package-skill.sh.
  • After editing scripts/package-skill.sh or adding any file that should ship in the zip, refresh and inspect dist/agent-teacher.zip, confirming new files were git add-ed (the package script is based on git ls-files; untracked files vanish silently).
  • Don't commit one-off review reports or diagnostic snapshots. Stable rules go into AGENTS.md, CLAUDE.md, SKILL.md, or references/; everything else is discarded.

Read the full file on GitHub · 33 lines

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 · 33 lines · 914 tokens per session scan A 1a0cfc631ecf

Subscribe to this mod's changes

agent-teacher CLAUDE.md is an instructions file published in the GitHub repository JackyYang258/agent-teacher (5 stars, last pushed 3mo ago), licensed MIT. It adds 914 tokens to every session, about $0.0046 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.