/eds-content-ops:link-rot-scannerfrom eds-content-ops
Crawl and validate all internal and external links across an AEM Edge Delivery Services site. Uses the query index or sitemap to discover pages, extracts links from .plain.html renditions, checks HTTP status codes, and produces a prioritized report of broken, redirecting, and insecure links. Use when auditing link health before launch, after a migration, or as a periodic maintenance check.
Ships in eds-content-ops. 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.
Discover all pages on an AEM Edge Delivery Services site using the query index or sitemap, extract every link from each page's .plain.html rendition, validate each link's HTTP status, and produce a prioritized report of broken, redirecting, and insecure links with suggested fixes.
When fetching or analyzing external URLs:
.plain.html patterns).Before starting, create a TodoList to track progress through each step:
.plain.html and extract all linksUpdate each item as you complete it.
Ask the user for the site's base URL (e.g., https://www.example.com).
Attempt to discover all pages in this order:
Query index (preferred)
Fetch {base-url}/query-index.json. The EDS query index is a JSON feed of all published pages. Each entry typically includes path, title, description, lastModified, and image. Extract the path field from each entry to build the page list.
If the query index returns paginated results (look for an offset and limit or total in the response), fetch all pages by following the pagination until all entries are retrieved.
Sitemap fallback
If the query index is not available (404 or empty), fetch {base-url}/sitemap.xml. Parse the <loc> elements to build the page list.
Manual page list If neither the query index nor sitemap is available, ask the user to provide a list of page URLs to scan. Accept URLs as a list, one per line.
Report the discovery results:
| Source | Pages Found |
|---|---|
| Query index | X pages |
| Sitemap | Y pages (if used) |
| Manual | Z pages (if used) |
| Total | N pages |
For large sites (over 100 pages), inform the user that the scan will take time and provide progress updates as pages are processed. Process pages in batches of 10-20 to maintain responsiveness.
For each discovered page, fetch the .plain.html rendition. For non-root paths, append .plain.html to the path (e.g., /about becomes /about.plain.html). For root paths (/), use /index.plain.html.
From each .plain.html response, extract all links (<a href="..."> elements). For each link, record:
Classify each link as:
#section-name) pointing within the same page.Report extraction progress:
| Metric | Count |
|---|---|
| Pages fetched | X |
| Pages failed to fetch | Y |
| Total links extracted | Z |
| Internal links | A |
| External links | B |
| Anchor links | C |
| Non-HTTP links | D |
For each unique internal link URL, make an HTTP GET request and record the response status code. Deduplicate URLs before checking — if the same internal URL appears on 5 pages, check it once.
Classify results:
For 301/302 redirects, also check if the final destination returns 200. A redirect to another redirect to a 404 is still a broken link.
Special handling for EDS internal links:
#section-name) — verify the fragment target exists on the page by checking for an element with a matching id attribute in the .plain.html.For each unique external link URL, make an HTTP HEAD request (to minimize bandwidth impact on external servers) and record the response status code. If the HEAD request is rejected (405 Method Not Allowed), fall back to a GET request.
Apply these rules:
Classify results using the same categories as internal links (200, 301/302, 404, 403, 5xx, timeout).
Note: External link validation is best-effort. Some external sites block automated requests, require authentication, or use bot detection that returns false 403s. Flag these as "unable to verify" rather than "broken."
Group all non-200 links into priority categories:
P0 — Broken internal links (404) These are the highest priority. A broken internal link is fully within the site owner's control and directly harms user experience and SEO.
P1 — Broken external links (404) External sites have changed or been removed. These need to be updated, replaced, or removed.
P2 — Redirecting links (301/302) The link works but goes through a redirect. Update the link to point directly to the final destination to save a round-trip and maintain link equity.
P3 — Insecure links (HTTP, not HTTPS)
Links pointing to http:// instead of https://. If the destination supports HTTPS, update the link. If it does not, flag it.
P4 — Unable to verify External links that returned 403, 5xx, or timed out. These may or may not be broken — manual verification is needed.
Info — Anchor link issues
Fragment links where the target id was not found on the page. May indicate removed sections or renamed anchors.
Present the findings in a structured report.
| Priority | Category | Count |
|---|---|---|
| P0 | Broken internal links | X |
| P1 | Broken external links | Y |
| P2 | Redirecting links | Z |
| P3 | Insecure links (HTTP) | A |
| P4 | Unable to verify | B |
| Info | Anchor issues | C |
| -- | Valid links (200) | D |
| Total | N |
For each page that has at least one non-200 link, list:
Page: /path/to/page
| Priority | Link URL | Anchor Text | Status | Suggested Fix |
|---|---|---|---|---|
| P0 | /old-page | "Learn more" | 404 | Update to /new-page or remove link |
| P1 | https://partner.com/gone | "Partner docs" | 404 | Find updated URL or remove |
| P2 | /about | "About us" | 301 -> /about-us | Update link to /about-us |
| P3 | http://example.com | "Example" | 200 (HTTP) | Change to https://example.com |
For broken internal links, suggest fixes based on available information:
.page or .live domain.| Problem | Cause | Solution |
|---|---|---|
| Query index returns 404 | Site may not have a query index configured | Fall back to sitemap.xml; if that also fails, ask for a manual page list |
| Query index is paginated | Large site with many pages | Follow pagination (offset/limit parameters) until all pages are retrieved |
| External links return 403 but work in a browser | Bot detection or IP-based blocking | Mark as "unable to verify" and note that manual checking is required |
| Timeout on external links | Slow external server or network issues | Use 15-second timeout; report timeouts separately from confirmed broken links |
.plain.html missing links that appear on the published page | Links may be injected by JavaScript blocks at runtime | Note the limitation; suggest checking the published page for JS-rendered links |
| Too many links to check in one session | Very large site with thousands of links | Process in batches; prioritize internal links first, then external links for high-traffic pages |
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
Generated from the plugin's indexed repository (focus-gts/eds-content-ops-skills) — no native marketplace selected
npx claudepluginhub p/focus-gts-eds-content-ops42 skills in this plugin
/accessibility-fixScan an AEM Edge Delivery Services page for WCAG 2.1 AA accessibility violations and generate specific fixes. Identifies missing alt text, heading hierarchy issues, link text problems, color contrast concerns, and EDS-specific accessibility patterns. Use when fixing accessibility issues, preparing for compliance audits, or remediating WCAG violations./aem-to-eds-migrationAssess and plan a migration from traditional AEM Sites to AEM Edge Delivery Services. Analyzes the source AEM site to inventory components, templates, content types, and integrations, then maps them to EDS equivalents and produces a migration feasibility report with effort estimates, risk areas, and a phased plan./