BotCurrent
← Back to examples

Build & debugReal reportActs with your OK

Move a WordPress blog into site files

Moving years of blog posts by hand is slow, and broken images slip through. Your AI converts each post and lists what didn't come over cleanly.

What happened

Pauline Bakhtiari reports that Claude Code pulled their WordPress archive through its API and turned the HTML into MDX files with metadata. They say it fixed text encoding errors and broken image tags until the new Next.js site built. They describe giving direction and review, but they also say the agent pushed and deployed the site.

Source: Pauline Bakhtiari / Pawlean · pawlean.com · Tool: Claude Code

Copy this prompt

Paste it into ChatGPT, Claude or Gemini, fill in the [brackets] and add your files. It only drafts. You decide what to send or change.

Use it often? Save it as a skill

Add this job to Claude or Codex once, and your agent knows how to do it without you pasting the prompt each time. Text only, no code.

Download for Claude (.zip)View the skill file

How to add it
Claude app or claude.ai
Download the .zip. In Settings, find Skills, choose Upload skill and pick the file. Code execution has to be turned on.
Claude Code
Run this in your terminal:mkdir -p ~/.claude/skills/move-a-wordpress-blog-into-site-files && curl -fsSL https://botcurrent.com/skills/move-a-wordpress-blog-into-site-files/SKILL.md -o ~/.claude/skills/move-a-wordpress-blog-into-site-files/SKILL.md
Codex
Run this in your terminal:mkdir -p ~/.agents/skills/move-a-wordpress-blog-into-site-files && curl -fsSL https://botcurrent.com/skills/move-a-wordpress-blog-into-site-files/SKILL.md -o ~/.agents/skills/move-a-wordpress-blog-into-site-files/SKILL.md

More about skills, and open-source skills we checked

Security scanClear13 of 13 checks passed

We check every skill file before we offer it. This one is the prompt above in skill form.

  • Passed Skill file is well formed
  • Passed Runs its own code or programs
  • Passed Connects to the internet from code
  • Passed Touches passwords, keys or private files
  • Passed Deletes or overwrites things in bulk
  • Passed Hidden or scrambled code
  • Passed Tries to override your instructions
  • Passed Invisible characters in the text
  • Passed Sends your data somewhere else
  • Passed Can pay or buy without asking you
  • Passed Downloads or installs other software
  • Passed Has a password or key written into it
  • Passed Asks for admin (sudo) rights

Files scanned: SKILL.md. Links to: botcurrent.com, www.pawlean.com. Fingerprint: 4ac49b34b858. What we check

What you'll get

MDX files for each post with their details, plus a list of broken images, links and odd characters to fix.

You'll need

  • Your WordPress export or a few sample posts
  • The folder layout and fields your new site needs
  • Your old web addresses, so links keep working

Before you switch it on

Acts with your OK

If you give this job to an agent that works in your accounts:

Access it needs
Your WordPress site, code repository and hosting
Keep on “ask me first”
Sending or posting anything, paying or buying, sharing your address or ID, deleting anything

The prompt ends with a guard line, because emails and web pages can hide instructions for your agent. Why it’s there

Heads up: Keep your old site up until every post, image and redirect checks out. Don't let an agent push or deploy without your review.

More details: full instructions, sources and safeguards

Before you begin

No live API access, publishing or source removal. Preserve the original archive until omissions and broken references are resolved.

Use this in your own AI tool

  1. Copy the starter, then open your own AI tool.
  2. Paste it with only the permitted inputs. Check privacy settings and tool compatibility first.
  3. Review the draft and held questions. Any later action needs separate approval.

What you need

Authorized archive export containing post bodies, metadata, URLs and permitted assets.

Target MDX structure, required metadata and exact old-URL preservation rules.

Existing private file-processing capability and reviewer; execution/build checks, live access and deployment require separate scope.

