lov-distill

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

经验萃取 · Lesson Distiller

Experience Distillation · Lesson Distiller

将真实解决过程整理为可复用经验文档并维护知识索引。
Turn a real problem-solving process into reusable knowledge documentation and maintain a knowledge index.

Triggers

Triggers

Activate when

Activate when

  • “将真实解决过程整理为可复用经验文档并维护知识索引。”
  • “Distill a solved problem into reusable knowledge.”
  • “Turn a real problem-solving process into reusable knowledge documentation and maintain a knowledge index.”
  • “Distill a solved problem into reusable knowledge.”

Do not activate when

Do not activate when

  • 只是查询本 Skill 的说明,或请求与上述结果无关的任务;不执行实际业务操作。
  • 用户仅要预览或审查时,不进入修改、提交或发布分支。
  • The user is merely asking about this Skill or requesting a task unrelated to the result above; do not perform any actual business operations.
  • The user only wants a preview or review; do not proceed to modification, commit, or publication branches.

Execution boundary

Execution boundary

自然语言请求即可触发;无需旧 slash 路径、参数插值或指定助手。明确解析当前请求中的 项目、目标文件、选项与输出位置;用当前宿主实际提供的文件、搜索、CLI 和浏览器能力。 项目依赖版本与外部 API 在执行时核实,不能假设示例是现行配置。随包脚本从 Skill 根解析, 业务文件从目标项目根解析。先读当前状态,保护已有未提交内容与其他任务的暂存区。 分析、预览请求保持只读;修改、提交、推送、部署和发布各依当前请求的明确范围执行。 不绕过保护、自动发送消息、强制结束用户进程或抢前台。失败保留可诊断原始错误。
A natural-language request is sufficient to trigger this Skill; no legacy slash path, argument interpolation, or designated assistant is required. Explicitly parse the project, target file, options, and output location from the current request; use the file, search, CLI, and browser capabilities actually provided by the current host. Verify project dependency versions and external APIs at execution time; do not assume that examples represent current configurations. Resolve packaged scripts from the Skill root and business files from the target project root. Read the current state first, protecting existing uncommitted content and staging areas belonging to other tasks. Keep analysis and preview requests read-only; perform modifications, commits, pushes, deployments, and publications only within the explicit scope of the current request. Do not bypass safeguards, automatically send messages, force-terminate user processes, or take over the foreground. On failure, preserve the original diagnostic errors.

Workflow

Workflow

  1. 从当前任务及用户指定证据提取问题、根因、有效解决和适用边界。未解决问题不能写成已验证经验。
  2. 从 Profile 或当前请求解析知识目录,兼容已有 distill 布局;用日期与主题命名 Markdown,保留问题、原因、解决、教训和来源。
  3. 会话 ID、轮数、耗时仅取宿主实际提供的数据;不扫描其他项目的会话,不以最近文件猜当前会话,不可用时省略。
  4. 维护 index.jsonl 的 date、file、title、tags、source 和可得会话字段,使用 JSON 编码防止转义错误;重复记录按源文件去重。
  5. 博客同步为可选的独立发布动作。仅在请求明确包含公开同步且内容完成隐私审阅后,把精确 Markdown 路径交给可用发布能力;不得自动发布最近五篇或虚构官网链接。
  6. 提交仅覆盖本次确认文件;--no-commit、--no-publish、private 始终保留。回读文档和索引,发布时单独回读实际 URL。
  1. Extract the problem, root cause, effective solution, and applicability boundaries from the current task and any evidence specified by the user. Unresolved problems must not be documented as validated lessons.
  2. Parse the knowledge directory from the Profile or current request, remaining compatible with the existing distill layout. Name Markdown files by date and topic, retaining the problem, cause, solution, lesson, and source.
  3. Take session ID, turn count, and elapsed time only from data actually provided by the host. Do not scan sessions from other projects or infer the current session from recently modified files; omit these fields when unavailable.
  4. Maintain the date, file, title, tags, source, and available session fields in index.jsonl. Use JSON encoding to prevent escaping errors and deduplicate records by source file.
  5. Blog synchronization is an optional, independent publishing action. Only when the request explicitly includes public synchronization and the content has passed privacy review, provide the exact Markdown path to an available publishing capability. Do not automatically publish the five most recent entries or fabricate official website links.
  6. A commit must cover only the files confirmed for this run; --no-commit, --no-publish, and private must always be honored. Read back the document and index, and separately verify the actual URL when publishing.

Composition

Composition

执行前读取 能力组合,按明确制品交接相邻能力。
Before execution, read Capability Composition and hand off artifacts to adjacent capabilities according to the explicit deliverables.

Runtime context (shared)

Runtime context (shared)

运行前读取本包
skill.yaml
与 Profile 合同。优先级为当前请求、 项目上下文、本 Skill records、共享 preferences、brand/user Profile、安全默认值。 只读取声明字段;没有专用运行时的宿主可使用
scripts/profile_store.py
读取共享 Profile。 配置缺失只问影响结果的一个问题。用户明确要求长期保存的值通过该脚本原子写入, 报告实际路径;不保存推断、凭据或其他任务的资料。
作者性文本执行 作者性与来源合同,不编造作者经历、事实或来源。
Before execution, read this package's
skill.yaml
and Profile Contract. The priority order is the current request, project context, this Skill's records, shared preferences, Brand/User Profile, and security defaults. Read only declared fields. Hosts without a dedicated runtime may use
scripts/profile_store.py
to read the shared Profile. If a configuration is missing, ask only one question that affects the result. Values that the user explicitly requests to store long-term must be written atomically through this script, and the actual path must be reported. Do not store inferred information, credentials, or materials from other tasks.
Authorial text must follow the Authorship and Source Contract. Do not fabricate author experiences, facts, or sources.