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.
curl -O https://raw.githubusercontent.com/qiuxchao/content-agent/main/CLAUDE.mdgit clone --depth 1 https://github.com/qiuxchao/content-agentWrote 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.
[](https://agentmods.dev/instructions/qiuxchao/content-agent/claude-md)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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字段标记当前执行节点 - 中文正文,英文专有名词保留原文
- 修改代码时,要考虑是否需要同步全局注释/文档
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.
- 2mo ago First seen · 71 lines · 756 tokens per session scan A 59ca2ad9857b
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.
content-agent CLAUDE.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| content-agent CLAUDE.mdqiuxchao/content-agent | Instructions file | 26 | 7mo ago | MIT | A | 756 | Claude Code |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 9,719 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | today | MIT | A | 7,461 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 5,516 | GitHub Copilot |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | today | MIT | A | 4,680 | Codex, OpenCode |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 3,093 | GitHub Copilot |
| deepseek-harness AGENTS.mddeepseek-ai/deepseek-harness | Instructions file | 275k | 3d ago | MIT | A | 4,313 | Codex, OpenCode |