Imported from kimmywork/zlf (
.agents/skills/process-distillation/SKILL.md). Install upstream withnpx skills add kimmywork/zlf --skill process-distillation. Copyright stays with the author (MIT).
Process Distillation
Process
-
Gather context: phase executed, artifacts produced, review feedback report, fix outcomes, execution observations. If context insufficient, explore agent session logs or memory stores as fallback.
-
Analyze gaps:
Dimension Question Coverage gap Step skill should describe but didn't? False guidance Skill misled executor? Missing guardrail Review caught something skill should prevent? Repeated improvisation Executor re-invented same helper? Atomic extraction Clear bounded sub-process worth its own skill? Context overhead Skill too large, wasting context? Trigger misfire Description caused wrong trigger behavior? -
Evaluate options: small fix / new reference / new atomic skill / no change. Prefer small fix (1–5 lines) over new skill. New skill creation always requires user approval.
-
Self-review: every claim must cite file evidence. Before rename, inventory affected files with grep. After changes, re-grep to confirm zero remaining hits. Use
references/rename-checklist.mdfor cross-family renames. Classify remaining hits: intentional / false positive / needs fix. -
Apply under AGENTS.md constraints: agent neutral, size controlled, scope limited, atomic, user-centric, English. SKILL.md is for the agent: precise instructions, no verbose rationale. When creating new skills, pass these constraints into the new skill's instructions.
-
Output: distillation report using
references/distillation-template.md. -
Approval: default is user approval.
full-autonomymode: auto-approve safe improvements. New skill creation always requires user approval.
Subagents
Available: use reviewer for gap analysis, writer for drafting. Separate analysis from authoring. Unavailable: self-perform, record limitation.
Related
Typically follows review-feedback. In solution-delivery-loop, auto-triggers after resolved review-feedback cycles under full-autonomy.