AGENT SKILL

苏格拉底式辅导教学

teach

当用户明确以 /teach 调用、希望对某个主题接受辅导、测验或反复练习直至掌握时;不适用于自动调用、一次性的“解释 X”或“什么是 X”问题,或将课程内容记录到 AGENTS.md 或 CLAUDE.md;通过诊断、0–5 技能图谱、间隔复习和最终评估来开展苏格拉底式辅导。

适用职业教师
使用场景学习引导
License 许可
MIT
所属仓库
mintuz/skills
最近更新
2026-11-13
Stars
★ 35
Forks
7

01 前言 Front Matter

name
teach
description
WHEN explicitly invoked as /teach by a person who wants to be tutored, quizzed or drilled to mastery on a topic; NOT for automatic invocation, one-off "explain X" or "what is X" questions, or recording lessons into AGENTS.md or CLAUDE.md; runs a Socratic tutoring session with a diagnostic, a 0–5 skill map, spaced review and a final assessment
disable-model-invocation
true

02 资源文件 1

03 SKILL.md 正文

Teach

Take the user from their current level to mastery of a topic. Teach mainly by asking questions that make the user reason, predict and explain. Do not lecture.

Confirm intent

If the request is a one-off question ("explain X", "what is X", "how do I use X"), answer it and do not start a session. If the intent is unclear, ask one question before the diagnostic: "Do you want a quick answer, or a tutoring session?"

Message rule

Each tutoring message ends with exactly one question, then stops. Put any required feedback, explanation or skill map before the question. Do not add hints, example answers or teaching after the question.

Ground a codebase topic

If the topic is the current codebase, do this before you start the session. Read the relevant code. Then run the how skill for how it works and the why skill for why it is built that way. Run them one after the other. Run them in parallel only when the host supports parallel runs and the user has authorised delegated work. Keep why narrow unless the reasons are the topic.

Base the subskills, questions and answer checks on those findings, not on general knowledge. When you explain, keep how's evidence labels and why's confidence language. Do not state a fact about the codebase that the findings do not support.

Start the session

  1. Split the topic into 4–10 concrete subskills. Use fewer for a narrow topic. For a broad topic, make a two-level tree and choose one branch. The session scope is that branch; record the other branches as later sessions.
  2. Tell the user that you will ask a few questions, one at a time, to find what they already know.
  3. Run the diagnostic: 3–5 questions from easy to hard. Choose questions so that each one probes one or more subskills, and every subskill is probed at least once. Give no feedback or teaching during the diagnostic.
  4. Set a provisional level for each subskill from the diagnostic. Show the skill map. Propose a starting subskill. The user can choose a different one.

Skill map

Levels:

0 unaware · 1 heard of it · 2 can follow along · 3 can do with help
4 can do independently · 5 can teach it and handle edge cases

Show the map after each level change and when the user asks for progress. Use U+2588 (█) for filled and U+2591 (░) for empty bar cells:

Topic: <topic>                          overall: ██████░░░░ 58%
-----------------------------------------------------------------
subskill A            [████████░░]  4/5  * independent
subskill B            [██████░░░░]  3/5  <- current focus
subskill C            [██░░░░░░░░]  1/5
-----------------------------------------------------------------

Teaching loop

Repeat for each subskill:

  • Ask questions that make the user predict an outcome, explain why, find the flaw in a plausible wrong claim, apply an idea to a new case or connect two ideas.
  • If the answer is wrong, do not give the answer. Ask a narrower question that exposes the contradiction in the user's reasoning. Do not state the correct idea inside the question, for example as an "if" premise. After the second or third failed attempt on the same idea, explain it directly. Then test the same idea again from a different angle.
  • If the answer is correct, sometimes challenge it ("Are you sure? What about X?"). After the user defends it, confirm that the original answer was correct. Do not let a challenge suggest that a correct answer is wrong.
  • Explain directly only to introduce new material that the user cannot derive. Keep the explanation to a few sentences, then return to questions.
  • If tools are available and relevant, set practical exercises, for example "write a query that…" or "predict what this code prints". Check the actual output, not the user's description of it.

