AGENT SKILL

teach

Explain code, changes, and subsystems by investigating how they work and why they were designed that way, then teach at the user's pace. Use for explicit teach requests, teach me this, help me understand this implementation, この実装を教えて, 仕組みと設計背景を知りたい, and understanding before review or modification. Do not trigger for every factual question or primarily implementation requests.

适用职业教师与教育
License 许可
MIT
所属仓库
toku345/dotfiles
最近更新
2026-11-13
Stars
★ 1
Forks
0

01 前言 Front Matter

name
teach
description
Explain code, changes, and subsystems by investigating how they work and why they were designed that way, then teach at the user's pace. Use for explicit teach requests, teach me this, help me understand this implementation, この実装を教えて, 仕組みと設計背景を知りたい, and understanding before review or modification. Do not trigger for every factual question or primarily implementation requests.

02 资源文件 5

03 SKILL.md 正文

<!-- Adapted from pstack teach/how/why by Lauren Tan (@poteto). Copyright (c) 2026 Lauren Tan. MIT License; see LICENSE. Sources, pinned upstream revision, and adaptation notes: references/source.md. -->

Teach

Explain what the thing is, how it works, and why it has this shape. Help the person understand; do not modify their code while teaching.

This is a self-contained adaptation of pstack's teach/how/why workflow, not an official pstack installation. Read source and attribution for provenance. The investigation tracks are bundled references; no separately installed how, why, or unslop skill is required.

Investigate

  1. Infer the target, existing knowledge, and purpose from the conversation: onboarding, debugging, review, or preparation for a change. Skip concepts the person knows. State a reasonable interpretation and proceed when ambiguity is minor; ask only when the missing target blocks useful work. Use the user's language, Japanese for Japanese requests.
  2. Orient yourself in the code, diff, or supplied material. Execute the how track for behavior and the why track for rationale. Use both for a subsystem. A narrow behavior-only question may need only how. Scope why to history plus one or two promising sources initially, widening when rationale is central or sources conflict.
  3. Use the tools actually available. Run independent searches concurrently when practical. If permitted and useful, delegate bounded read-only investigations, then verify and synthesize their evidence. Otherwise perform the tracks directly. Require no specific platform or model. Never imply access to unavailable repositories, documents, or telemetry.
  4. Combine the results into one account. Preserve observed facts, documented intent, supported inference, competing explanations, and unknowns. Do not remove uncertainty to make the prose smoother. Check material claims against original evidence.

Teach

  • Start with a plain definition and connect it to the concrete case. Give the smallest complete answer in one or two sentences, then let the person respond. For a one-shot task or an explicit request for detail, provide the requested depth without artificial pauses.
  • Explain the problem being solved and walk through one concrete operation. Follow runtime events when helpful. Avoid a tour of function names and constants.
  • Deepen through the user's follow-up questions. Keep it conversational. Do not quiz, ask the user to repeat the answer, or announce theatrical pauses. Do not assume an explanation proves understanding.
  • Use concise diagrams, diffs, or examples when they clarify the mechanism. Introduce complex flows a small part at a time across the conversation. Do not force diagrams for simple points or repeat nearly identical diagrams in a short response.
  • Use edge cases or counterexamples when they test the explanation. Separate historical motivation from your assessment of whether the current design is appropriate. Do not assume every detail was intentional or optimal.
  • Cite original code, PRs, or documents near material claims. Mention unavailable sources when they materially limit the conclusion. Keep research notes internal unless requested.
  • Write natural, direct prose. Avoid stock framing labels, excessive headings, and walls of text. Return the explanation itself, not an activity report. Follow the person's lead about deepening or moving on.

Working with co-dev

  • Use teach alone for explanation without code changes, quizzes, or implementation approval requests. Invoking teach does not activate co-dev; do not require co-dev to answer a question.
  • When co-dev is explicitly active, use teach for investigation and explanation; co-dev owns the development checkpoints. Its single pre-implementation mini-quiz is the only exception to teach's no-quiz rule. Keep it at the transition into implementation, not inside the explanation or after every follow-up.
  • Treat questions as requests for explanation, quiz answers as evidence to discuss, and approval as a separate decision. Neither a correct answer nor an explanation authorizes implementation. Follow co-dev's start/resume and handoff agreement rules; returning to teach within an agreed scope does not reset those checkpoints.

04 同仓库更多 Skills

toku345
toku345/dotfiles

pr-review

Comprehensive pre-PR review orchestrator. Runs named specialist subagents on the current branch's committed diff, conditionally checks simplification, verifies each normalized Critical/Important candidate with a dedicated finding-verifier, then synthesizes Critical / Important / Suggestions / Strengths using the bundled `references/review-criteria.md` gate policy. Use before creating a pull request as a heavy quality gate. Intended successor to the legacy bash `triple-review` orchestrator.

★ 1
toku345
toku345/dotfiles

pr-review-coach

Japanese-only PR understanding coach. Use when the user wants to prepare their own review, understand a branch diff, identify questions to ask, or build review judgment before running a merge gate. Requires an explicit --base <ref-or-commit> for the first turn, then resumes from local state on answer turns. Asks at most one question at a time and stores resumable local state outside the target worktree. Single-agent only; does not spawn specialist reviewers, does not produce Critical/Important/Suggestions gate findings, and does not decide merge readiness.

★ 1
toku345
toku345/dotfiles

writing-proofreader

日本語ブログ・技術記事の校正スキル。Fumitakaの文体ガイドラインに基づいて表現・構成・トーンをチェックし、改善提案を行う。「校正して」「レビューして」「文章チェックして」「書いた記事を見て」「ブログ見てもらえる?」「おかしいところない?」「公開前に確認して」「この記事どう思う?」など、記事やブログの品質チェックに関するリクエスト全般で使う。Markdownやテキストの文章校正を依頼されたら必ずこのスキルを参照する。記事の「推敲」「添削」「赤入れ」といった表現でも発動すること。

内容创作者写作与文案
★ 1
toku345
toku345/dotfiles

pr-review

Claude-side pre-PR review gate. Resolves the branch's base ref (gh PR view or explicit --base), pins an authoritative diff packet, then launches the pr-review dynamic workflow (~/.claude/workflows/pr-review.js) which fans out up to 8 review specialists (code-reviewer, security-reviewer, adversarial-reviewer, pr-test-analyzer, comment-analyzer, silent-failure-hunter, type-design-analyzer, code-simplifier), fails closed on coverage, and verifies Critical/Important findings. Use before creating a pull request as a quality gate for thick changes — especially where the Codex CLI `$pr-review` skill is unavailable. Triggers: "pre-PR review", "PR 前レビュー", "レビュー gate を回して", "run the pr-review gate".

Skill与智能体开发
★ 1
toku345
toku345/dotfiles

codex-usage

Codex CLI による実装計画レビューの条件と手順、および `/codex:adversarial-review` / `/codex:rescue` の使い分け。厚い変更の計画完成時や、調査委譲・別案試行・バックグラウンド実行を検討するときに参照する。

★ 1
toku345
toku345/dotfiles

brainstorming

ソクラテス式対話で要件と設計を詰めてから実装方針を固めるブレインストーミングスキル。「ブレスト」「設計を考えたい」「どう実装すべきか」「アーキテクチャを相談したい」「設計相談」「実装の前に整理したい」「方針を決めたい」などのリクエストで発動する。Triggers Socratic-dialogue design refinement before implementation; surfaces 2-3 approaches and records key decisions as ADRs.

★ 1