什麼時候適合用?
想把 WordPress 官網或部落格搬到靜態網站、又怕掉 SEO 排名與網址的網站經營者、行銷人員與接案開發者
建議從這裡開始
在 coding agent 貼上「Convert https://example.com to Astro with https://github.com/ethanplusai/astro-conversion-kit」,agent 會自行安裝 skills,只用一則訊息問你 repo 放哪、用哪個主機、表單怎麼處理(每題都有預設值,回答 defaults 就全用預設),之後一路跑到 pull request。流程依 README 分為 Intake、Capture(只讀不寫的爬取,含 sitemap 與 WordPress REST API)、Plan、Scaffold and baseline、Build、Gates(檢查路由、轉址、SEO 標籤、文字、連結、媒體、sitemap、feed、表單與腳本)、Visual review、Launch checks(pre-launch、launch-audit、post-launch 監看上線後 30 天)。產出包含 astro-rebuild 分支的 PR、Vercel 或 Cloudflare Pages 的 noindex 測試站、截圖對照表、docs/suggestions.md(壞連結、缺 alt、重複標題等改善建議)與 docs/LAUNCH.md 上線手冊。預設照原樣重現網站,修正僅以建議提出由你核准。
一段可以調整的起手指令
Convert https://你的網站.com to Astro with https://github.com/ethanplusai/astro-conversion-kit
(問答時請全部用預設值;完成後用繁體中文整理 docs/suggestions.md 裡跟 SEO 有關的改善建議給我)將情境、資料與輸出需求改成自己的任務;這段指令是本站提供的練習範例。
安裝與環境確認
需要準備
Node 22.23.4 以上(22 版)或 24.22.1 以上,Node 20 會被拒絕;git;若要自動建立 repo 與 PR 需 GitHub 帳號並登入 gh;測試站與正式站需 Vercel 或 Cloudflare 帳號(轉換本身可不用);Playwright 的 Chromium;macOS 或 Linux(此版本不支援 Windows);能執行 shell 指令的 coding agent(Claude Code、Codex 或其他讀 SKILL.md 的 agent)。授權 MIT。
以下文字可交給支援工具操作的 AI 代理。複製不會自動安裝;先核對官方文件、安裝位置與權限,再執行。
安裝指令(一句話交給 agent 從頭轉換)
Convert https://example.com to Astro with https://github.com/ethanplusai/astro-conversion-kit
安裝指令(先安裝 skills 到支援 Agent Skills 的 agent)
npx skills add ethanplusai/astro-conversion-kit
安裝指令(Claude Code 外掛市集)
/plugin marketplace add ethanplusai/astro-conversion-kit
/plugin install astro-conversion@astro-conversion-kit
安裝指令(從 clone 安裝並檢查所需工具)
git clone https://github.com/ethanplusai/astro-conversion-kit
cd astro-conversion-kit
npm install
npx playwright install chromium
node skills/convert-site/scripts/preflight.mjs
安裝後的小任務驗收
使用前先確認
靜態網站做不到的功能(站內搜尋、留言、購物車、登入、使用者產生內容)會在 Intake 時列為範圍外,並提供第三方嵌入、保留在舊平台子網域或另開專案等選項。不會在舊站送出表單或登入、不會動 DNS、不會直接 commit 到 main(只會 commit scaffold)、不會放寬檢查關卡;一次只處理一個網站。
請依來源專案說明確認支援的代理、必要工具與授權範圍。不同 Skill 可能採不同授權條款,商業使用或再散布前應閱讀對應文件。