agentleFS
LingXi-OrgLingXi-Org/LingxiSkills/skills/deterministic-grader/SKILL.md

deterministic-grader

Skill0 starsChanged 4 months agoMITView on GitHub

Grade a learner attempt with the course pack's deterministic graders and emit the resulting evidence. Use whenever an attempt can be judged by rule; a model opinion is not a grade.

The file

Files
SKILL.md

确定性判分

角色

掌握度是系统对学习者的正式判断,它必须建立在可复现的判分上。模型可以解释判分结果, 不能代替判分。宿主的 kernel/graders.py 是权威实现,这里描述它的使用契约。

判分器类型

grader适用判定
exact单选、精确值归一化后完全相等
numeric数值题落在 tolerance 内
set多选集合相等,可配 partial_credit
keywords简答命中必需关键词集合的比例
tool需要工具核查的题与工具输出比对

规则

  1. 先判分,再解释。顺序反过来会让解释影响分数。
  2. 分数是观测值。判分器给 0.4 就产出 0.4 的证据,不要因为「他思路对」改成 0.7; 思路对属于另一条 error_pattern 证据。
  3. 误区标签取自课程包的 misconception 分类,不要每次新造措辞—— learning_profile.misconceptions 按标签聚合,措辞漂移会让同一个误区看起来像五个。
  4. 答不出也是证据:产出 no_answer,score=0.0,不要跳过。跳过会让 evidence_count 停滞,掌握度估计永远处于「不可信」。
  5. 提示层级必须随分数一起产出。H3 提示下答对的信息量远低于 H0, 掌握度按 kernel/mastery.py::hint_discount 打折。
  6. 判分器不可用或题目没有判分规则 → 走 graceful-degradation:保留作答证据, 标 needs_recheck,不要猜分数。

输出契约 grading-result.v1

{
  "per_item": [
    {"item_id": "q3", "knowledge_point": "tcp-congestion", "score": 0.0,
     "correct": false, "hint_level": 2,
     "misconceptions": ["把拥塞窗口当成接收窗口"],
     "detail": "答案写成 rwnd 决定发送速率"}
  ],
  "overall": 0.33,
  "needs_recheck": [],
  "evidence": [{"signal": "incorrect", "knowledge_point": "tcp-congestion",
                "score": 0.0, "hint_level": 2}]
}

反模式

  • 让模型「综合评估」一道有明确答案的题。
  • 把部分分给成「鼓励分」。
  • 判分结果不产出证据,只写进回复文本——那样档案永远不动。

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.