最新资讯
dev.to 我们在 DolphinBench 上测试记忆检索:纯关键词搜索暴露了自身回归 dev.to 别再把 Agent 写成 while 循环,把它建模为状态机 bloomberg.com Rightmove 与 Scout24 借 AI 产品应对低迷房市并上调展望 stackoverflow.blog 欢迎来到芯片时代:半导体制造、AI 数据中心与芯片设计的未来 www.youtube.com AI Agent 总犯同样的错:CentralAgent AI 将记忆重构为经验系统 pub.towardsai.net Netflix 科学家建议重采样 LLM 评判:5 次仅将误差棒缩小 13% pub.towardsai.net Jev 作为 LLM 前的静默层:构建提示感知的模型路由器 reddit.com OpenAI 称 Astra 仅满足 10% 安全任务标准 dev.to FreeToken:在自有 GPU 上运行前沿 MoE 模型及其内存需求 dev.to 当 AI Agent 说“完成”时,究竟完成了什么? dev.to 部署 Underdog Bark 3.0 Pro:逐字转写、自定义后端与分块设置 dev.to 为艰难对话构建 AI:五个 Agent、一条安全正则与一位盲评监督者
多元动态
登录 注册
AI编码 dev.to · @Vishal Habib

我在测试 Claude Code 技能前先设定通过标准,首轮运行就失败了

原文 我的收藏

作者为 AI 产品经理构建了三个 Claude Code 技能(ai-pm-skills),其中 /eval-plan 用于避免事后才定义“足够好”的标准。他在运行任何评测前先把通过标准提交到 git,再用内置的 claude plugin eval 运行 8 个用例(含 3 个刻意设计的“应拒绝”用例),并设定三条门槛:插件下每个用例得分至少 0.8、每个技能在 3 次运行中至少触发 2 次、插件需在部分用例上优于纯 Claude。首轮运行即暴露出 /buil 技能中的真实 bug。

AI推荐理由 作者在运行前把通过标准提交到 git,再用 Claude Code 内置的 claude plugin eval 对三个 AI PM 技能跑 8 个用例(含 3 个应拒绝用例),并设定了三条门槛;首轮运行暴露了 /buil 技能中的真实 bug。这是关于技能评测方法的具体一手经验,对做 Agent/技能评测的开发者有参考价值,但样本仅 8 例、单一作者,结论不宜外推。

62

正文

I built three Claude Code skills for AI product managers (ai-pm-skills). One of them, /eval-plan, exists to stop a specific habit: deciding what "good enough" means after the results come in. A bar set after the numbers can't fail. So I held the skills to the same rule. Before running a single eval, I committed the pass bar to git. Then I ran them. The first run failed. The setup Claude Code has a built-in eval runner, claude plugin eval. Each test case is a prompt plus graders, and it runs every case with the plugin and without it, so you see what the skill actually adds over plain Claude. I wrote 8 cases across the three skills. Three of them are deliberate "should refuse" cases, because refusing is where AI features quietly fail. Then I committed three gates: Every case scores at least 0.8 with the plugin. Each skill fires in at least 2 of 3 runs. The plugin beats plain Claude on at least some cases, and where it doesn't, the results say so. Run 1: a real bug in the skill /build-or-not checks a feature idea against 4–8 real examples before anyone builds it. One test gave it no evidence and no research tools, then demanded a verdict. It scored 0.00. The skill even wrote that it couldn't run its own check, then said "don't build" anyway, backed by market knowledge it recalled and labeled "public, well-known, not invented." Nobody had checked any of it for this decision. The skill never said what to do when there's no sample, so the model filled the gap with confidence. The fix was one rule: no sample, no decision. "Can't decide yet" is now an outcome, with the exact sample that would settle it. I didn't touch the grader or the gate. Run 2 passed everything. Runs 3–6: three bugs in my tests The third skill, /agent-trust-review, sorts an agent's risks into covered (with evidence), declined on purpose (with a reason), and genuinely missing. It took four runs to measure, and every failure was mine: My test cited files that didn't exist in the test workspace. The skill looked, found nothing, and correctly refused to count them. My grader expected it to credit evidence it couldn't see. I tested "give two coverage numbers" in a case with nothing declined, where both numbers are equal by definition. The skill said exactly that. My fake test files were empty stubs, and the skill caught it. The judge model also marked one correct answer as a fail. It's tempting to keep re-running until it's green. Instead, I committed a note saying the next run would be final before starting it, and would be reported whatever it showed. It passed. What the skills add, and what they don't Behavior With the skill Plain Claude States the bar before deciding 3 of 3 runs 0 of 3 Refuses a verdict when there's no evidence 3 of 3 0 of 3 Plans a rollback trigger for launch 3 of 3 1 of 3 Separates a reasoned decline from an unexplained gap 3 of 3 2 of 3 Gives two coverage numbers (owned areas vs. all areas) 3 of 3 0 of 3 On four other cases plain Claude already did just as well: spotting hits a feature can't reach, pushing back on a bar set after the results, refusing to certify "it's safe" with no evidence, and (in the final run) refusing to credit unsupported claims. The skills aren't what makes those pass, and the README says so. This is 8 cases, 3 runs each, one model. It's a check of the key behaviors, not a benchmark. Each full run cost about $2. What I took from it Commit the bar first. Every time I was tempted to move it, the commit history made that visible. Include cases that should refuse. The only real bug showed up in one. When an eval fails, check the test before the model. Three of my four failures were my test setup. Report the baseline. "Passes 100%" means little if plain Claude also passes 100%. The skills, the eval suite, and every failed run are public: github.com/vishalhabib99/ai-pm-skills. Install in Claude Code with: /plugin marketplace add vishalhabib99/ai-pm-skills /plugin install ai-pm-skills@ai-pm-skills Enter fullscreen mode Exit fullscreen mode If you run one of them on a real decision, I'd like to hear where it was wrong.

来源报道 · 1 篇 · 以下链接均前往原始媒体

← 返回精选动态 原文

更多内容