seo-supervisor 0.0.0-stage → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/marketplace.json +16 -0
- package/.claude-plugin/plugin.json +14 -0
- package/CHANGELOG.md +31 -0
- package/LICENSE +25 -0
- package/README.md +197 -2
- package/bin/agents.mjs +65 -0
- package/bin/prompt.mjs +76 -0
- package/bin/seo-supervisor.mjs +144 -0
- package/commands/seo-audit.md +7 -0
- package/commands/seo-fix.md +13 -0
- package/commands/seo-launch.md +7 -0
- package/commands/seo-review.md +7 -0
- package/commands/seo-setup.md +19 -0
- package/package.json +45 -4
- package/skills/seo-supervisor/SKILL.md +199 -0
- package/skills/seo-supervisor/examples/sample-audit.json +440 -0
- package/skills/seo-supervisor/examples/sample-report.html +654 -0
- package/skills/seo-supervisor/examples/sample-report.md +257 -0
- package/skills/seo-supervisor/examples/security-tools-profile.md +73 -0
- package/skills/seo-supervisor/examples/snippets.md +134 -0
- package/skills/seo-supervisor/frameworks/nextjs.md +98 -0
- package/skills/seo-supervisor/frameworks/rails.md +34 -0
- package/skills/seo-supervisor/frameworks/spa.md +14 -0
- package/skills/seo-supervisor/planning.md +145 -0
- package/skills/seo-supervisor/profile-template.md +55 -0
- package/skills/seo-supervisor/report-format.md +146 -0
- package/skills/seo-supervisor/rules/ai-search.md +40 -0
- package/skills/seo-supervisor/rules/content.md +60 -0
- package/skills/seo-supervisor/rules/crawl-index.md +65 -0
- package/skills/seo-supervisor/rules/internal-linking.md +61 -0
- package/skills/seo-supervisor/rules/launch-monitoring.md +48 -0
- package/skills/seo-supervisor/rules/media.md +30 -0
- package/skills/seo-supervisor/rules/metadata.md +39 -0
- package/skills/seo-supervisor/rules/performance.md +33 -0
- package/skills/seo-supervisor/rules/rendering.md +42 -0
- package/skills/seo-supervisor/rules/sitemaps-robots.md +37 -0
- package/skills/seo-supervisor/rules/structured-data.md +75 -0
- package/skills/seo-supervisor/rules/trust-security.md +25 -0
- package/skills/seo-supervisor/rules/urls.md +46 -0
- package/skills/seo-supervisor/scripts/content-scan.mjs +173 -0
- package/skills/seo-supervisor/scripts/fonts/OFL-BricolageGrotesque.txt +93 -0
- package/skills/seo-supervisor/scripts/fonts/OFL-Geist.txt +93 -0
- package/skills/seo-supervisor/scripts/fonts/OFL-GeistMono.txt +93 -0
- package/skills/seo-supervisor/scripts/fonts/bricolage-grotesque.woff2 +0 -0
- package/skills/seo-supervisor/scripts/fonts/geist-mono.woff2 +0 -0
- package/skills/seo-supervisor/scripts/fonts/geist.woff2 +0 -0
- package/skills/seo-supervisor/scripts/render-report.mjs +706 -0
- package/skills/seo-supervisor/scripts/report-plan.mjs +162 -0
- package/skills/seo-supervisor/scripts/seo-crawl.mjs +703 -0
- package/skills/seo-supervisor/site-types/content.md +22 -0
- package/skills/seo-supervisor/site-types/ecommerce.md +27 -0
- package/skills/seo-supervisor/site-types/local-business.md +28 -0
- package/skills/seo-supervisor/site-types/services.md +22 -0
- package/skills/seo-supervisor/site-types/tools.md +127 -0
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "seo-supervisor",
|
|
3
|
+
"description": "SEO Supervisor: SEO audit, safe fixes, PR review and a launch gate for Claude Code.",
|
|
4
|
+
"owner": {
|
|
5
|
+
"name": "Zaman Khan",
|
|
6
|
+
"url": "https://github.com/m-zaman-khan"
|
|
7
|
+
},
|
|
8
|
+
"plugins": [
|
|
9
|
+
{
|
|
10
|
+
"name": "seo-supervisor",
|
|
11
|
+
"source": "./",
|
|
12
|
+
"description": "SEO audit, safe fixes, PR review and a launch gate. Crawls any site, scores it 0-100 and writes a polished offline report.",
|
|
13
|
+
"category": "development"
|
|
14
|
+
}
|
|
15
|
+
]
|
|
16
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "seo-supervisor",
|
|
3
|
+
"displayName": "SEO Supervisor",
|
|
4
|
+
"version": "1.2.0",
|
|
5
|
+
"description": "SEO audit, safe fixes, PR review and a launch gate. Crawls any site, scores it 0-100 and writes a polished offline report.",
|
|
6
|
+
"author": {
|
|
7
|
+
"name": "Zaman Khan",
|
|
8
|
+
"url": "https://github.com/m-zaman-khan"
|
|
9
|
+
},
|
|
10
|
+
"homepage": "https://github.com/m-zaman-khan/seo-supervisor#readme",
|
|
11
|
+
"repository": "https://github.com/m-zaman-khan/seo-supervisor",
|
|
12
|
+
"license": "MIT",
|
|
13
|
+
"keywords": ["seo", "technical-seo", "seo-audit", "crawler", "structured-data", "core-web-vitals", "ai-search", "nextjs"]
|
|
14
|
+
}
|
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## 1.2.0 (2026-11-18)
|
|
4
|
+
|
|
5
|
+
- **`/seo-setup` now takes a site from zero to fully set up in one go.** After building the SEO foundation, it also fixes the audit's other code findings (forms, results output, rendering, speed, headers). Fix mode's usual rules apply: fixed at the root, re-checked, and anything that needs the owner is left as Needs you.
|
|
6
|
+
- **The fixes are shown before you approve.** The plan lists them in a new `plan.alsoFixes` field, and the Plan tab shows them as links to the findings, so approving the plan approves those fixes too.
|
|
7
|
+
|
|
8
|
+
## 1.1.0 (2026-11-18)
|
|
9
|
+
|
|
10
|
+
- **New `/seo-setup` command** for sites with no SEO yet. It works out what the site is from its own pages, proposes a full SEO plan, stops for approval, builds the technical foundation, drafts copy for the owner to approve, and proves the result with an audit. Re-running it continues from where it stopped. The rules are in `skills/seo-supervisor/planning.md`.
|
|
11
|
+
- **A Plan tab in the report** whenever the audit JSON has a `plan`:
|
|
12
|
+
- progress, counts by status, a "Needs your yes" list, the site structure as a tree, and a filterable page table with templates for large page sets
|
|
13
|
+
- the report opens on it while a plan waits for approval
|
|
14
|
+
- the plan also appears in the Markdown twin
|
|
15
|
+
|
|
16
|
+
Reports without a plan look exactly as before.
|
|
17
|
+
- **The crawler** now records each page's meta description and H1 text, so planned pages can be verified after they're built.
|
|
18
|
+
- **Audits** suggest `/seo-setup` when a site has almost no SEO in place.
|
|
19
|
+
- **The installer asks where and for which agents.** `npx seo-supervisor` asks whether to install for you or for this project, then shows a checklist of 20 coding agents (Claude Code, Codex, Cursor, Windsurf, Gemini CLI, GitHub Copilot, OpenCode, Grok and more). The ones on your machine are found and ticked. Each agent gets the skill in its own folder, and Claude Code also gets the commands. `--agent`, `--scope` and `--yes` skip the questions. The old `--agents` flag now adds the shared `.agents` folder in whichever scope you chose.
|
|
20
|
+
|
|
21
|
+
## 1.0.0 (2026-11-18)
|
|
22
|
+
|
|
23
|
+
First public release.
|
|
24
|
+
|
|
25
|
+
- **Modes:** `/seo-audit` (read-only audit and report), `/seo-fix` (fixes with re-checks), `/seo-review` (SEO regressions in a diff or PR) and `/seo-launch` (pass/fail gate plus launch-day steps).
|
|
26
|
+
- **Rules:** 149 rules across crawling and indexing, URLs and canonicals, rendering, metadata, content, structured data, sitemaps and robots, internal linking, performance, trust and security, AI search, media and launch monitoring. There are extra rules for tools, local business, content, services and e-commerce sites, and guides for Next.js, Rails and SPAs. Facts were checked on 16–17 Nov 2026.
|
|
27
|
+
- **Crawler:** zero-dependency, run against a local production build. It covers status codes, canonicals, noindex, titles, headings, JSON-LD, sitemaps, robots.txt, orphans, soft 404s, near-duplicates, redirect chains, security headers and banned or unconfirmed claims.
|
|
28
|
+
- **Content scanner:** finds templated copy, reused FAQs, missing fields and unpublished items in JSON, CSV or Markdown content before it becomes pages.
|
|
29
|
+
- **Report:** one offline HTML file, dark by default with a light theme switch. It shows a 0–100 health score with area scores, "what's moving your score", the score fixing the blockers unlocks, and "Needs you" labels on owner-only items. It has tabs for findings, decisions, changes, passed rules and limits, and comes with a full Markdown twin.
|
|
30
|
+
- **Safety:** an audit never edits anything. Fix mode never edits CMS content, never hides, removes or noindexes pages, and never changes production indexing without the owner's go-ahead.
|
|
31
|
+
- **Install:** as a Claude Code plugin, through `npx seo-supervisor`, or by copying the folder.
|
package/LICENSE
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Zaman Khan
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
22
|
+
|
|
23
|
+
The fonts in skills/seo-supervisor/scripts/fonts/ (Geist, Geist Mono and
|
|
24
|
+
Bricolage Grotesque) are licensed separately under the SIL Open Font License
|
|
25
|
+
1.1; their licence files are in that folder.
|
package/README.md
CHANGED
|
@@ -1,3 +1,198 @@
|
|
|
1
|
-
|
|
1
|
+
<h1 align="center">SEO Supervisor</h1>
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
<p align="center">
|
|
4
|
+
<b>Audits, fixes and guards your site's SEO from inside your coding agent, and never touches your content without asking.</b>
|
|
5
|
+
</p>
|
|
6
|
+
|
|
7
|
+
<p align="center">
|
|
8
|
+
<a href="https://github.com/m-zaman-khan/seo-supervisor/actions/workflows/ci.yml"><img alt="Tests" src="https://github.com/m-zaman-khan/seo-supervisor/actions/workflows/ci.yml/badge.svg"></a>
|
|
9
|
+
<a href="https://www.npmjs.com/package/seo-supervisor"><img alt="npm" src="https://img.shields.io/npm/v/seo-supervisor?color=2459c9"></a>
|
|
10
|
+
<a href="LICENSE"><img alt="MIT license" src="https://img.shields.io/badge/license-MIT-238a52"></a>
|
|
11
|
+
<img alt="Node 20+" src="https://img.shields.io/badge/node-20%2B-3a4757">
|
|
12
|
+
<img alt="Zero dependencies" src="https://img.shields.io/badge/dependencies-0-3a4757">
|
|
13
|
+
</p>
|
|
14
|
+
|
|
15
|
+
<p align="center">
|
|
16
|
+
<a href="https://m-zaman-khan.github.io/seo-supervisor/"><b>See a live sample report →</b></a>
|
|
17
|
+
</p>
|
|
18
|
+
|
|
19
|
+
<p align="center">
|
|
20
|
+
<img src="docs/images/report-overview-dark.png" alt="SEO Supervisor report: a 49/100 health score held down by two blockers, the 90 the site reaches once they are fixed, and the areas losing the most points" width="900">
|
|
21
|
+
</p>
|
|
22
|
+
|
|
23
|
+
SEO Supervisor is a skill for Claude Code and other coding agents. It crawls your site the way Google does and checks it against 149 current SEO rules. Then it gives you one clear report: a 0–100 score, every problem with its evidence, and what to do first.
|
|
24
|
+
|
|
25
|
+
Then it fixes what can safely be fixed in code, re-checks each fix, and tells you plainly what only you can fix.
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
npx seo-supervisor # then, in Claude Code: /seo-audit
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
## Contents
|
|
32
|
+
|
|
33
|
+
- [Install](#install)
|
|
34
|
+
- [Commands](#commands)
|
|
35
|
+
- [Starting from zero](#starting-from-zero)
|
|
36
|
+
- [The report](#the-report)
|
|
37
|
+
- [What it checks](#what-it-checks)
|
|
38
|
+
- [Safe by default](#safe-by-default)
|
|
39
|
+
- [Tested](#tested)
|
|
40
|
+
- [FAQ](#faq)
|
|
41
|
+
|
|
42
|
+
## Install
|
|
43
|
+
|
|
44
|
+
Pick **one** of these per machine.
|
|
45
|
+
|
|
46
|
+
**Claude Code plugin**
|
|
47
|
+
|
|
48
|
+
```text
|
|
49
|
+
/plugin marketplace add m-zaman-khan/seo-supervisor
|
|
50
|
+
/plugin install seo-supervisor@seo-supervisor
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
Claude Code puts the plugin name in front of plugin commands, so they appear as `/seo-supervisor:seo-audit` and so on.
|
|
54
|
+
|
|
55
|
+
**One command with npx** (any agent)
|
|
56
|
+
|
|
57
|
+
```bash
|
|
58
|
+
npx seo-supervisor
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
It asks two things:
|
|
62
|
+
|
|
63
|
+
1. **Install for:** you, in every project, or this project only (to commit for your team).
|
|
64
|
+
2. **Which agents:** a checklist of 20 coding agents, including Claude Code, Codex, Cursor, Windsurf, Gemini CLI, GitHub Copilot, OpenCode, Grok, Cline and Kiro. The agents installed on your machine are found and ticked for you.
|
|
65
|
+
|
|
66
|
+
```text
|
|
67
|
+
? Which agents? (space to select, a for all, enter to confirm)
|
|
68
|
+
❯ ◉ Claude Code found · ~/.claude/skills
|
|
69
|
+
◉ Codex found · ~/.agents/skills
|
|
70
|
+
◉ Cursor found · ~/.cursor/skills
|
|
71
|
+
◯ Windsurf ~/.codeium/windsurf/skills
|
|
72
|
+
…
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
The skill goes into each agent's own skills folder, and agents that share a folder get one copy. Claude Code also gets the `/seo-audit`, `/seo-fix`, `/seo-review`, `/seo-launch` and `/seo-setup` commands. In other agents, ask them to "audit the SEO of this site". The installer only ever replaces or removes its own files.
|
|
76
|
+
|
|
77
|
+
For scripts and CI, use flags to skip the questions:
|
|
78
|
+
|
|
79
|
+
```bash
|
|
80
|
+
npx seo-supervisor --agent claude-code,cursor --scope project # those agents, in this project
|
|
81
|
+
npx seo-supervisor --yes # the agents it finds, for you
|
|
82
|
+
npx seo-supervisor --uninstall # remove it again
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
`npx seo-supervisor --help` lists every agent key. Using an agent that isn't on the list? `npx skills add m-zaman-khan/seo-supervisor` covers 40+ more.
|
|
86
|
+
|
|
87
|
+
Needs Node 20 or newer. There's nothing else to install, and no API keys.
|
|
88
|
+
|
|
89
|
+
## Commands
|
|
90
|
+
|
|
91
|
+
| Command | What it does | Edits anything? |
|
|
92
|
+
| --- | --- | --- |
|
|
93
|
+
| `/seo-audit [url]` | Crawls a production build of your site, inspects the code and the content data, and writes the report to `seo-audit/` | Never |
|
|
94
|
+
| `/seo-fix [F-001 F-004]` | Fixes the named findings, or all open ones, at the root (the shared metadata helper, sitemap or layout), re-checks each fix and updates the report | Only what you approved |
|
|
95
|
+
| `/seo-review [PR or branch]` | Finds the SEO problems a change introduces: a lost canonical, an accidental noindex, a dropped H1, made-up ratings… | Never |
|
|
96
|
+
| `/seo-launch [url]` | A pass/fail gate before you switch indexing on, plus the launch-day checklist | Never |
|
|
97
|
+
| `/seo-setup [url]` | For a site with **no SEO yet**: proposes a full SEO plan, then builds it once you approve | Only after you approve the plan |
|
|
98
|
+
|
|
99
|
+
## Starting from zero
|
|
100
|
+
|
|
101
|
+
New site, or an old app that never had any SEO? Run `/seo-setup`. It plans first instead of handing you 60 problems:
|
|
102
|
+
|
|
103
|
+
1. **It works out what your site is** from your own pages and routes. A landing page, a SaaS app, a blog, a shop, a portfolio and a local business each get a different plan, and none of them get pages they don't need.
|
|
104
|
+
2. **It proposes the plan on a Plan tab.** That covers every page's title, description, H1, schema, target search phrase and links. Big sets like posts or products get one template instead of thousands of rows. New pages are proposed only where your site shows a gap, such as a missing `/docs` parent or a privacy page your forms need.
|
|
105
|
+
3. **You approve it.** Risky changes are listed separately under **Needs your yes**, and each one needs its own yes: a domain change, robots, AI crawlers, anything in your CMS.
|
|
106
|
+
4. **It builds the foundation and fixes the rest.** First the metadata helper, sitemap, robots, schema, headings, breadcrumbs and internal links. Then the other code problems the audit found, such as forms, results output, rendering and speed. Those are listed in the plan, so you approve them too. It drafts any copy you still need to approve, with visible placeholders instead of invented facts.
|
|
107
|
+
5. **It proves it with an audit:** the score before and after, and what's still waiting for you.
|
|
108
|
+
|
|
109
|
+
Run `/seo-setup` again at any point and it continues where it stopped.
|
|
110
|
+
|
|
111
|
+
<p align="center">
|
|
112
|
+
<img src="docs/images/report-plan-dark.png" alt="The Plan tab: 83% of the agent's work done, the site structure as a tree, and every planned page with its target phrase and status" width="900">
|
|
113
|
+
</p>
|
|
114
|
+
|
|
115
|
+
## The report
|
|
116
|
+
|
|
117
|
+
One HTML file that works offline. It opens in dark mode and has a light-mode switch, and it comes with a Markdown twin that holds every detail.
|
|
118
|
+
|
|
119
|
+
- **A 0–100 health score with area scores,** and the points each area loses, so you know where to start.
|
|
120
|
+
- **"Fix the blockers and the score rises to 90."** A blocker caps the score, and the report shows what fixing it unlocks.
|
|
121
|
+
- **"Needs you."** Anything only the owner can do (content, CMS edits, business decisions) is labelled, so it's clear what the agent will and won't change.
|
|
122
|
+
- **Tabs for Findings, Decisions, Changes, Passed and Limits.** Every finding says what's wrong, why it matters, how to fix it, and gives the evidence: URLs, files and line numbers.
|
|
123
|
+
|
|
124
|
+
<p align="center">
|
|
125
|
+
<img src="docs/images/report-overview-light.png" alt="The same report in light mode" width="49%">
|
|
126
|
+
<img src="docs/images/report-finding-dark.png" alt="An expanded finding with what's wrong, why it matters, how to fix and the evidence" width="49%">
|
|
127
|
+
</p>
|
|
128
|
+
|
|
129
|
+
## What it checks
|
|
130
|
+
|
|
131
|
+
**107 core rules**, up to date as of November 2026:
|
|
132
|
+
|
|
133
|
+
| Area | Rules | Examples |
|
|
134
|
+
| --- | ---: | --- |
|
|
135
|
+
| Crawling & indexing | 12 | robots.txt, noindex, soft 404s, status codes, redirect chains, AI crawlers |
|
|
136
|
+
| URLs & canonicals | 9 | one URL per page, trailing slashes, canonicals on the right host, old URLs with 301s |
|
|
137
|
+
| Rendering | 8 | content in the server HTML, not only in JavaScript; links crawlers can follow |
|
|
138
|
+
| Metadata | 8 | titles, descriptions, Open Graph, robots meta |
|
|
139
|
+
| Headings & content | 12 | one H1, heading order, thin or templated pages, placeholder text, banned claims |
|
|
140
|
+
| Structured data | 8 | valid JSON-LD that matches the page; which rich results still exist |
|
|
141
|
+
| Sitemaps & robots | 8 | sitemap host and status, lastmod, llms.txt (and why Google ignores it) |
|
|
142
|
+
| Internal linking | 9 | orphans, click depth, hubs and circular linking, anchor text |
|
|
143
|
+
| Performance | 7 | Core Web Vitals (LCP, INP, CLS), the first image, image sizes |
|
|
144
|
+
| Trust & security | 6 | security headers, security.txt, who's behind the site |
|
|
145
|
+
| AI search | 6 | being cited in ChatGPT, Perplexity and Google's AI answers, and what doesn't work |
|
|
146
|
+
| Media | 6 | alt text, file names, video and image discovery |
|
|
147
|
+
| Launch & monitoring | 8 | the indexing switch, Search Console, post-deploy checks |
|
|
148
|
+
|
|
149
|
+
**Plus 42 rules for your type of site:**
|
|
150
|
+
- interactive tools
|
|
151
|
+
- local businesses
|
|
152
|
+
- blogs and content sites
|
|
153
|
+
- service businesses
|
|
154
|
+
- e-commerce
|
|
155
|
+
|
|
156
|
+
There are also framework guides for **Next.js**, **Rails** and **React/Vite SPAs**. Other stacks get the rules directly.
|
|
157
|
+
|
|
158
|
+
## Safe by default
|
|
159
|
+
|
|
160
|
+
- **An audit never edits anything.** It reads your code, crawls a local build and writes only the report.
|
|
161
|
+
- **Fixes never touch your content.** Without your go-ahead, it won't:
|
|
162
|
+
- edit or publish content in your CMS (Sanity, WordPress, Contentful, Shopify…)
|
|
163
|
+
- hide, remove or noindex pages
|
|
164
|
+
- change robots or indexing on your live site
|
|
165
|
+
|
|
166
|
+
When you do say go, CMS changes are saved as drafts and you see the before and after first.
|
|
167
|
+
- **Every finding has evidence, and nothing is "fixed" until a re-check passes.**
|
|
168
|
+
- **It never invents** reviews, ratings, prices, statistics or local proof, in copy or in schema.
|
|
169
|
+
- **Nothing leaves your machine.** There's no account, no API key and no telemetry. The crawler only sends GET requests, and crawls production gently, if at all.
|
|
170
|
+
|
|
171
|
+
## Tested
|
|
172
|
+
|
|
173
|
+
- **On every change, CI runs the whole toolchain on Node 20, 22 and 24.** It crawls a small fixture site that has one planted problem per checked rule and scans templated sample content. It also renders the report and checks it is fully offline, and installs and uninstalls the skill in a scratch home folder.
|
|
174
|
+
- **Field-tested on a real Next.js + Sanity site before release:**
|
|
175
|
+
- `/seo-review` caught **6 of 6** SEO mistakes planted in a pull request. 2 of those had no test in the project, so they would have shipped. It correctly ignored a harmless change.
|
|
176
|
+
- `/seo-fix` fixed 8 findings. The project's own test suite stayed green, and a re-crawl confirmed each fix.
|
|
177
|
+
|
|
178
|
+
## FAQ
|
|
179
|
+
|
|
180
|
+
**Will it get my site to #1?**
|
|
181
|
+
No tool can promise rankings. SEO Supervisor finds and fixes what stops search engines from crawling, understanding and trusting your pages, and it tells you honestly what it can't fix for you.
|
|
182
|
+
|
|
183
|
+
**Does it work on a site that isn't live yet?**
|
|
184
|
+
Yes, that's the best time. It crawls a local production build. `/seo-launch` then tells you when it's safe to switch indexing on.
|
|
185
|
+
|
|
186
|
+
**Which frameworks?**
|
|
187
|
+
Any site it can crawl. Next.js, Rails and SPAs get framework-specific guidance and fixes.
|
|
188
|
+
|
|
189
|
+
**How is the score calculated?**
|
|
190
|
+
Every checked rule is worth 10 points. Open problems earn fewer points, the worse they are. Each open blocker caps the total at 59, 49, 39 and so on. The full model is in [`report-format.md`](skills/seo-supervisor/report-format.md).
|
|
191
|
+
|
|
192
|
+
## Contributing
|
|
193
|
+
|
|
194
|
+
Search changes every month, so rule updates with a primary source are the most useful contribution. See [CONTRIBUTING.md](CONTRIBUTING.md). Run the tests with `npm test`.
|
|
195
|
+
|
|
196
|
+
## License
|
|
197
|
+
|
|
198
|
+
[MIT](LICENSE). The bundled report fonts (Geist, Geist Mono and Bricolage Grotesque) are under the SIL Open Font License.
|
package/bin/agents.mjs
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
// Where each coding agent reads skills from, and how to tell it's installed.
|
|
2
|
+
// Paths follow the open skills CLI (github.com/vercel-labs/skills, src/agents.ts and docs/agents.md, read 18 Nov 2026).
|
|
3
|
+
import { existsSync } from "node:fs";
|
|
4
|
+
import { join } from "node:path";
|
|
5
|
+
|
|
6
|
+
const config = c => c.env.XDG_CONFIG_HOME || join(c.home, ".config");
|
|
7
|
+
const claudeHome = c => c.env.CLAUDE_CONFIG_DIR || join(c.home, ".claude");
|
|
8
|
+
const codexHome = c => c.env.CODEX_HOME || join(c.home, ".codex");
|
|
9
|
+
const grokHome = c => c.env.GROK_HOME || join(c.home, ".grok");
|
|
10
|
+
const shared = c => join(c.home, ".agents", "skills"); // read by Codex, Cline, Zed, Warp and others
|
|
11
|
+
|
|
12
|
+
// An agent that keeps everything in ~/<dir>: detected by that folder, skills in <dir>/skills.
|
|
13
|
+
const plain = (key, name, dir) => ({ key, name, detect: c => [join(c.home, dir)], user: c => join(c.home, dir, "skills"), project: `${dir}/skills` });
|
|
14
|
+
|
|
15
|
+
export const AGENTS = [
|
|
16
|
+
{ key: "claude-code", name: "Claude Code", detect: c => [claudeHome(c)], user: c => join(claudeHome(c), "skills"), project: ".claude/skills",
|
|
17
|
+
commands: { user: c => join(claudeHome(c), "commands"), project: ".claude/commands" } },
|
|
18
|
+
{ key: "codex", name: "Codex", detect: c => [codexHome(c)], user: shared, project: ".agents/skills" },
|
|
19
|
+
{ key: "cursor", name: "Cursor", detect: c => [join(c.home, ".cursor")], user: c => join(c.home, ".cursor", "skills"), project: ".agents/skills" },
|
|
20
|
+
{ key: "windsurf", name: "Windsurf", detect: c => [join(c.home, ".codeium", "windsurf")], user: c => join(c.home, ".codeium", "windsurf", "skills"), project: ".windsurf/skills" },
|
|
21
|
+
{ key: "gemini-cli", name: "Gemini CLI", detect: c => [join(c.home, ".gemini")], user: c => join(c.home, ".gemini", "skills"), project: ".agents/skills" },
|
|
22
|
+
{ key: "github-copilot", name: "GitHub Copilot", detect: c => [join(c.home, ".copilot")], user: c => join(c.home, ".copilot", "skills"), project: ".agents/skills" },
|
|
23
|
+
{ key: "opencode", name: "OpenCode", detect: c => [join(config(c), "opencode")], user: c => join(config(c), "opencode", "skills"), project: ".agents/skills" },
|
|
24
|
+
{ key: "grok", name: "Grok Build", detect: c => [grokHome(c)], user: c => join(grokHome(c), "skills"), project: ".grok/skills" },
|
|
25
|
+
{ key: "cline", name: "Cline", detect: c => [join(c.home, ".cline")], user: shared, project: ".agents/skills" },
|
|
26
|
+
plain("kiro-cli", "Kiro CLI", ".kiro"),
|
|
27
|
+
plain("roo", "Roo Code", ".roo"),
|
|
28
|
+
plain("continue", "Continue", ".continue"),
|
|
29
|
+
{ key: "amp", name: "Amp", detect: c => [join(config(c), "amp")], user: c => join(config(c), "agents", "skills"), project: ".agents/skills" },
|
|
30
|
+
{ key: "goose", name: "Goose", detect: c => [join(config(c), "goose")], user: c => join(config(c), "goose", "skills"), project: ".goose/skills" },
|
|
31
|
+
plain("junie", "Junie", ".junie"),
|
|
32
|
+
plain("qwen-code", "Qwen Code", ".qwen"),
|
|
33
|
+
plain("trae", "Trae", ".trae"),
|
|
34
|
+
plain("augment", "Augment", ".augment"),
|
|
35
|
+
{ key: "zed", name: "Zed", detect: c => [join(config(c), "zed"), ...(c.env.APPDATA ? [join(c.env.APPDATA, "Zed")] : [])], user: shared, project: ".agents/skills" },
|
|
36
|
+
{ key: "warp", name: "Warp", detect: c => [join(c.home, ".warp")], user: shared, project: ".agents/skills" },
|
|
37
|
+
{ key: "other", name: "Other agents (shared .agents folder)", detect: () => [], user: shared, project: ".agents/skills" },
|
|
38
|
+
];
|
|
39
|
+
|
|
40
|
+
export const agentByKey = key => AGENTS.find(a => a.key === key);
|
|
41
|
+
|
|
42
|
+
/** Keys of the agents whose home folder exists, in table order. */
|
|
43
|
+
export function detectAgents(c, exists = existsSync) {
|
|
44
|
+
return AGENTS.filter(a => a.detect(c).some(p => exists(p))).map(a => a.key);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
const resolve = (where, c) => (typeof where === "function" ? where(c) : join(c.cwd, ...where.split("/")));
|
|
48
|
+
|
|
49
|
+
/** One install target per skills folder: agents that share a folder get one copy. Claude Code's target also carries its commands folder. */
|
|
50
|
+
export function targetsFor(keys, scope, c) {
|
|
51
|
+
const byDir = new Map();
|
|
52
|
+
for (const key of keys) {
|
|
53
|
+
const a = agentByKey(key);
|
|
54
|
+
const skills = resolve(scope === "project" ? a.project : a.user, c);
|
|
55
|
+
const t = byDir.get(skills) || byDir.set(skills, { skills, agents: [] }).get(skills);
|
|
56
|
+
t.agents.push(a.name);
|
|
57
|
+
if (a.commands) t.commands = resolve(scope === "project" ? a.commands.project : a.commands.user, c);
|
|
58
|
+
}
|
|
59
|
+
return [...byDir.values()];
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/** Every skills folder any agent could use in this scope (for uninstall). */
|
|
63
|
+
export function allTargets(scope, c) {
|
|
64
|
+
return targetsFor(AGENTS.map(a => a.key), scope, c);
|
|
65
|
+
}
|
package/bin/prompt.mjs
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
// Tiny keyboard prompts with no dependencies: a single choice and a checklist.
|
|
2
|
+
// They read keypresses from any stream, so tests can drive them with a PassThrough.
|
|
3
|
+
import { emitKeypressEvents } from "node:readline";
|
|
4
|
+
|
|
5
|
+
const plainGlyphs = process.platform === "win32" && !process.env.WT_SESSION && !process.env.TERM_PROGRAM;
|
|
6
|
+
const G = plainGlyphs ? { ptr: ">", on: "(*)", off: "( )", yes: "[x]", no: "[ ]" } : { ptr: "❯", on: "●", off: "○", yes: "◉", no: "◯" };
|
|
7
|
+
|
|
8
|
+
function ask({ input, output, render, onKey }) {
|
|
9
|
+
const paint = (code, s) => (output.isTTY && !process.env.NO_COLOR ? `\x1b[${code}m${s}\x1b[0m` : s);
|
|
10
|
+
return new Promise((resolve, reject) => {
|
|
11
|
+
emitKeypressEvents(input);
|
|
12
|
+
const raw = Boolean(input.isTTY && input.setRawMode);
|
|
13
|
+
if (raw) input.setRawMode(true);
|
|
14
|
+
input.resume();
|
|
15
|
+
let lines = 0;
|
|
16
|
+
const draw = note => {
|
|
17
|
+
const text = render(paint) + (note ? `\n${paint(33, note)}` : "");
|
|
18
|
+
if (lines) output.write(`\x1b[${lines}F\x1b[J`);
|
|
19
|
+
output.write(text + "\n");
|
|
20
|
+
lines = text.split("\n").length;
|
|
21
|
+
};
|
|
22
|
+
const finish = (settle, value) => {
|
|
23
|
+
input.off("keypress", onPress);
|
|
24
|
+
if (raw) input.setRawMode(false);
|
|
25
|
+
input.pause();
|
|
26
|
+
output.write("\x1b[?25h");
|
|
27
|
+
settle(value);
|
|
28
|
+
};
|
|
29
|
+
const onPress = (str, key = {}) => {
|
|
30
|
+
if (key.ctrl && key.name === "c") return finish(reject, Object.assign(new Error("Cancelled"), { code: "CANCELLED" }));
|
|
31
|
+
const r = onKey(str, key) || {};
|
|
32
|
+
draw(r.note);
|
|
33
|
+
if ("value" in r) finish(resolve, r.value);
|
|
34
|
+
};
|
|
35
|
+
output.write("\x1b[?25l");
|
|
36
|
+
draw();
|
|
37
|
+
input.on("keypress", onPress);
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/** One choice. items: [{ value, label, hint? }]. Resolves to the chosen value. */
|
|
42
|
+
export function select({ message, items, initial = 0, input = process.stdin, output = process.stdout }) {
|
|
43
|
+
let i = initial;
|
|
44
|
+
return ask({
|
|
45
|
+
input, output,
|
|
46
|
+
render: paint => [`${paint(36, "?")} ${paint(1, message)}`, ...items.map((it, n) => `${n === i ? paint(36, G.ptr) : " "} ${n === i ? paint(36, G.on) : G.off} ${it.label}${it.hint ? ` ${paint(2, it.hint)}` : ""}`)].join("\n"),
|
|
47
|
+
onKey: (s, k) => {
|
|
48
|
+
if (k.name === "up" || k.name === "k") i = (i - 1 + items.length) % items.length;
|
|
49
|
+
else if (k.name === "down" || k.name === "j") i = (i + 1) % items.length;
|
|
50
|
+
else if (k.name === "return") return { value: items[i].value };
|
|
51
|
+
},
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/** A checklist. Space toggles, a toggles all, enter confirms (at least one). Resolves to the chosen values in list order. */
|
|
56
|
+
export function multiSelect({ message, items, selected = [], input = process.stdin, output = process.stdout }) {
|
|
57
|
+
let i = 0;
|
|
58
|
+
const on = new Set(selected);
|
|
59
|
+
return ask({
|
|
60
|
+
input, output,
|
|
61
|
+
render: paint => [
|
|
62
|
+
`${paint(36, "?")} ${paint(1, message)} ${paint(2, "(space to select, a for all, enter to confirm)")}`,
|
|
63
|
+
...items.map((it, n) => `${n === i ? paint(36, G.ptr) : " "} ${on.has(it.value) ? paint(32, G.yes) : G.no} ${it.label}${it.hint ? ` ${paint(2, it.hint)}` : ""}`),
|
|
64
|
+
].join("\n"),
|
|
65
|
+
onKey: (s, k) => {
|
|
66
|
+
if (k.name === "up" || k.name === "k") i = (i - 1 + items.length) % items.length;
|
|
67
|
+
else if (k.name === "down" || k.name === "j") i = (i + 1) % items.length;
|
|
68
|
+
else if (k.name === "space") on.has(items[i].value) ? on.delete(items[i].value) : on.add(items[i].value);
|
|
69
|
+
else if (k.name === "a") { const all = on.size === items.length; on.clear(); if (!all) items.forEach(it => on.add(it.value)); }
|
|
70
|
+
else if (k.name === "return") {
|
|
71
|
+
if (!on.size) return { note: "Select at least one with space." };
|
|
72
|
+
return { value: items.filter(it => on.has(it.value)).map(it => it.value) };
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
});
|
|
76
|
+
}
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
// Installs the SEO Supervisor skill into the coding agents you use, plus its /seo-* commands for Claude Code. Zero dependencies.
|
|
3
|
+
// npx seo-supervisor asks where to install and for which agents (the ones it finds are pre-selected)
|
|
4
|
+
// npx seo-supervisor --agent cursor,codex those agents, no questions (see --help for every key)
|
|
5
|
+
// npx seo-supervisor --scope project into this project instead of your user folders (--project works too)
|
|
6
|
+
// npx seo-supervisor --yes no questions: the agents it finds, for you in every project
|
|
7
|
+
// npx seo-supervisor --uninstall remove it again
|
|
8
|
+
import { cpSync, existsSync, mkdirSync, readFileSync, readdirSync, rmSync } from "node:fs";
|
|
9
|
+
import { homedir } from "node:os";
|
|
10
|
+
import { dirname, join, resolve } from "node:path";
|
|
11
|
+
import { fileURLToPath } from "node:url";
|
|
12
|
+
import { AGENTS, agentByKey, allTargets, detectAgents, targetsFor } from "./agents.mjs";
|
|
13
|
+
import { multiSelect, select } from "./prompt.mjs";
|
|
14
|
+
|
|
15
|
+
const NAME = "seo-supervisor";
|
|
16
|
+
const ROOT = resolve(dirname(fileURLToPath(import.meta.url)), "..");
|
|
17
|
+
const { version } = JSON.parse(readFileSync(join(ROOT, "package.json"), "utf8"));
|
|
18
|
+
|
|
19
|
+
const HELP = `SEO Supervisor ${version}
|
|
20
|
+
|
|
21
|
+
Usage: npx seo-supervisor [options]
|
|
22
|
+
|
|
23
|
+
With no options it asks where to install and for which agents.
|
|
24
|
+
|
|
25
|
+
--agent <keys> Comma-separated agents, or "all". No questions about agents.
|
|
26
|
+
--scope <scope> "user" (you, in every project) or "project" (this folder, to commit for your team)
|
|
27
|
+
--project Same as --scope project
|
|
28
|
+
--yes, -y No questions: the agents it finds (Claude Code if none), user scope
|
|
29
|
+
--uninstall Remove what this installer added, in the chosen scope (user by default)
|
|
30
|
+
--force Replace a skill folder or command file that isn't SEO Supervisor's
|
|
31
|
+
--version Print the version
|
|
32
|
+
|
|
33
|
+
Agent keys: ${AGENTS.map(a => a.key).join(", ")}
|
|
34
|
+
`;
|
|
35
|
+
|
|
36
|
+
// ---- arguments ----
|
|
37
|
+
const opts = {};
|
|
38
|
+
const argv = process.argv.slice(2);
|
|
39
|
+
for (let n = 0; n < argv.length; n++) {
|
|
40
|
+
const a = argv[n];
|
|
41
|
+
if (a === "--agent" || a === "--scope") { opts[a.slice(2)] = argv[++n]; continue; }
|
|
42
|
+
const flag = { "--project": "project", "--agents": "agents", "--uninstall": "uninstall", "--force": "force", "--yes": "yes", "-y": "yes", "--help": "help", "-h": "help", "--version": "version", "-v": "version" }[a];
|
|
43
|
+
if (!flag) { console.error(`Unknown option: ${a}\n\n${HELP}`); process.exit(2); }
|
|
44
|
+
opts[flag] = true;
|
|
45
|
+
}
|
|
46
|
+
if (opts.help) { console.log(HELP); process.exit(0); }
|
|
47
|
+
if (opts.version) { console.log(version); process.exit(0); }
|
|
48
|
+
|
|
49
|
+
const c = { home: homedir(), cwd: process.cwd(), env: process.env };
|
|
50
|
+
const show = p => (p.startsWith(c.home) ? "~" + p.slice(c.home.length) : p).replace(/\\/g, "/");
|
|
51
|
+
let scope = opts.scope || (opts.project ? "project" : null);
|
|
52
|
+
if (scope && !["user", "project"].includes(scope)) { console.error(`Unknown scope: ${scope}. Use "user" or "project".`); process.exit(2); }
|
|
53
|
+
|
|
54
|
+
let keys = null;
|
|
55
|
+
if (opts.agent) {
|
|
56
|
+
keys = opts.agent === "all" ? AGENTS.map(a => a.key) : opts.agent.split(",").map(s => s.trim()).filter(Boolean);
|
|
57
|
+
const bad = keys.find(k => !agentByKey(k));
|
|
58
|
+
if (bad) { console.error(`Unknown agent: ${bad}\nAgent keys: ${AGENTS.map(a => a.key).join(", ")}`); process.exit(2); }
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
// ---- what this package owns ----
|
|
62
|
+
const SRC_SKILL = join(ROOT, "skills", NAME);
|
|
63
|
+
const SRC_COMMANDS = join(ROOT, "commands");
|
|
64
|
+
const commandFiles = readdirSync(SRC_COMMANDS).filter(f => f.endsWith(".md"));
|
|
65
|
+
const ownsSkill = dir => { try { return /^name:\s*seo-supervisor\s*$/m.test(readFileSync(join(dir, "SKILL.md"), "utf8")); } catch { return false; } };
|
|
66
|
+
const ownsCommand = file => { try { return readFileSync(file, "utf8").includes(NAME); } catch { return false; } };
|
|
67
|
+
|
|
68
|
+
// ---- uninstall ----
|
|
69
|
+
if (opts.uninstall) {
|
|
70
|
+
scope ||= "user";
|
|
71
|
+
let removed = 0;
|
|
72
|
+
for (const t of allTargets(scope, c)) {
|
|
73
|
+
const dir = join(t.skills, NAME);
|
|
74
|
+
if (ownsSkill(dir)) { rmSync(dir, { recursive: true, force: true }); console.log(`removed ${show(dir)}`); removed++; }
|
|
75
|
+
for (const f of t.commands ? commandFiles : []) {
|
|
76
|
+
const file = join(t.commands, f);
|
|
77
|
+
if (ownsCommand(file)) { rmSync(file); console.log(`removed ${show(file)}`); removed++; }
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
console.log(removed ? "\nSEO Supervisor uninstalled." : `\nNothing to remove in the ${scope} scope.`);
|
|
81
|
+
process.exit(0);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
// ---- questions (only in a real terminal, and only for what flags didn't settle) ----
|
|
85
|
+
const interactive = !opts.yes && process.stdin.isTTY && process.stdout.isTTY && !process.env.CI;
|
|
86
|
+
const detected = detectAgents(c);
|
|
87
|
+
const fallback = detected.length ? detected : ["claude-code"];
|
|
88
|
+
try {
|
|
89
|
+
if (interactive) console.log(`\nSEO Supervisor ${version}\n`);
|
|
90
|
+
if (!scope) {
|
|
91
|
+
scope = interactive
|
|
92
|
+
? await select({ message: "Install for", items: [
|
|
93
|
+
{ value: "user", label: "Me, in every project", hint: "each agent's folder in your home directory" },
|
|
94
|
+
{ value: "project", label: "This project only", hint: `${show(c.cwd)}, to commit for your team` }] })
|
|
95
|
+
: "user";
|
|
96
|
+
}
|
|
97
|
+
if (!keys) {
|
|
98
|
+
if (interactive) {
|
|
99
|
+
const order = [...AGENTS].sort((a, b) => Number(detected.includes(b.key)) - Number(detected.includes(a.key)));
|
|
100
|
+
const where = a => show(targetsFor([a.key], scope, c)[0].skills);
|
|
101
|
+
keys = await multiSelect({ message: "Which agents?", items: order.map(a => ({ value: a.key, label: a.name.padEnd(36), hint: `${detected.includes(a.key) ? "found · " : ""}${where(a)}` })), selected: opts.agents ? [...fallback, "other"] : fallback });
|
|
102
|
+
} else keys = opts.agents ? [...fallback, "other"] : fallback;
|
|
103
|
+
} else if (opts.agents && !keys.includes("other")) keys.push("other");
|
|
104
|
+
} catch (e) {
|
|
105
|
+
if (e.code === "CANCELLED") { console.log("\nCancelled. Nothing was installed."); process.exit(130); }
|
|
106
|
+
throw e;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
// ---- install ----
|
|
110
|
+
let problems = 0;
|
|
111
|
+
const names = [];
|
|
112
|
+
if (interactive) console.log("");
|
|
113
|
+
for (const t of targetsFor(keys, scope, c)) {
|
|
114
|
+
const dir = join(t.skills, NAME);
|
|
115
|
+
if (existsSync(dir) && !ownsSkill(dir) && !opts.force) {
|
|
116
|
+
console.error(`skipped ${show(dir)}: it exists and isn't SEO Supervisor (use --force to replace it)`);
|
|
117
|
+
problems++;
|
|
118
|
+
} else {
|
|
119
|
+
rmSync(dir, { recursive: true, force: true });
|
|
120
|
+
mkdirSync(t.skills, { recursive: true });
|
|
121
|
+
cpSync(SRC_SKILL, dir, { recursive: true });
|
|
122
|
+
console.log(`skill ${show(dir)} (${t.agents.join(", ")})`);
|
|
123
|
+
names.push(...t.agents);
|
|
124
|
+
}
|
|
125
|
+
if (!t.commands) continue;
|
|
126
|
+
mkdirSync(t.commands, { recursive: true });
|
|
127
|
+
const added = [];
|
|
128
|
+
for (const f of commandFiles) {
|
|
129
|
+
const file = join(t.commands, f);
|
|
130
|
+
if (existsSync(file) && !ownsCommand(file) && !opts.force) {
|
|
131
|
+
console.error(`skipped ${show(file)}: a different /${f.slice(0, -3)} command exists (use --force to replace it)`);
|
|
132
|
+
problems++;
|
|
133
|
+
continue;
|
|
134
|
+
}
|
|
135
|
+
cpSync(join(SRC_COMMANDS, f), file);
|
|
136
|
+
added.push("/" + f.slice(0, -3));
|
|
137
|
+
}
|
|
138
|
+
if (added.length) console.log(`commands ${added.join(" ")} (${show(t.commands)})`);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
const usesClaude = keys.includes("claude-code");
|
|
142
|
+
console.log(`\nSEO Supervisor ${version} installed for ${names.join(", ") || "nothing"}.`);
|
|
143
|
+
console.log(usesClaude ? `In Claude Code run /seo-audit (or /seo-setup for a site with no SEO yet).${names.length > 1 ? " In the other agents, ask: \"audit the SEO of this site\"." : ""}` : `Open your agent and ask: "audit the SEO of this site".`);
|
|
144
|
+
process.exit(problems ? 1 : 0);
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Audit this site's SEO (read-only) and write the HTML report
|
|
3
|
+
argument-hint: "[local or staging URL, or notes]"
|
|
4
|
+
---
|
|
5
|
+
Use the **seo-supervisor** skill in **audit** mode for this project. Follow its SKILL.md exactly: change no source, content or config; crawl the site, inspect the code and content data, then write `seo-audit/seo-audit.json` and render it, which produces `seo-audit/seo-audit.html` and `seo-audit/seo-audit.md`. Finish with the health score and band, the verdict, counts by severity, the top three problems, both report paths, and an offer to fix.
|
|
6
|
+
|
|
7
|
+
Extra details from the user (may be empty): $ARGUMENTS
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Fix SEO findings from the last audit (all open ones, or the IDs you give)
|
|
3
|
+
argument-hint: "[finding IDs, e.g. F-001 F-004]"
|
|
4
|
+
---
|
|
5
|
+
Use the **seo-supervisor** skill in **fix** mode for this project.
|
|
6
|
+
|
|
7
|
+
- If `seo-audit/seo-audit.json` doesn't exist yet, run the audit first, show the results, and ask which findings to fix before changing anything.
|
|
8
|
+
- Otherwise fix these findings: $ARGUMENTS. If none are named, fix all open findings, most serious first.
|
|
9
|
+
- Follow the skill's fix rules:
|
|
10
|
+
- Fix the cause in the shared place.
|
|
11
|
+
- Never edit or publish CMS content, and never hide, remove or noindex pages, without the owner's go-ahead in this conversation. Leave those findings open as **Needs you**, and say what fixing them unlocks.
|
|
12
|
+
- Ask before other risky changes: live URLs, robots or noindex in production, anything under "Decisions needed".
|
|
13
|
+
- Re-check every fix, then update and re-render the same report.
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Pre-launch SEO gate: pass or fail, plus the launch-day steps
|
|
3
|
+
argument-hint: "[staging or production URL]"
|
|
4
|
+
---
|
|
5
|
+
Use the **seo-supervisor** skill in **launch** mode for this project (site or URL, may be empty: $ARGUMENTS).
|
|
6
|
+
|
|
7
|
+
Run the audit, then give a clear **PASS** or **FAIL**. It passes only with zero open blockers and zero open high findings in the CRAWL, URL, REND and MAP rules. List what blocks launch, then the launch-day steps from `rules/launch-monitoring.md`. Don't edit anything.
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Review current changes or a PR for SEO problems
|
|
3
|
+
argument-hint: "[PR number, branch or files]"
|
|
4
|
+
---
|
|
5
|
+
Use the **seo-supervisor** skill in **review** mode. Review: $ARGUMENTS. If nothing is named, review the uncommitted changes plus the current branch's changes against its base branch.
|
|
6
|
+
|
|
7
|
+
Report only SEO regressions and new problems those changes introduce, with file:line evidence and how to fix each. Don't edit anything.
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: "Set up SEO from scratch: propose a plan, build it after approval"
|
|
3
|
+
argument-hint: "[url or notes]"
|
|
4
|
+
---
|
|
5
|
+
Use the **seo-supervisor** skill in **setup** mode for this project. Follow its SKILL.md and `planning.md` exactly.
|
|
6
|
+
|
|
7
|
+
- **No plan in `seo-audit/seo-audit.json` yet:**
|
|
8
|
+
1. Work out what the site is, crawl it, and propose the SEO plan.
|
|
9
|
+
2. Render the report. It opens on the Plan tab.
|
|
10
|
+
3. **Stop.** Ask the owner to approve the plan, and to give a yes or no to each "Needs your yes" item.
|
|
11
|
+
|
|
12
|
+
Change nothing outside `seo-audit/` before that.
|
|
13
|
+
- **A plan already exists:** continue from its status, as `planning.md` describes. A proposed plan goes to approval. An approved plan gets built, and then setup fixes the audit's other code findings listed in the plan. A built plan gets the pages whose drafts the owner approved.
|
|
14
|
+
- **Never:**
|
|
15
|
+
- invent facts, prices, reviews or search volumes
|
|
16
|
+
- switch indexing on
|
|
17
|
+
- edit CMS content, or remove, hide or noindex pages, without the owner's go-ahead
|
|
18
|
+
|
|
19
|
+
Extra details from the user (may be empty): $ARGUMENTS
|