score-optimizer

score-optimizer is a skill for Claude Code from xiaomoBoy/claude-writing-skills. It costs 66 tokens per session (691 once invoked), scanned A, original, MIT.

A skill for improving the prompt and scoring rules used to rate articles for viral potential. It works with labeled sample articles, meaning examples that already have expected scores or categories.

In plain words
What is it for?
Running batch scoring experiments, comparing predicted scores with labeled examples, and reviewing measures such as error, rank correlation, and classification results.
Why use it?
It helps identify whether a scoring system is measuring articles consistently and accurately, without changing the articles themselves or the evaluation scripts.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the claude-writing-skills plugin — 5 skills shipped together

Good fit Running batch scoring experiments, comparing predicted scores with labeled examples, and reviewing measures such as error, rank correlation, and classification results.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/xiaomoboy/claude-writing-skills/score-optimizer
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.

Any agent
npx skills add xiaomoBoy/claude-writing-skills --skill score-optimizer
Clone the repo
git clone --depth 1 https://github.com/xiaomoBoy/claude-writing-skills

Made for: Claude Code.

Or install claude-writing-skills, the plugin that ships this one along with the rest of its 5 skills.

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 score-optimizer

README.md
[![agentmods](https://agentmods.dev/badge/skills/xiaomoboy/claude-writing-skills/score-optimizer/github.svg)](https://agentmods.dev/skills/xiaomoboy/claude-writing-skills/score-optimizer)
Your own site
<a href="https://agentmods.dev/skills/xiaomoboy/claude-writing-skills/score-optimizer"><img src="https://agentmods.dev/badge/skills/xiaomoboy/claude-writing-skills/score-optimizer/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for score-optimizer

Your own site · 80×15
<a href="https://agentmods.dev/skills/xiaomoboy/claude-writing-skills/score-optimizer"><img src="https://agentmods.dev/badge/skills/xiaomoboy/claude-writing-skills/score-optimizer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 66 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 691 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00066 $0.00691
Opus 5 $0.00033 $0.00345
Sonnet 5 $0.00013 $0.00138
Haiku 4.5 $0.00007 $0.00069

Measured 11d ago against content hash ed0c569ea465, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

score-optimizer 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 11d ago.

The scan reads SKILL.md. This mod also ships 3 executable files (scripts/evaluate.py, scripts/generate_score_chart.py, scripts/run_scoring.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

skills/score-optimizer/SKILL.md · 87 lines

What it actually says

Score Optimizer

这个 skill 只负责一件事:优化文章评分系统本身。

它适合做的是:

  • 调整文章爆款评分 Prompt
  • 批量给样本文集打分
  • 对照标注数据评估评分准确度
  • 研究评分维度、权重、few-shot 示例是否更合理

它不负责:

  • 直接改文章正文
  • 平台改写
  • 发布包装

Working Scope

适用场景:

  • 用户说“优化文章评分 prompt”
  • 用户说“让这个爆款评分系统更准”
  • 用户说“跑一轮样本文集评分实验”
  • 用户说“校准 viral score / composite score 的打分规则”

不适用场景:

  • 用户说“直接把这篇文章改高分”
  • 用户说“按这个评分器去优化文章内容”

后者应改用 article-optimizer

Required Reads

开始前先读:

  1. references/score_program.md
  2. references/score_prompt.md

需要看实现时再读:

样本文集位置(用户自己提供,本 skill 不带样本):

  • assets/articles/samples/ —— 把你自己标注过的 .md 文章放进来,然后 cp labels.example.json labels.json 填上你的评分。详见 assets/articles/samples/README.md

Workflow

  1. 先确认当前任务是在优化评分器,不是在改文章。
  2. 读取 references/score_program.md,按它的实验约束执行。
  3. 默认只改 references/score_prompt.md,不要动评估脚本。
  4. 运行批量评分脚本,再运行评估脚本。
  5. 比较 composite_scoremaespearmanclassification
  6. 记录结果,决定保留还是回滚。

Commands

在 skill 根目录执行:

python3 scripts/run_scoring.py > scoring.log 2>&1
python3 scripts/evaluate.py > eval.log 2>&1
grep "^composite_score:\|^mae:\|^spearman:\|^classification:" eval.log

如果需要图表:

python3 scripts/generate_score_chart.py

Guardrails

  • 默认不要改 scripts/evaluate.py
  • 默认不要改 scripts/run_scoring.py
  • 默认不要安装新依赖
  • 如果只是想提高某一篇文章分数,不要用这个 skill
Files

What ships with it

8 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 11d ago First seen · 87 lines · 66 tokens per session scan A ed0c569ea465

Subscribe to this mod's changes

score-optimizer is a skill published in the GitHub repository xiaomoBoy/claude-writing-skills (31 stars, last pushed 3mo ago), licensed MIT. It adds 66 tokens to every session and 691 once invoked, about $0.0003 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.

Related

Other skills, from other repositories

story-import

A tool for turning an existing novel into a structured writing project. It analyzes the book and organizes its characters, settings, plot plans, chapters, and tracking data for later writing.

zenstory-ai/oh-story-claudecode · 98 tokens

story-long-analyze

A long-form fiction analysis workflow for breaking down a novel’s opening chapters, characters, pacing, turning points, relationships, and overall structure.

zenstory-ai/oh-story-claudecode · 173 tokens

story-deslop

A writing editor for Chinese web novels that detects writing patterns often associated with AI-generated text and makes the prose feel more natural.

zenstory-ai/oh-story-claudecode · 62 tokens

story-short-analyze

A Chinese-language guide for analysing short popular web fiction, such as stories published on 番茄, 故事会, or 知乎盐选. It examines the core premise, plot structure, emotional arc, twists, writing techniques, and reader appeal.

zenstory-ai/oh-story-claudecode · 226 tokens

story

A Chinese-language routing tool for fiction writers that directs requests to tools for outlining, writing, analysis, reviews, covers, importing novels, browser control, and project management.

zenstory-ai/oh-story-claudecode · 68 tokens

story-long-write

A Chinese-language coaching workflow for creating long online novels, from the initial idea and outline through characters, plot threads, and chapter drafts. It also supports continuing, revising, or rewriting specified chapters.

zenstory-ai/oh-story-claudecode · 81 tokens