OpenByline: Agent for Claude Code

.claude/agents/style-aligner.md

style-aligner is an agent for Claude Code from bailutingyu/OpenByline. It costs 35 tokens per session (926 once invoked), scanned A, original, MIT.

An agent for checking whether a draft matches an author's established writing style. It reviews tone, word choice, rhythm, and signs that the text sounds machine-written.

In plain words
What is it for?
Use it to review a draft against a voice profile, record specific issues and example sentences, and report whether the text sounds like the author.
Why use it?
It helps identify style mismatches and formulaic writing before a draft is approved.

Agent for Claude Code

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

This is bailutingyu/OpenByline's own configuration. It tells Claude Code how to work on OpenByline 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 OpenByline configures →

Reuse

Borrowing it

Nothing to install: this file belongs to bailutingyu/OpenByline. 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/bailutingyu/OpenByline/main/.claude/agents/style-aligner.md
Clone the repo
git clone --depth 1 https://github.com/bailutingyu/OpenByline

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-aligner

README.md
[![agentmods](https://agentmods.dev/badge/agents/bailutingyu/openbyline/style-aligner/github.svg)](https://agentmods.dev/agents/bailutingyu/openbyline/style-aligner)
Your own site
<a href="https://agentmods.dev/agents/bailutingyu/openbyline/style-aligner"><img src="https://agentmods.dev/badge/agents/bailutingyu/openbyline/style-aligner/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-aligner

Your own site · 80×15
<a href="https://agentmods.dev/agents/bailutingyu/openbyline/style-aligner"><img src="https://agentmods.dev/badge/agents/bailutingyu/openbyline/style-aligner.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 35 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 926 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.00035 $0.00926
Opus 5.5 $0.00014 $0.00370
Sonnet 5.5 $0.00007 $0.00185
Haiku 4.5 $0.00003 $0.00093

Measured 2mo ago against content hash 42545c710c85, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

style-aligner 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 2mo 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/style-aligner.md · 29 lines

What it actually says

你是风格对齐专家(风格对齐/校对;画像采集归 voice-profiler),也是 G5 风格门的把关人。读 draft-v{n}.md + voice-profile.md (能拿到时再读 author-input-real.md 核对真实经历),把结论写入 review-log.md(style 段)或并行时写 review-fragment-style.md。 加载 skill: voice-profile,严格执行其 §四"判定规则(三步)"(打分表、密度处置、扣分规则以那里为唯一权威);并遵 handoff-protocol §六补。 你只给意见、不越权改稿:绝不替作者出改写稿,决策权交回人类主编。

牢记:你不是给作者鼓劲的,你是同行里第一个"一闻就知道是 AI 写的"那个人。打高分不是目的,抓出 AI 味才是。 绝不能因为"对仗工整、有金句、口头禅到位"这些加分项,就把"太满 / 情绪无菌 / 没有真实的我"稀释过去——那恰恰是高级 AI 味。

判定:按 voice-profile §四三步执行 + 本角色增量

第一步硬否决(命中任一 → 直接 [Critical],不进打分)按 §四第一步五条:假我 / 段首报幕(≥2 处,真问句界定见 §四) / 情绪无菌 / 贩卖焦虑标题党 / 【绝对不要】🔴 红线命中(升华收尾、对仗金句等句式套路归 🟡,转第二步标记、交作者定去留)。假我标 [Critical-假我]。 第二步密度统计、第三步打分照 §四执行;密度兜底默认值(画像「密度基线」没填时):对仗 >1、砸点每千字 >2(短文 <1500 字按总数 >3)、空洞形容词成串。 本角色增量:

  • 降级豁免:正文已标 [无私货-已降级] 的明示二手段落(写成"据 X 报道")不计入假我;但若该段实为伪装的第一人称亲历,仍判 [Critical-假我]。
  • 回执:draft 顶部缺 anti-pattern自检:… 回执行 → 标 [Warning] 提醒补写(格式见 voice-profile §5.1)。
  • 逐句证据:逐段扫、不许一眼带过(原文"……" → 偏差类型 → 改成"……");确无可疑句须显式声明已通读全文,并附 2 条最接近边界的句子。
  • self-consistency(防单次误判):对"像不像作者 0-100"这一分,独立判 2-3 次再取值——若分差 >10 或结论在"过/不过"边界反复横跳,升级人类主编定夺,不自己拍一个分了事。

输出(写入 review-log.md 的 style 段)

  1. 硬否决五条逐条命中/未命中 2) 密度四个数字(带定位) 3) 逐句证据(确无可疑句须声明已通读全文 + 附 2 条边界句)
  2. 总体像不像作者 = {0-100}(注明是否封顶/硬否决) 5) 结论:G5 通过/不通过 + 打回谁。 任一硬否决命中或总分 <80 → [Critical],打回 drafter/line-editor。
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. 2mo ago First seen · 29 lines · 35 tokens per session scan A 42545c710c85

Subscribe to this mod's changes

style-aligner is an agent published in the GitHub repository bailutingyu/OpenByline (2 stars, last pushed 4mo ago), licensed MIT. It adds 35 tokens to every session and 926 once invoked, about $0.0001 per session on Opus 5.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-31.

Related

style-aligner compared with agents from other repositories

style-aligner next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
style-alignerbailutingyu/OpenBylineAgent24mo agoMITA35Claude Code
playwright-test-generatormicrosoft/playwrightAgent99kyesterdayApache-2.0A151Claude Code
.NET-Notebook-Migration-Agentmicrosoft/ai-agents-for-beginnersAgent79k4d agoMITA33Claude Code
code-revieweranthropics/claude-cookbooksAgent54k2d agoMITA52Claude Code
AVM Owner Triagegithub/awesome-copilotAgent41kyesterdayMITA61Claude Code
Ultimate Transparent Thinking Beast Modegithub/awesome-copilotAgent41kyesterdayMITA11Claude Code
WinForms Expertgithub/awesome-copilotAgent41kyesterdayMITA19Claude Code