将网站从CMS迁移到原始代码和Markdown

Migrate a website from a CMS to raw code and Markdown

Lee Robinson使用Cursor代理在三天内以260个代币的价格将cursor.com从其CMS迁移出来,子代理处理了广泛的重构。

软件与开发运维 Claude Code Claude Codex Gemini Cursor 2 个独立信源 leerob.com · 2026-10-22

做了什么

Lee planned the migration with Opus 4.5 in Cursor. The agent suggested using the existing CMS API key to write scripts that export content, validate it, convert it to Markdown files in the repo, and upload images and videos to object storage. About 10 runs got it 80% of the way. He then ran an agent on each mismatched page, using browser screenshots to compare against production. Subagents handled the wider refactor in parallel.

效果如何

It took three days and $260.32 in tokens, against his estimate of 1-2 weeks. That covered 344 agent requests and 67 commits (+43K/-322K lines). Builds got 2x faster. The last 20% took most of the time.

值得注意

Expect the final 20% (pages that don't match production) to take most of the effort. Per-page agent runs with screenshot comparison were how he closed that gap.

试试这个 Prompt

I want to move my website at [repo or folder] off [CMS name] and into plain code with Markdown files for content. First export the existing content from [CMS or export location], then use subagents to convert pages and posts into Markdown and update the templates and routes to read from those files. Finished means the site builds locally, the pages match the originals, and you give me a list of anything you could not migrate. Show me the plan before you delete any CMS code or integrations.

阅读原文 ↗

相关用例