redirect-chain
What it does
This skill follows the redirect rules on a website and finds any address that passes through more than one redirect. It is for site owners and developers who have moved pages or changed domains over time.
When to use it
- ✓When you ask the agent to check a website for redirect chains after a site move or redesign.
- ✓When pages load slowly or search engines seem to stop before reaching a final page.
- ✓When you upgrade a content system and want to make sure old addresses still lead straight to the right page.
Skill link
https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/redirect-chain/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“I moved my site a few times. Can you check for redirect chains and make each old address go straight to the final page?”
5 new skills a week. 1 minute to read.
How it works
The agent follows each redirect rule and records every hop, along with the response code at each step. It then updates the first redirect so it points directly to the final address, and checks that the result is one redirect followed by a working page.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Avoid multi-hop redirect chains
Redirect chains waste crawl budget, reduce PageRank flow to destination pages, and add latency that harms user experience—Googlebot may abandon long chains entirely, leaving destination pages undiscovered.
Quick Reference
- A redirect chain is A→B→C — Googlebot may stop following after 5 hops
- Each hop loses PageRank and adds page load latency
- Flatten chains by pointing A directly to C with a single 301
- Audit after every URL migration to catch newly created chains
Check
Follow all redirect rules configured on the site. Identify any URL where the redirect target itself also redirects (chain of 2+ hops). Report the full chain (URL A → URL B → URL C → final), the number of hops, and the HTTP response code at each step.
Fix
For each redirect chain, update the first redirect to point directly to the final destination URL. Example: if A→B→C, update A's redirect to point directly to C, eliminating the B hop. Verify the chain is gone by following the URL and confirming a single 301 or 302 followed by a 200.
Explain
A redirect chain occurs when page A redirects to page B, which also redirects to page C. Googlebot follows redirect chains up to a certain number of hops (reportedly 5), then stops—meaning the final destination may not be crawled. Each redirect also loses a portion of the PageRank that would have passed through a direct link.
Code Review
Test each redirect rule configured on the server. For each source URL, follow all redirect hops and record the full chain. Flag any chain with 2 or more hops (source → intermediate → final). Check for redirect loops (A→B→A). Verify that the final destination returns 200. Report: source URL, intermediate URLs, number of hops, final URL, and HTTP status at each step.
For full implementation details, code examples, and framework-specific guidance,
see references/rule.md.
Rule page: https://frontendchecklist.io/rules/seo/redirect-chain
FAQ
Why are redirect chains a problem?
Each extra hop adds delay and loses some ranking value, and the skill says Googlebot may stop following long chains.
Does the skill use a specific hop limit?
The skill says Googlebot reportedly stops after about five hops.
When should I audit redirects?
The skill recommends checking after every URL migration so new chains are caught.
Details
Original description by the author
Use when auditing site redirects after URL migrations, domain changes, or CMS upgrades. Applies to any site that has had multiple rounds of structural changes over time.
Popularity
- GitHub stars
- 75k
- Ranking position
- #2989
- License
- MIT
- Updated
- 10/31/2026
Comments
- …
More skills from this repository
frontendchecklist
75kChecks frontend code and live pages against 380+ rules for accessibility, speed, SEO and security, using a command-line tool.
frontend-checklist-global
75kAudits a frontend project against all 386 Front-End Checklist rules, and gives a specific fix for each issue found.
404-page
75kChecks that your missing-page screen offers helpful links and returns a real 404 status, to help lost visitors find their way.
about-page
75kReviews whether your site has a clear About page that explains who runs it, to build trust with visitors and search engines.
Similar skills
openclaw-update
394kHelps your agent update an existing OpenClaw Gateway, choosing the update method that fits how it was installed and keeping your session working.
diagnose-gateway
394kHelps your agent find out why your OpenClaw Gateway is failing by checking settings, channels, and ports without changing anything.
crabbox-apps
394kHelps your agent open and run an app on a temporary cloud machine, then show its view in your chat side panel.