Session Corrections to Skill
Distill a session's corrections into table rows appended to the matching SKILL files: user corrections as scenario → expected-output rows, reality corrections (the correct way established after an error or pitfall) as trigger → correct-way → causal-chain rows with the postmortem in references/; general preferences are rejected outright and never land in a SKILL.
Basic info
- Name
- Session Corrections to Skill
- Description
- 把一次会话中的两类纠正沉淀进对应 SKILL 文件:用户纠正提炼成「场景 → 期望输出」 表格行;现实纠正(报错 / 踩坑后确立的正确做法)提炼成「触发场景 → 正确做法 → 因果链」表格行,因果链复盘落 references/,SKILL 文件不放因果链本体。 Use when 用户说“把这次会话的修正沉淀到 skill”“把刚才的纠偏记进对应 skill” “会话修正入库”“把这几条修正写进 XX skill 的沉淀表”“把这个坑记进 XX skill” “把这次踩的坑沉淀一下”,或一次会话中出现多次针对某 skill 行为的纠正且用户 要求固化,即使用户没用“沉淀”这个词。Also use when the user asks in English to distill or capture this session's corrections or pitfalls into the matching skills. Do NOT trigger when: 会话复盘要产出知识文章; 对 skill 做整体质量审查或提升;创建全新 skill;修正只涉及 agent 通用工作方式 (直接打回不沉淀,不落任何 SKILL)。
session-corrections-to-skill
Turns the corrections made during a session into durable skill knowledge, stored in two separate tables. The qualification gate asks one question — was an existing behavior negated? — with two kinds of negator: user corrections, where the user negated the agent's approach (preference/convention class), and reality corrections, where reality (an error, a failure) negated the old approach, the root cause is understood, and the correct way was verified in the session (if no correct way was found yet, research it first and confirm with the user before recording). Scope instructions, jointly agreed one-off designs, and one-time edits never pass the gate; corrections about how the agent should work in general are rejected outright — flagged as not worth depositing, never landing in any SKILL file.
Output shape: a user correction is one row with two columns (scenario → expected output); a reality correction is one row with three columns (trigger scenario → correct way → causal-chain link), with the postmortem written to references/<slug>.md — the SKILL file holds only the quick-use experience, never the causal chain itself. No new sections, no restating existing skill content, no opportunistic rewrites.
When routing, the target skill's scope (the task domain its description draws) is checked: a correction outside that scope is never forced in, and a correction no skill covers is flagged as "needs a new skill" (creation goes through the creation workflow; this skill never creates one). Before anything is written, every target SKILL → drafted row pair is sent to the user for confirmation; only confirmed entries land on disk.
When to use it
- At the end of a session where you corrected a skill's behavior several times and want it to stick
- After hitting a pitfall in a session, with the root cause understood and the correct way verified, and you want the lesson recorded in the matching skill
- When you want a clean split between "this belongs in the skill" and "this is just my general preference"
What you get back
- Each user correction appended as one
scenario → expected outputrow in the right SKILL file - Each reality correction appended as one
trigger → correct way → causal chainrow, with the postmortem in a reference doc - A ledger: correction → target SKILL path → the exact row added (plus the reference path for reality corrections)
- Rejected entries reported one by one with the reason (one-off, general workflow, etc.) — those never touch a SKILL file
- A separate "needs a new skill" list for corrections no existing skill covers — never forced into the nearest skill, left to the creation workflow
Version info
Local public Skill catalog snapshot, showing only public-safe fields.
Skill files
(6)SKILL.md
SKILL.md · Markdown