/anglesite:import [website URL]from anglesite
Imports blog posts, pages, and images from a live website URL into Anglesite. Supports WordPress, Squarespace, Wix, Webflow, Ghost, Medium, Substack, Blogger, Shopify, and more. Detects platform automatically, downloads images locally, and generates redirect mappings.
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.
Import blog posts, pages, and images from a live website URL. Supports WordPress, Squarespace, Wix, Webflow, GoDaddy, Ghost, Medium, Substack, Blogger, Shopify, Weebly, Tumblr, Micro.blog, WriteFreely, and Carrd. Detects the platform automatically and uses the best extraction method. Migrates content into the site's Markdoc collection, downloads images, and generates redirect mappings so existing links and search rankings are preserved.
To convert an existing static site generator project (Hugo, Jekyll, Eleventy,
etc.) in the current directory, use /anglesite:convert instead.
Before reading the platform-specific doc, read ${CLAUDE_PLUGIN_ROOT}/docs/import/hosted-platforms.md
for HTML-to-Markdown conversion rules, image CDN handling, pagination patterns,
missing field fallbacks, and redirect best practices.
The platform-specific docs (${CLAUDE_PLUGIN_ROOT}/docs/import/PLATFORM.md) cover only what's unique
to that platform — detection signals, API/feed endpoints, platform-specific HTML
elements, and CDN URL patterns. The shared docs cover everything common.
These apply to every import regardless of platform:
syndication URL pointing to the original. This maintains the content trail (ADR-0006)..mdoc files in src/content/posts/, the same format Keystatic editssyndication URLs pointing back to their originals so the provenance trail is preservedBefore 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.
Before starting the import, surface the migration education prompts from ${CLAUDE_PLUGIN_ROOT}/docs/education-prompts.md section 7 ("Migration Flow"). Check .site-config for each EDUCATION_<KEY>=shown flag before surfacing. Share THEME_OWNERSHIP, PRUNING, and PLATFORM_DESIGN — frame as "a few things worth knowing before we start." Tailor the THEME_OWNERSHIP and PLATFORM_DESIGN copy to the detected platform name (e.g., "WordPress," "Squarespace"). Write the flags to .site-config after.
Ask the owner for their website URL if they didn't provide one as an argument. The URL is the primary input — ask for it first before anything else.
Normalize: strip trailing slashes, ensure https://. Store as SITE_URL.
Use Glob to check for src/content/config.ts or src/content.config.ts (Astro 5
moved the content config; either path means Anglesite).
If either exists, this project has already been scaffolded. Read .site-config to
load SITE_NAME (and OWNER_NAME if it's set; don't prompt for it here — import
doesn't need it). Skip to Step 1.
If neither content config file exists, check the working directory:
If it contains an SSG project (Hugo, Jekyll, Eleventy, etc. config files), tell the owner:
"It looks like you have a [Platform] project here. To convert it to Anglesite, use
/anglesite:convertinstead./anglesite:importis for importing from a website URL."
Stop.
If the directory is essentially empty (only dotfiles like .git), scaffold:
bash "${CLAUDE_PLUGIN_ROOT}/scripts/scaffold.sh" --yes .
No questions yet — the site name will be detected from the homepage in Step 3a, and the owner's name is collected later only if a downstream output needs it (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 the minimum with the Edit tool, keeping the existing ANGLESITE_VERSION line untouched:
SITE_TYPE=blog
SITE_NAME=My Site
DEV_HOSTNAME=mysite.local
AI_MODEL=(write your actual model name here)
EXPLAIN_STEPS=true
npm install
If the directory has files but no recognized SSG, tell the owner:
"This directory has files in it but I don't recognize the project type. To import from a website, I'd recommend starting in an empty directory. Or use
/anglesite:convertif this is a static site project."
Wait for guidance.
Detect the source platform, fetch its content inventory, and set PLATFORM, POSTS, STATIC_PAGES, and the other discovery variables used by the steps below. Read ${CLAUDE_PLUGIN_ROOT}/skills/import/platform-detection.md and follow it; its Step 1b sends you to ${CLAUDE_PLUGIN_ROOT}/skills/import/content-discovery.md for the detected platform — read that file in full too.
Convert each discovered post to a Keystatic .mdoc file, download and optimize its images, and track redirects for Step 5. Read ${CLAUDE_PLUGIN_ROOT}/skills/import/blog-posts.md and follow it.
If PLATFORM is ghost or substack, read
${CLAUDE_PLUGIN_ROOT}/skills/import/newsletter-migration.md and follow the
instructions to offer newsletter migration.
Process STATIC_PAGES — extract homepage branding, then convert the remaining pages to Astro pages. Read ${CLAUDE_PLUGIN_ROOT}/skills/import/static-pages.md and follow it.
If GALLERY_PAGES is empty, skip this step entirely.
For each gallery page, tell the owner:
"I found a gallery with images on your [page name] page. Would you like me to download them all? I'll create a gallery page on your new site."
If they say yes:
Use WebFetch on the gallery page with this prompt:
"List every image URL on this page. For each image, provide:
- The full image URL (from the src attribute)
- The alt text (if any)
- Any caption or title text associated with the image"
Ensure the gallery image directory exists:
mkdir -p public/images/gallery
Download each image:
curl -L -s -o "public/images/gallery/PAGE-SLUG-NN.jpg" "IMAGE_URL"
Check file size and convert with sharp-cli if over 500KB (same as Step 2c).
After the gallery images are downloaded and converted, run npm run ai-alt
again (it's idempotent — it only drafts images that have no entry yet, so this
just covers the new gallery images). On a capable Mac it drafts on-device alt
text for any gallery image lacking it into image-alt.json; elsewhere it's a
no-op.
Create a gallery .astro page in src/pages/ with:
BaseLayout wrapper<img> tag with the local path and alt text — where
the source had no alt, use the draft from image-alt.json (keyed by the
image's /images/gallery/... path) and treat that entry as reviewed; keep
any alt the source providedRead the existing public/_redirects file. Append new rules — do not overwrite
existing entries.
The redirect pattern depends on the platform's URL structure:
WordPress: WordPress has multiple permalink structures. Use the actual URLs
from the API response (link field) to determine the pattern.
Common patterns:
# "Day and name" or "Month and name" permalinks
/YYYY/MM/DD/slug/ /blog/slug 301
/YYYY/MM/slug/ /blog/slug 301
# "Post name" permalink
/slug/ /blog/slug 301
# Default (query parameter)
/?p=123 /blog/slug 301
Generate a redirect for each post using the actual old URL path.
Squarespace:
Squarespace blog URLs depend on the collection name and permalink format. The
collection may not be /blog — it could be /news, /journal, etc. Some sites
use date-based URLs like /news/YYYY/M/slug. Use the actual URLs from the RSS
feed or WXR export.
# Same path (collection is already /blog)
/blog/slug /blog/slug 200
# Different collection name
/news/slug /blog/slug 301
# Date-based URLs
/news/2026/3/slug /blog/slug 301
If old and new paths match, use 200 (passthrough). If they differ, use 301.
Wix:
/post/slug /blog/slug 301
For pages where the old and new URL paths match, no redirect is needed.
For pages with different paths (including opaque Wix slugs renamed in Step 3c):
/old-path /new-path 301
Include any redirect rules generated by resolvePageSlug in Step 3c. These
handle opaque Wix slugs like general-5 that were renamed to match page titles.
For app-powered pages with no equivalent yet, use a temporary redirect:
/app-page / 302
Note the 302s in the output — they should be updated to 301s once the owner sets up the replacement tool.
Add trailing-slash redirects as needed:
/blog/ /blog 301
Write 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 can
walk the owner through what was added. The format is from,to,status,note,source.
Use import:<platform> for the source column (e.g., import:wordpress,
import:wix) and a short note describing why the rule was added — common
values are platform-rename, wix-opaque-slug, date-permalink-collapse, and
app-page-placeholder (302s pointing at / for booking, store, events, etc.,
which the owner should revisit once they pick a replacement tool).
If a rendered backend (Safari or Playwright) captured tokens and design
tokens were extracted from the homepage in Step 2a, apply them to
src/styles/global.css:
global.css--color-primary, --color-accent, --color-bg, --color-text, --color-muted--font-heading, --font-bodyTell the owner:
"I extracted your site's brand colors and fonts from the original design:
Colors: primary [hex], accent [hex], background [hex] Fonts: headings in [font], body text in [font]
These have been applied to your new site's stylesheet."
If the rendered backend failed on the homepage and no tokens were captured,
skip this step. The owner can set up colors and fonts later by asking you to
change the design — when they do, read and follow
${CLAUDE_PLUGIN_ROOT}/skills/design-interview/SKILL.md.
This step now applies to Squarespace imports too — extract homepage tokens
with --styles-only via RENDER_BACKEND when available.
Follow the build-and-verify procedure in
${CLAUDE_PLUGIN_ROOT}/docs/content-conversion.md.
After a clean build, also check for remaining external image dependencies:
grep -rE "wixstatic\.com|squarespace-cdn\.com|wp-content/uploads" dist/ --include="*.html"
If any references to the old platform's CDN appear in the built HTML, find the source files and replace with locally downloaded images (ADR-0008, ADR-0011).
Give the owner a plain-English summary:
"Your content has been imported! Here's what happened:
Blog posts: 21 of 23 imported successfully Images: 19 downloaded and optimized Redirects: 27 redirect rules added Pages imported: 4 with full content (About, FAQ, Services, Contact) Homepage: Updated with your actual content and branding (say this only if Step 3d replaced the placeholder — if the existing homepage was kept, report it with the other SKIPPED_PAGES below instead) Navigation: Set up with links to all your pages
A couple of things to know:
- 2 posts couldn't be fetched (listed below). You can add them manually in Keystatic.
- Your booking page used [Platform]'s scheduling tool. I've set up a redirect for now — we can set up an alternative together.
The site builds correctly and all the redirects are in place. Your search rankings should carry over once you publish.
One more thing: This first pass focuses on getting all your content moved over accurately. The formatting and layout might not match your old site exactly — that's normal. Once you've had a chance to look through it, just let me know what you'd like adjusted and I'll make design tweaks until it looks right."
List FAILED_POSTS, FAILED_PAGES, and FAILED_IMAGES so the owner knows what needs attention.
For each SKIPPED_PAGES entry, tell the owner what was found on their old site and that the existing page was preserved:
"Your [page name] page already has [describe existing functionality, e.g., 'a contact form']. I kept it as-is. Here's what I found on your old site for that page: [extracted content summary]. Let me know if you'd like me to add any of that to the existing page."
For each APP_PAGES entry, suggest a replacement:
${CLAUDE_PLUGIN_ROOT}/docs/platforms/."${CLAUDE_PLUGIN_ROOT}/docs/platforms/."Snapshots go on the draft branch — never commit to main. Check the current branch 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 import 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 "Import content from PLATFORM (N posts, N pages)"
Replace PLATFORM and N with actual values.
Read GITHUB_REPO from .site-config. If set, push to GitHub:
git push origin draft
If the push fails, log the issue but don't block the import.
Ask:
"Would you like to publish the imported content now? I'll run the security check first. Or you can review it in Keystatic first — just type
/anglesite:deploywhen you're ready."
If they say yes, run /anglesite:deploy.
Platform-specific import guides are in ${CLAUDE_PLUGIN_ROOT}/docs/import/. Each doc covers:
See ${CLAUDE_PLUGIN_ROOT}/docs/import/README.md for the full index.
After this skill runs, update docs/architecture.md to note that content was
imported and the date. Example:
"Content imported 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).
If BLOG_POSTS is empty after discovery:
"Your website doesn't appear to have a blog. I can still import your pages and images, and set up redirects."
Continue with Steps 3–5 for pages, galleries, and redirects only.
Booking, store, event, forum, and member pages cannot be meaningfully imported — the content depends on the platform's runtime infrastructure. Redirect to home (302) and present replacement options in Step 7.
Some WordPress sites disable the REST API. If /wp-json/ returns 403 or 401,
fall back to the RSS feed (/feed/) which usually contains full post content,
then use WebFetch for anything not in the feed.
Warn the owner before they cancel their Squarespace subscription:
"Important: the images on your Squarespace site will stop being available after you cancel your subscription. Make sure I've downloaded everything before you cancel. Let me verify all images are saved locally."
Run the build verification (Step 6) to confirm no external image URLs remain.
Some WordPress sites use custom post types (portfolios, testimonials, products).
The REST API may expose these at /wp-json/wp/v2/TYPE_NAME. If the categories
or tags response mentions custom taxonomies, probe for custom endpoints. Report
any custom post types to the owner and ask how they'd like to handle them.
What SKILL.md sets; muted values are Claude Code's defaults
Use when the owner already has a website on another platform and wants its posts, pages, and images moved into Anglesite.
npx claudepluginhub anglesite/anglesite-skills --plugin anglesite56 skills in this plugin
/add-storeAdd ecommerce to the site — picks and sets up a provider for physical goods, digital downloads, services, or software/animateDesign CSS animations: hover effects, scroll reveals, page transitions/backupBack up site changes to GitHub, or restore an earlier snapshot/bookingEmbed appointment scheduling (Cal.com or Calendly) into the site/business-infoCollect and display business hours, address, phone, and LocalBusiness JSON-LD/buy-buttonAdd a buy button to sell a product, service, or digital good (Stripe or Polar)Other plugins' skills for the same job