Skip to content
Skill

Teach

Explains a codebase change or subsystem so a person truly understands it

Teach is an open-source agent skill for developer tools. It is available on Claude Code, Codex and GitHub Copilot.

Scripts
None
Platforms
Claude Code, Codex, GitHub Copilot
GitHub stars
5.1K
Last commit
License
MIT
Listing updated

Similar skills

About Teach

Teach turns a request to understand some code into a plain, layered explanation. It first orients on what the work is and what it touches, then runs the companion how and why skills to cover mechanics and design reasons, and merges their findings into one account. The explanation starts with a short definition tied to the case at hand and builds outward, adding depth only when the reader asks for it.

The skill is written to adapt to the reader. It considers why they are looking at the code, such as planning a change, reviewing it, debugging it, or learning it from scratch, and it skips what they already know. It favors small diagrams that add one part at a time over a single large chart, and it can use a Mermaid diagram for flows and an image tool for spatial ideas like layout or scroll position. Its goal is comprehension, so it does not modify the code.

Teach works from the repository it is run in and needs no scripts or extra tools. The skill includes platform notes for Codex, GitHub Copilot, Muse and Antigravity, which point to the separate pstack mapping files it depends on.

When your agent uses it

Explain a body of work plainly so a person actually understands it. Runs the `how` and `why` skills and weaves what they find into one clear explanation. Use for 'teach me this', 'help me really understand X', 'explain this change or subsystem to me'.

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 1 file (6 KB) on GitHub on 1 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

This skill ships in the pstack plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

/plugin marketplace add michael-denyer/pstack-claude
/plugin install pstack@pstack-claude

Or copy only this skill to ~/.claude/skills/teach:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/michael-denyer/pstack-claude.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/teach &&
cp -R "$tmp/plugins/pstack/skills/teach" ~/.claude/skills/teach &&
rm -rf "$tmp"

For one project only, put the folder in .claude/skills/teach inside it instead.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/teach to use it in every repository:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/michael-denyer/pstack-claude.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/teach &&
cp -R "$tmp/plugins/pstack/skills/teach" ~/.agents/skills/teach &&
rm -rf "$tmp"

For one repository only, put the folder in .agents/skills/teach inside it instead.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/teach to use it in every project:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/michael-denyer/pstack-claude.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/teach &&
cp -R "$tmp/plugins/pstack/skills/teach" ~/.cursor/skills/teach &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/teach inside it instead.

Cursor docs on skills

Run in a terminal (add --scope workspace to install it for the current workspace only):

gemini skills install https://github.com/michael-denyer/pstack-claude.git --path plugins/pstack/skills/teach

Or copy the folder to ~/.gemini/skills/teach yourself.

Gemini CLI docs on skills

For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/teach:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/michael-denyer/pstack-claude.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/teach &&
cp -R "$tmp/plugins/pstack/skills/teach" ~/.copilot/skills/teach &&
rm -rf "$tmp"

For one project only, put the folder in .github/skills/teach inside it instead.

VS Code docs on skills

Get the folder:

git clone --depth 1 https://github.com/michael-denyer/pstack-claude.git

Then copy pstack-claude/plugins/pstack/skills/teach into your agent's skills folder as teach. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

Plain first definition
Names the thing and explains it in general terms before tying it to the current code.
Layered explanation
Builds from the basic mechanism to deeper reasons and edge cases, adding detail on request.
Combined how and why analysis
Runs the how and why skills in parallel and blends their findings into one account.
Build-up diagrams
Draws a series of diagrams that each add one part, so the system assembles step by step.
Reader-aware depth
Chooses what to cover based on whether the person is changing, reviewing, debugging or learning the code.

Good for

  • Explain how a subsystem in this repository works
  • Help me understand what this change does and why it was made
  • Walk me through a flow from request to response in this code
  • Teach me the reasoning behind this module's design
  • Explain a pull request so I can review it confidently

Teach FAQ

What does Teach depend on?

It runs the how and why skills, which it invokes to do their own analysis of the code.

Does Teach change my code?

No. Its stated goal is that the person understands the work, not that the agent changes anything.

When should I use Teach?

Use it when you ask to be taught something, want to really understand a subsystem, or need a change or area explained.

How do I install Teach in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/teach to use it in all your projects, or to .claude/skills/teach in one project. Or install the pstack plugin, which includes it: /plugin marketplace add michael-denyer/pstack-claude, then /plugin install pstack@pstack-claude.

Does Teach run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

Which AI agents can use Teach?

Claude Code, Codex and GitHub Copilot. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

What are the best alternatives to Teach?

The closest alternatives to Teach are How, Why, Codebase design, Codebase onboarding and Codebase comprehension.

Where this comes from

  • Description: from the skill's own SKILL.md.

More from michael-denyer/pstack-claude

  1. Makes the agent read pstack's poteto-mode skill first and follow its routing

    • Open source
    • 5.1K GitHub stars
    • Developer tools
  2. Has the agent restate your goals and the problem you're solving in its own words

    • Open source
    • 5.1K GitHub stars
    • Productivity
  3. Sketches types, signatures and module layout before the agent writes code

    • Open source
    • 5.1K GitHub stars
    • Developer tools
  4. Runs parallel candidate attempts at a task, then merges the best parts into one artifact

    • Open source
    • 5.1K GitHub stars
    • Developer tools
  5. Drafts a personal working-style skill from your past agent conversations

    • Open source
    • 5.1K GitHub stars
    • Developer tools