Start here

  1. Inventory supplied posts, metadata, original URLs, encoding and image dependencies.
  2. Convert supported content into separate private MDX candidates, preserving source associations and flagging ambiguous markup or encoding.
  3. Return converted content, missing-asset/link exceptions and unrun build checks without fetching APIs, pushing code or publishing.
Advanced prompt availability

Advanced prompt

No accepted companion is available for this record. The original material below retains its original status.

Technical setup & run design — optional
Starter
Separate short starter version composed-v1. Untested.
Advanced prompt
No accepted advanced companion is available. Legacy material remains in the original notes with its status.
Compatibility
Unknown; check the actual tool, account and permissions.
Run design
No reviewed run design. No runtime or schedule is activated by BotCurrent.
Setup and access

Proposed inputs

  1. Name

    Archive snapshot

    Owner

    Site owner

    Minimum scope

    Selected post exports, permitted assets and original identifiers

    Quality check

    Inventory counts, encodings and media references.

  2. Name

    Destination contract

    Owner

    Developer

    Minimum scope

    Content schema, route rules and expected front matter

    Quality check

    Identify required fields and unsupported embeds.

Access and setup — proposed or unknown

Proposed minimum
  1. Read-only archive copies and a separate proposed conversion directory.

Compatibility unknowns
  1. Unknown: current runtime, converter behavior, destination build toolchain and deployment integration.

External actions requiring approval
  1. Repository pushes, deployment, route changes and removal of the original CMS.

Source evidence, attribution & limitations

Full source evidence

User report · Coding tasks

Original task title: Migrate a CMS archive into build-tested local content

Editorial candidate. This is source-backed reporting or a documented workflow. BotCurrent has not independently tested this task. A proposed Canadian adaptation is not evidence of a Canadian deployment or compliance certification.

Original source

https://www.pawlean.com/posts/migrate-wordpress-to-mdx-claude-code

Attributed to: Pauline Bakhtiari / Pawlean

User report
Original action type
coding_action
What the source reports
Claude Code retrieved a WordPress archive through its API, converted HTML to MDX with metadata, recovered from encoding errors and repaired malformed image tags until the new site built.
Source outcome limits
Actions and outcomes are attributed user reports, not an independent reproduction or an execution guarantee.
Evidence attribution caveat
Actions and outcomes are attributed user reports, not an independent reproduction or an execution guarantee.
Source approval description
The author describes providing direction and review; the account also reports agent-led push and deployment.
Named tools
Claude Code; WordPress REST API; MDX; Next.js; GitHub; Vercel
Model or version
Unknown
Publication date
2026-02-01
Source last checked
2026-10-14
Demonstrated in Canada
Unknown
Canadian availability
Unknown
Proposed Canadian adaptation
Proposed: preserve bilingual URLs, metadata, accessibility and redirects for a Canadian website migration.
Recommended approval boundaries
Approve backup and destination; review content counts, links and previews before production deployment or removing the old CMS.
Technical specification & detailed checks
Detailed steps and output format

At a glance

Suggested result
A converted local-content archive and build results for completeness, link and preview review before deployment.Suggested; untested.
Tool
Claude CodeSource-named; check current access.
Suggested inputs
Archive snapshot; Destination contractProposed; access notes below.
Human review
Approve backup and destination; review content counts, links and previews before production deployment or removing the old CMS.Suggested boundaries; source approvals below.
Setup notes
Read-only archive copies and a separate proposed conversion directory.Guide notes; proposed setup untested.
Cost
Workflow cost not established. Check current tool pricing, setup and human review costs before trying it.No measured cost or time added.
Content depth
Source-linked example · suggestions untestedDepth does not establish successful execution.
Check source evidence and limits ↓

Function and scope

Software engineering, Creative production · Single task

Editorial classification; no execution or compatibility test is implied.

No tool mapping reviewed for this task.

Source-backed example. Practical decision guidance is proposed and untested; this is not a full implementation guide.

The problem

Moving an existing website archive into local content can expose broken markup, encoding problems and lost metadata.

