writing-agent: Skill for Claude Code

.claude/skills/style-modeler/SKILL.md

style-modeler is a skill for Claude Code from dongbeixiaohuo/writing-agent. It costs 85 tokens per session (2,287 once invoked), scanned A, original, MIT.

A style-analysis skill that builds a reusable writing profile from samples supplied or approved by the user. It keeps evidence about the samples and separates writers when their authorship differs.

In plain words
What is it for?
Use it to analyze local documents or web articles, organize samples by author, record supporting passages, and maintain or update style profiles for later writing.
Why use it?
It helps avoid guessing a writer’s style from outside knowledge, personal impressions, or the topics they write about. Each style rule must be supported by examples.

Skill for Claude Code

Written for Claude Code: ${CLAUDE_SKILL_DIR} variable.

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/skills/style-modeler/SKILL.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 style-modeler

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/dongbeixiaohuo/writing-agent/style-modeler"><img src="https://agentmods.dev/badge/skills/dongbeixiaohuo/writing-agent/style-modeler.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 85 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,287 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00085 $0.02287
Opus 5 $0.00043 $0.01144
Sonnet 5 $0.00017 $0.00457
Haiku 4.5 $0.00009 $0.00229

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

Security

Grade A, and why

style-modeler 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 3 executable files (scripts/manage_style_registry.py, scripts/normalize_style_frontmatter.py, scripts/style_fingerprint.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.

.claude/skills/style-modeler/SKILL.md · 161 lines

How it starts

The opening of the file, as written. The whole thing — 161 lines — stays where its author put it; the contents beside it link to each section on GitHub.

风格建模专家

只根据用户提供或明确允许获取的样本建模。把作者身份用于样本分组和风格库检索,不把外部履历、既有印象或样本之外的观点写进风格档案。

0. 解析可写风格根目录

开始前必须执行:

python "${CLAUDE_SKILL_DIR}/scripts/manage_style_registry.py" resolve-root --workspace-root "."

把命令唯一输出记录为 [风格根目录],后续档案、证据和登记表全部使用这个根目录:

  • 在本仓库开发环境中返回 claude-runtime/styles,它是唯一源;完成后再运行同步脚本更新消费端镜像。
  • 在插件安装到普通工作区时返回 .claude/styles,不得写入插件缓存。
  • 禁止跳过解析后直接假定 .claude/styles,否则会造成运行时镜像漂移。

1. 收集样本并确认作者锚点

  1. 接收本地文档或 URL。URL 先调用 web-article-extractor,将正文保存到 docs/YYYY-MM-DD-文章标题.md
  2. 批量 URL 按“导航 → 等待 → 提取 → 保存”的顺序串行处理;不要在同一页面上下文并发导航。
  3. 从每篇样本的作者、公众号和来源 URL 提取作者锚点。
  4. 在合并文本前核对全部锚点:
    • 作者锚点一致:继续建模。
    • 作者锚点不一致:按作者分组;无法可靠分组时停下,请用户确认是否真的要建立“混合风格”。
    • 作者未知:保留来源标识,不猜测作者。
  5. 检索 [风格根目录]/:新作者新建档案;已存在的作者读取旧档案和旧证据账本,执行增量验证。

2. 先建立证据账本

在任何风格归纳前,将证据保存到 [风格根目录]/_evidence/[风格名]_evidence.md。每条记录包含:

字段 要求
观察现象 样本中具体出现的写法
原文证据 支撑判断的必要短摘录
出现位置 样本标题、编号或 URL
功能判断 该写法在上下文中的作用
可复用规则 如何在新主题中复现
适用边界 什么时候适用或不适用

硬规则:

  • 稳定特征至少要有 2 条证据,且来自至少 2 篇独立样本。
  • 单篇样本只能产出“候选特征”,不能宣称是稳定风格。
  • 不把样本主题等同于作者风格。
  • 每条画像、判断和使用规则都必须能回指证据账本。
  • 原文摘录只保留证明结论所需的最短片段,不把长段原文当模板堆入风格文件。

证据分级、增量更新和先验隔离规则见 style-core-and-validation.md

3. 运行量化指纹

先运行脚本,再写句长、段落、问句和标点结论:

python "${CLAUDE_SKILL_DIR}/scripts/style_fingerprint.py" docs/[样本1].md docs/[样本2].md

将结果写入风格档案的 00b. 量化指纹,并注明样本数。节奏描述必须与实测一致;句首词至少出现 3 次才可列入词汇指纹。

4. 提炼风格,而不是通用好文章公式

15-dimensions.md 分析 15 个维度,并额外回答:

  1. 作者面对新题目首先观察什么?
  2. 作者会自动排除哪些角度、素材和建议?
  3. 从现象到判断的论证发动机是什么?
  4. 素材选择偏好和拒绝项是什么?
  5. 情绪曲线和读者关系是什么?
  6. 换一个新主题时,最小可复现配方是什么?
  7. 多篇样本反复出现的实质判断和价值排序是什么?

对每条核心规则执行两道检查:

  • 通用基线检查:任何优秀写作者本来就会做的规则,移到“通用基线”,不算作者指纹。
  • 库内区分检查:与两个以上既有风格重复的规则降级,并写出与最相近风格的“区分开关”。

5. 做可证伪的仿写验证

5.1 陌生主题验证

  1. 选择样本未覆盖的新主题,写 300–500 字短文。
  2. 从切入角度、素材选择、论证推进、句式节奏、情绪与读者关系五项评分,每项 0–2 分。
  3. 每个 2 分必须标注对应的证据账本条目;无法溯源按 0 分计。
  4. 总分低于 8 分,返回风格内核修正。

5.2 多组独立盲测

  1. 准备至少 3 组功能相近的“原文短段 + 仿写短段”,每组随机打乱 A/B。
  2. 将每组分别交给不接触风格文件和作者身份的独立评审,只提供两段纯文本。
  3. 允许评审回答“无法判断”;每次必须给出判断、置信度和有证据的破绽,不要求凑满固定数量。
  4. 汇总而不是单次判定:
    • 至少 2 组判断错误或无法判断,且没有高置信度的“判断方式”破绽:通过。
    • 至少 2 组正确识别,或出现高置信度的判断方式破绽:回炉修正风格内核。
  5. 用量化脚本复测仿写段;关键节奏指标偏离样本基线超过 30% 时不得通过。

Read the full file on GitHub · 161 lines

Files

What ships with it

7 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 · 161 lines · 85 tokens per session scan A ae8ea86bec91

Subscribe to this mod's changes

style-modeler is a skill published in the GitHub repository dongbeixiaohuo/writing-agent (409 stars, last pushed 2d ago), licensed MIT. It adds 85 tokens to every session and 2,287 once invoked, about $0.0004 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

clarity

Draft, rewrite, or review reader-facing prose so it is specific, useful, and recognizably the author's without inventing facts or performing humanness. Use for essays, articles, newsletters, documentation, talks, launch copy, and other important prose that feels generic, hollow, or AI-shaped. Supports co-write…

addyosmani/clarity · 76 tokens

skill-creator

Create, install, or update skills in the workspace. Use when (1) installing a skill from a URL or remote source, (2) creating a new skill from scratch, (3) updating or restructuring existing skills. Always use this skill for any skill installation or creation task.

zhayujie/CowAgent · 61 tokens

excel-helper

A spreadsheet assistant for Excel, a program used to organize, calculate, and analyze tabular data. It covers formulas, pivot tables, charts, data cleaning, and VBA macros, which are small automation programs for Excel.

dongsheng123132/u-claw · 31 tokens

xiaohongshu-writer

A writing guide for Xiaohongshu, a Chinese social platform for short lifestyle and advice posts. It helps shape titles, post structure, emoji use, cover text, and hashtags.

dongsheng123132/u-claw · 35 tokens

word-writer

A writing and formatting assistant for Microsoft Word documents, including reports, contracts, résumés, academic papers, and administrative documents.

dongsheng123132/u-claw · 28 tokens

code-mate-antigravity

Runs Antigravity CLI headlessly for repository analysis and coding tasks. Use when the user asks to delegate work to Antigravity CLI or compare its result with another coding agent.

CherryHQ/cherry-studio · 43 tokens