operations-skill-improve
Takes a correction, preference, or lesson from the current session and writes it permanently into the relevant skill's SKILL.md. The goal: the skill learns from every real run. Next time it runs, it already knows what you don't like.
This is the skill feedback loop — what the user says in a session becomes a rule in the skill itself.
Steps
Identify the skill that produced the output being corrected:
- If the user named it: use it directly
- If unclear: look at what was run most recently in this session and ask "Is the feedback about [skill name]?"
- If completely ambiguous: ask "Which skill produced the output you want to improve?"
Read the full current SKILL.md for that skill from .claude/skills/[skill-name]/SKILL.md.
Understand the correction by extracting three things from the conversation:
- What happened: what the skill did that the user didn't like
- What should happen instead: the desired behavior
- How general is this: is this always true (add as a rule) or only in certain conditions (add with "when X, do Y")?
Translate the correction into a clear, actionable instruction in imperative form. Examples:
Bad: "The user didn't like the long intro paragraph"
Good: "Skip intro paragraphs — start directly with the first insight or action item"
Bad: "The formatting was wrong"
Good: "Use bullet points for lists of 3+ items — never use numbered lists for non-sequential content"
Bad: "The tone was off"
Good: "Write in the user's voice — lowercase, direct, no filler phrases like 'leveraging' or 'streamlining'"
Determine where in the SKILL.md this instruction belongs:
- In the steps: if it changes HOW a specific step is executed — add it inside that step
- In edge cases: if it handles a specific situation — add it to the Edge Cases section
- As a new "Quality rules" section: if it's a general quality standard that applies across multiple steps — add it before Edge Cases
CHECKPOINT — always stop here. Show the user exactly what will change:
SKILL UPDATE — [skill-name]
══════════════════════════════
Feedback: [what the user said]
I'll add this rule:
"[the instruction in imperative form]"
Location: [Step X / Edge Cases / New Quality Rules section]
Approve to write, or edit the instruction before I do.
Once approved, make the edit to the SKILL.md using the minimum change needed — add the rule where it belongs, do not rewrite the entire file.
Confirm: "Updated [skill-name]. Next time it runs, it will [describe the new behavior in one sentence]."
Optionally log to inbox/outputs/task-log.md: "Skill improved: [skill-name] — [one-line description of the rule added]"
Quality rules for the instruction itself
The instruction you write into the SKILL.md must:
- Be in imperative form ("Do X", "Skip Y", "Always Z")
- Be specific enough that you'd know exactly what to do (or not do) without re-reading the conversation
- Not conflict with existing instructions in the file — check before adding
- Not be so narrow it only applies to one edge case that will never recur — generalize the lesson
If the user's correction is vague ("just make it better"), ask: "What specifically didn't work? The length, the tone, the structure, the content?"
Edge cases
- User corrects something that's already in the SKILL.md: Say "That rule already exists in the skill — it may not have been followed this time. Want me to strengthen the wording, or is this a different situation?"
- Correction contradicts an existing rule: Show both — the existing rule and the new correction. Ask: "This conflicts with an existing instruction. Which should take priority?"
- User wants to remove a behavior entirely: Treat it as a "never do X" rule — add it explicitly, don't just delete the thing they don't like
- Skill doesn't exist yet (ad-hoc session): Tell the user: "This wasn't run from a saved skill. Want me to create one from scratch based on what we built?"
- Multiple skills involved in the output: Ask which one to update — or update both if the correction applies to both
1---2name: operations-skill-improve3description: operations-skill-improve4---56# operations-skill-improve78Takes a correction, preference, or lesson from the current session and writes it permanently into the relevant skill's SKILL.md. The goal: the skill learns from every real run. Next time it runs, it already knows what you don't like.910This is the skill feedback loop — what the user says in a session becomes a rule in the skill itself.1112---1314## Steps15161. Identify the skill that produced the output being corrected:17 - If the user named it: use it directly18 - If unclear: look at what was run most recently in this session and ask "Is the feedback about [skill name]?"19 - If completely ambiguous: ask "Which skill produced the output you want to improve?"20212. Read the full current `SKILL.md` for that skill from `.claude/skills/[skill-name]/SKILL.md`.22233. Understand the correction by extracting three things from the conversation:24 - **What happened:** what the skill did that the user didn't like25 - **What should happen instead:** the desired behavior26 - **How general is this:** is this always true (add as a rule) or only in certain conditions (add with "when X, do Y")?27284. Translate the correction into a clear, actionable instruction in imperative form. Examples:29 - Bad: "The user didn't like the long intro paragraph"30 - Good: "Skip intro paragraphs — start directly with the first insight or action item"3132 - Bad: "The formatting was wrong"33 - Good: "Use bullet points for lists of 3+ items — never use numbered lists for non-sequential content"3435 - Bad: "The tone was off"36 - Good: "Write in the user's voice — lowercase, direct, no filler phrases like 'leveraging' or 'streamlining'"37385. Determine where in the SKILL.md this instruction belongs:39 - **In the steps:** if it changes HOW a specific step is executed — add it inside that step40 - **In edge cases:** if it handles a specific situation — add it to the Edge Cases section41 - **As a new "Quality rules" section:** if it's a general quality standard that applies across multiple steps — add it before Edge Cases42436. **CHECKPOINT — always stop here.** Show the user exactly what will change:4445 ```46 SKILL UPDATE — [skill-name]47 ══════════════════════════════4849 Feedback: [what the user said]5051 I'll add this rule:52 "[the instruction in imperative form]"5354 Location: [Step X / Edge Cases / New Quality Rules section]5556 Approve to write, or edit the instruction before I do.57 ```58597. Once approved, make the edit to the SKILL.md using the minimum change needed — add the rule where it belongs, do not rewrite the entire file.60618. Confirm: "Updated [skill-name]. Next time it runs, it will [describe the new behavior in one sentence]."62639. Optionally log to `inbox/outputs/task-log.md`: "Skill improved: [skill-name] — [one-line description of the rule added]"6465---6667## Quality rules for the instruction itself6869The instruction you write into the SKILL.md must:70- Be in imperative form ("Do X", "Skip Y", "Always Z")71- Be specific enough that you'd know exactly what to do (or not do) without re-reading the conversation72- Not conflict with existing instructions in the file — check before adding73- Not be so narrow it only applies to one edge case that will never recur — generalize the lesson7475If the user's correction is vague ("just make it better"), ask: "What specifically didn't work? The length, the tone, the structure, the content?"7677---7879## Edge cases8081- **User corrects something that's already in the SKILL.md:** Say "That rule already exists in the skill — it may not have been followed this time. Want me to strengthen the wording, or is this a different situation?"82- **Correction contradicts an existing rule:** Show both — the existing rule and the new correction. Ask: "This conflicts with an existing instruction. Which should take priority?"83- **User wants to remove a behavior entirely:** Treat it as a "never do X" rule — add it explicitly, don't just delete the thing they don't like84- **Skill doesn't exist yet (ad-hoc session):** Tell the user: "This wasn't run from a saved skill. Want me to create one from scratch based on what we built?"85- **Multiple skills involved in the output:** Ask which one to update — or update both if the correction applies to both