/ecom:shopify-redirect-mappingfrom ecom
Creates bulk 301 redirects on Shopify by mapping old URLs to live pages using type-aware fuzzy matching. Recovers SEO equity after migrations, replatforms, or catalog restructures.
Ships in ecom. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Turn a list of 404ing URLs into live 301 redirects on a Shopify store using
type-aware fuzzy matching with a manual review queue for the leftovers. The job
is reclaiming search equity and rescuing lost visitors, not building a perfect
1:1 map. For bulk apply through a spreadsheet instead of the API, hand the final
map to the sibling shopify-matrixify skill's Redirects sheet.
A wrong-but-related redirect beats a 404. A visitor who lands on a close product or the right category still converts; a visitor who hits a dead page leaves. Google keeps some of the old page's equity when the 301 points somewhere topical; it keeps none when the URL 404s. So tune for coverage, not for a flawless match, and let a human review pass catch the misfires.
Worked case (an automotive-lifestyle brand, anonymized). A first pass used a single conservative 0.92 similarity threshold across all URL types. Out of 1,010 dead URLs it produced 6 redirects: effectively nothing, and the merchant called it useless. Re-running with per-type thresholds plus cross-type fallbacks yielded 725 live redirects (~72% coverage) from the same export. The lesson is blunt: do not ship a conservative first pass. Precision-first thresholds look safe and deliver nothing.
Different URL types tolerate different looseness. Classify each dead path by its prefix, then match it only against live inventory of the same type at these cut-offs:
-jacket landing on another -jacket). That is the acceptable
cost of recall; the review pass pulls the ones that are genuinely wrong.When a path can't clear its own-type threshold, fall down a type rather than giving up:
Never silently fall back to / (the homepage). Homepage fallback looks like
100% coverage but destroys the one signal that tells you a URL still needs human
attention, and it dilutes the redirect's topical value to nothing. A path that
matches nothing goes to the review queue, not to home.
Spec mismatches that are string-identical to the algorithm: a 12mm part slug is one character off a 14mm part slug, a size-S variant reads almost identical to size-XL. Fuzzy matching will confidently pick the wrong one. These get hand-pulled from the auto-apply set during review. That judgment call does not go away, and no threshold removes it.
Every matched path lands in exactly one bucket. This is what makes the pass auditable and the review scoped:
.jpg, .mp4,
/assets/), malformed rows, and anything that fell through to the queue. A
human sets or confirms the target here.Expect iteration. The anonymized case above took several passes (6 → 725 redirects) as fallback stages were added and the review queue was worked down. Budget for at least 2–3 passes on a first engagement: run, review the buckets, adjust thresholds or hand-edit targets, re-run. A one-shot redirect map is a sign you tuned for precision and left coverage on the table.
This skill reads inventory and writes redirects through the Admin API. Pick one lane; never write a token to a committed file.
Lane A, custom-app token. In Shopify admin: Settings → Apps and sales
channels → Develop apps → create an app → grant this skill's minimum scopes
(read_products, read_content, read_online_store_navigation,
write_online_store_navigation), install, and copy
the Admin API access token. Keep it in the env:
export SHOPIFY_STORE="your-store.myshopify.com"
export SHOPIFY_ACCESS_TOKEN="<your Admin API access token>" # env, not disk
Lane B, Shopify CLI OAuth (no stored token). shopify store auth --store $SHOPIFY_STORE --scopes read_products,read_content,read_online_store_navigation,write_online_store_navigation
then shopify store execute to run a validated operation.
Toolkit preflight. Lane B rides on the Shopify CLI: run shopify version
first and install it if missing. For the full Admin GraphQL schema and
validated execution, pair this skill with Shopify's official AI toolkit
plugin. In Claude Code, check claude plugin list; if it isn't there:
claude plugin marketplace add Shopify/Shopify-AI-Toolkit
claude plugin install shopify-plugin@shopify-ai-toolkit
Recommended, not required: Lane A needs only curl and a token. The toolkit gives your agent the API; this skill gives it the playbook.
urlRedirectCreate will error on a source path that already
redirects.urlRedirects dump) before a large write, so the pass is reversible.curl -I and look for 301 plus the mapped location.The GraphQL and matching logic in references/pipeline.md
are copy-and-adapt starting points. Your agent writes throwaway code per
engagement against the current schema, runs it, and discards it: that keeps the
pass honest across Shopify's quarterly schema changes rather than shipping a
binary that silently rots. The eight-step runbook, the matching-algorithm spec,
the urlRedirectCreate and Matrixify apply paths, the redirect-to-404 rot sweep
(urlRedirectUpdate), and the WordPress URL transforms all live there.
curl -I verify, plus WordPress pattern transforms.Last verified: 2026-07-05. GraphQL pinned to Admin API 2025-07; Shopify deprecates versions on a rolling quarterly schedule, so verify the mutation and query names against shopify.dev before trusting a version-specific claim. Read-only re-verification a stranger can run:
# 1. List existing redirects (confirms scope + shows current map)
curl -s "https://$SHOPIFY_STORE/admin/api/2025-07/graphql.json" \
-H "X-Shopify-Access-Token: $SHOPIFY_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"query":"{ urlRedirects(first:10){ edges{ node{ path target } } } }"}'
# 2. Probe an old path and confirm it 301s where you expect
curl -sI "https://$SHOPIFY_STORE/old-path" | grep -iE "^(HTTP|location)"
Canonical docs: Shopify URL redirects and the Admin GraphQL API; source the 404 export from Google Search Console (Pages → Not found). These skills capture operational lessons the docs don't; they are not a replacement for the reference.
What SKILL.md sets; muted values are Claude Code's defaults
9 skills in this plugin
/ecom-landing-pagesUse when someone wants landing page ideas, concepts, or angles for a store: "give me landing page concepts", "LP ideas", "landing page angles", a campaign or ad landing page, pages for a new audience/segment, a seasonal/event/promo page, or a geo/local page. Also use when a chosen concept gets picked and needs building out into an actual page (section-by-section blueprint), or when auditing an existing landing page against best practice. The core insight: one product becomes dozens of pages by varying the ANGLE, not the product. Not for full-site information architecture, product detail pages, collection pages, or blog/SEO content (a landing page has ONE goal, no site chrome). Use an SEO/content skill. Not for the ad or email creative itself, though message match with the page matters./shopify-alt-textUse when backfilling missing image alt text on a Shopify store: images with no alt attribute, accessibility alt text for product images, alt text for Files library images, image SEO, or a WCAG/accessibility pass that flags images missing text alternatives. Triggers: "backfill alt text", "fill in missing alt text", "images have no alt", "add alt attributes for accessibility", "image SEO sweep". One mutation, fileUpdate, covers both product media and the Files library. Not for meta titles/descriptions (use shopify-seo-metadata)./shopify-catalog-auditUse when someone wants to find product-data problems across a Shopify catalog: "audit my catalog", "find PDP problems", "which products have missing photos / thin or missing descriptions / pricing anomalies", "$0 or compare-at-inverted prices", "products missing type or vendor", "catalog quality sweep", "product data health check", "which listings are broken", "run a catalog audit before a big sale". Read-only: it locates and ranks problems, it does not change anything. Not for FIXING the problems it finds (use shopify-catalog-cleanup for debris/archiving, shopify-seo-metadata for missing SEO meta, shopify-alt-text for missing image alt text)./shopify-catalog-cleanupUse when fixing the debris an audit found in a Shopify catalog: bulk-archive dead/discontinued/zero-inventory products, clean up catalog debris, kill ghost review stars (empty star ratings a theme still renders after a review app was uninstalled), remove orphaned metafields left by an uninstalled app, strip HTML artifacts from product descriptions (double-nested bold, fully-bold paragraphs, empty tags), or fix messed-up / mangled product descriptions in bulk. Mutating cleanup work: archive vs delete, metafieldsDelete, description rewrites. Not for FINDING what's wrong (use shopify-catalog-audit) or filling missing metadata like SEO titles and alt text (use shopify-seo-metadata)./shopify-category-taxonomyUse when you assign the Shopify Standard Product Taxonomy category, "set the product category", "categorize the catalog", or fill the category / taxonomy metafields: the admin "Category metafields" panel (Color, Size, Material, Caffeine content), a.k.a. product category attributes / taxonomy attributes, including the attributes a Google feed asks for. Covers bulk classification, discovering a category's attributes and allowed values, minting the reserved value metaobjects, and writing them safely. Also: "category metafields show blank/null", "my Color attribute won't save". Not for bulk CSV data loads (Matrixify can't do this; see shopify-matrixify for bulk data)./shopify-json-ldUse when adding structured data / JSON-LD / schema markup to a Shopify store: recipe, FAQ, Article/BlogPosting, CollectionPage, AboutPage, or Organization schema; chasing Google rich-results / rich-snippet eligibility; debugging a Search Console "Invalid object type" or "missing field" schema error; or a request like "add schema to my store", "add recipe schema", or "why isn't my product showing rich results". This skill adds SUPPLEMENTAL JSON-LD the theme cannot emit dynamically, stored in a metafield and rendered by one Liquid snippet. Not for meta titles, meta descriptions, canonical tags, or Open Graph (use shopify-seo-metadata for those).npx claudepluginhub kgelster/awesome-ecom-skills --plugin ecomOther plugins' skills for the same job