skills/memory-knowledge-distiller/SKILL.md
Distill role-persona memory into reusable knowledge. Use this skill whenever the user asks to 整理记忆、蒸馏经验、提炼方法论、抽取知识库、沉淀共享经验、清理 pending、强化 consolidated,或希望把 daily/pending/consolidated memory 转成 role/global/project knowledge. It classifies memory, filters noise, deduplicates against existing knowledge, and drafts or writes structured knowledge entries.
npx skillsauth add dwsy/agent memory-knowledge-distillerInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Turn noisy memory into reusable knowledge.
The job is not "deep self-reflection". The job is to extract high-signal, reusable, shareable patterns from memory/daily, memory/pending, and memory/consolidated, then decide whether they should stay in memory or become knowledge.
Use the existing memory, knowledge, role_read, role_list, and role_search tools. Do not invent a parallel storage system.
Prefer evidence-driven distillation over emotional reflection.
Good output:
Bad output:
If a memory cannot be rewritten into a durable pattern, keep it in memory.
Use this skill when the user wants to:
Inspect these in roughly this order:
memory/consolidated.mdmemory/pending.mdmemory/daily/context/ files if the user explicitly wants broader contextA candidate can end up in exactly one of these buckets:
docs/knowledge/ for the current repositoryCollect current state before proposing anything.
memory/consolidated.md.memory/pending.md if present.memory/daily/ and inspect recent files only; default to the most recent 3-7 files unless the user asks for a wider sweep.git status --short and recent git log --oneline to understand what changed and which memories are stable enough to matter.Focus on extracting candidate items, not summarizing every file.
For each candidate, classify it using these dimensions:
type: fact | preference | method | knowledgeevidence: low | medium | highreusable: yes | noshareable: yes | notarget: memory | role | global | project | rejectUse these default rules:
Use memory when the item is:
Use role knowledge when the item is:
Use global knowledge when the item is:
Use project knowledge when the item is:
docs/knowledge/Reject when the item is:
Rewrite candidates into reusable knowledge.
Do not copy raw memory lines into knowledge. Rewrite them into a durable form.
Every strong knowledge draft should answer:
When turning memory into knowledge, remove:
Before creating or updating anything:
knowledge.search using title keywords, tags, and synonymsskip | merge | update | createIf an existing entry already captures the same rule, prefer updating or skipping over creating a near-duplicate.
Use knowledge.write.
Choose:
global: false for role knowledgeglobal: true for global knowledgeDraft Markdown for docs/knowledge/<category>/<slug>.md.
If the user asked for execution, write the file directly. If not, provide the draft and proposed path.
Always finish with a concise report containing:
Promote only if the candidate satisfies at least one:
Be conservative. A smaller clean knowledge base beats a bloated one.
Use this structure when presenting results:
For Candidate Decisions, use a compact table when possible:
| Candidate | Source | Type | Target | Action | Reason | |---|---|---|---|---|---|
Use this template for drafted knowledge entries:
---
title: ...
description: ...
tags: [..]
version: 1
created: YYYY-MM-DD
updated: YYYY-MM-DD
scope: ...
author: ...
---
# Summary
One paragraph describing the durable insight.
## When to use
Concrete situations and trigger signals.
## Why
Why this pattern matters.
## How
Practical steps or heuristics.
## Signals / Heuristics
Observable cues, thresholds, or decision signals.
## Anti-patterns
What not to do, and common failure modes.
## Source notes
Short note describing what kind of memory patterns this was distilled from. Do not leak private details.
User preferences and role tone usually belong in memory or role knowledge, not global knowledge.
Repeated signals matter more than intense wording. Three boring repeated incidents are more valuable than one dramatic reflection.
If the role repository is under git, use commit history and diffs to judge stability:
If the insight explains this repository's architecture, terminology, or workflow, prefer docs/knowledge/.
If removing private context destroys the value, it was probably not shareable knowledge.
Read these only when needed:
references/taxonomy.md — memory vs knowledge boundaryreferences/promotion-rules.md — target selection rules and rejection rulesreferences/templates.md — output patterns and document templatesAvoid these mistakes:
If uncertain, do this order of preference:
Global knowledge should have the highest bar.
testing
Best practices for writing and maintaining high-quality role memories.
documentation
工作文档枢纽,强制执行 SSOT(Single Source of Truth)原则,管理 `docs/` 目录下的架构决策、设计文档、Issues(任务规划)、PRs(变更记录)。支持 GitHub 协作开发模式。
tools
Allows to interact with web pages by performing actions such as clicking buttons, filling out forms, and navigating links. It works by remote controlling Google Chrome or Chromium browsers using the Chrome DevTools Protocol (CDP). When Claude needs to browse the web, it can use this skill to do so.
development
Vercel 设计指南 - 构建高质量 Web 应用的最佳实践,包含现代 UI/UX 原则、性能优化和无障碍标准。