contentrain-migrate-wordpress

contentrain-migrate-wordpress is a skill for Claude Code, Codex from Contentrain/ai. It costs 59 tokens per session (1,682 once invoked), scanned A, original, MIT.

A migration tool that imports content from a WordPress site into a structured Contentrain content store, then connects it to Astro, Nuxt, or Next. WordPress is a website publishing system; a WXR file is its XML export format.

In plain words
What is it for?
Use it to import content from a WordPress REST URL or WXR export and connect the result to an Astro, Nuxt, or Next frontend.
Why use it?
It moves reusable content without trying to copy the original theme or page-builder design. This separates content migration from rebuilding the site’s appearance.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to import content from a WordPress REST URL or WXR export and connect the result to an Astro, Nuxt, or Next frontend.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/contentrain/ai/contentrain-migrate-wordpress
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 Contentrain/ai --skill contentrain-migrate-wordpress
Clone the repo
git clone --depth 1 https://github.com/Contentrain/ai

Made for: Claude Code, 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 contentrain-migrate-wordpress

README.md
[![agentmods](https://agentmods.dev/badge/skills/contentrain/ai/contentrain-migrate-wordpress/github.svg)](https://agentmods.dev/skills/contentrain/ai/contentrain-migrate-wordpress)
Your own site
<a href="https://agentmods.dev/skills/contentrain/ai/contentrain-migrate-wordpress"><img src="https://agentmods.dev/badge/skills/contentrain/ai/contentrain-migrate-wordpress/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 contentrain-migrate-wordpress

Your own site · 80×15
<a href="https://agentmods.dev/skills/contentrain/ai/contentrain-migrate-wordpress"><img src="https://agentmods.dev/badge/skills/contentrain/ai/contentrain-migrate-wordpress.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 59 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,682 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.00059 $0.01682
Opus 5.5 $0.00024 $0.00673
Sonnet 5.5 $0.00012 $0.00336
Haiku 4.5 $0.00006 $0.00168

Measured 13d ago against content hash 34fc10086ec3, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

contentrain-migrate-wordpress scanned grade A with 1 finding 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 13d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -s "https://example.com/wp-json/wp/v2/types" | head -c 400
packages/skills/skills/contentrain-migrate-wordpress/SKILL.md · 150 lines

How it starts

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

Skill: Migrate a WordPress Site

WordPress content → canonical .contentrain store → validated → typed client or Astro collections.


When to Use

The user wants to move a WordPress site's content into Contentrain: "import my WordPress site", "migrate from WP", "I have a WXR export", "pull posts from wordpress.com", "turn this WP blog into Astro".

This skill moves content, not design. Themes, page-builder layouts and rendered HTML are a different problem (a full site clone is the Contentrain migration service). What this skill produces is a clean content store the user's own frontend reads.


Steps

1. Pick the source

Two sources, and the choice is usually made for you:

Source Use when Command
REST URL The site is online and /wp-json/wp/v2/ answers npx contentrain import https://example.com
WXR export The site is offline, behind auth, or the user has a .xml from Tools → Export npx contentrain import ./export.xml

REST returns more than WXR (rendered HTML, media metadata, per-type discovery); WXR is complete but rawer. If both exist, prefer REST.

Private or partial REST. A site can answer /wp-json but hide drafts, private types and some fields. An Application Password lifts the run to rest_auth:

CONTENTRAIN_WP_APP_PASSWORD="xxxx xxxx xxxx xxxx" npx contentrain import https://example.com --auth user

Ask the user to set the password in the environment (or run the command themselves for the hidden prompt). Never put user:password on the command line: it lands in shell history. A WXR import leaves author and commenter e-mail addresses out of the store; add --include-emails only when the user asks and the repository stays private.

Check first, so you tell the user what they will get rather than discovering it after:

curl -s "https://example.com/wp-json/wp/v2/types" | head -c 400

A 401/403 means auth is needed. A 404 or an HTML page means REST is disabled or blocked — use WXR.

Read the full file on GitHub · 150 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. 13d ago Changed · +2 lines 34fc10086ec3
  2. 16d ago Changed e0f232f4ed37
  3. 1mo ago First seen · 148 lines · 59 tokens per session scan A fc2d70865c47

Subscribe to this mod's changes

contentrain-migrate-wordpress is a skill published in the GitHub repository Contentrain/ai (6 stars, last pushed today), licensed MIT. It adds 59 tokens to every session and 1,682 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-10.

Related

Other skills, from other repositories

oma-scholar

Search academic literature and generate, validate, or compare Knows paper sidecars. Use for claim/evidence analysis and literature synthesis.

first-fluke/oh-my-agent · 30 tokens

data-charts-tako

Search and visualize the world's data - get charts, insights, and embeddable knowledge cards for finance, economics, demographics, sports, and more.

gooseworks-ai/goose-skills · 35 tokens

apollo-lead-finder

Two-phase Apollo.io prospecting: free People Search to discover ICP-matching leads, then selective enrichment to reveal emails/phones (credits per contact). Creates Apollo lists. Deduplicates against existing contacts by LinkedIn URL.

gooseworks-ai/goose-skills · 51 tokens

pkf-writing

Author, update, convert, validate, persist, and render PKF (.pkf) content through message-inline, Library Asset, or Memory Page carriers. Use for structured reports, knowledge pages, delivery cards, or any .pkf body. NOT for recall, memory-graph placement, or curation decisions — those belong to the memory skill.

Prismer-AI/PrismerCloud · 78 tokens

monorepo-management

Master monorepo management with Turborepo, Nx, and pnpm workspaces to build efficient, scalable multi-package repositories with optimized builds and dependency management. Use when setting up monorepos, optimizing builds, or managing shared dependencies.

wshobson/agents · 54 tokens

render-airdrop-carousel

Assemble a viral iOS "AirDrop" notification-carousel video ad (≈6–8s, 9:16) from a brand line plus 6–16 real product photos — a native AirDrop share-sheet card ("Brand would like to share a · Decline / Accept") springs up and its preview window CYCLES through the products, landing on a range/lineup payoff with an…

gooseworks-ai/goose-skills · 207 tokens