Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add commands/huifer/claude-code-seo/ai-content-rewritergit clone --depth 1 https://github.com/huifer/claude-code-seoWrote 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/commands/huifer/claude-code-seo/ai-content-rewriter)<a href="https://agentmods.dev/commands/huifer/claude-code-seo/ai-content-rewriter"><img src="https://agentmods.dev/badge/commands/huifer/claude-code-seo/ai-content-rewriter.svg" alt="Measured on agentmods" 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.00024 | $0.05967 |
| Opus 5 | $0.00012 | $0.02984 |
| Sonnet 5 | $0.00005 | $0.01193 |
| Haiku 4.5 | $0.00002 | $0.00597 |
Grade A, and why
ai-content-rewriter 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 6d 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.
How it starts
The opening of the file, as written. The whole thing — 799 lines — stays where its author put it; the contents beside it link to each section on GitHub.
完整实现
命令执行流程
# AI 内容重写执行流程
## 步骤 1: 内容读取和分析
输入:文件路径或 URL
处理:
- 读取原始内容
- 分析内容结构
- 识别优化机会
- 评估当前 GEO/SEO 评分
输出:内容分析报告
## 步骤 2: 确定优化策略
根据 focus 参数确定:
- geo: 专注 GEO 优化(权威性、实体、结构)
- seo: 专注 SEO 优化(关键词、元标签、链接)
- readability: 提升可读性(段落、句子、词汇)
- structure: 优化内容结构(标题、层级、流程)
- all: 全面优化
## 步骤 3: 内容重写
应用优化策略:
- 添加 TL;DR 总结(如果 GEO 优化)
- 优化概念定义
- 改进段落结构
- 增强引用来源
- 调整语气风格
输出:优化后的内容
## 步骤 4: GEO 增强(如果启用)
- 添加 Schema.org 标记
- 建立实体关系
- 优化开头 100 词
- 添加 FAQ 部分
- 增强权威性信号
## 步骤 5: 质量验证
检查重写后内容:
- 事实一致性
- 语法正确性
- 可读性评分
- SEO 评分
- GEO 评分
输出:质量报告
## 步骤 6: 生成多个版本(可选)
- 版本 A:保守优化(保留原风格)
- 版本 B:积极优化(最大化 GEO)
- 版本 C:平衡版本(GEO + SEO)
输出:多个版本供选择
## 步骤 7: 保存和对比
- 保存优化后内容
- 生成对比报告(优化前 vs 优化后)
- 提供改进建议
优化重点详解
1. GEO 优化(--focus geo)
目标: 提升 AI 搜索引擎引用率
核心改进:
A. 权威性提升
**原始内容:**
SEO is important for websites.
**优化后:**
根据 [Google Search Central](https://developers.google.com/search) 的数据,SEO(Search Engine Optimization)对网站成功至关重要。研究表明,75% 的用户从未超出第一页结果。
**优化措施:**
✅ 添加引用来源
✅ 使用具体统计数据
✅ 明确术语定义
✅ 引用权威来源
B. 实体关系清晰化
**原始内容:**
SEO and content marketing work well together.
**优化后:**
**SEO** 和 **内容营销** 密切相关:
- SEO 需要高质量内容作为基础
- 内容营销通过 SEO 获得更多曝光
- 两者结合可提升 3 倍流量增长
查看我们的 [内容营销指南](/content-marketing) 了解详情。
**优化措施:**
✅ 明确两个概念的关系
✅ 说明相互影响
✅ 添加内部链接
✅ 提供具体数据
C. 内容结构优化
**原始内容(段落过长):**
SEO is a complex process that involves many different factors including keyword research, on-page optimization, technical SEO, link building, and content creation. You need to focus on all of these areas to succeed... (350 words)
**优化后(LLM 友好结构):**
## SEO 的核心要素
SEO 包含 5 个关键要素:
### 1. 关键词研究 🔍
**目标:** 识别目标搜索词
**工具:** Google Keyword Planner, SEMrush
**重要性:** 关键词是 SEO 的基础
### 2. 页面优化 📝
**目标:** 优化内容相关性
**关键:** 标题、描述、H1 标签
### 3. 技术 SEO ⚙️
**目标:** 确保网站可访问性
**重点:** 速度、移动友好、SSL
**优化措施:**
✅ 分解为短段落(50-100 词)
✅ 使用清晰的标题层级
✅ 添加图标和视觉元素
✅ 列表化关键信息
D. TL;DR 和 FAQ
**添加 TL;DR 总结:**
## TL;DR
SEO 是通过优化网站内容和技术,提高在搜索引擎排名的过程。核心要素包括关键词研究、内容优化、技术 SEO 和外链建设。
**添加 FAQ 部分:**
## 常见问题
### Q: SEO 需要多长时间见效?
**A:** 通常 3-6 个月可见明显效果,取决于竞争程度和优化力度。
### Q: SEO 和 PPC 哪个更好?
**A:** 两者结合效果最佳。SEO 提供长期流量,PPC 提供即时曝光。
### Q: 我可以自己做 SEO 吗?
**A:** 可以,但需要学习大量知识。建议使用专业工具或聘请专家。
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.
- 6d ago First seen · 799 lines · 24 tokens per session scan A b95d35b42eb3
ai-content-rewriter is a command published in the GitHub repository huifer/claude-code-seo (110 stars, last pushed 8mo ago), licensed MIT. It adds 24 tokens to every session and 5,967 once invoked, about $0.0001 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.
Other commands, from other repositories
checklist
Generate a custom checklist for the current feature based on user requirements.
clarify
Identify underspecified areas in the current feature spec by asking up to 5 highly targeted clarification questions and encoding answers back into the spec.
specify
Create or update the feature specification from a natural language feature description.
converge
Assess the current codebase against the feature's spec, plan, and tasks, then append any remaining unbuilt work as new tasks to tasks.md so implement can complete it.
implement
Execute the implementation plan by processing and executing all tasks defined in tasks.md.
analyze
Perform a non-destructive cross-artifact consistency and quality analysis across spec.md, plan.md, and tasks.md after task generation.