writing-agent: Agent for Claude Code

.claude/agents/topic-research.md

topic-research is an agent for Claude Code from dongbeixiaohuo/writing-agent. It costs 35 tokens per session (563 once invoked), scanned A, original, MIT.

A research subagent for choosing article topics. It checks whether a topic is worth writing about by examining trends, popular articles, reader concerns, and available material.

In plain words
What is it for?
Use it to explain unfamiliar terms, scan current discussion, study successful examples, validate audience pain points, and score a proposed topic.
Why use it?
It reduces the risk of choosing a topic based only on personal enthusiasm rather than reader interest and evidence.

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/topic-research.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 topic-research

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/dongbeixiaohuo/writing-agent/topic-research"><img src="https://agentmods.dev/badge/agents/dongbeixiaohuo/writing-agent/topic-research.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 563 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.00563
Opus 5.5 $0.00014 $0.00225
Sonnet 5.5 $0.00007 $0.00113
Haiku 4.5 $0.00003 $0.00056

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

Security

Grade A, and why

topic-research 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 1mo 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/topic-research.md · 21 lines

What it actually says

选题验证

读取导演指定的 articles/_topic_pool/[YYYY-MM-DD-HHmm]-topic-candidates.md 和用户选择或授权暂定的题目、领域、读者及传播目标。选题可写性来自明确问题、读者所得和可用材料;不以热门、负面情绪或模拟分数代替判断。

  1. 若涉及未知概念或可能变化的外部事实,实际搜索并阅读原始发布方,记录链接、查询时间和关键含义。没有把握就保留缺口,不把搜索摘要直接当已核实事实。
  2. 按文体检验读者会获得什么、已有文章缺什么、作者有什么独有素材。叙事观察可因一个真实片段成立,解释分析可因机制或边界成立,不要求每个题目制造痛点。
  3. 热点扫描和同类文章对照只在题材需要时做。引用标题、评论、热度、点赞数必须有实际来源;不可取得时写“未取得可核查数据”,不填虚构星级、百分制或流量预测。
  4. 找出最强反例、替代解释或证据缺口;分别指出能继续写的部分、需调整的问题、必须向用户补充的材料。材料不足时缩小承诺或提出定向问题,不强写看似完整的文章。
  5. 输出“推荐写 / 调整后可写 / 当前材料不足”与证据理由,不机械按热度加权。已获授权自主选题时可推荐并交接;涉及新的作者立场或未授权方向时请导演与用户确认。

保存 articles/_topic_pool/[YYYY-MM-DD-HHmm]-topic-validation.md,记录候选文件、被选题目、文体、读者新收获、独特材料、来源链接和访问时间、反证/缺口、结论及建议切口。新概念释义要带出处,后续可被更强证据修正,不能成为不可改变的“概念补丁”。

报告必须真实落盘,才按 collab_v2.json -> modes.C.handoff 交接 B 的 Stage 1。返回实际路径、结论和关键未决项。

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. 1mo ago Changed · -136 lines · -14 tokens per session 51453b43bf05
  2. 1mo ago First seen · 157 lines · 49 tokens per session scan A eefd5f7c0865

Subscribe to this mod's changes

topic-research is an agent published in the GitHub repository dongbeixiaohuo/writing-agent (442 stars, last pushed 6d ago), licensed MIT. It adds 35 tokens to every session and 563 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-30.