agentleFS
LinuxSuRenLinuxSuRen/my-dsh-skills/skill-distillation/SKILL.md

skill-distillation

Skill2 starsChanged 35 days agoMITView on GitHub

任务后经验沉淀:复杂、高难度或耗时较长的任务完成后,总结可复用经验为技能提案,区分通用技能与项目级技能,经研发确认后写入对应仓库。

2 other projects use a version of this.

Adopted by

Most recently taken up by

The file

Files
SKILL.md

任务后技能沉淀

与 skill-refresh(按周期调研外部最佳实践保鲜)互补:本技能负责把任务中积累的内部经验固化为可复用技能。

1. 触发判定

任务完成后自检,满足任一即进入沉淀流程;都不满足则跳过,避免技能膨胀:

  • 复杂:跨多轮、多仓库、多服务协同,或方案经历推翻重来;
  • 高难度:排查许久的疑难问题(根因非显而易见)、首次引入的新技术栈或新领域;
  • 耗时长:远超同类任务常规时长的探索、踩坑与验证。

2. 提炼

只收会改变 AI 执行行为的增量:

  • 踩坑与根因——尤其花了很久才定位的问题;
  • 方案取舍与最终选择的原因;
  • 可快速证伪的验证手段(命令、步骤);
  • 工具链用法与流程纪律。

不收:一次性细节、过程流水账、项目临时状态。

3. 分类

类别判定标准建议去处
通用技能与具体项目无关,跨项目、跨技术栈可复用my-dsh-skills(个人技能库)
项目级技能依赖当前项目拓扑、构建命令、专属规范项目仓库的 .dsh/skills/ 或 .agents/skills/

4. 提案与写入

  • 先查重:通用库与项目级技能目录是否已覆盖?已覆盖 → 生成修订提案;未覆盖 → 新建提案。
  • 提案给出:name/description/whenToUse、正文规则、目标仓库;研发确认后才动文件。
  • 写入遵循目标仓库的提交纪律:分支策略先问(独立新需求走 worktree)、git-identity 身份、PR 合入。
  • 新增技能目录加入 my-dsh-skills 时,同步登记 askills 的 embed.go 嵌入清单。
  • 技能正文保持动作化:写可执行的规则,不堆叙述。

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.