ecom-landing-pages
Use 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…
Use when you need to map a pile of old URLs to live pages and turn them into 301 redirects on a Shopify store: fix 404s, bulk redirects after a migration/replatform/catalog restructure, turn a Google Search Console 404 export into live redirects, or WordPress→Shopify URL
$ npx -y skills add kgelster/awesome-ecom-skills --skill shopify-redirect-mapping --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/shopify-redirect-mappingContext preview
The summary Claude sees to decide when to auto-load this skill.
Use when you need to map a pile of old URLs to live pages and turn them into 301 redirects on a Shopify store: fix 404s, bulk redirects after a migration/replatform/catalog restructure, turn a Google Search Console 404 export into live redirects, or WordPress→Shopify URL
name: shopify-redirect-mapping description: >- Use when you need to map a pile of old URLs to live pages and turn them into 301 redirects on a Shopify store: fix 404s, bulk redirects after a migration/replatform/catalog restructure, turn a Google Search Console 404 export into live redirects, or WordPress→Shopify URL transforms (/YYYY/MM/slug/ → /products/slug). Trigger phrases: "map old URLs", "fix our 404s", "redirect the dead links", "we relaunched and lost our rankings". Recovers SEO equity and rescues users after a URL structure changes. Not for creating a single one-off redirect (do it in admin). compatibility: >- Requires Shopify Admin API (custom-app token or Shopify CLI 3.x), GraphQL written against Admin API 2025-07, scopes read_products/read_content/ read_online_store_navigation/write_online_store_navigation. Or apply in bulk via the Matrixify Redirects sheet.
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:
discontinued `-jacket` landing on another `-jacket`). That is the acceptable cost of recall; the review pass pulls the ones that are genuinely wrong.
nearby collection is a better landing than the homepage.
review queue catches the rest.
When a path can't clear its own-type threshold, fall *down* a type rather than giving up:
queue. A category page is a better landing than the homepage; a *wrong* product is worse than no product, so a weak product match falls through to collection rather than being forced.
**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:
1. **auto-apply**: cleared its type threshold. Still eyeballed before pushing, but the default is to ship it. 2. **review**: low-confidence matches, media assets (`.jpg`, `.mp4`, `/assets/`), malformed rows, and anything that fell through to the queue. A human sets or confirms the target here. 3. **skip**: no-op, where the best target equals the source path. Dedupe source paths so one dead URL yields one redirect.
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. F
Shopify's plugin gives your agent the API. This gives it the playbook. Shopify's official AI toolkit gives your agent the Admin API: schema, mutations, reference.
Use 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…
Use 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…
Use when someone wants to find product-data problems across a Shopify catalog: "audit my catalog", "find PDP problems", "which products have missing photos /…
Use when fixing the debris an audit found in a Shopify catalog: bulk-archive dead/discontinued/zero-inventory products, clean up catalog debris, kill ghost…
Use when you assign the Shopify Standard Product Taxonomy category, "set the product category", "categorize the catalog", or fill the category / taxonomy…
Use when adding structured data / JSON-LD / schema markup to a Shopify store: recipe, FAQ, Article/BlogPosting, CollectionPage, AboutPage, or Organization…