Persistent SEO workflow for Claude Code — run a technical SEO audit, build a hub-and-spoke keyword strategy, write page-type-aware content briefs, and draft SEO
复制下面这句话,粘贴给 Claude Code、Codex、Cursor 等 AI 编程工具,它会读取安装说明并在你确认后完成安装。
请阅读 https://ai.atlankj.com/install/asset/gh-seoagent-4bcfcfbc9a9f ,按照其中的说明把「SEOAgent」安装到你(当前 AI 工具)中。执行前先告诉我将运行的命令和写入的位置,等我确认。
查看 AI 将读取的安装说明正在读取 GitHub 原文…
内容来自 GitHub 原始文件,由原作者维护。在 GitHub 查看
A persistent, repo-local SEO workflow. Unlike one-off SEO prompts that lose their context the moment the conversation ends, every artifact here is written to a .seoagent/ directory in the repo — so audits, strategy, briefs, and drafts accumulate across sessions instead of resetting each time.
Use this skill when the user wants to:
All work persists to .seoagent/ so it survives across sessions:
.seoagent/
project.md # domain, site type
context.md # business context, tone, banned topics
audit/latest.md # findings as [ ] / [x] checkboxes, tagged by severity
strategy/clusters/ # hub-and-spoke topic clusters
briefs/{slug}.md # page-type-aware briefs
content/{slug}.md # drafts with SEO frontmatter + JSON-LD
roadmap.md # prioritized next steps
changelog.md # history of SEO work
Always read existing .seoagent/ files before acting, and write results back so the next session can build on them.
Fetch the site's key pages and check each against the list below. Save findings to .seoagent/audit/latest.md as [ ] checkboxes the user can flip to [x] when fixed, each tagged critical | high | medium | low.
Critical / high
noindex, no blocked paths in robots.txt, canonical present and self-referential<h1> per page, descriptive; logical h2/h3 hierarchyMedium / low
alt text on content imagesResearch the niche, then build topic clusters where each cluster has roles:
Internal links funnel authority up toward pillars. Save clusters to .seoagent/strategy/clusters/{slug}.md with the article table + link graph.
Different page types need different structures. Pick the protocol by type:
Each brief gets a URL pattern, section outline (H2/H3), internal-link plan, JSON-LD plan, and a word-count target. Save to .seoagent/briefs/{slug}.md.
Write from the brief with complete SEO frontmatter:
meta_title, meta_description, canonicalArticle, plus FAQPage / HowTo where the content warrants itSave to .seoagent/content/{slug}.md.
Re-audit periodically, update .seoagent/roadmap.md with the next highest-leverage actions, and append what changed to .seoagent/changelog.md.
Beyond classic SEO, structure content so AI assistants (ChatGPT, Claude, Perplexity, Google AI Overviews) can cite it: lead with a direct answer, use clear headings as questions, include comparison tables and concrete stats, and add FAQ/HowTo structured data. This makes pages citable in AI-generated answers, not just rankable.
This skill captures the SEOAgent methodology. The full agent ships as a CLI that scaffolds the .seoagent/ workspace, installs an expanded reference library (per-page-type protocols, a JSON-LD library, an audit-check catalog), and adds an optional cloud loop:
# npm
npm install -g @seoagent-official/seoagent && seoagent init
# or the plugin marketplace (Claude Code or Codex)
/plugin marketplace add Baxter-Inc/seoagent-npm
Free and local by default (uses your agent's own tools; data stays in your repo). Optional cloud adds real keyword data, Google Search Console, and CMS publishing. MIT licensed — https://github.com/Baxter-Inc/seoagent-npm