diff-skill

比较技能指令的两个版本以检测退化和复杂度增加。触发条件:用户请求对技能的 Markdown 指令进行差异对比、比较或审查变更时。仅记录退化情况——新增、澄清或强化不视为退化。默认比较 HEAD → 工作树,并通过 SKILL.md 中的 Markdown 链接遍历可达文件。在 docs/reviews/diff-skill/ 生成报告文件并提供内联摘要。

仓库最近推送
GitHub Stars
156
Forks
29
Issues / PRs
37

安装方式

先用 Prompt 核对来源与依赖。也可下载安装包。

用 AI 助手安装

复制提示词,让助手先核对固定版本和依赖。

查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "diff-skill":https://skillpi.com/zh/skills/deepskill-71f71a5513f2ec93bfeb7661ff2b03754411a9e976c4e756d7c291732e17e5cd。安装前核对上游来源和版本:https://github.com/serpro69/claude-toolbox。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。

来源与配置

github.com

配置方式待核实

请查看原始来源中的适用工具、依赖和权限要求。

安装实测待补充

比较技能指令的两个版本以检测退化和复杂度增加。触发条件:用户请求对技能的 Markdown 指令进行差异对比、比较或审查变更时。仅记录退化情况——新增、澄清或强化不视为退化。默认比较 HEAD → 工作树,并通过 SKILL.md 中的 Markdown 链接遍历可达文件。在 docs/reviews/diff-skill/ 生成报告文件并提供内联摘要。

0 下载

介绍来源: third_party · serpro69 · 0.0.1 参考来源

SkillPi 解读

能完成的任务
翻译待完成,请参阅来源文档。
输入和输出
翻译待完成,请参阅来源文档。
实测状态
未测试

文件浏览

在原站浏览文件 ↗

原始 SKILL.md

打开原文 ↗
Frontmatter
name: diff-skill
description: |
  Compare two versions of a skill's instructions to detect degradations and complexity increases.
  TRIGGER when: user asks to diff, compare, or review changes to a skill's markdown instructions.
  Asymmetric check — only regressions count. Additions, clarifications, and strengthenings are not degradations.
  Compares HEAD → working tree by default. Walks the full reachable file set from SKILL.md via markdown links.
  Produces a report file under docs/reviews/diff-skill/ and an inline summary.

<!-- codex: tool-name mapping applied. See .codex/scripts/session-start.sh -->

Diff Skill Instructions

Goal: Detect whether an edit to a skill's markdown instructions introduced degradations or made the skill harder for an LLM to follow.

Two judgment axes:

  1. Degradation (asymmetric) — load-bearing instruction dropped, constraint weakened, verification step removed, scope narrowed, required output dropped, or reference broken. Content relocated but preserved is neutral.
  2. Complexity — split into regressions (introduced or worsened by the edit, affects verdict) and pre-existing advisories (exist regardless of the edit, surfaced as improvement opportunities, does NOT affect verdict).

Conventions

Required Outputs

  • [ ] Report written to docs/reviews/diff-skill/<slug>-<sha-a>-<sha-b>.md
  • [ ] Inline summary presented (under 10 lines: verdict, finding counts, report path)
  • [ ] Capy indexed under kk:review-findings if any degradation or complexity regression findings exist (skip on clean results and pre-existing advisories)

Invocation

$kk:diff-skill <skill-name>

Convenience shortcut: resolves klaude-plugin/skills/<skill-name>/SKILL.md. If not found, asks the user for the skill directory path.

Defaults: HEAD (before) → working tree (after). User can specify different refs in the prompt.

Workflow

Mandatory order — load instructions before acting on subject matter. The phases below are strictly sequential. Do not read skill content, build file sets, or produce judgments until you have loaded and internalized the full process file. The only early contact with the target skill is its name and SKILL.md path — enough to validate, not enough to judge.

See diff-process.md for the detailed step-by-step process.

