seoagent
CLAUDE.md0 starsChanged 8 months agoMITView on GitHub
Open-source, agent-first SEO toolkit — keyword research, rank tracking, site audits, competitor analysis, content gap analysis, domain reputation, and AI-powered strategy generation. TypeScript pnpm monorepo with 4 packages: keywords, rank_history, crawl_pages, crawl_links, backlinks, dr_history, serp_cache, strategies, gsc_data
- Installs packages
In this repository2 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .github/copilot-instructions.mdCopilot instructions
The file
We split this CLAUDE.md into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 40
All business logic in packages/core/src/.
≈ “Common” is an estimate: at least 1 in 5 of the 28,633 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
SEOAgent
Open-source, agent-first SEO toolkit — keyword research, rank tracking, site audits, competitor analysis, content gap analysis, domain reputation, and AI-powered strategy generation.
Architecture
TypeScript pnpm monorepo with 4 packages:
packages/core/(@seoagent/core) — all business logic. Every feature is a function here first.packages/cli/(seoagent) — commander.js CLI, thin wrapper over corepackages/mcp/(seoagent-mcp) — MCP server with 24 tools, thin wrapper over corepackages/dashboard/— Vite + React + Tailwind local web UI (read-only)
Tech Stack
- TypeScript, Node.js >= 20, pnpm workspaces
- SQLite via better-sqlite3 (one DB per project at
~/.seoagent/projects/<slug>/seoagent.db) - Vitest for testing (260 tests across 38 files)
- DataForSEO for keyword/SERP/backlink data
- Google Search Console API (googleapis)
- LLM strategy: Anthropic SDK, OpenAI SDK, Ollama (fetch)
- Crawler: undici + cheerio
- Dashboard: Vite, React, React Router, Tailwind CSS v4, Recharts
Key Commands
pnpm install # install all deps
pnpm build # build all packages
pnpm test # run all tests
pnpm -r run test # run tests across all packages
# Core only
cd packages/core && pnpm test
cd packages/core && pnpm buildCode Conventions
- All business logic in
packages/core/src/. CLI/MCP/Dashboard are thin wrappers. - Barrel export from
packages/core/src/index.ts— add new exports there. - Tests in
packages/core/src/__tests__/using Vitest with globals. - TDD workflow: test first, implement, verify.
- SQLite schema in
packages/core/src/schema.ts— tables created viaopenDatabase(). - Config at
~/.seoagent/config.json, projects at~/.seoagent/projects/<slug>/. SEOAGENT_HOMEenv var overrides~/.seoagent(used in tests with temp dirs).
Data Sources
- Free: Google Search Console API, PageSpeed Insights, local crawler
- Paid: DataForSEO (~$0.001/query) — keyword volumes, SERP, backlinks
- Derived: content gaps, rank deltas, audit scores, strategy (LLM or rule-based)
Database Tables
keywords, rank_history, crawl_pages, crawl_links, backlinks, dr_history, serp_cache, strategies, gsc_data
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

