Purpose
Run a complete SEO ranking diagnosis and optimization pipeline:
- inspect live SERP competition,
- compare competitor content structure with user content,
- enrich with difficulty/backlink data when API access exists,
- produce concrete rewrite guidance and an optimized Markdown draft.
This is an orchestration skill. It does not replace upstream tools.
Required Installed Skills
brave-search (inspected latest: 1.0.1)
summarize (inspected latest: 1.0.0)
api-gateway (inspected latest: 1.0.29)
markdown-converter (inspected latest: 1.0.0)
Install/update:
npx -y clawhub@latest install brave-search
npx -y clawhub@latest install summarize
npx -y clawhub@latest install api-gateway
npx -y clawhub@latest install markdown-converter
npx -y clawhub@latest update --all
Verify:
npx -y clawhub@latest list
Required Credentials
BRAVE_API_KEY (for brave-search)
MATON_API_KEY (for api-gateway)
- One summarize model key:
OPENAI_API_KEY, or
ANTHROPIC_API_KEY, or
XAI_API_KEY, or
GEMINI_API_KEY
Optional:
FIRECRAWL_API_KEY (for difficult page extraction via summarize)
APIFY_API_TOKEN (for YouTube fallback in summarize)
Preflight:
echo "$BRAVE_API_KEY" | wc -c
echo "$MATON_API_KEY" | wc -c
echo "$OPENAI_API_KEY$ANTHROPIC_API_KEY$XAI_API_KEY$GEMINI_API_KEY" | wc -c
Mandatory behavior:
- Never fail silently on missing keys.
- Always return a
MissingAPIKeys section with missing variables and blocked stages.
- Continue with non-blocked stages and clearly mark output as
Partial when necessary.
Inputs the LM Must Collect First
target_url
target_keyword (example: AI tools)
region_locale (country/language for SERP interpretation)
content_source (URL fetch, pasted text, or file path)
content_type (blog, category page, product page, landing page)
business_goal (traffic, leads, sales)
rewrite_scope (light, moderate, full)
data_provider_preference (semrush, ahrefs, gsc-only, none)
Do not run rewrite before keyword intent and content goal are explicit.
Tool Responsibilities
brave-search
Use for live SERP reconnaissance:
- fetch top results for the target keyword,
- identify top competitors and search intent patterns,
- collect candidate URLs for deeper analysis.
Operational constraints from inspected skill:
- requires
BRAVE_API_KEY
- supports content extraction with
--content
summarize
Use for structured competitor content analysis:
- summarize each top URL,
- extract heading structure (H1-H4), topic coverage, entity frequency,
- estimate content depth and rhetorical style differences.
Operational constraints from inspected skill:
- requires one supported model API key
- can use
--extract-only, --json, and length controls
api-gateway
Use for external SEO data APIs only when active connections exist:
- keyword difficulty,
- backlink domains,
- competitor link intersections,
- search performance enrichments.
Operational constraints from inspected skill:
- requires
MATON_API_KEY
- also requires active OAuth/connection per app (
ctrl.maton.ai connection lifecycle)
- API key alone does not grant third-party data access
Important capability note:
- In the inspected
api-gateway service list, semrush and ahrefs are not listed as native app names.
- Use direct Semrush/Ahrefs integration only if user already has a working gateway connection path for those providers.
- Otherwise fall back to available SEO apps (for example
google-search-console) and manual competitor-link extraction.
markdown-converter
Use to normalize the user's own content into editable Markdown:
- convert input documents/files to Markdown (
uvx markitdown ...),
- preserve headings/lists/tables for deterministic rewriting.
Canonical Causal Signal Chain
Input Stage
- user provides URL + target keyword (+ content source if needed).
SERP Audit Stage (brave-search)
- pull live SERP and identify top 3 competitors.
- detect intent class (informational/commercial/transactional).
Competitor Content Stage (summarize)
- analyze top competitor URLs for:
- heading hierarchy,
- topical breadth and entities,
- use of statistics/evidence,
- sentence complexity and content length.
Data Gate Stage (api-gateway)
- check whether provider data can be retrieved.
- if keyword difficulty/backlink data is unavailable, ask user for credentials/connection and continue with fallback path.
Required user-facing gate message format:
DataGateStatus: available / blocked
Reason: missing key, missing connection, or provider unsupported
Action: exact next step and link(s)
As of February 14, 2026:
- Semrush advertises mainly 7-day toolkit trials on official pages.
- Semrush 14-day trial language is mainly associated with some add-ons or partner offers.
When user requests a 14-day Semrush trial:
- Ask for their preferred affiliate/referral URL first.
- If none is provided, share official Semrush trial entry page:
https://www.semrush.com/sem/.
- Optionally share Ahrefs free path for verified sites:
https://ahrefs.com/webmaster-tools.
Optimization Stage (LLM rewrite)
- rewrite user content for intent-match and topical completeness,
- add natural related terms (LSI-style concept coverage),
- improve title tag and meta description,
- tighten heading structure and internal linking opportunities.
Output Stage
- deliver optimized Markdown,
- deliver prioritized action list,
- deliver at least 5 backlink source opportunities (with confidence labels).
Rewrite Policy
- Preserve factual integrity (do not invent statistics or case studies).
- Prefer semantic coverage over keyword stuffing.
- Keep keyword usage natural and intent-aligned.
- Add scannable structure (clear H2/H3, concise paragraphs, actionable bullets).
Output Contract
Always return:
SERPFindings
- top competitors
- observed intent pattern
- structural/content gaps versus user page
DataGateStatus
- provider requested
- key/connection status
- fallback mode selected
OptimizedMarkdown
- full rewritten document
- revised title and meta description
BacklinkOpportunities
- 5 sources/domains used by competitors or high-fit alternatives
- rationale per source
- confidence (
high|medium|low)
NextActions
- concrete implementation checklist (ordered)
Quality Gates
Before final output, validate:
- top competitor set is from live SERP, not memory
- rewrite aligns with detected intent
- no fabricated citations or fabricated backlink claims
- keyword placement is natural (no spam repetition)
- missing data dependencies are explicitly disclosed
If any gate fails, return Needs Revision with exact missing evidence.
Failure Handling
- Missing
BRAVE_API_KEY: return MissingAPIKeys, skip SERP stage, and request user-provided competitor URLs.
- Missing summarize model key: return
MissingAPIKeys, skip summarize stage, and provide structure-only audit from available snippets.
- Missing
MATON_API_KEY: return MissingAPIKeys, skip API-gateway enrichment, continue with on-page-only optimization.
- Missing app connection in api-gateway (400): keep pipeline running in fallback mode and return exact connection setup steps.
- Unsupported provider path (for example no Semrush/Ahrefs app connection): disclose limitation and fall back to GSC/manual mode.
Guardrails
- Never claim guaranteed rankings.
- Never represent fallback estimates as provider-verified metrics.
- Never hide dependency failures.
- Keep recommendations specific, measurable, and tied to observed SERP gaps.
1---
2name: seo-ranker
3description: Meta-skill for end-to-end SEO auditing and on-page optimization by orchestrating brave-search, summarize, api-gateway, and markdown-converter. Use when users want to understand why a page is not ranking for a target keyword and need concrete rewrite actions plus backlink intelligence.
4homepage: https://clawhub.ai
5user-invocable: true
6disable-model-invocation: false
7metadata:
8 source: https://skillmd.com/skills/modbender/seo-ranker
9 openclaw:
10 emoji: 📈
11 requires:
12 bins:
13 - node
14 - npx
15 - summarize
16 - uvx
17 env:
18 - BRAVE_API_KEY
19 - MATON_API_KEY
20 - OPENAI_API_KEY
21 - ANTHROPIC_API_KEY
22 - XAI_API_KEY
23 - GEMINI_API_KEY
24 config: []
25 note: Requires local installation of brave-search, summarize, api-gateway, and markdown-converter. At least one summarize model API key must be present.
26---
27
28# Purpose
29
30Run a complete SEO ranking diagnosis and optimization pipeline:
311. inspect live SERP competition,
322. compare competitor content structure with user content,
333. enrich with difficulty/backlink data when API access exists,
344. produce concrete rewrite guidance and an optimized Markdown draft.
35
36This is an orchestration skill. It does not replace upstream tools.
37
38# Required Installed Skills
39
40- `brave-search` (inspected latest: `1.0.1`)
41- `summarize` (inspected latest: `1.0.0`)
42- `api-gateway` (inspected latest: `1.0.29`)
43- `markdown-converter` (inspected latest: `1.0.0`)
44
45Install/update:
46
47```bash
48npx -y clawhub@latest install brave-search
49npx -y clawhub@latest install summarize
50npx -y clawhub@latest install api-gateway
51npx -y clawhub@latest install markdown-converter
52npx -y clawhub@latest update --all
53```
54
55Verify:
56
57```bash
58npx -y clawhub@latest list
59```
60
61# Required Credentials
62
63- `BRAVE_API_KEY` (for `brave-search`)
64- `MATON_API_KEY` (for `api-gateway`)
65- One summarize model key:
66 - `OPENAI_API_KEY`, or
67 - `ANTHROPIC_API_KEY`, or
68 - `XAI_API_KEY`, or
69 - `GEMINI_API_KEY`
70
71Optional:
72- `FIRECRAWL_API_KEY` (for difficult page extraction via summarize)
73- `APIFY_API_TOKEN` (for YouTube fallback in summarize)
74
75Preflight:
76
77```bash
78echo "$BRAVE_API_KEY" | wc -c
79echo "$MATON_API_KEY" | wc -c
80echo "$OPENAI_API_KEY$ANTHROPIC_API_KEY$XAI_API_KEY$GEMINI_API_KEY" | wc -c
81```
82
83Mandatory behavior:
84- Never fail silently on missing keys.
85- Always return a `MissingAPIKeys` section with missing variables and blocked stages.
86- Continue with non-blocked stages and clearly mark output as `Partial` when necessary.
87
88# Inputs the LM Must Collect First
89
90- `target_url`
91- `target_keyword` (example: `AI tools`)
92- `region_locale` (country/language for SERP interpretation)
93- `content_source` (URL fetch, pasted text, or file path)
94- `content_type` (`blog`, `category page`, `product page`, `landing page`)
95- `business_goal` (`traffic`, `leads`, `sales`)
96- `rewrite_scope` (`light`, `moderate`, `full`)
97- `data_provider_preference` (`semrush`, `ahrefs`, `gsc-only`, `none`)
98
99Do not run rewrite before keyword intent and content goal are explicit.
100
101# Tool Responsibilities
102
103## brave-search
104
105Use for live SERP reconnaissance:
106- fetch top results for the target keyword,
107- identify top competitors and search intent patterns,
108- collect candidate URLs for deeper analysis.
109
110Operational constraints from inspected skill:
111- requires `BRAVE_API_KEY`
112- supports content extraction with `--content`
113
114## summarize
115
116Use for structured competitor content analysis:
117- summarize each top URL,
118- extract heading structure (H1-H4), topic coverage, entity frequency,
119- estimate content depth and rhetorical style differences.
120
121Operational constraints from inspected skill:
122- requires one supported model API key
123- can use `--extract-only`, `--json`, and length controls
124
125## api-gateway
126
127Use for external SEO data APIs only when active connections exist:
128- keyword difficulty,
129- backlink domains,
130- competitor link intersections,
131- search performance enrichments.
132
133Operational constraints from inspected skill:
134- requires `MATON_API_KEY`
135- also requires active OAuth/connection per app (`ctrl.maton.ai` connection lifecycle)
136- API key alone does not grant third-party data access
137
138Important capability note:
139- In the inspected `api-gateway` service list, `semrush` and `ahrefs` are not listed as native app names.
140- Use direct Semrush/Ahrefs integration only if user already has a working gateway connection path for those providers.
141- Otherwise fall back to available SEO apps (for example `google-search-console`) and manual competitor-link extraction.
142
143## markdown-converter
144
145Use to normalize the user's own content into editable Markdown:
146- convert input documents/files to Markdown (`uvx markitdown ...`),
147- preserve headings/lists/tables for deterministic rewriting.
148
149# Canonical Causal Signal Chain
150
1511. `Input Stage`
152- user provides URL + target keyword (+ content source if needed).
153
1542. `SERP Audit Stage (brave-search)`
155- pull live SERP and identify top 3 competitors.
156- detect intent class (informational/commercial/transactional).
157
1583. `Competitor Content Stage (summarize)`
159- analyze top competitor URLs for:
160 - heading hierarchy,
161 - topical breadth and entities,
162 - use of statistics/evidence,
163 - sentence complexity and content length.
164
1654. `Data Gate Stage (api-gateway)`
166- check whether provider data can be retrieved.
167- if keyword difficulty/backlink data is unavailable, ask user for credentials/connection and continue with fallback path.
168
169Required user-facing gate message format:
170- `DataGateStatus`: available / blocked
171- `Reason`: missing key, missing connection, or provider unsupported
172- `Action`: exact next step and link(s)
173
174As of February 14, 2026:
175- Semrush advertises mainly 7-day toolkit trials on official pages.
176- Semrush 14-day trial language is mainly associated with some add-ons or partner offers.
177
178When user requests a 14-day Semrush trial:
179- Ask for their preferred affiliate/referral URL first.
180- If none is provided, share official Semrush trial entry page: `https://www.semrush.com/sem/`.
181- Optionally share Ahrefs free path for verified sites: `https://ahrefs.com/webmaster-tools`.
182
1835. `Optimization Stage (LLM rewrite)`
184- rewrite user content for intent-match and topical completeness,
185- add natural related terms (LSI-style concept coverage),
186- improve title tag and meta description,
187- tighten heading structure and internal linking opportunities.
188
1896. `Output Stage`
190- deliver optimized Markdown,
191- deliver prioritized action list,
192- deliver at least 5 backlink source opportunities (with confidence labels).
193
194# Rewrite Policy
195
196- Preserve factual integrity (do not invent statistics or case studies).
197- Prefer semantic coverage over keyword stuffing.
198- Keep keyword usage natural and intent-aligned.
199- Add scannable structure (clear H2/H3, concise paragraphs, actionable bullets).
200
201# Output Contract
202
203Always return:
204
205- `SERPFindings`
206 - top competitors
207 - observed intent pattern
208 - structural/content gaps versus user page
209
210- `DataGateStatus`
211 - provider requested
212 - key/connection status
213 - fallback mode selected
214
215- `OptimizedMarkdown`
216 - full rewritten document
217 - revised title and meta description
218
219- `BacklinkOpportunities`
220 - 5 sources/domains used by competitors or high-fit alternatives
221 - rationale per source
222 - confidence (`high|medium|low`)
223
224- `NextActions`
225 - concrete implementation checklist (ordered)
226
227# Quality Gates
228
229Before final output, validate:
230- top competitor set is from live SERP, not memory
231- rewrite aligns with detected intent
232- no fabricated citations or fabricated backlink claims
233- keyword placement is natural (no spam repetition)
234- missing data dependencies are explicitly disclosed
235
236If any gate fails, return `Needs Revision` with exact missing evidence.
237
238# Failure Handling
239
240- Missing `BRAVE_API_KEY`: return `MissingAPIKeys`, skip SERP stage, and request user-provided competitor URLs.
241- Missing summarize model key: return `MissingAPIKeys`, skip summarize stage, and provide structure-only audit from available snippets.
242- Missing `MATON_API_KEY`: return `MissingAPIKeys`, skip API-gateway enrichment, continue with on-page-only optimization.
243- Missing app connection in api-gateway (400): keep pipeline running in fallback mode and return exact connection setup steps.
244- Unsupported provider path (for example no Semrush/Ahrefs app connection): disclose limitation and fall back to GSC/manual mode.
245
246# Guardrails
247
248- Never claim guaranteed rankings.
249- Never represent fallback estimates as provider-verified metrics.
250- Never hide dependency failures.
251- Keep recommendations specific, measurable, and tied to observed SERP gaps.