agentleFS
yagompyagomp/seoagent/CLAUDE.md

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

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
  1. Very specific:

    All business logic in packages/core/src/.

    line 40

≈ “Common” is an estimate: at least 1 in 5 of the 12,729 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md

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 core
  • packages/mcp/ (seoagent-mcp) — MCP server with 24 tools, thin wrapper over core
  • packages/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 build

Code 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 via openDatabase().
  • Config at ~/.seoagent/config.json, projects at ~/.seoagent/projects/<slug>/.
  • SEOAGENT_HOME env var overrides ~/.seoagent (used in tests with temp dirs).

Data Sources

  1. Free: Google Search Console API, PageSpeed Insights, local crawler
  2. Paid: DataForSEO (~$0.001/query) — keyword volumes, SERP, backlinks
  3. 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

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.