SEO Skill

Codex SEO skill

Codex already edits your site's code. Give it your Search Console, Google Analytics and keyword data, and it can pick the pages with the most clicks to gain and check its work after.

Run it in a terminal, then sign in with Google.

Or run it on your machine

Installs the CLI, signs you in and adds the skill to your agents. Site crawls and Bing data run this way, on your own machine. A crawl fetches many pages, and Bing blocks our hosted server.

What the SEO skill gives Codex

Codex can read your templates and fix a missing canonical on its own. What it cannot see is which pages lose clicks, which queries sit on page two, or whether Google has indexed the page it just changed. SEO Skill gives Codex those facts from your own accounts, read only, through three parts you can mix:

PartWhat it adds in Codex
Hosted MCPSearch Console, Google Analytics, URL Inspection, keyword research and copy checks, with nothing to install.
SEO skillTeaches Codex which tool or command answers which SEO question, and to report facts rather than guesses.
seo CLISite crawls (localhost and staging too), internal links and Bing Webmaster Tools, on your machine.

Start with the hosted MCP. Add the skill and the CLI when Codex is working in the site's repository.

Add the hosted SEO MCP to Codex

Run these two commands in a terminal:

codex mcp add seoskill --url https://seoskill.dev/mcp
codex mcp login seoskill

The login opens a Google sign-in in your browser. Allow read-only access to Search Console and Google Analytics, and Codex keeps the token for later sessions. The Codex CLI, the IDE extension and the desktop app share this config, so one setup covers all three. Type /mcp in Codex to check that seoskill is connected.

Install the SEO skill in Codex

Install the CLI and run setup:

npm i -g seo && seo start

Setup signs you in, offers to add an MCP server to Codex, and offers to install the skill. If you skipped the skill, add it later:

seo skill install

That runs the open skills installer (npx skills add iannuttall/seo), which asks which agents to add it to. Pick Codex. Codex picks the skill up when a task matches it, and you can name it with $seo in a prompt to be sure.

Run the seo CLI from Codex

Codex runs shell commands, so with the CLI installed it can run seo directly. That matters for the jobs the hosted server does not do. A crawl of your local build, before anything ships:

seo crawl http://localhost:4321

To give Codex the crawl, internal links and Bing as MCP tools as well, run seo mcp install, which adds a local server to Codex's config next to the hosted one.

Prompts to try in Codex

Ask CodexWhat it reads
Run the SEO report for example.comClicks, impressions, CTR and position against the previous period, with each section's top rows.
$seo which pages have striking distance keywords?Queries at positions 11 to 20, with the page that ranks for each.
Find low CTR pages and suggest titles in this repoThe low CTR section, then the template or file that sets each title.
Did the last Google update hit us?The latest update's days against the days before, from your own clicks.
Crawl the staging build for broken linksA crawl from your machine with the CLI.

A worked example with a low CTR title

Say Codex is open in the repository for example.com. You ask:

$seo show the low-ctr section for example.com, find the files that set the titles of the top 3 pages, and suggest new titles from their queries
  1. Codex calls the SEO report and gets query and page pairs at positions 1 to 4 with a click-through rate below your site's own curve (a heuristic built from your own data).
  2. It runs seo page on each URL to read the live title and the queries the page gets, then finds the file in your repo that sets that title.
  3. It proposes the edits. You review the diff, and Codex can crawl the local build to check the new titles render.
  4. After the deploy, ask Codex to mark the issues fixed. The issues list then shows each page's clicks for the 28 and 56 days after the fix against the same days before.

Codex writes the change. SEO Skill supplies the evidence, and says when a before and after is only timing, not proof.

Use SEO Skill in Codex cloud

Codex cloud tasks run on a machine that starts fresh each time. Make a token on your account page and add it to the Codex environment as an environment variable named SEO_TOKEN. Use an environment variable rather than a secret: Codex removes secrets before the agent starts. Then install the CLI with npm i -g seo in the setup script, and give the agent internet access to seoskill.dev and Google's APIs, which Codex turns off by default.

The cloud agents guide has the other options, including a Google service account.

What SEO Skill costs in Codex

Every tool Codex calls is free with no usage cap. Keyword research uses your own DataForSEO or Ahrefs key, so you pay that provider directly. The paid part is the weekly site audit, $50 a month per site, which crawls the site every week and checks Google's index every day.