Overview
Use Cursor cloud agents to turn pages exported from a content management system into Markdown files in your site's repository, with screenshots to compare each rebuilt page against the live one.
Problem or Objective
- Which agents port code to another language or framework?
- Which tools turn office files and PDFs into Markdown for an agent?
More in Coding and Code Review
AI Agents and Models
Tools and Integrations
- Tools
- Cursor
- Prerequisites
- A Cursor plan with cloud agents, a repository connected by a Cursor admin, a static site generator that builds from Markdown, and an export of the CMS content.
How It Works
Export the pages and images from your CMS yourself and commit the export to a branch of the site's repository; check what export format your CMS offers. Connect the repository to Cursor and start a cloud agent with a written plan: one Markdown file per page with front matter for title, date and URL, images moved into an assets folder, and old URLs kept or redirected. Split a large site into batches and run one agent per batch, each on its own branch. Ask each agent to build the site in its VM, open the rebuilt pages in its browser and attach screenshots next to the matching live pages. Review each pull request, the screenshots and the redirects, fix layout differences, and merge only after you have a way to roll back.
Implementation Workflow
Steps assembled from the agents, tools and prompt of this entry. Adapt them to your own setup.
- Choose the agentSet up Cursor.
- Connect the toolsConnect the tools this workflow relies on: Cursor.
- Check the prerequisitesA Cursor plan with cloud agents, a repository connected by a Cursor admin, a static site generator that builds from Markdown, and an export of the CMS content.
- Gather your detailsCollect what the prompt asks for: Which pages this run covers, Where the CMS export is, Destination for Markdown files, Destination for images, Address of the current live site.
- Run the starter promptPaste the starter prompt below into Cursor and adapt it to your case.
- Check against the documentationCompare what you get with the documentation at cursor.com before you rely on it.
Practical Starter Prompt: Migrate a batch of CMS pages to Markdown
Fill the fields to adapt the prompt. Empty fields stay as visible [placeholders].
The CMS export for [Which pages this run covers] is in [Where the CMS export is] on this branch. Convert each page to a Markdown file in [Destination for Markdown files] with front matter for title, date and original URL, move its images into [Destination for images], and keep the old URL or add a redirect. Build the site, open each rebuilt page in the browser and attach a screenshot beside the live page at [Address of the current live site]. Open a pull request for review and do not merge or deploy anything.Run one agent per batch on its own branch. Review the screenshots, redirects and diff in each pull request, and merge only when a rollback path is ready.
Expected Results and Benefits
This is a suggested workflow, not a reported result. The points below are what the cited documentation says the tools can do.
This is a suggested workflow, not a reported outcome. Cursor's pages say cloud agents run in isolated VMs with full development environments, work on a separate branch, can build and interact with the changed software, control a browser, and produce screenshots, videos and logs. They do not describe a CMS migration, so how much visual cleanup remains depends on your site.
Limitations and Considerations
Cloud agents auto-run terminal commands, which Cursor flags as a data exfiltration risk through prompt injection; keep network access restricted and secrets out of the environment where you can. A Cursor admin has to connect source control before agents can work on a repository. Cloud agents use your plan's usage at the selected model's rate, and Cursor asks you to set a spend limit when you first use them. Check that your CMS licence and any embedded media allow the content to be moved. Results depend on your setup and were not independently reproduced by Top 200 Repos.
Sources
- Cloud Agents | Cursor Docs (opens in a new tab)
Project documentation · cursor.com · Undated · Source checked 26 Nov 2026, 17:27 UTC
What this source supports
- Cloud agents run in isolated VMs in the cloud with full development environments, and you can run as many agents as you want in parallel.
- Because they have their own virtual machine, cloud agents can build, test, and interact with the changed software, and can use computers to control the desktop and browser.
- Cloud agents clone your repo and work on a separate branch, then push changes to your repo for handoff; they produce screenshots, videos, and logs.
- Cloud Agents use your plan's usage at the selected model's rate, and you are asked to set a spend limit when you first start using them.
- Secrets & Network | Cursor Docs (opens in a new tab)
Project documentation · cursor.com · Undated · Source checked 26 Nov 2026, 17:27 UTC
What this source supports
- The agent auto-runs all terminal commands; auto-running introduces data exfiltration risk through prompt injection.