article-optimizer

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

A tool for improving one article under a fixed scoring rubric, meaning a set of rules used to judge the article. It scores the article, applies the feedback, and compares successive versions.

In plain words
What is it for?
Use it for baseline scoring, rewrite rounds, improvement suggestions, version comparisons, and optional optimization charts.
Why use it?
It provides a repeatable way to revise a single article without changing the scoring rules during the experiment.

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 Use it for baseline scoring, rewrite rounds, improvement suggestions, version comparisons, and optional optimization charts.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/xiaomoboy/claude-writing-skills/article-optimizer/github.svg)](https://agentmods.dev/skills/xiaomoboy/claude-writing-skills/article-optimizer)
Your own site
<a href="https://agentmods.dev/skills/xiaomoboy/claude-writing-skills/article-optimizer"><img src="https://agentmods.dev/badge/skills/xiaomoboy/claude-writing-skills/article-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 article-optimizer

Your own site · 80×15
<a href="https://agentmods.dev/skills/xiaomoboy/claude-writing-skills/article-optimizer"><img src="https://agentmods.dev/badge/skills/xiaomoboy/claude-writing-skills/article-optimizer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 62 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 545 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.00062 $0.00545
Opus 5 $0.00031 $0.00272
Sonnet 5 $0.00012 $0.00109
Haiku 4.5 $0.00006 $0.00055

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

Security

Grade A, and why

article-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 10d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/generate_optimize_chart.py, scripts/run_single_score.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/article-optimizer/SKILL.md · 80 lines

What it actually says

Article Optimizer

这个 skill 只负责一件事:在固定评分器下优化一篇具体文章。

它适合做的是:

  • 给单篇文章打分
  • 根据评分返回的改进建议改稿
  • 做多轮版本迭代
  • 对比不同版本的 viral score

它不负责:

  • 调整评分器本身
  • 校准整套评分系统
  • 批量样本评估

如果目标是改评分 Prompt,而不是改文章,应该改用 score-optimizer

Working Scope

适用场景:

  • 用户说“把这篇文章优化到更高分”
  • 用户说“按固定评分规则改稿”
  • 用户说“给单篇文章打分并根据建议改写”
  • 用户说“跑 single article optimization loop”

不适用场景:

  • 用户说“让这套评分系统更准”
  • 用户说“批量评估一组样本文章”

Required Reads

开始前先读:

  1. references/optimize_program.md
  2. references/score_prompt.md

需要看实现时再读:

Workflow

  1. 先确认当前任务是在改文章,不是在改评分器。
  2. 读取 references/optimize_program.md,确认实验约束。
  3. 确认目标文章路径。
  4. 用单篇打分脚本跑出基线分数和改进建议。
  5. 每轮只改文章,不动评分规则。
  6. 保存迭代版本,再重新打分比较。

Commands

在 skill 根目录执行:

python3 scripts/run_single_score.py <article_path>

如果需要图表:

python3 scripts/generate_optimize_chart.py

Guardrails

  • 默认不要改 references/score_prompt.md
  • 默认不要改 scripts/run_single_score.py
  • 每轮优先只改文章内容
  • 如果用户要的是“训练裁判”,不要用这个 skill
Files

What ships with it

5 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. 10d ago First seen · 80 lines · 62 tokens per session scan A a432fb9a221b

Subscribe to this mod's changes

article-optimizer is a skill published in the GitHub repository xiaomoBoy/claude-writing-skills (31 stars, last pushed 3mo ago), licensed MIT. It adds 62 tokens to every session and 545 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-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-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-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

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