Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
40rty-ai avatar

Shopify Admin Url Redirect Audit

  • 7 installs
  • 173 repo stars
  • Updated June 26, 2026
  • 40rty-ai/shopify-admin-skills

shopify-admin-url-redirect-audit is a Claude Code skill that lists all Shopify URL redirects and flags redirect chains and duplicate targets.

About

A Claude Code skill that queries all Shopify URL redirects and identifies redirect chains, duplicate targets, and orphaned redirects. It builds a from-path to target map and reports issues that add latency and hurt SEO. Merchants run it after store migrations or bulk URL changes.

  • Lists all Shopify URL redirects and flags redirect chains (A→B→C)
  • Detects duplicate targets pointing multiple paths to the same page
  • Read-only SEO housekeeping; exports a redirect_audit CSV

Shopify Admin Url Redirect Audit by the numbers

  • 7 all-time installs (skills.sh)
  • Ranked #1,549 of 1,879 Marketing & SEO skills by installs in the Skillselion catalog
  • Data as of Aug 1, 2026 (Skillselion catalog sync)
At a glance

shopify-admin-url-redirect-audit capabilities & compatibility

Free; requires an authenticated Shopify CLI session with read_content.

Capabilities
redirect audit · seo audit · chain detection
Use cases
seo · security audit
Runs
Runs locally
Pricing
Free
From the docs

What shopify-admin-url-redirect-audit says it does

Read-only: lists all URL redirects, flags redirect chains (A→B→C) and duplicate targets.
SKILL.md
Redirect chains add latency and hurt SEO.
SKILL.md
npx skills add https://github.com/40rty-ai/shopify-admin-skills --skill shopify-admin-url-redirect-audit

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs7
repo stars173
Last updatedJune 26, 2026
Repository40rty-ai/shopify-admin-skills

What it does

Audit Shopify URL redirects for chains and duplicates that harm SEO.

Who is it for?

Store owners cleaning up redirects after a migration or URL restructure.

Skip if: Deleting or fixing redirects; it is read-only and only reports issues.

When should I use this skill?

After a store migration or bulk URL change where redirects may have piled up.

What you get

A report of redirect chains, duplicate targets, and a redirect_audit CSV.

  • redirect_audit_<date>.csv
  • Chains and duplicate-targets report

By the numbers

  • 1 GraphQL query operation
  • paginates 250 redirects per page

Files

SKILL.mdMarkdownGitHub ↗

Purpose

Queries all URL redirects in the store and identifies redirect chains (where redirect target A is itself redirected to B), duplicate targets (multiple paths pointing to the same destination), and orphaned redirects (pointing to non-existent pages). Redirect chains add latency and hurt SEO. Read-only — no mutations.

Prerequisites

  • Authenticated Shopify CLI session: shopify store auth --store <domain> --scopes read_content
  • API scopes: read_content

Parameters

ParameterTypeRequiredDefaultDescription
storestringyesStore domain (e.g., mystore.myshopify.com)
formatstringnohumanOutput format: human or json

Safety

ℹ️ Read-only skill — no mutations are executed. Safe to run at any time.

Workflow Steps

1. OPERATION: urlRedirects — query Inputs: first: 250, pagination cursor Expected output: All redirects with fromPath, target; paginate until hasNextPage: false

2. Build path map: fromPath → target

3. Detect chains: for each redirect, check if target appears as a fromPath in any other redirect

4. Detect duplicates: targets with more than one source path

GraphQL Operations

# urlRedirects:query — validated against api_version 2025-01
query URLRedirects($after: String) {
  urlRedirects(first: 250, after: $after) {
    edges {
      node {
        id
        path
        target
      }
    }
    pageInfo {
      hasNextPage
      endCursor
    }
  }
}

Session Tracking

Claude MUST emit the following output at each stage. This is mandatory.

On start, emit:

╔══════════════════════════════════════════════╗
║  SKILL: URL Redirect Audit                   ║
║  Store: <store domain>                       ║
║  Started: <YYYY-MM-DD HH:MM UTC>             ║
╚══════════════════════════════════════════════╝

After each step, emit:

[N/TOTAL] <QUERY|MUTATION>  <OperationName>
          → Params: <brief summary of key inputs>
          → Result: <count or outcome>

On completion, emit:

For format: human (default):

══════════════════════════════════════════════
URL REDIRECT AUDIT
  Total redirects:    <n>
  Redirect chains:    <n>
  Duplicate targets:  <n>

  Chains:
    /old-page → /intermediate → /final
  Duplicates:
    /path-a → /product/x
    /path-b → /product/x  (same target)
  Output: redirect_audit_<date>.csv
══════════════════════════════════════════════

For format: json, emit:

{
  "skill": "url-redirect-audit",
  "store": "<domain>",
  "total_redirects": 0,
  "chains": 0,
  "duplicate_targets": 0,
  "output_file": "redirect_audit_<date>.csv"
}

Output Format

CSV file redirect_audit_<YYYY-MM-DD>.csv with columns: redirect_id, from_path, target, issue_type, chain_path

Error Handling

ErrorCauseRecovery
THROTTLEDAPI rate limit exceededWait 2 seconds, retry up to 3 times
No redirectsNew store or clean setupExit with ✅ no redirects found

Best Practices

  • Redirect chains (A→B→C) add an extra HTTP round-trip — consolidate them to a direct redirect (A→C).
  • After fixing chains or removing duplicates, use Shopify Admin → Navigation → URL Redirects to make the corrections. Bulk deletion is not available in the Admin API but individual redirects can be deleted via urlRedirectDelete mutation.
  • Run after every major store migration or product/collection restructuring where URLs change in bulk.

Related skills

FAQ

Does it fix redirects?

No. It is read-only; fixes are applied separately in Shopify Admin or via urlRedirectDelete.

Why do chains matter?

Redirect chains add an extra HTTP round-trip and hurt SEO.

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.