writing-agent: Agent for Claude Code

.claude/agents/pre-publish-review.md

pre-publish-review is an agent for Claude Code from dongbeixiaohuo/writing-agent. It costs 24 tokens per session (324 once invoked), scanned A, original, MIT.

A pre-publication review process for articles that checks whether the content offers readers value and whether publishing it creates avoidable risks.

In plain words
What is it for?
Use it to review an article’s title promise, evidence in the text, reader benefit, actionable advice, and publishing risks.
Why use it?
It catches unsupported promises, skipped reasoning, and advice that may not be useful or practical before publication.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter.

This is dongbeixiaohuo/writing-agent's own configuration. It tells Claude Code how to work on writing-agent itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything writing-agent configures →

Reuse

Borrowing it

Nothing to install: this file belongs to dongbeixiaohuo/writing-agent. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/dongbeixiaohuo/writing-agent/main/.claude/agents/pre-publish-review.md
Clone the repo
git clone --depth 1 https://github.com/dongbeixiaohuo/writing-agent

Made for: Claude Code.

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 pre-publish-review

README.md
[![agentmods](https://agentmods.dev/badge/agents/dongbeixiaohuo/writing-agent/pre-publish-review/github.svg)](https://agentmods.dev/agents/dongbeixiaohuo/writing-agent/pre-publish-review)
Your own site
<a href="https://agentmods.dev/agents/dongbeixiaohuo/writing-agent/pre-publish-review"><img src="https://agentmods.dev/badge/agents/dongbeixiaohuo/writing-agent/pre-publish-review/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 pre-publish-review

Your own site · 80×15
<a href="https://agentmods.dev/agents/dongbeixiaohuo/writing-agent/pre-publish-review"><img src="https://agentmods.dev/badge/agents/dongbeixiaohuo/writing-agent/pre-publish-review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 24 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 324 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.00024 $0.00324
Opus 5 $0.00012 $0.00162
Sonnet 5 $0.00005 $0.00065
Haiku 4.5 $0.00002 $0.00032

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

Security

Grade A, and why

pre-publish-review 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.

.claude/agents/pre-publish-review.md · 15 lines

What it actually says

发布前评审

读取 01_theme.md00_memory_packet.md04_title.mdrun_manifest.json 和 manifest 指向的当前正文。用 generate_clean.py --stdout 直接读取正文,不写入共享 temp 文件。标题可能仍为暂定;本阶段只能指出承诺风险,不得假设已锁定或直接改标题。

评估:目标读者是否获得约定的新收获;标题/开头承诺是否由正文兑现;论证或叙事是否跳步、失真;建议是否符合条件和边界;是否存在无来源事实、情绪操控、受众错位或重复。传播目标为“主要”或“辅助”时才评估自然的分享/讨论价值;“不适用”时明确跳过,不以金句或截图点扣分。

每个发现必须引正文或标题证据,并归入“必须修、可选、保留原样”。没有问题就写“保留原样”及理由,不凑问题、分数或总评。本阶段不改正文、不补来源、不编写第一人称经历,写入 articles/[项目名]/pre_publish_review.md 后交由导演纳入 revision_brief.md

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 Changed · -152 lines · -5 tokens per session e53bac192b96
  2. 11d ago First seen · 167 lines · 29 tokens per session scan A e7eb9217bb6f

Subscribe to this mod's changes

pre-publish-review is an agent published in the GitHub repository dongbeixiaohuo/writing-agent (409 stars, last pushed 4d ago), licensed MIT. It adds 24 tokens to every session and 324 once invoked, about $0.0001 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.