content-agent: Instructions file for Claude Code

CLAUDE.md

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

Project instructions for an AI content-writing service that takes a topic and creates articles for WeChat, Xiaohongshu, and Zhihu.

In plain words
What is it for?
They are for developing the research, planning, writing, review, image-fetching, memory, publishing, API, and web-interface parts of the application.
Why use it?
They describe the services, data stores, startup commands, and writing pipeline so developers can run and modify the system with less guesswork.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md.

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

Reuse

Borrowing it

Nothing to install: this file belongs to qiuxchao/content-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/qiuxchao/content-agent/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/qiuxchao/content-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 content-agent CLAUDE.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/qiuxchao/content-agent/claude-md"><img src="https://agentmods.dev/badge/instructions/qiuxchao/content-agent/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 756 This file is loaded in full into every session.
When invoked 756 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.00756 $0.00756
Opus 5.5 $0.00302 $0.00302
Sonnet 5.5 $0.00151 $0.00151
Haiku 4.5 $0.00076 $0.00076

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

Security

Grade A, and why

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

What it actually says

Content Agent

AI 内容生产 Agent,基于 LangGraph + LangChain,输入主题自动生成多平台文章(微信公众号 / 小红书 / 知乎)。

技术栈

  • Agent: Python 3.11+, LangGraph, LangChain
  • LLM: OpenAI 兼容(DeepSeek/Kimi/通义等)+ Anthropic Claude
  • 搜索: Tavily
  • 向量库: Chroma(本地持久化 data/vectorstore/)
  • 数据库: SQLite(data/content-agent.db,WAL 模式)
  • API: FastAPI + SSE 流式输出
  • 前端: Next.js + React 19 + Ant Design + Tailwind CSS
  • 包管理: Python 用 uv,前端用 bun

启动方式

# API 服务
uv run uvicorn api.server:app --reload --port 8917

# 前端(另一个终端)
cd web && bun dev
# 访问 http://localhost:3917

项目结构

agent/
  graph.py          # LangGraph 主图定义
  state.py          # AgentState 共享状态
  llm.py            # LLM 工厂(OpenAI/Anthropic)
  config.py         # 配置读取(env > SQLite > default)
  db.py             # SQLite 数据库
  memory.py         # Chroma 向量库(RAG)
  nodes/            # 图节点
    pre_researcher   → planner → researcher → writer → critic
                       ↑ (retry ≤2, score <7)  ↓ (pass)
                       └── increment_retry ←───┘
                                          image_fetcher → save_memory → END
  prompts/templates.py   # 平台 Prompt 模板 + 方向预设
  publish/               # 微信发布(MD→HTML、API、封面)
  tools/                 # 搜索、生图、截图、Unsplash
api/server.py            # FastAPI 路由
web/                     # Next.js 前端

配图系统

Writer 在初稿中插入占位符,ImageFetcher 节点替换为真实图片。两种占位符:

  • [IMAGE: 详细英文绘图提示词] — AI 生图或 Unsplash 搜图
  • [SCREENSHOT: url, 中文描述] — Playwright 截取网页

通过 IMAGE_PROVIDER 配置控制模式:

  • prompt — 仅生成提示词,用户手动上传
  • screenshot — 纯截图模式
  • mixed — 混合模式(Writer 自行选择截图或生图)
  • unsplash / openai / gemini 等 — AI 生图

开发约定

  • 配置优先级:环境变量 > SQLite settings 表 > 默认值
  • LLM 实例通过 @lru_cache 缓存,配置变更需重启
  • 前端设置修改写入 SQLite,无需重启即生效(热更新)
  • 图片保存到 data/images/,通过 /api/images/{filename} 访问
  • SSE 流式事件格式:{node, data, active},active 字段标记当前执行节点
  • 中文正文,英文专有名词保留原文
  • 修改代码时,要考虑是否需要同步全局注释/文档
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 · 71 lines · 756 tokens per session scan A 59ca2ad9857b

Subscribe to this mod's changes

content-agent CLAUDE.md is an instructions file published in the GitHub repository qiuxchao/content-agent (26 stars, last pushed 7mo ago), licensed MIT. It adds 756 tokens to every session, about $0.0030 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.

Related

content-agent CLAUDE.md compared with instructions from other repositories

content-agent CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
content-agent CLAUDE.mdqiuxchao/content-agentInstructions file267mo agoMITA756Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,516GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file275k3d agoMITA4,313Codex, OpenCode