PS:
AITutor 来了。每个人的 AI 原生学习伙伴,全网首发,点击预约。
PS:
Harness 工程更多案例深入免费学习去这里:
1.打开 AITutor 新一代 AI 原生学习伙伴:www.aiaitutor.com2.在首页输入"Harness” 就能看到更详细更丰富案例。3.包含了图文、视频、播客、闪卡、代码、测验等9种学习模态。
1、skill-up 是什么
my-skill/├── SKILL.md # Skill 定义文档,被测对象└── evals/├── eval.yaml # 评测入口配置(必须)├── cases/ # 用例目录,每个文件是一个用例│ ├── basic-success.yaml│ ├── edge-case-null.yaml│ └── regression-001.yaml└── fixtures/ # 测试资源(可选)├── repos/ # 仓库模板├── diffs/ # 补丁文件├── scripts/ # 评估脚本└── mcp/ # MCP 工具配置
schema_version: v1alpha1environment:type: noneengine:name: claude_codemodel:provider: anthropicname: claude-sonnet-4-8cases:files:- evals/cases/my-test.yaml
2、工作原理:评测与进化合成一个闭环
第一、三种断言方式
第二、一个用例长什么样
input:prompt: "Review the code changes for potential bugs."setup:git:init: truecheckout: mainapply_diff: evals/fixtures/diffs/null-check.patch # 应用补丁constraints:timeout_seconds: 180max_turns: 8expect: # 基本门槛检查must_contain:- "null"- "bug"must_not_contain:- "LGTM"exit_code: 0judge: # 质量评估type: rule_basedsuccess:- output_contains:all: ["null", "bug"]- exit_code: 0
第三、多轮对话评测
input:turns:- role: usercontent: "用 Go 实现一个二分查找函数。"post_condition:must_contain_all: ["func", "binary"]on_fail: fail- role: usercontent: "为刚才写的函数添加单元测试。"post_condition:must_contain_any: ["Test", "t.Run", "testing"]on_fail: fail
第四、概念对照表
3、最妙的设计:用 Skill 测 Skill
对话生成评测用例
skill-up 运行评测,产出结构化报告
skill-upper 逐条读失败用例
判断是 Skill 错了还是用例错了:Skill 错,就修 SKILL.md 和配套文件;用例错,就修 eval case 和判定器
把修好的 bug 沉淀成回归用例
再跑,再迭代,直到重要行为全部通过
4、快速上手
Use skill-upper to evaluate this Skill.Read SKILL.md, identify its most important behaviors, create realistic evalcases with appropriate judges, validate the configuration, and run skill-up.
curl -fsSL https://raw.githubusercontent.com/alibaba/skill-up/main/install.sh | bashskill-up run # 跑全部用例skill-up run --engine codex # 指定引擎和模型skill-up run --baseline # 开基线对比skill-up run --parallelism 4 # 控制并行数skill-up run --auto # 自动识别 Anthropic 的 evals.jsonskill-up report --format html # 生成 HTML 报告
5、三条落地建议
6、写在最后
GitHub:https://github.com/alibaba/skill-up中文用户手册:https://alibaba.github.io/skill-up/zh/
送个福利:
新一代 AI 原生学习伙伴 AITutor「www.aiaitutor.com」,重构学习方式,AI 驱动个性化精准成长,体系化学习+真实案例,塑造 AI 实战能力。快来免费体验吧。
PS:AITutor 来了。每个人的 AI 原生学习伙伴,全网首发,点击预约。
7、加我微信
扫码加我👇有很多不方便公开发公众号的我会直接分享在朋友圈,欢迎你扫码加我个人微信来看👇
加星标★,不错过每一次更新!
⬇戳”阅读原文“,立即体验 AITutor