skill-improver

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Skill Improver

Skill Improver

Retrospect and improve Skills/Workflows based on real execution artifacts, making the skill chain more stable with use.
基于真实执行产物回顾并优化Skills/Workflows,让技能链在使用过程中更稳定。

Input (pass path only)

输入(仅需传入路径)

  • run_dir
    :
    runs/<workflow>/active/<run_id>/
    (or
    openspec/changes/<change-id>/
    )
  • run_dir
    runs/<workflow>/active/<run_id>/
    (或
    openspec/changes/<change-id>/

Output

输出

  • improvements.md
    : Improvement suggestions (can be directly converted to change tasks)
  • Optional: Minimal patch to relevant
    SKILL.md
    (only change what's necessary)
  • improvements.md
    :优化建议(可直接转化为变更任务)
  • 可选:对相关
    SKILL.md
    的最小化补丁(仅修改必要内容)

Process

流程

  1. Read
    logs/state.json
    and
    logs/events.jsonl
    , extract:
    • Failure points (error types, frequency, missing context)
    • Time bottlenecks (repetitive steps, ineffective searches, excessive context)
    • Manual confirmation points (whether too early/too late/missing)
  2. Check artifact contracts:
    • Whether each step has persisted output
    • Whether only paths are passed instead of content
    • Whether there are inconsistent naming/paths
  3. Output improvement suggestions (sorted by benefit):
    • Prompt/trigger word optimization
    • I/O contract completion (add required fields, fix artifact file names)
    • Error handling and rejection strategies
    • Suggest new deterministic scripts (only when necessary)
  1. 读取
    logs/state.json
    logs/events.jsonl
    ,提取:
    • 失败点(错误类型、出现频率、缺失的上下文)
    • 时间瓶颈(重复步骤、低效搜索、过多上下文)
    • 人工确认点(是否过早/过晚/缺失)
  2. 检查产物契约:
    • 每个步骤是否都持久化了输出
    • 是否仅传递路径而非内容
    • 是否存在命名/路径不一致的情况
  3. 输出优化建议(按收益排序):
    • 提示词/触发词优化
    • I/O契约完善(添加必填字段、修正产物文件名)
    • 错误处理与拒绝策略
    • 建议新增确定性脚本(仅在必要时)

Output Template (recommended)

推荐输出模板

  • Overview: Core issues from this run
  • Top Issues (high → low): Each includes "symptom/root cause/fix suggestion/related skill/suggested change point"
  • Suggested Minimal Change List: Listed by file
  • 概述:本次运行中的核心问题
  • 首要问题(从高到低优先级):每个问题包含"症状/根本原因/修复建议/相关技能/建议修改点"
  • 建议的最小变更列表:按文件列出