Migrate WordPress posts to MDX
Claude Code pulled posts from the WordPress REST API and converted them to MDX with frontmatter, migrating 367 posts and 5 pages in one session.
Done withClaude Code
- What they did
- Pauline gave Claude Code, running as a terminal agent, one goal. It was to extract all posts from her WordPress REST API, convert them to MDX with frontmatter, and save them into year-based folders. It handled API rate-limiting, turned the HTML into Markdown, and re-ran its script after an encoding error. She says she directed and reviewed while doing other things.
- How it went
- All 367 posts and 5 pages moved to local MDX in one afternoon, which she puts at about 4 hours. Old posts with broken image tags stalled the build, and Claude fixed them with a regex across the directory.
- Worth knowing
- Expect build failures from messy legacy HTML, such as broken image tags. Let the agent read the build errors and fix them in bulk.
Try it yourself with Claude Code
Pull all posts and pages from my WordPress site at [site URL] using the REST API and convert each one to an MDX file with frontmatter (title, date, slug, tags, [other fields]). Save them in [folder path] in my project. Finish by giving me a count of posts and pages converted and a list of any that had formatting problems you couldn't fix cleanly.
Want help getting this working? Join the Vibe Coding Academy ↗ Run by Alex Finn, who also runs this site.
1 more account of this
Source: pawlean.com · Undated
Related use cases
Turn tickets into merged pull requests
Pulls tasks from GitHub Issues or Linear, then runs Claude Code or Codex in isolated Kubernetes pods to carry each one through to a PR.
Create social media visuals with Canva MCP
The poster tried Canva MCP in Claude Code to produce app marketing visuals and found it a disaster.
Run a Claude Code refactor unattended
A Claude Code agent ran 40 minutes unattended on a refactor; it worked and tests passed, but the user couldn't tell what it did in between.
Build a C compiler with a team of parallel agents
Anthropic's engineering write-up on tasking Opus 4.6 agent teams with building a C compiler.
Build a book donation app and demo video in a buildathon
A user used Replit Agent to build the GiveABook app and its demo video within a 24-hour buildathon.
Generate large amounts of code with Manus
A user had Manus produce a lot of code quickly for software projects, but lost work a couple of times and had to add extra checkpointing.
Get 5 like this every morning
The best things people got an AI agent to do, each with the prompt to try it.