
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)
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
What shopify-admin-url-redirect-audit says it does
Read-only: lists all URL redirects, flags redirect chains (A→B→C) and duplicate targets.
Redirect chains add latency and hurt SEO.
npx skills add https://github.com/40rty-ai/shopify-admin-skills --skill shopify-admin-url-redirect-auditAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 7 |
|---|---|
| repo stars | ★ 173 |
| Last updated | June 26, 2026 |
| Repository | 40rty-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
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
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| store | string | yes | — | Store domain (e.g., mystore.myshopify.com) |
| format | string | no | human | Output 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
| Error | Cause | Recovery |
|---|---|---|
THROTTLED | API rate limit exceeded | Wait 2 seconds, retry up to 3 times |
| No redirects | New store or clean setup | Exit 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
urlRedirectDeletemutation. - 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.