eval

eval is a command for coding agents from xu-xiang/everything-claude-code-zh. It costs 5 tokens per session (565 once invoked), scanned A, original, MIT.

An acceptance-testing command that checks an implementation against stated requirements. Acceptance criteria are the conditions a feature must meet before it is considered complete.

In plain words
What is it for?
Use it to run structured evaluations with pass/fail, 0–100, or multi-part scoring, produce evidence-based reports, and repeat tests for non-deterministic results.
Why use it?
It turns broad requirements into checked evidence and shows whether the work passes, fails, or earns a partial score.

Command

Part of the everything-claude-code-zh plugin — 17 skills, 26 commands, 13 agents shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/xu-xiang/everything-claude-code-zh/eval
Clone the repo
git clone --depth 1 https://github.com/xu-xiang/everything-claude-code-zh

Or install everything-claude-code-zh, the plugin that ships this one along with the rest of its 17 skills, 26 commands, 13 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for eval

README.md
[![agentmods](https://agentmods.dev/badge/commands/xu-xiang/everything-claude-code-zh/eval.svg)](https://agentmods.dev/commands/xu-xiang/everything-claude-code-zh/eval)
Your own site
<a href="https://agentmods.dev/commands/xu-xiang/everything-claude-code-zh/eval"><img src="https://agentmods.dev/badge/commands/xu-xiang/everything-claude-code-zh/eval.svg" alt="Measured on agentmods" height="20"></a>
Per session 5 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 565 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00005 $0.00565
Opus 5 $0.00003 $0.00282
Sonnet 5 $0.00001 $0.00113
Haiku 4.5 $0.00001 $0.00056

Measured 4d ago against content hash 3a0dcb249746, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

eval scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.opencode/commands/eval.md · 89 lines

What it actually says

Eval 命令

根据准入标准(Acceptance Criteria)评估实现情况:$ARGUMENTS

你的任务

执行结构化评测(Evaluation),验证实现是否符合需求。

评测框架(Evaluation Framework)

评分器(Grader)类型

  1. 二元评分器(Binary Grader) - 通过/失败(Pass/Fail)

    • 是否工作?是/否
    • 适用场景:功能完成度、缺陷修复(Bug Fixes)
  2. 标量评分器(Scalar Grader) - 分数 0-100

    • 工作效果如何?
    • 适用场景:性能、质量指标
  3. 量规评分器(Rubric Grader) - 维度评分

    • 多维度评估
    • 适用场景:全面审查

评测流程

步骤 1:定义标准

Acceptance Criteria:
1. [标准 1] - [权重]
2. [标准 2] - [权重]
3. [标准 3] - [权重]

步骤 2:运行测试

针对每个标准:

  • 执行相关测试
  • 收集证据
  • 评分结果

步骤 3:计算得分

Final Score = Σ (criterion_score × weight) / total_weight

步骤 4:生成报告

评测报告

总体情况:[通过/失败] (得分: X/100)

标准细分

标准 (Criterion) 得分 权重 加权分
[标准 1] X/10 30% X
[标准 2] X/10 40% X
[标准 3] X/10 30% X

证据(Evidence)

标准 1:[名称]

  • 测试:[测试内容]
  • 结果:[产出结果]
  • 证据:[截图、日志、输出]

建议

[如果未通过,需要改进的地方]

Pass@K 指标

针对非确定性评测:

  • 运行 K 次
  • 计算通过率
  • 报告:"Pass@K = X/K"

提示:在标记功能完成之前,建议使用 eval 进行准入测试(Acceptance Testing)。

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 89 lines · 5 tokens per session scan A 3a0dcb249746

Subscribe to this mod's changes

eval is a command published in the GitHub repository xu-xiang/everything-claude-code-zh (1,927 stars, last pushed 6mo ago), licensed MIT. It adds 5 tokens to every session and 565 once invoked, about $0.0000 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.