/anglesite:convertfrom anglesite
Converts existing static site generator projects (Hugo, Jekyll, Next.js, Gatsby, Nuxt, Docusaurus, VuePress, MkDocs, Eleventy, Hexo) to Anglesite/Astro with Markdoc content, image migration, and redirect generation.
Ships in anglesite. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Convert an existing static site generator project in the current directory to Anglesite (Astro + Keystatic CMS). Reads content from Hugo, Jekyll, Next.js, Gatsby, Nuxt, Docusaurus, VuePress, MkDocs, Eleventy, or Hexo projects. Migrates posts and pages into Markdoc, copies images, and generates redirect mappings. Your existing files are preserved — new Anglesite files are created alongside them.
Before reading the platform-specific doc, read ${CLAUDE_PLUGIN_ROOT}/docs/import/ssg-migrations.md
for template syntax stripping, frontmatter mapping conventions, image file
handling, and config-driven content discovery.
The platform-specific docs (${CLAUDE_PLUGIN_ROOT}/docs/import/PLATFORM.md) cover only what's unique
to that platform — config structure, content directories, template syntax
families, and URL patterns.
public/images/blog/. No references to old paths.syndication URL if the old site had a known public URL..mdoc files in src/content/posts/Before every tool call or command that will trigger a permission prompt, explain what you're about to do and why. The owner is non-technical.
Use Glob to check for src/content/config.ts or src/content.config.ts (Astro 5
moved the content config to src/content.config.ts; either path means Anglesite).
If either exists AND the current directory also has an SSG config file (see table
below), treat it as a conversion that was already scaffolded — read .site-config
and skip to Step 1.
If either exists but there's no SSG project here, tell the owner:
"This is already an Anglesite project. If you want to import content from a website, use
/anglesite:importwith the URL instead."
Stop.
Use Glob to check for these config files in the current directory:
| Config file(s) | Platform |
|---|---|
hugo.toml, hugo.yaml, hugo.json, or config.toml (with [params]) | Hugo |
_config.yml AND (Gemfile with jekyll OR _posts/ directory) | Jekyll |
next.config.js, next.config.mjs, or next.config.ts | Next.js |
gatsby-config.js or gatsby-config.ts | Gatsby |
nuxt.config.js, nuxt.config.ts, or nuxt.config.mjs | Nuxt |
docusaurus.config.js or docusaurus.config.ts | Docusaurus |
.vuepress/config.js or .vuepress/config.ts (in docs/ or root) | VuePress |
mkdocs.yml | MkDocs |
.eleventy.js, eleventy.config.js, eleventy.config.ts, eleventy.config.mjs, or eleventy.config.cjs | Eleventy |
_config.yml AND package.json containing "hexo" | Hexo |
If no SSG is detected, tell the owner:
"I don't recognize the project type in this directory. If you want to import content from a website URL, use
/anglesite:importinstead. Or tell me which generator this project uses and where the content files are."
Wait for guidance.
If an SSG is detected, tell the owner:
"I see you have a [Platform] project here. I can convert this to an Anglesite site — that means moving your content into Astro with Keystatic CMS, so you get a visual editor and easy publishing to Cloudflare Workers.
Your existing files won't be deleted — I'll read your content and create new files alongside them. Would you like to go ahead?"
Wait for confirmation. If they decline, stop.
Store the detected platform as PLATFORM.
bash "${CLAUDE_PLUGIN_ROOT}/scripts/scaffold.sh" --yes .
Ask the essentials (normally gathered by /anglesite:start):
Don't ask for the owner's name here — convert doesn't need it upfront. The footer (Step 7's copyright line) and any About-page work will prompt for it on-demand if OWNER_NAME isn't already in .site-config. See "On-demand owner name" in ${CLAUDE_PLUGIN_ROOT}/skills/start/SKILL.md.
The scaffold has already created .site-config and stamped ANGLESITE_VERSION into it. Read the file, then add these keys with the Edit tool, keeping the existing ANGLESITE_VERSION line untouched:
SITE_TYPE=blog
SITE_NAME=Site Name
DEV_HOSTNAME=sitename.local
AI_MODEL=(write your actual model name here)
EXPLAIN_STEPS=true
POST_URL_PREFIX=blog
Note: POST_URL_PREFIX defaults to blog here. It will be updated after the
URL structure question in Step 1 if the owner chooses to keep root-level URLs.
npm install
Tell the owner:
"I'm reading through your [Platform] project to catalog all the content. This takes about a minute."
Read the platform doc (${CLAUDE_PLUGIN_ROOT}/docs/import/PLATFORM.md) and the shared SSG guidance
(${CLAUDE_PLUGIN_ROOT}/docs/import/ssg-migrations.md) to learn:
| Platform | Doc reference |
|---|---|
| Hugo | ${CLAUDE_PLUGIN_ROOT}/docs/import/hugo.md |
| Jekyll | ${CLAUDE_PLUGIN_ROOT}/docs/import/jekyll.md |
| Next.js | ${CLAUDE_PLUGIN_ROOT}/docs/import/nextjs.md |
| Gatsby | ${CLAUDE_PLUGIN_ROOT}/docs/import/gatsby.md |
| Nuxt | ${CLAUDE_PLUGIN_ROOT}/docs/import/nuxt.md |
| Docusaurus | ${CLAUDE_PLUGIN_ROOT}/docs/import/docusaurus.md |
| VuePress | ${CLAUDE_PLUGIN_ROOT}/docs/import/vuepress.md |
| MkDocs | ${CLAUDE_PLUGIN_ROOT}/docs/import/mkdocs.md |
| Eleventy | ${CLAUDE_PLUGIN_ROOT}/docs/import/eleventy.md |
| Hexo | ${CLAUDE_PLUGIN_ROOT}/docs/import/hexo.md |
Use Glob to find all .md and .mdx files in the content directories specified
by the platform doc. Read each file to extract frontmatter and body content.
Build BLOG_POSTS from files in blog/post directories. Build STATIC_PAGES from files in page/doc directories.
If no SSG is detected (user provided manual guidance), use the directories they specified.
Many SSGs use template files with pagination to dynamically generate pages from collection metadata (tags, categories, authors, date archives). These are not Markdown content files — they're template files that produce multiple pages at build time. Glob for them separately:
| Platform | What to look for |
|---|---|
| Eleventy | .webc, .njk, .liquid, .11ty.js files with pagination: in frontmatter |
| Hugo | _index.md in taxonomy dirs (tags/, categories/), layouts/taxonomy/, layouts/_default/taxonomy.html, layouts/_default/term.html |
| Jekyll | Files using site.tags, site.categories, or paginator in Liquid templates |
| Gatsby | gatsby-node.js calls to createPages that iterate over tags/categories |
| Next.js | [tag].tsx, [category].tsx, or other dynamic route files under pages/tags/, pages/categories/ |
| Hexo | _config.yml tag/category settings + theme layout/tag.ejs, layout/category.ejs |
| Docusaurus | Tag pages are auto-generated — check blog/tags/ config in docusaurus.config.js |
For each platform, use Glob to search for these patterns. Read any found files to determine what collection data they paginate over (tags, categories, authors, years, etc.).
Build PAGINATION_PAGES from the discovered templates. Each entry should note:
tags, categories, authors, date-archive, or custom/tags/ index)/tags/{tag}/)Tell the owner what was found. Example:
"Here's what I found in your project:
Blog posts: 23 posts (July 2024 – February 2026) Pages: 6 pages (About, FAQ, Services, Contact, Gallery, Docs) Dynamic pages: Tag pages (8 tags), category pages (4 categories)
I'll convert all the blog posts, create pages for the static content, and generate tag and category pages. This will take about 5–10 minutes for a project this size."
Include PAGINATION_PAGES in the inventory if any were found. List the type and count (e.g., "8 tags" or "3 author pages").
Ask:
"Would you like to convert all of it, or just the blog posts?"
- Everything — posts + pages + dynamic pages + redirects (recommended)
- Blog posts only — skip static pages and dynamic pages
Wait for their answer before continuing.
Detect the source site's blog post URL pattern from the SSG config and content
files. For example, Eleventy with permalink: /{{ page.fileSlug }}/ means posts
live at /{slug}/, while Jekyll's default is /YYYY/MM/DD/{slug}/.
Tell the owner what you found and ask what URL structure they want:
"Your [Platform] site currently serves posts at
/{slug}/(e.g.,/copper-charlie/). For the converted site, would you like to:"
- Keep
/{slug}/— posts stay at the same URLs, no redirects needed- Use
/blog/{slug}/— posts move under/blog/, old URLs redirect automatically
If you can't detect the source pattern, default to offering both options.
Wait for their answer. Store the choice as POST_URL_PREFIX in .site-config:
/{slug}/, set POST_URL_PREFIX= (empty — root-level posts)/blog/{slug}/, set POST_URL_PREFIX=blog (the default)This value determines:
[slug].astro is placed: src/pages/POST_URL_PREFIX/[slug].astro
(or src/pages/[slug].astro if empty)href prefix in homepage and listing templatesIf POST_URL_PREFIX is empty and you move [slug].astro out of src/pages/blog/,
ensure the new file still includes export const prerender = true; in its frontmatter.
This is required for getStaticPaths() to work in dev mode (hybrid output).
Read the source project's colors, fonts, logo, and layout so the converted site keeps its existing look and feel. Read ${CLAUDE_PLUGIN_ROOT}/skills/convert/visual-identity.md and follow it.
Tell the owner:
"I'm converting your blog posts now. I'll keep you posted on progress."
Ensure the image directory exists:
mkdir -p public/images/blog
Read ${CLAUDE_PLUGIN_ROOT}/docs/content-conversion.md for the full
content conversion, image optimization, and .mdoc writing procedures.
For each post in BLOG_POSTS:
Parse the frontmatter using the field mapping from the platform doc
Convert body content following the shared conversion procedures — also apply
the platform doc's "Content conversion" section and
${CLAUDE_PLUGIN_ROOT}/docs/import/ssg-migrations.md for platform-specific
template syntax stripping
Copy and optimize images per the shared procedures. The platform doc's
"Image handling" section specifies where images are stored (e.g.,
static/img/ for Docusaurus, source/images/ for Hexo, content/ for
Hugo page bundles)
After copying the images, run npm run ai-alt once. On a capable Mac it
drafts on-device alt text for any image lacking it (including .webp) into
image-alt.json; elsewhere it's a no-op. When writing each post, where the
source frontmatter/Markdown has no alt for an image, use the draft from
image-alt.json for the  / imageAlt and flip that entry to
reviewed. Keep any alt the source already provided.
Write the .mdoc file per the shared procedures. Use -converted suffix
for slug conflicts
find src/pages -name "*.astro" -type f
Build a PROTECTED_PAGES set from existing page paths (relative to src/pages/,
without the .astro extension). For example, src/pages/contact.astro becomes
contact. These pages will not be overwritten during conversion.
If the owner chose "Everything", process STATIC_PAGES.
For each page, read the source file and convert the content to clean Markdown (same template syntax stripping as Step 2).
Before writing, check if the target slug is in PROTECTED_PAGES. If the page already exists, do NOT overwrite it. Add it to SKIPPED_PAGES with the converted content so the owner can review it in the summary. This preserves scaffolded functionality like contact forms, review forms, and subscribe forms.
If the page does not exist, create a .astro file in src/pages/ with the
page title, meta description, BaseLayout wrapper, and the converted content.
For pages that are primarily image galleries (10+ images), create a gallery page with a responsive CSS grid layout.
If PAGINATION_PAGES is non-empty and the owner chose "Everything", generate Astro dynamic route pages for each discovered pagination type.
Read ${CLAUDE_PLUGIN_ROOT}/skills/convert/dynamic-route-pages.md and follow
the instructions to generate tag, category, author, date-archive, and custom
pagination pages as needed.
Read POST_URL_PREFIX from .site-config to determine the target URL pattern.
Skip redirects when source and target URL patterns match. For example, if the
source Eleventy site serves posts at /{slug}/ and the owner chose to keep
/{slug}/, no blog post redirects are needed — the URLs are identical. Still
generate redirects for aliases or permalink overrides that differ from the
default pattern.
If redirects are needed (the URL structure changed), read the existing
public/_redirects file. Append new rules — do not overwrite existing entries.
The platform doc's "URL patterns for redirects" section describes the old URL
structure. Generate redirects based on the source file paths and any permalink
or aliases frontmatter. Use POST_URL_PREFIX to compute the target URL
(e.g., /POST_URL_PREFIX/slug or /slug if the prefix is empty). Common
patterns:
aliases field → one redirect per alias/YYYY/MM/DD/slug/ → /POST_URL_PREFIX/slug_config.yml → computed old URLs/docs/path and /POST_URL_PREFIX/slugWrite the updated _redirects file, preserving all existing rules and comments.
For every rule appended in this step, also append a row to .anglesite/url-map.csv
(create the directory and file if missing) so /anglesite:redirects review
has an audit trail. The format is from,to,status,note,source — for example:
/old/slug,/blog/slug,301,platform-rename,convert:hugo
Use convert:<platform> for the source column (substituting the detected SSG)
and a short note describing why the rule was added (platform-rename,
alias, permalink-override, etc.).
Replace the scaffold placeholder in src/pages/index.astro with content appropriate for SITE_TYPE. Read ${CLAUDE_PLUGIN_ROOT}/skills/convert/homepage.md and follow it.
Follow the build-and-verify procedure in
${CLAUDE_PLUGIN_ROOT}/docs/content-conversion.md. Fix all build
errors before presenting results (ADR-0012).
Give the owner a plain-English summary:
"Your project has been converted! Here's what happened:
Design: Carried over your colors, fonts, logo, and layout from the original site Blog posts: 21 of 23 converted successfully Images: 19 copied and optimized Redirects: 27 redirect rules added Pages created: 4 (About, FAQ, Services, Contact) Dynamic pages: Tag pages (8 tags), category pages (4 categories)
The design should look close to your original site. If anything looks off or you'd like to tweak colors, fonts, or layout, just let me know."
Include dynamic pages in the summary only if PAGINATION_PAGES was non-empty.
If any posts failed to convert, list them so the owner knows what needs attention.
For each SKIPPED_PAGES entry, tell the owner what was found and that the existing page was preserved:
"Your [page name] page already existed, so I kept it as-is. Here's what was in your old project for that page: [converted content summary]. Let me know if you'd like me to add any of that."
Snapshots go on the draft branch — never commit to main. An existing project usually has its own git history on another branch, so check first:
git rev-parse --abbrev-ref HEAD
If the command fails because this folder isn't a git repository yet, skip this step and tell the owner the conversion hasn't been snapshotted yet. If it prints anything other than draft, switch to draft (your uncommitted changes come along):
git checkout draft
If that fails because draft doesn't exist yet, create it:
git checkout -b draft
Then save:
git add -A
git commit -m "Convert from PLATFORM to Anglesite (N posts, N pages)"
Replace PLATFORM and N with actual values.
Tell the owner:
"Your project is converted! Here's what you can do next:
- Preview it: Run
npm run devto see your site locally- Customize the design: Just ask me to change colors, fonts, or layout
- Deploy it: Type
/anglesite:deploywhen you're ready to go live- Clean up old files: Once you're happy with the conversion, I can help remove the old [Platform] config and source files"
After this skill runs, update docs/architecture.md to note that content was
converted and the date. Example:
"Content converted from [Platform] on YYYY-MM-DD. N posts, N pages. Redirects in
public/_redirects."
See ${CLAUDE_PLUGIN_ROOT}/docs/content-conversion.md for shared edge
cases (large images, multilingual content, slug conflicts, mixed formats).
If BLOG_POSTS is empty after discovery:
"Your project doesn't appear to have blog posts. I can still convert your pages and set up redirects."
Continue with Steps 3-4 for pages and redirects only.
If the SSG project is in a subdirectory of a monorepo (e.g., packages/blog/),
the content directories are relative to that subdirectory. Adjust Glob paths
accordingly.
What SKILL.md sets; muted values are Claude Code's defaults
Use when the owner has the source folder of an existing static-site-generator project and wants it moved to Anglesite.
npx claudepluginhub anglesite/anglesite-skills --plugin anglesite56 skills in this plugin
/bookingEmbed appointment scheduling (Cal.com or Calendly) into the siteOther plugins' skills for the same job