版本历史

  1. v0.25.4 GitHub ↗
    原版更新说明

    ## What's Changed * Protect repo-local kubeconfig files as guard secrets by @serpro69 in https://github.com/serpro69/claude-toolbox/pull/190 * Remove ignored Codex auto-review settings by @serpro69 in https://github.com/serpro69/claude-toolbox/pull/193 * Apply destructive rules to commands spawned from inline code by @serpro69 in https://github.com/serpro69/claude-toolbox/pull/191 * Add docs explore page around real catches from capy by @serpro69 in https://github.com/serpro69/claude-toolbox/pull/194 **Full Changelog**: https://github.com/serpro69/claude-toolbox/compare/v0.25.3...v0.25.4

  2. v0.25.3 GitHub ↗
    原版更新说明

    ## What's Changed * Apply YAGNI to design plans and make scope reviews two-sided by @serpro69 in https://github.com/serpro69/claude-toolbox/pull/189 **Full Changelog**: https://github.com/serpro69/claude-toolbox/compare/v0.25.2...v0.25.3

  3. v0.25.2 GitHub ↗
    原版更新说明

    ## What's Changed * Add manual task handoffs through secret gists by @serpro69 in https://github.com/serpro69/claude-toolbox/pull/187 **Full Changelog**: https://github.com/serpro69/claude-toolbox/compare/v0.25.1...v0.25.2

  4. v0.25.1 GitHub ↗
    原版更新说明

    ## What's Changed * Preserve guard denial diagnostics in Codex adapters by @serpro69 in https://github.com/serpro69/claude-toolbox/pull/185 * Keep vendored Go profile references self-contained by @serpro69 in https://github.com/serpro69/claude-toolbox/pull/186 **Full Changelog**: https://github.com/serpro69/claude-toolbox/compare/v0.25.0...v0.25.1

  5. v0.25.0 GitHub ↗
    原版更新说明

    ## What's Changed * Revamp permission guard engine by @serpro69 in https://github.com/serpro69/claude-toolbox/pull/178 **Full Changelog**: https://github.com/serpro69/claude-toolbox/compare/v0.24.1...v0.25.0

此处仅展示最近 5 个版本。 在原站查看完整版本历史 ↗

当前收录版本

0.0.1

核对来源版本 ↗

安全与评测信息

质量评测

满分100 · 来自 SkillPi LAB 实验室的评测报告。

场景价值65/100

亮点

  • 提供技能指令退化检测能力,有助于维护技能质量
  • 支持复杂度分析,区分退化与改进
触发精准90/100

亮点

  • 触发条件描述清晰,覆盖 diff/compare/review 等关键词
  • 边界定义明确,不易误触
结构规范75/100

待提升项

  • 缺少 When to Use 章节 原报告严重程度:轻微

    文档未包含 When to Use 章节,影响用户快速理解使用场景

    改进建议:补充 When to Use 章节,说明典型使用场景和最佳实践

  • 文档过长 原报告严重程度:轻微

    文档约 400 行,超出推荐长度

    改进建议:考虑将详细流程移至单独文档,主文档保留核心流程

亮点

  • Phase 流程清晰,有明确的顺序要求
  • 输出要求明确,包含报告文件、内联摘要和索引
执行可靠70/100

待提升项

  • 未显式处理 Git 操作失败、文件读写权限等异常 原报告严重程度:轻微

    执行流程中未显式处理 Git 操作失败、文件读写权限等常见异常

    改进建议:增加异常处理逻辑,确保在 Git 操作失败或文件权限不足时提供友好提示

亮点

  • 工具来源明确,通过 $kk:diff-skill 调用
  • 参数正确,支持用户指定不同 refs
  • 覆盖主要异常场景(如技能路径未找到时询问用户)
证据可验 (前四项均值)75/100

取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。

正文静态检测

100 / 100 · skillpi-20261123-no-r3-v1

正文未命中当前规则。

分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。

权限与使用前检查

根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。

未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。

本站展示提示不会授予权限。涉及文件改动、密钥、外部发送或费用时,仍由你使用的工具按需确认。

安全评级与访问范围

safe · 静态证据核验,不代表运行安全保证。

使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。