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-ranker3description: 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.4---56# Purpose78Run a complete SEO ranking diagnosis and optimization pipeline:91. inspect live SERP competition,102. compare competitor content structure with user content,113. enrich with difficulty/backlink data when API access exists,124. produce concrete rewrite guidance and an optimized Markdown draft.1314This is an orchestration skill. It does not replace upstream tools.1516# Required Installed Skills1718- `brave-search` (inspected latest: `1.0.1`)19- `summarize` (inspected latest: `1.0.0`)20- `api-gateway` (inspected latest: `1.0.29`)21- `markdown-converter` (inspected latest: `1.0.0`)2223Install/update:2425```bash26npx -y clawhub@latest install brave-search27npx -y clawhub@latest install summarize28npx -y clawhub@latest install api-gateway29npx -y clawhub@latest install markdown-converter30npx -y clawhub@latest update --all31```3233Verify:3435```bash36npx -y clawhub@latest list37```3839# Required Credentials4041- `BRAVE_API_KEY` (for `brave-search`)42- `MATON_API_KEY` (for `api-gateway`)43- One summarize model key:44 - `OPENAI_API_KEY`, or45 - `ANTHROPIC_API_KEY`, or46 - `XAI_API_KEY`, or47 - `GEMINI_API_KEY`4849Optional:50- `FIRECRAWL_API_KEY` (for difficult page extraction via summarize)51- `APIFY_API_TOKEN` (for YouTube fallback in summarize)5253Preflight:5455```bash56echo "$BRAVE_API_KEY" | wc -c57echo "$MATON_API_KEY" | wc -c58echo "$OPENAI_API_KEY$ANTHROPIC_API_KEY$XAI_API_KEY$GEMINI_API_KEY" | wc -c59```6061Mandatory behavior:62- Never fail silently on missing keys.63- Always return a `MissingAPIKeys` section with missing variables and blocked stages.64- Continue with non-blocked stages and clearly mark output as `Partial` when necessary.6566# Inputs the LM Must Collect First6768- `target_url`69- `target_keyword` (example: `AI tools`)70- `region_locale` (country/language for SERP interpretation)71- `content_source` (URL fetch, pasted text, or file path)72- `content_type` (`blog`, `category page`, `product page`, `landing page`)73- `business_goal` (`traffic`, `leads`, `sales`)74- `rewrite_scope` (`light`, `moderate`, `full`)75- `data_provider_preference` (`semrush`, `ahrefs`, `gsc-only`, `none`)7677Do not run rewrite before keyword intent and content goal are explicit.7879# Tool Responsibilities8081## brave-search8283Use for live SERP reconnaissance:84- fetch top results for the target keyword,85- identify top competitors and search intent patterns,86- collect candidate URLs for deeper analysis.8788Operational constraints from inspected skill:89- requires `BRAVE_API_KEY`90- supports content extraction with `--content`9192## summarize9394Use for structured competitor content analysis:95- summarize each top URL,96- extract heading structure (H1-H4), topic coverage, entity frequency,97- estimate content depth and rhetorical style differences.9899Operational constraints from inspected skill:100- requires one supported model API key101- can use `--extract-only`, `--json`, and length controls102103## api-gateway104105Use for external SEO data APIs only when active connections exist:106- keyword difficulty,107- backlink domains,108- competitor link intersections,109- search performance enrichments.110111Operational constraints from inspected skill:112- requires `MATON_API_KEY`113- also requires active OAuth/connection per app (`ctrl.maton.ai` connection lifecycle)114- API key alone does not grant third-party data access115116Important capability note:117- In the inspected `api-gateway` service list, `semrush` and `ahrefs` are not listed as native app names.118- Use direct Semrush/Ahrefs integration only if user already has a working gateway connection path for those providers.119- Otherwise fall back to available SEO apps (for example `google-search-console`) and manual competitor-link extraction.120121## markdown-converter122123Use to normalize the user's own content into editable Markdown:124- convert input documents/files to Markdown (`uvx markitdown ...`),125- preserve headings/lists/tables for deterministic rewriting.126127# Canonical Causal Signal Chain1281291. `Input Stage`130- user provides URL + target keyword (+ content source if needed).1311322. `SERP Audit Stage (brave-search)`133- pull live SERP and identify top 3 competitors.134- detect intent class (informational/commercial/transactional).1351363. `Competitor Content Stage (summarize)`137- analyze top competitor URLs for:138 - heading hierarchy,139 - topical breadth and entities,140 - use of statistics/evidence,141 - sentence complexity and content length.1421434. `Data Gate Stage (api-gateway)`144- check whether provider data can be retrieved.145- if keyword difficulty/backlink data is unavailable, ask user for credentials/connection and continue with fallback path.146147Required user-facing gate message format:148- `DataGateStatus`: available / blocked149- `Reason`: missing key, missing connection, or provider unsupported150- `Action`: exact next step and link(s)151152As of February 14, 2026:153- Semrush advertises mainly 7-day toolkit trials on official pages.154- Semrush 14-day trial language is mainly associated with some add-ons or partner offers.155156When user requests a 14-day Semrush trial:157- Ask for their preferred affiliate/referral URL first.158- If none is provided, share official Semrush trial entry page: `https://www.semrush.com/sem/`.159- Optionally share Ahrefs free path for verified sites: `https://ahrefs.com/webmaster-tools`.1601615. `Optimization Stage (LLM rewrite)`162- rewrite user content for intent-match and topical completeness,163- add natural related terms (LSI-style concept coverage),164- improve title tag and meta description,165- tighten heading structure and internal linking opportunities.1661676. `Output Stage`168- deliver optimized Markdown,169- deliver prioritized action list,170- deliver at least 5 backlink source opportunities (with confidence labels).171172# Rewrite Policy173174- Preserve factual integrity (do not invent statistics or case studies).175- Prefer semantic coverage over keyword stuffing.176- Keep keyword usage natural and intent-aligned.177- Add scannable structure (clear H2/H3, concise paragraphs, actionable bullets).178179# Output Contract180181Always return:182183- `SERPFindings`184 - top competitors185 - observed intent pattern186 - structural/content gaps versus user page187188- `DataGateStatus`189 - provider requested190 - key/connection status191 - fallback mode selected192193- `OptimizedMarkdown`194 - full rewritten document195 - revised title and meta description196197- `BacklinkOpportunities`198 - 5 sources/domains used by competitors or high-fit alternatives199 - rationale per source200 - confidence (`high|medium|low`)201202- `NextActions`203 - concrete implementation checklist (ordered)204205# Quality Gates206207Before final output, validate:208- top competitor set is from live SERP, not memory209- rewrite aligns with detected intent210- no fabricated citations or fabricated backlink claims211- keyword placement is natural (no spam repetition)212- missing data dependencies are explicitly disclosed213214If any gate fails, return `Needs Revision` with exact missing evidence.215216# Failure Handling217218- Missing `BRAVE_API_KEY`: return `MissingAPIKeys`, skip SERP stage, and request user-provided competitor URLs.219- Missing summarize model key: return `MissingAPIKeys`, skip summarize stage, and provide structure-only audit from available snippets.220- Missing `MATON_API_KEY`: return `MissingAPIKeys`, skip API-gateway enrichment, continue with on-page-only optimization.221- Missing app connection in api-gateway (400): keep pipeline running in fallback mode and return exact connection setup steps.222- Unsupported provider path (for example no Semrush/Ahrefs app connection): disclose limitation and fall back to GSC/manual mode.223224# Guardrails225226- Never claim guaranteed rankings.227- Never represent fallback estimates as provider-verified metrics.228- Never hide dependency failures.229- Keep recommendations specific, measurable, and tied to observed SERP gaps.