rankmath-plugin-compatibility

rankmath-plugin-compatibility is a skill for Codex from Lonsdale201/wp-agent-skills. It costs 134 tokens per session (2,316 once invoked), scanned A, original, MIT.

A guide to making WordPress plugins and themes work with Rank Math, a WordPress SEO plugin. It covers SEO titles, descriptions, indexing instructions, canonical URLs, social metadata, and custom content fields.

In plain words
What is it for?
Use it to connect custom post types, taxonomies, virtual routes, imported SEO data, and editor fields to Rank Math's frontend and editor behavior.
Why use it?
It keeps SEO integration optional and prevents the site from breaking when Rank Math is missing or partly disabled.

Skill for Codex

Written for Codex: agents/openai.yaml present.

Good fit Use it to connect custom post types, taxonomies, virtual routes, imported SEO data, and editor fields to Rank Math's frontend and editor behavior.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/lonsdale201/wp-agent-skills/rankmath-plugin-compatibility
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Lonsdale201/wp-agent-skills --skill rankmath-plugin-compatibility
Clone the repo
git clone --depth 1 https://github.com/Lonsdale201/wp-agent-skills

Made for: Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for rankmath-plugin-compatibility

README.md
[![agentmods](https://agentmods.dev/badge/skills/lonsdale201/wp-agent-skills/rankmath-plugin-compatibility/github.svg)](https://agentmods.dev/skills/lonsdale201/wp-agent-skills/rankmath-plugin-compatibility)
Your own site
<a href="https://agentmods.dev/skills/lonsdale201/wp-agent-skills/rankmath-plugin-compatibility"><img src="https://agentmods.dev/badge/skills/lonsdale201/wp-agent-skills/rankmath-plugin-compatibility/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for rankmath-plugin-compatibility

Your own site · 80×15
<a href="https://agentmods.dev/skills/lonsdale201/wp-agent-skills/rankmath-plugin-compatibility"><img src="https://agentmods.dev/badge/skills/lonsdale201/wp-agent-skills/rankmath-plugin-compatibility.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 134 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,316 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00134 $0.02316
Opus 5 $0.00067 $0.01158
Sonnet 5 $0.00027 $0.00463
Haiku 4.5 $0.00013 $0.00232

Measured 9d ago against content hash 234221cb0eb7, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

rankmath-plugin-compatibility scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

rankmath/rankmath-plugin-compatibility/SKILL.md · 188 lines

How it starts

The opening of the file, as written. The whole thing — 188 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Rank Math plugin compatibility

Implement a soft, hook-based compatibility layer that keeps working when Rank Math is absent or a module is disabled. Prefer WordPress and documented Rank Math hooks over internal containers, direct output, or copied plugin logic.

Workflow

  1. Identify the content surface: singular CPT, taxonomy archive, virtual route, editor-only field, headless URL, or imported SEO metadata.
  2. Confirm whether Rank Math is optional or a declared dependency. Keep it optional unless the product explicitly cannot function without it.
  3. Register integration hooks early and idempotently.
  4. Make frontend output and editor analysis agree, but do not confuse them: frontend PHP filters do not update the editor score, and editor JavaScript filters do not alter frontend tags.
  5. Verify rendered HTML, not only stored meta or callback execution.
  6. Test once with Rank Math active and once inactive.

Bootstrap safely

rank_math/loaded fires while the Rank Math plugin file is loading, before its plugins_loaded:14 initialization and before modules load on after_setup_theme:2. Handle both plugin load orders:

function acme_rank_math_boot(): void {
	static $booted = false;
	if ( $booted || ! defined( 'RANK_MATH_VERSION' ) ) {
		return;
	}

	$booted = true;
	add_filter( 'rank_math/frontend/title', 'acme_rank_math_title' );
}

if ( did_action( 'rank_math/loaded' ) ) {
	acme_rank_math_boot();
} else {
	add_action( 'rank_math/loaded', 'acme_rank_math_boot' );
}

Apply these rules:

  • Do not call rank_math() before rank_math/loaded.
  • Do not assume rank_math/loaded means active modules are instantiated. Check module-dependent classes after after_setup_theme priority 2, or simply register their hooks and let inactive modules leave them unused.
  • Use RankMath\Helper::is_module_active( 'rich-snippet' ) for Schema and 'sitemap' for XML sitemaps only when the helper exists. The Schema module ID is not schema.
  • Do not instantiate Rank Math frontend, Paper, Schema, or Sitemap classes yourself during normal requests.
  • Do not edit Rank Math files or load files from RANK_MATH_PATH manually; its Composer autoloader owns those classes.

Read the full file on GitHub · 188 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 188 lines · 134 tokens per session scan A 234221cb0eb7

Subscribe to this mod's changes

rankmath-plugin-compatibility is a skill published in the GitHub repository Lonsdale201/wp-agent-skills (22 stars, last pushed 2d ago), licensed MIT. It adds 134 tokens to every session and 2,316 once invoked, about $0.0007 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

astro-seo

Audits and improves SEO for Astro sites. Use when the user asks to audit, set up, or improve SEO on an Astro site, or mentions head metadata, structured data, JSON-LD, sitemaps, IndexNow, Open Graph images, schema endpoints, NLWeb, hreflang, or search engine indexing in an Astro project. Produces drop-in code routed…

jdevalk/skills · 105 tokens

static-seo

Audits and improves SEO for static HTML sites. Use when the user asks to audit, set up, or improve SEO on a static site (Hugo, Jekyll, 11ty, Gatsby, Next.js static export, hand-rolled HTML, or wp-static-clone output), or mentions head metadata, structured data, JSON-LD, sitemaps, IndexNow, Open Graph images, schema…

jdevalk/skills · 143 tokens

readability-check

Runs a readability audit on a blog post draft or other multi-paragraph prose, calibrated for readers who read English as a second language. Checks ten categories — overall structure and topic order, paragraph structure, opening paragraph strength, tiered sentence length, passive voice, difficult words, filler and…

jdevalk/skills · 179 tokens

content-seo

Audits a blog post draft or page copy for content-level SEO: search intent fit, focus keyphrase placement, E-E-A-T signals (experience, expertise, authoritativeness, trustworthiness), helpfulness and originality, content freshness, and internal linking. Use when the user asks "will this rank", "SEO check this post"…

jdevalk/skills · 155 tokens

wp-static-clone

Clones a live WordPress (or other CMS-driven) site into a static HTML site deployable on any static host (Cloudflare Pages, Netlify, Vercel, S3+CloudFront, plain Apache/nginx). Use when the user wants to "scrape", "freeze", "archive", "static-ify", or "move to [host]" a WordPress site, or asks to turn a sitemap into…

jdevalk/skills · 137 tokens

metadata-check

Reviews short high-value strings — page titles, meta descriptions, schema description fields, FAQ answers, GitHub repo taglines, profile bios, social-card copy, and other metadata where Flesch and paragraph-level readability checks don't apply. Checks front-loading, concreteness, filler, active voice…

jdevalk/skills · 157 tokens