<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>演化 on 老张开工了</title>
    <link>/%E6%BC%94%E5%8C%96/</link>
    <description>Recent content in 演化 on 老张开工了</description>
    <generator>Hugo</generator>
    <language>zh-cn</language>
    <lastBuildDate>Wed, 15 Jul 2026 00:00:00 +0000</lastBuildDate>
    <atom:link href="/%E6%BC%94%E5%8C%96/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Skill 测试与演化</title>
      <link>/posts/2026/07/skill-testing/</link>
      <pubDate>Wed, 15 Jul 2026 00:00:00 +0000</pubDate>
      <guid>/posts/2026/07/skill-testing/</guid>
      <description>Skill 写完不等于&amp;quot;做完&amp;quot;——它跟代码一样会被模型版本变化、用户工作流变化、新 harness 行为变化折腾。本章把 Skill 当成 software：有 unit test、有 regression、有 changelog，让它在 6 个月后还能用。&#xA;23.1 为什么 Skill 也需要测试 不要等你某天打开 OpenCode 发现某个 Skill 触发率从 70% 跌到 5%——Skill 的&amp;quot;准确度&amp;quot;会随模型版本而漂移，prompt 中某词语的 token 化变了，召回就崩。可追踪、可回归是关键。&#xA;23.2 三类测试 类型 名称 测试对象 1 Trigger test &amp;ldquo;在 X 输入下会被召回吗&amp;rdquo; 2 Behavior test &amp;ldquo;被召回后遵循 Skill 内的 flow 吗&amp;rdquo; 3 Regression test &amp;ldquo;上次行为跑得 OK，这次没变吗&amp;rdquo; 23.3 Trigger test：写 probe 集 Create tests/probes.toml：&#xA;[[probe]] text = &amp;#34;给 lib/validators.py 加一个 is_alpha 函数&amp;#34; expect = &amp;#34;engaged&amp;#34; [[probe]] text = &amp;#34;为什么 Python 不需要类型?</description>
    </item>
  </channel>
</rss>
