Teachのロゴ

Teach

コミュニティ
minghinmatthewlam
teach

Build a working mental model of code: the components and how they interact, then the interfaces, schemas, and function signatures. Use when asked to teach or explain how code works, walk through an architecture, deep-dive a subsystem, or understand a change, including code outside the current repo. For a concept with no code, use pstack:teach.

概要

公開者minghinmatthewlam
リポジトリagent-guards
スキル名teach
スター
46
フォーク
3
同梱ファイル
指示のみ
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

    minghinmatthewlamがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Teach」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/minghinmatthewlam/agent-guards/tree/main/skills/teach
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/minghinmatthewlam/agent-guards.git /tmp/agent-guards
mkdir -p .claude/skills
cp -r /tmp/agent-guards/skills/teach .claude/skills/teach
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでTeachを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にTeachを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Teachは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

Teach

Load the pstack:teach skill and follow it. This skill adds what teaching code needs. Where the two conflict, this skill wins.

Code is the source of truth. Trace the implementation and call paths before explaining, and say what you could not verify. For code outside the current repo, clone it under ~/dev/<repo> so the user can open the same files.

Assume the user knows none of the components, tools, or domain terms involved. Introduce each one in plain words the first time it appears, before using its name. Put prerequisite background in its own short section the user can skim past. Never collapse it. When an example comes from an input you made up or ran, such as a test file, introduce that input first.

Views

Start with the system map. Move to the contract walk when the user asks to go deeper or the question is about data or interfaces.

System map. The components, what each is responsible for, who calls whom, what data crosses each boundary, and where state lives. Walk one real request end to end, including the failure path that matters most.

Contract walk. Interfaces and data, never function bodies.

  • Each type or schema: what it represents, its key fields, one filled-in instance with real values, where it is stored and how durable that is (memory, file, which database; does it survive a restart or crash), and who writes it.
  • The call flow: a top-down Mermaid flowchart from the entry point. Each box is a numbered function or step with one line on what it does, and each arrow is a call labeled with when it happens, such as "blocked" or "the tool waits". Give the call-flow section the full window width and draw the diagram at full text size. Clicking a box opens its full contract card in a panel beside the diagram, separated by a draggable divider, and clicking the same box again or pressing Esc closes the panel so the diagram takes the full width. Do not repeat the steps as a separate list.

Proposed designs. Teach a design the same way, with both views. Trace the existing code it touches so the starting point is real. Mark each component, type, and function as existing, changed, or new, in prose and in the diagrams. Use color-blind-safe styles that also differ without color: new is blue with a thick solid border, changed is orange with a dashed border, existing is gray with a thin border. Never use red against green. For a change, show the call flow before and after. Point a new piece's path:line at the design sketch file when one exists, and otherwise say "not written yet". Label example values for new pieces as illustrative.

Output

The Claude desktop chat shows Mermaid and <details> as raw source. Visuals go in the HTML page, or inline with the imagine tool (show_widget) when that helps more.

  • In chat, link code as a Markdown link whose target is the absolute path plus :line. It opens the file pane at that line. Show at most one-line signatures.
  • When you show code, explain it with pseudocode.
  • Put every visual in one self-contained HTML page under /tmp/teach/<slug>.html and send it with SendUserFile and display: "render". Draw diagrams with Mermaid from a CDN, built up as pstack:teach describes. Make the end-to-end walkthrough a stepper that shows what state changes at each step, with a toggle for the failure path. Give each type and function a collapsible card with its summary, signature, fields, filled-in example, storage, and absolute path:line as copyable text, since links in the page do not open the file pane.
  • Lay out signatures, fields, and examples vertically: the name on one line, then one indented line per field or parameter with its type and a few words on what it means. Drop braces and syntax noise. Never squeeze a type or an example onto one line.
  • Link every mention of a type or function that has a card to that card, in prose, fields, and the call flow. A click opens the card and scrolls to it, and a floating Back button returns to where the user was, like go-to-definition. The page viewer has no browser controls, so build Back and Forward into the page, bound to Ctrl+- and Ctrl+Shift+-. A link to a call-flow step opens it in the diagram's panel.
  • Keep one page per topic. Update it and send it again as the explanation grows.

Teaching alone does not authorize code changes.

よくある質問

AIスキル「Teach」では何ができますか?

Build a working mental model of code: the components and how they interact, then the interfaces, schemas, and function signatures. Use when asked to teach or explain how code works, walk through an architecture, deep-dive a subsystem, or understand a change, including code outside the current repo. For a concept with no code, use pstack:teach.

TypingMindでTeachを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Teachはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにTeachをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/minghinmatthewlam/agent-guards/tree/main/skills/teachを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Teachを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Teachで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもTeachを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Teach」は無料ですか?

はい。minghinmatthewlamがMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