writing-agent: Instructions file for Claude Code

CLAUDE.md

writing-agent CLAUDE.md is an instructions file for Claude Code from dongbeixiaohuo/writing-agent. It costs 588 tokens per session, scanned A, original, MIT.

A set of routing instructions for a Chinese-language writing agent that coordinates research, drafting, review, illustration, fact-checking, and cleanup for long articles.

In plain words
What is it for?
Handling public-account articles and other long-form pieces, extracting article text from webpages, managing style profiles, coordinating reviewers, and preparing platform-specific publishing materials.
Why use it?
It defines which workflow to use for each writing request and the required files, checks, approvals, and ordering between stages.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: reads .claude/ paths; mentions subagents.

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.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 writing-agent CLAUDE.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/dongbeixiaohuo/writing-agent/claude-md"><img src="https://agentmods.dev/badge/instructions/dongbeixiaohuo/writing-agent/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 588 This file is loaded in full into every session.
When invoked 588 The same file — it is already loaded in full.
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.00588 $0.00588
Opus 5 $0.00294 $0.00294
Sonnet 5 $0.00118 $0.00118
Haiku 4.5 $0.00059 $0.00059

Measured yesterday against content hash 2f2677db458c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

writing-agent CLAUDE.md 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 yesterday.

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.md · 18 lines

What it actually says

写稿 Agent 核心路由

本工作区把需要多阶段产物的中文长文交给 Skills + Subagents 编排。

  1. 写公众号文章、长文、观点文或需要选题、研究、写作与交付链路时,使用 .claude/skills/workflow-producer/SKILL.md
  2. 用户已明确 A/B/C 模式或风格时直接接受;未指定模式按任务选择,默认自主推进。用户要求逐步共创时才逐阶段等待。
  3. 只分析、创建或更新风格档案交给 style-modeler;按风格成文仍用 workflow-producer
  4. 提取网页正文用 web-article-extractor
  5. 简单润色、校对、翻译、短句改写或解释现有内容,直接完成。

机器契约是 .claude/workflows/collab_v2.json。真实调用 Subagent 并验证阶段产物;只在未决的素材边界、方向和整稿取舍上确认,已有授权不重复询问。用户授权代选风格时记录授权来源,不冒称用户选定某位作者。

先按文体明确读者新收获,再研究可推翻原判断的证据;真实素材、核实来源和说明性情景必须区分。早期标题和开头允许暂定,Stage 9 前结合成稿锁定标题及分发文案。Stage 7/8/9 分别独立评写作工艺、读者价值与风险、平台行为,只交意见;导演合并 revision_brief.md,Stage 9.5 由主笔集中修订,最多两轮重大改动,无收益时保留原稿。

收尾为条件式 Humanizer → 可选配图 → Fact Checker → Auto Clean → 可选 HTML → Stage 13。配图先写新正文并更新 manifest。事实核查先快照正文、标题和账本,脚本根据 claims 计算状态并绑定报告;不信任手写 passed。纯文本和 HTML 写入前检查同一 fact-check-v2 门禁。输入或结果变化后必须重核查,旧项目不能自动补哈希冒充通过。

记忆来源区分用户修改、模型建议、真实读者反馈和发布指标,禁止把反复的模型修改当用户偏好。Stage 14 只在用户明确要求时使用追加式发布指标账本,不能用模拟读者反应代替真实数据。style-modeler 通过登记工具维护风格状态,缺少跨样本证据和独立盲测不得升级为 verified。

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. yesterday Changed · +4 lines · +64 tokens per session 2f2677db458c
  2. 9d ago First seen · 14 lines · 524 tokens per session scan A 8eb2547ccd2b

Subscribe to this mod's changes

writing-agent CLAUDE.md is an instructions file published in the GitHub repository dongbeixiaohuo/writing-agent (406 stars, last pushed yesterday), licensed MIT. It adds 588 tokens to every session, about $0.0029 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 instructions, from other repositories

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,296 tokens

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,153 tokens

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 6,785 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,469 tokens

spec-kit AGENTS.md

AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.

github/spec-kit · 7,104 tokens