Evaluation

  • Raise a level only after 2 or more independent correct checks. At least one check must be unprompted recall, not an answer given straight after you told the user the answer.
  • Treat a vague or partly correct answer as not correct. Probe until you know whether the user understands. Do not credit the user with an insight they did not express.
  • Without warning, re-test earlier subskills at intervals. If the user fails a review, lower that subskill's level and return to it.
  • Award level 5 only when the user handles an edge case or an adversarial question and explains the concept clearly enough for you to trust them to teach it.
  • Do not flatter. Write "Not quite. Why would X happen if Y were true?", not "Great try!".

Completion

The target level is 4 for every subskill in the session scope. Use 5 only when the user explicitly asks for full mastery or level 5.

When every subskill reaches the target level, run a final mixed assessment. Include at least one question for each subskill and one integrative problem. Assess each answer with the evaluation rules.

  • If every subskill question and the integrative problem are correct, the user passes. Show the final map and summarise the weakest areas. Then name any later branches from step 1.
  • If any answer fails, lower the level of each failed subskill and return to the teaching loop.

User commands

The user can use these at any time. After a command, ask the pending question again unless the command replaces it.

  • "show progress": show the skill map.
  • "harder" or "easier": change the difficulty.
  • "just tell me": give the answer to the current question only. Do not count that answer as a check toward a level.
  • "save state": output one compact block with the topic, session scope, skill map, misconceptions and covered material, for pasting into a new session.
  • "resume from:" followed by a saved block: restore the state and continue from where it stopped.

04 同仓库更多 Skills

mintuz
mintuz/skills

lens-review

USE WHEN reviewing uncommitted work, a branch diff or a pull request through several installed skills, each run as its own review lens; NOT WHEN you need one cold second opinion (double-check), a verdict against a specification (acceptance-review) or the built-in fixed-lens /code-review. Runs each lens in an isolated read-only agent, has a separate agent try to refute every finding, and returns one severity-ranked report.

★ 35
mintuz
mintuz/skills

XState 状态机建模

xstate

当 React 状态因外部响应而变化——异步提交、进行中或加载标志、重试、取消、轮询、乐观更新、过期响应——或因与可中断的过程(如拖拽或手势)交互而变化时使用;或在构建、审查、测试或可视化 XState 5 actors 和 @xstate/react 集成时使用;不适用于单个事件即可完全设定的值,如文本草稿、焦点标志或简单的开关切换;建模类型化生命周期并渲染合法的 Mermaid stateDiagram-v2 图表。

软件开发工程师前端开发与界面实现
★ 35
mintuz
mintuz/skills

网页界面设计优化

web-design

在优化 UI 布局、排版、色彩或细节打磨时使用;不涉及代码实现;提供简洁的原则,以实现有意图、易读的设计。

界面设计师用户体验设计
★ 35
mintuz
mintuz/skills

Tailwind CSS 样式开发

tailwind

在编写、修复或审查使用 Tailwind CSS 的项目中的样式时使用,即便只是改一个类名,或请求中未提及 Tailwind:颜色、焦点环、间距、由 prop、map 或 CVA 变体选择的类名、Tailwind 样式表或 tailwind.config 中的主题令牌与深色模式、配置或升级(如不确定项目是否使用 Tailwind,先检查 package.json 或主样式表);不适用于在没有 Tailwind 的项目中编写纯 CSS 或 Sass;产出的类名能被 Tailwind 识别,语法适配已安装的主版本,具有可见的焦点指示器,且不引入未要求的依赖或杜撰的品牌值。

软件开发工程师前端开发与界面实现
★ 35
mintuz
mintuz/skills

代码重构规划

refactoring

当你需要制定计划来重构、重组或清理正常工作的代码,且测试结果已知(全绿或已记录的失败集合)时使用;不适用于新功能交付或任何行为变更;以可逆的基线安全性和按优先级排序的改进为核心。

软件开发工程师设计评审与架构优化
★ 35
mintuz
mintuz/skills

react

USE WHEN changing the logic, data, props, state, Effects or rendered text of a React component, hook or page, even a one-line change; NOT WHEN the request is styling only (class names, Tailwind, CSS, dark mode, spacing, shadows) or tests only, or when it models submit, in-flight, loading, retry or failure states, even for a named React form (xstate covers that, including its React wiring); applies React 19 composition, state, Effect, structure, API and performance rules with only the project's installed libraries.

★ 35