---
title: "Claude Code routines for SEO with SEO Skill | SEO Skill"
description: "Run your site’s SEO as a Claude Code routine (now scheduled tasks): a weekly cloud run with the SEO Skill connector that opens a pull request per fix."
canonical: "https://seoskill.dev/guides/claude-code-routines"
language: "en"
---

Written by AI and Ian NuttallX: 81.8kYouTube: 16.9kLinkedIn: 4.5k

Ian Nuttall

More than 20 years in SEO. Founder of Practical Programmatic, a programmatic SEO course with over 1,000 students, and of URL Monitor, sold for $250,000.

-   [81.8kfollowers on X](https://x.com/iannuttall)
-   [16.9ksubscribers on YouTube](https://www.youtube.com/@inuttall)
-   [4.5kfollowers on LinkedIn](https://www.linkedin.com/in/iannuttall)

AI writes these pages. I plan each one, gather the data from real sources and review the draft before it goes live.

[See my background](https://seoskill.dev/about#ian-nuttall)

# Claude Code routines for SEO

A Claude Code routine, now called a cloud scheduled task, runs in Anthropic’s cloud on your site’s repository. With SEO Skill as a connector, each run picks the due SEO work and opens a pull request per change.

## What does Claude Code need to run SEO Skill on a schedule?

Claude Code, from Anthropic, needs the SEO Skill MCP server, its own scheduler and access to your site's repository. Cloud scheduled tasks, formerly routines: Claude Code on a cron in Anthropic’s cloud, with your connectors.

<table><tbody><tr><th scope="row">Where it runs</th><td>Anthropic’s cloud, on a fresh clone</td></tr><tr><th scope="row">How it connects to SEO Skill</th><td>The seoskill connector on claude.ai</td></tr><tr><th scope="row">What holds the schedule</th><td>/schedule or claude.ai/code/routines</td></tr><tr><th scope="row">How changes ship</th><td>Pushes claude/ branches and opens pull requests</td></tr><tr><th scope="row">Needs your machine on</th><td>No, it runs with your laptop closed</td></tr></tbody></table>

## How does a scheduled Claude Code SEO run work?

The scheduled task starts a cloud session on a fresh clone, SEO Skill picks the work, and Claude opens a pull request per change.

### The schedule starts a cloud session

Each run is a full Claude Code session on a fresh clone of your repository, in auto mode.

### SEO Skill picks the jobs

It calls seo\_next through the connector and works through at most five jobs.

### Claude pushes a claude/ branch

Changes go to a branch prefixed claude/, and the run opens a pull request for each one as your GitHub user.

### You review the run

Every run is a session you can open on the web, with its log, and SEO Skill checks each merged fix 28 and 56 days later.

## How do I connect Claude Code to SEO Skill?

Cloud scheduled tasks use the connectors on your claude.ai account. A server you added locally with claude mcp add is not one of them.

1.  1

    Add SEO Skill as a claude.ai connector

    Open claude.ai/customize/connectors, choose Add custom connector, name it seoskill and enter the URL.

    ```
    https://seoskill.dev/mcp
    ```

2.  2

    Sign in with Google

    Sign in with the Google account that reads your Search Console. The connector is now on your account everywhere.

3.  3

    Or commit it to the repository

    A task with one repository can read servers from a committed .mcp.json instead, unless it runs as threads in a project.

## How do I put the SEO work on a Claude Code schedule?

Create the task from the CLI with /schedule, from the Desktop app, or at claude.ai/code/routines. All three save to the same account.

1.  1

    Start a few minutes past the hour

    A run set exactly on the hour can start several minutes late, so Anthropic suggests a time like 8:07.

2.  2

    Keep only the connectors it needs

    Every connector you have is included by default. Remove all but seoskill and GitHub.

3.  3

    Custom cron runs in UTC

    Preset times use your local time zone. A five-field cron expression is read as UTC, and nothing runs more often than hourly.

## Write your Claude Code SEO schedule

Fill in your site and when it should run. The setup prompt does this for you; the builder shows exactly what it saves, with the prompt every run starts with.

SiteGitHub repositoryHow often

Weekly, the whole loopDaily, also catches index drops

Day

MondayTuesdayWednesdayThursdayFridaySaturdaySunday

Time

06:0007:0008:0009:0010:0011:0012:0013:0014:0015:0016:0017:0018:0019:0020:0021:00

Time zone

May merge on its own

Titles and descriptionsInternal linksFixes to broken pages

New pages, template changes, redirects and deletions always wait for you.

Type this in Claude Code

```
/schedule every Monday at 08:07 UTC on example/website, with the seoskill and GitHub connectors only: Run SEO Skill's autopilot for example.com.
1. Run seo_next with site "example.com". Settle the started jobs it lists first, as it says, then run it again.
2. Follow the due step for at most 5 of its jobs.
3. Open one pull request for each change and name the job ids it covers in its description. Then run seo_report with site "example.com", mark "started", issues "<ids>", note "<pull request URL>". Merge only what the "## Autopilot" rules in the business context allow. Everything else waits for review.
4. Where the step says to ask the person, such as before a new page, a template change, a redirect or a deletion, leave the question with its evidence where the person reviews your work, such as an issue in the repository, instead of making the change. Mark the job started with that link as note, so later runs do not ask again. When the person approves a new page there, add it under "## Pages to build" in the business context.
5. End with a short summary of what you opened and what waits for the person.
```

Saved in your business context

```
## Autopilot
Weekly, every Monday at 08:07 UTC.
Runs in Claude Code.
Alerts do not start runs.
Every change waits for review.
```

## How does Claude Code ship the SEO changes?

A scheduled task works as you on GitHub. Its pushes and pull requests carry your GitHub user, so use branch protection to decide where it can push.

-   ### claude/ branches by default

    Claude pushes to claude/ branches unless the prompt says otherwise. Protect main with a ruleset.

-   ### One pull request per change

    The run prompt asks for one pull request per change, with the job ids in each description.

-   ### Questions become issues

    Before a new page, a redirect or a deletion, the run opens an issue with the evidence and waits for you.

## What to watch when Claude Code runs unattended

Scheduled tasks are a research preview, and their runs draw on your subscription usage like any session.

-   ### Plans that have them

    Pro, Max, Ultra, Team and Enterprise. On Team and Enterprise an admin turns them on first.

-   ### The run cannot reach your machine

    A cloud task works on a fresh clone. Local scheduled tasks in the Desktop app can, but only fire while your computer is awake.

-   ### Network allowlist

    Connectors reach their services through Anthropic, so seoskill needs no allowlist change. Other APIs the run calls might.

## More on Claude Code and SEO Skill

The Claude Code docs cover each setting in full, and these pages cover SEO Skill in the same agent.

-   [Automate work with scheduled tasks](https://code.claude.com/docs/en/routines)
-   [Compare scheduling options](https://code.claude.com/docs/en/scheduled-tasks)

[

### Claude SEO skill

SEO Skill in Claude Code, claude.ai and Claude Desktop, and which parts each one uses.

Claude SEO skill](https://seoskill.dev/features/claude-seo)[

### Claude Code setup

The hosted MCP server and the skill for interactive Claude Code sessions.

Claude Code setup](https://seoskill.dev/integrations/claude-code)[

### SEO with Claude Code

What a working session with Claude Code and SEO Skill looks like.

Read the post](https://seoskill.dev/blog/seo-with-claude-code)[

### Autonomous SEO with any agent

Every agent that can run SEO Skill on a schedule, side by side, with the same schedule builder.

All agents](https://seoskill.dev/guides/seo-automation)

## Questions about Claude Code and SEO

### Are Claude Code routines the same as scheduled tasks?

Yes. Anthropic renamed cloud routines to scheduled tasks. The name routines still appears in the web address, the /routines alias and the API.

### Can a Claude Code routine use an MCP server I added with claude mcp add?

No. Cloud tasks use your claude.ai connectors. Add SEO Skill as a custom connector on claude.ai, or declare it in a committed .mcp.json for a task with one repository.

### How often can a Claude Code scheduled task run?

At most hourly. Weekly runs the whole SEO loop and suits most sites; daily also catches pages that drop out of Google.

### Can SEO Skill alerts start a routine?

Not directly. A routine’s API trigger needs its own bearer token and headers, which SEO Skill’s signed alert calls do not send. Use the schedule.

### Does a scheduled run need an SEO Skill plan?

No. Search Console, Google Analytics, index checks and page checks are free, so a run that works from them uses nothing on SEO Skill. Research such as keywords, competitors and AI answers uses your plan’s usage, your free credit or your own DataForSEO key. When that runs out, the run says so and keeps going with the free tools. A plan also adds the weekly site audit, and a run never picks a plan or buys a top-up without your yes.

## Put your site on autopilot in Claude Code

Give Claude Code this prompt. It connects SEO Skill, writes your business context with you and sets up the first scheduled run.

## Set up SEO Skill

Give this prompt to your AI agent. It installs the `seo` CLI, adds the hosted MCP server, waits while you sign in with Google and checks it connects.

```prompt
Set up SEO Skill in this agent so you can work on my site's SEO with my own Search Console data. Do every step yourself and only stop when you need me.

1. If `seo --version` fails, install the SEO Skill CLI with `npm i -g seo`. If Node.js is missing or too old for it, install the current LTS release of Node.js yourself, such as with Homebrew, winget or nvm, and ask me only when it needs my password or approval.
2. Add the hosted MCP server https://seoskill.dev/mcp to this agent as a remote HTTP MCP server named seoskill, for every project. Use this agent's own command or config file and keep its other servers. If you cannot add MCP servers yourself, find this agent's steps at https://seoskill.dev/integrations and walk me through them.
3. Start this agent's MCP sign-in for seoskill, or tell me how to start it. I sign in with Google, which creates my free seoskill.dev account. Wait until it finishes.
4. Run `seo login`. It prints a link and a code. Show me both and ask me to open the link, sign in with the same Google account and click "Link this machine". Wait until I say it is done, then run `seo login` again to finish.
5. Run `seo skill install` to add the SEO skill.
6. Check that this agent lists seoskill as connected. If it does not, read the error and fix it.
7. Run `seo sites` and ask me which site to start with. If it lists none, tell me the Google account I used needs access to a Search Console property. Its last line shows my plan and how much usage is left: tell me that in a sentence.

When it's connected, tell me what to restart so the seoskill tools load, and give me a message to send afterwards that asks you to run seo_next for the site I picked. After that, use the seoskill MCP tools for my data. Call seo_next for the site I picked and do the step it returns. Use the `seo` CLI only for site crawls and Bing data, which run on my machine. Research such as keywords, competitors, backlinks and AI answers works without my own key: it uses my plan's usage or my free credit. When a tool says I have used 50%, 80% or all of it, tell me in one line and offer the next step it gives, such as moving to the next plan. If a tool fails with USAGE_LIMIT, tell me research is paused and keep going with the free tools. You can pick or change my plan, buy a top-up, set auto-reload or cancel with seo_sites, but only after I say yes to that exact step and price. If it returns a Stripe link, give it to me to pay. Only add a site to the weekly site audit when I ask.
```

There are setup guides for [Claude Code](https://seoskill.dev/integrations/claude-code), [Codex](https://seoskill.dev/integrations/codex), [Cursor](https://seoskill.dev/integrations/cursor) and [every other agent](https://seoskill.dev/integrations).
