Individual skill
link-fix
Audit and fix the links stored in the Sanity dataset, three rules counted in one table first. own-domain turns links to the site's own domain (`https://example.com/pricing` or a bare `/pricing` in an external link, CTA, header/footer link or rich-text annotation) into references or internal paths. http upgrades `http://` links and URL fields to `https://` per host, optionally only where https answers. slash aligns internal paths, own-domain URLs and slugs with the trailing-slash convention in `web/next.config.*` and fixes double or missing slashes. The user picks the rules; a dry-run-first script writes them (`--apply`) and re-checks, then the code goes to `link-reviewer`. Use when the user asks to "fix links", "convert absolute URLs to relative", "editors pasted full URLs", "links to our own site open in a new tab", "replace http with https", "trailing slashes are inconsistent", "check our slugs", after a content import or migration, or before a domain change.
theme-meridian/.agents/skills/link-fix/SKILL.md
Source commit d66f0fd9976e15ca51d6fcd5352482c5c66c281b
What was checked
- Matches the observed repository HEAD
- Yes
- Scanner rules are current
- Yes
- Repository scan complete
- No
- Skill scan complete
- No
- Observed behavior
- Network or broad shell
- Last checked
- Nov 4, 2026
These are observations at the recorded commit, not a guarantee of safety. Review the source before running it.
Install this skill
Choose an agent in your Stack or copy a command below. Commands fetch the pinned commit and copy only this skill directory. Existing destinations are refused. Copying a command does not install anything.
An install command is unavailable: current rules, complete repository and skill scans, an eligible behavior level and a permitted license are required.
Repository context
- Repository stars (not skill ratings)
- 19
- Repository last updated
- Nov 5, 2026
- License
- MIT
Observed agent integration: No specific integration evidence. Standard SKILL.md installation does not imply verified compatibility.
- agent-skills Repository topic
- ai-agents Repository topic
- claude-code Repository topic
- headless-cms Repository topic
- nextjs Repository topic
- nextjs-starter Repository topic
- sanity Repository topic
- writing Derived category
- security Derived category
Files and excerpt
File metadata and permitted, redacted excerpts come from the recorded scan. Source links are pinned to that commit.
Browse files
SKILL.mdcore · 18,398 bytesSKILL.mdcore · 18,398 bytesSKILL.mdcore · 18,398 bytesSKILL.mdcore · 18,398 bytesSKILL.mdcore · 18,398 bytesSKILL.mdcore · 18,398 bytesSKILL.mdcore · 18,398 bytesscripts/lib.mjsruns · 26,140 bytesscripts/lib.test.mjsruns · 12,596 bytesscripts/links.mjsruns · 14,786 bytes
Read excerpt
# Link fix: own-domain URLs, http and slashes
Three kinds of link go wrong in the dataset, mostly through pasting and imports:
- **Own domain as external.** Editors paste `https://example.com/pricing` into an
**external** link. It works, but the site opens every `http(s)` link in a **new
tab** (`opensInNewTab`, `web/src/ui/components/Link/BaseLink/utils.ts`), preview
and staging deployments send visitors to production, a domain change breaks every
one of them, and nothing stops someone deleting or renaming the target page.
- **`http://`.** Costs a redirect hop at best, a mixed-content warning or a dead
link at worst, and some hosts never got https.
- **Slashes.** The site has one trailing-slash convention; a link that doesn't
follow it costs a 308 redirect on every click and splits link signals between two
URLs. A page slug with a slash at either end is never served at its URL.