progressive-code-teaching

A teaching method that introduces unfamiliar code in small, understandable steps. It starts with a short working outline and adds one new idea at a time.

In plain words
What is it for?
Use it to explain frameworks, application programming interfaces, and long code examples. It helps create lessons with commented code, small exercises, and a final complete example.
Why use it?
Long examples and unfamiliar programming interfaces can overwhelm beginners. This approach makes each change predictable and gives learners chances to check their understanding.

Skill for Claude CodeCodex

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 skills/yyz666ai/learning-agent/progressive-code-teaching
Any agent
npx skills add yyz666ai/Learning-Agent --skill progressive-code-teaching
Clone the repo
git clone --depth 1 https://github.com/yyz666ai/Learning-Agent

Made for: Claude Code, Codex.

Per session 33 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 479 The whole file, excluding the scripts and references it only reads on demand.
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 $0.00033 $0.00479
Opus 5 $0.00016 $0.00239
Sonnet 5 $0.00007 $0.00096
Haiku 4.5 $0.00003 $0.00048

Measured 2d ago against content hash 3982d1d036e3, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

progressive-code-teaching 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 2d 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.

workspace/dev/.codex/skills/progressive-code-teaching/SKILL.md · 34 lines

What it actually says

渐进式代码教学

不要第一次就展示完整长代码。先让学习者看到最小可解释骨架,再逐步增加一件新东西,每一步都能预测或运行。

披露顺序

  1. 第一段默认只有 6–10 个有效行,回答“程序从哪里开始、数据怎样进出”。
  2. 每次只新增一个概念或 API;所有陌生代码必须有详细中文注释和逐行中文注释,说明它解决什么问题、数据怎样变化、为什么这样写。
  3. 先展示变化前后或高亮新增部分,再展示当前完整版本。
  4. 每个阶段安排一次预测、点击判断或真实运行,不要求长篇复述。
  5. 最终页给可复制的完整代码;仍保留关键中文注释。命令用于帮助学习者自己练,不要求逐项提交打印输出。

长代码硬门禁

  • 首次出现超过 12 行的代码时,更早页面必须先出现较短骨架,再按职责逐步增加;第一张代码页禁止直接倾倒完整长代码。
  • 每个代码块都必须包含中文注释。8 行以上至少两处中文注释,解释关键职责、API 角色或数据变化;不能只在代码外解释。
  • 每页只新增一个可以指出来的变化;最终完整代码可以较长,但学习者已经在前页见过它的组成过程。

新手框架课

  • 先画最小流程或目录,再写骨架。
  • import、状态结构、节点函数、连边、编译、运行分开讲。
  • 代码页首屏必须看到代码;解释文字放在代码旁或代码后。

边界

  • 已经熟悉该 API 的学习者可以合并步骤,但必须依据证据,不凭自述直接跳过。
  • 详细中文注释解释原因、数据变化和 API 角色,不逐字翻译语法,也不能只在代码外写一大段说明。
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. 2d ago First seen · 34 lines · 33 tokens per session scan A 3982d1d036e3

Subscribe to this mod's changes

progressive-code-teaching is a skill published in the GitHub repository yyz666ai/Learning-Agent (1 stars, last pushed 2d ago), licensed MIT. It adds 33 tokens to every session and 479 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

skillpack-creator

Create a reusable SkillPack from a successful completed task. Use when the user wants to convert a one-off research, coding, analysis, or content workflow into a distributable local SkillPack with skillpack.json, local skills under skills/, starter prompts, start scripts, and an optional zip package.

CreminiAI/skillpack · 67 tokens

skill-creator

Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.

CreminiAI/skillpack · 64 tokens

commit

Atomic git commit with conventional message. Use when the user says "commit", "save my changes", "commit this", or wants to create a git commit. Stages specific files, writes a conventional commit message with body explaining non-obvious decisions. Never uses git add -A.

congchuanling-dot/Cohort · 59 tokens

python-run

Run and debug Python scripts in the project. Use when the user says "run python", "execute this script", "debug this py file", or wants to run/modify a .py file. Handles dependency checks, linting, execution, and error analysis.

congchuanling-dot/Cohort · 56 tokens

akirule

Aki's contextual rule router — invoke BEFORE acting whenever the task touches any of - .md/.vue/.css/.tsx/.rs/.sql files; docs, plan, README, CHANGELOG; UI, component, CSS, tailwind; SEO, schema, sitemap; release, version, commit, push, deploy; DB schema, migration; Tauri; i18n, UI copy; pricing, biz; UX review…

lacvietanh/akidevrule · 137 tokens

akigitcommit

Analyze the working tree and commit changes in clean logical groups. Triages a long half-finished tree first (finished vs mid-edit vs abandoned vs accidental) before grouping. Auto-detects CHANGELOG to switch between domain-grouped mode (3–5 commits by object/feature) and type-grouped mode (feat/fix/refactor). Stages…

lacvietanh/akidevrule · 100 tokens