Suggested task

Retrieve the WordPress archive, convert HTML to MDX with metadata, repair conversion errors and run build checks.

What you could produce

A converted local-content archive and build results for completeness, link and preview review before deployment.

Where these suggestions come from
  • Core problem: Our interpretation of the task
  • Agent job: Our interpretation of the task
  • Expected output: Our interpretation of the task
  • Relevant job roles: Our interpretation of the task
  • Benefit type: Our interpretation of the task
Suggestions and their limits

Describes the task’s purpose and intended output; measured benefit, safe unsupervised operation and successful delivery are not established by this framing.

Editorial synthesis based on the linked source. This framing does not add evidence of successful delivery or results.

Before you try it · suggestions untested

Case-specific decision guidance and first checks are original proposals. The linked source supports the attributed task; this added guidance has not been executed.

Read the attributed source evidence and original caveats below ↓

Why use this

  1. A website archive can appear successfully migrated while losing embedded media, publication metadata or old addresses that readers still use. A passing build only proves one technical condition, leaving editorial completeness and navigation to be checked separately.

  2. A migration review manifest could tie every source item to its converted file and identify transformations needing inspection. The owner could evaluate whether the archive is ready for a later deployment decision without making the production site the test environment.

Why an agent / simpler alternative

Useful judgment

Handle irregular markup and explain content-specific conversion exceptions while retaining original evidence.

Simpler alternative

Use a maintained exporter for a small archive with consistent markup and a supported destination format.

Unsuitable when

There is no source backup or the only available destination is the live site.

Expected deliverable and review checks

Proposed artifact

Source-to-file migration manifest, conversion exceptions and proposed preview/build checklist.

Critical checks
  1. Every source item has a destination or an explicit exclusion.

  2. Metadata, image semantics and old-to-new routes receive separate review.

Missing output evidence

No new workflow run or output inspection is performed for this editorial layer. The linked implementation evidence retains the original source-specific outcome and artifact limits.

First check — proposed, unexecuted

Status

proposed_unexecuted

Synthetic fixture

Four invented post snippets include a malformed image, non-ASCII text and two colliding slugs.

Acceptance checks
  1. Account for all four source IDs.

  2. Flag the collision and preserve the broken fragment for review.

Stop conditions
  1. Running builds, contacting the CMS or modifying a live repository is required.

Tasks: Build & debugWriting & contentDocuments & files

Useful for: Software developerContent creator

Editorial relevance from the title and source-supported actions; not evidence of the operator’s occupation.
Claude CodeIndependent testing: No
Failure handling, costs and limits

Failure signals and proposed responses

  1. Signal

    A malformed image tag disappears during conversion.

    Why it matters

    The page can build while losing important content.

    Proposed response

    Retain the original fragment and flag a manual media repair in the manifest.

  2. Signal

    Two posts map to the same destination slug.

    Why it matters

    One item may overwrite another or break inbound links.

    Proposed response

    Stop those mappings and obtain an explicit collision-resolution rule.

Effort and cost — unknown

Setup work
  1. Inventory archive formats and define preservation rules.

Ongoing review
  1. Inspect exceptional pages, links and media previews.

Unknowns
  1. Unknown: conversion effort, hosting charges and remaining unsupported markup.

Limits

  1. Technical build checks and content-preservation checks answer different questions; neither is executed by this decision aid.

Original task overview & interpretation

User report

Move a WordPress archive into site files

A website move can lose images or metadata even when the new pages build.

Suggested result

Converted MDX pages and build findings for review.

What you need: The account uses Claude Code, WordPress’s API and Next.js. Supply authorized archive access and a separate destination; current access and costs need checking.

  1. Convert posts and metadata; repair encoding and image-markup errors.
  2. Build the site, then inspect pages and old links.

Approve publishing separately and keep the source archive until omissions are resolved.

The author reports conversion, repairs and deployment. These proposed steps have not been run by BotCurrent.