# Teach

> Teach is an open-source agent skill for developer tools. Explains a codebase change or subsystem so a person truly understands it. It is available on Claude Code, Codex and GitHub Copilot.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, GitHub Copilot
- **Website:** https://github.com/michael-denyer/pstack-claude/tree/main/plugins/pstack/skills/teach
- **Repository:** https://github.com/michael-denyer/pstack-claude
- **GitHub stars:** 5,057
- **License:** MIT
- **Skill name:** teach
- **Collection:** https://github.com/michael-denyer/pstack-claude
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-01

## About

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

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/michael-denyer/pstack-claude/tree/HEAD/plugins/pstack/skills/teach)
- [License: MIT](https://github.com/michael-denyer/pstack-claude/tree/HEAD/plugins/pstack/skills/teach)

## Features

- **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

## Install

### Claude Code

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

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

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

```sh
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.

### Codex

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

```sh
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.

### Cursor

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

```sh
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.

### Gemini CLI

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

```sh
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.

### VS Code

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

```sh
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.

### Other agents

Get the folder:

```sh
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.

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

## Alternatives

- [How](https://ai-powered.com/skills/how): How is an open-source agent skill for developer tools.
- [Why](https://ai-powered.com/skills/why-michael-denyer): Why is an open-source agent skill for developer tools.
- [Codebase design](https://ai-powered.com/skills/codebase-design): Codebase design is an open-source agent skill for design and media.
- [Codebase onboarding](https://ai-powered.com/skills/codebase-onboarding): Codebase onboarding is an open-source agent skill for developer tools.
- [Codebase comprehension](https://ai-powered.com/skills/codebase-comprehension): Codebase comprehension is an open-source agent skill for developer tools.
- [Mentoring juniors](https://ai-powered.com/skills/mentoring-juniors): Mentoring juniors is an open-source agent skill for developer tools.
- [Code tour](https://ai-powered.com/skills/code-tour-smartworldarafath): Code tour is an open-source agent skill for developer tools.
- [Writing skills](https://ai-powered.com/skills/writing-skills-xiaolai): Writing skills is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/teach
