File contents 判分
解析用户对话中的判分内容,调用 grade.py 写入记录并刷新错题本/进度。
步骤
确认卷子 :用户说"卷子01"/"第1套" → paper-01。找不到时问用户。
解析判分 为 --grading JSON:题型(choice/fill/solution) → {题号: 判分}。
题型对照:一=选择题(choice)、二=填空题(fill)、三=解答题(solution)。
示例:判分:一1对 一2错 二3不会 三1半会 三2粗心
→ {"choice":{"1":"对","2":"错"},"fill":{"3":"不会"},"solution":{"1":"半会","2":"粗心"}}
判分可用中文或英文(对/correct、错/wrong、不会/cannot、半会/half、粗心/careless)。
运行:python3 scripts/grade.py --paper paper-01 --grading '<JSON>' [--redo] [--note "备注"]
--redo:错题重练模式——判为"对"则该题复习状态→已掌握,否则保持未复习。
Windows 把 python3 换成 py -3;JSON 含引号不好传时改用 --grading-file <UTF-8 文件>。
判分 JSON 解析已容错:--grading 可带外层单/双引号,cmd.exe 原样传的单引号也能识别。
报告:记录条数、卷子状态、错题本与进度已刷新。
勾选式辅助
若用户在卷子判分表里直接填了状态,读取 workspace/papers/卷子-XX.md 的判分表并按同样方式批量转成 JSON。
判分后过程分析(可选)
用户贴出做题过程、想追错因(「这题我是这么做的…哪错了」)时,走独立 skill 880-analysis (过程归因 → analysis.json → 错题本渲染)。本 skill 只负责判分与算分。
禁止
不要猜测未提到的题目状态(保持未判);
不要修改题目索引或卷子内容(卷子文件的 status 由判分流程更新为 graded)。
内容规范
判分后刷新的 错题本/进度总览 遵循 .codebuddy/rules/common/obsidian-content.md 的「错题本」「进度总览」两节;
判分流程需把对应 卷子-XX.md 的 frontmatter status 更新为 graded、updated 更新为当日;
判分后自动写入卷子「得分与弱点分析」小节(总分/各题型得分/本卷弱点),算分规则:每题满分 × score_ratio,解答题满分按 score_seq;格式遵循 obsidian-content.md「卷子」一节。
1 --- 2 name: 880-grade-3 3 description: 880 Grade 4 --- 5 6 # 判分 7 8 解析用户对话中的判分内容,调用 `grade.py` 写入记录并刷新错题本/进度。 9 10 ## 步骤 11 12 1. **确认卷子**:用户说"卷子01"/"第1套" → `paper-01`。找不到时问用户。 13 2. **解析判分**为 `--grading` JSON:`题型(choice/fill/solution) → {题号: 判分}`。 14 - 题型对照:一=选择题(choice)、二=填空题(fill)、三=解答题(solution)。 15 - 示例:`判分:一1对 一2错 二3不会 三1半会 三2粗心` 16 → `{"choice":{"1":"对","2":"错"},"fill":{"3":"不会"},"solution":{"1":"半会","2":"粗心"}}` 17 - 判分可用中文或英文(对/correct、错/wrong、不会/cannot、半会/half、粗心/careless)。 18 3. 运行: 19 ``` 20 python3 scripts/grade.py --paper paper-01 --grading '<JSON>' [--redo] [--note "备注"] 21 ``` 22 - `--redo`:错题重练模式——判为"对"则该题复习状态→已掌握,否则保持未复习。 23 - Windows 把 `python3` 换成 `py -3`;JSON 含引号不好传时改用 `--grading-file <UTF-8 文件>`。 24 - 判分 JSON 解析已容错:`--grading` 可带外层单/双引号,cmd.exe 原样传的单引号也能识别。 25 4. 报告:记录条数、卷子状态、错题本与进度已刷新。 26 27 ## 勾选式辅助 28 29 若用户在卷子判分表里直接填了状态,读取 `workspace/papers/卷子-XX.md` 的判分表并按同样方式批量转成 JSON。 30 31 ## 判分后过程分析(可选) 32 33 用户贴出做题过程、想追错因(「这题我是这么做的…哪错了」)时,走独立 skill **`880-analysis`**(过程归因 → analysis.json → 错题本渲染)。本 skill 只负责判分与算分。 34 35 ## 禁止 36 37 - 不要猜测未提到的题目状态(保持未判); 38 - 不要修改题目索引或卷子内容(卷子文件的 `status` 由判分流程更新为 `graded`)。 39 40 ## 内容规范 41 42 - 判分后刷新的 错题本/进度总览 遵循 `.codebuddy/rules/common/obsidian-content.md` 的「错题本」「进度总览」两节; 43 - 判分流程需把对应 `卷子-XX.md` 的 frontmatter `status` 更新为 `graded`、`updated` 更新为当日; 44 - 判分后自动写入卷子「得分与弱点分析」小节(总分/各题型得分/本卷弱点),算分规则:每题满分 × `score_ratio`,解答题满分按 `score_seq`;格式遵循 obsidian-content.md「卷子」一节。
treasoni/880-exam/tree/main/.codebuddy/skills/880-grade commit 990989d991
Frequently asked questions How do I install the 880 Grade skill? Run npx skillmds@latest add treasoni/880-grade-3 in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
What does the 880 Grade skill do? 880 Grade It is listed under Coding & Dev Tools on SkillMD.
Is 880 Grade safe to use? This skill has not completed SkillMD's automated safety review yet. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
Which AI agents work with 880 Grade? This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Is 880 Grade free to use? Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
Who published 880 Grade? treasoni (@treasoni) published this skill. Their other Agent Skills are listed on their SkillMD profile.