Skip to content
Skill

Lychee redirect triage

Triages lychee link-rot and redirect findings in ClaudeSec docs and CI

Lychee redirect triage is an open-source agent skill for developer tools. It is available on Claude Code.

Scripts
None
Platforms
Claude Code
GitHub stars
14
Last commit
License
MIT
Listing updated

Similar skills

About Lychee redirect triage

This skill walks an agent through handling a broken or redirecting link flagged by the lychee link checker in the ClaudeSec repository. It separates ordinary 3xx redirects, which should be rewritten to their canonical target, from 4xx and 5xx dead links that need fixing, and from redirects that are intentional and must stay as written.

The workflow centers on curl probes that read the first HTTP status without following redirects, plus a browser-style user-agent comparison to tell a bot block apart from a genuinely dead page. When an intentional redirect is registered, the agent must update both the lychee configuration file and the matching test guard so the exact-count check still passes. It also lists verification commands to run before opening a docs pull request.

The skill expects a shell with curl and lychee available, and the Python pytest suite for the configuration guard. It is written specifically for the ClaudeSec repository layout and its lychee.toml and lint workflow files.

When your agent uses it

Triage and resolve a lychee redirect / link-rot finding in ClaudeSec — classify 3xx redirects vs 4xx/5xx rot, resolve to canonical URLs or register an intentional-redirect exclude in BOTH lychee.toml and its guard, then verify. Use when the monthly redirect-sweep opens an issue, lychee prints a redirect/404 WARN, or a link needs triaging before a docs PR.

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 1 file (10 KB) on GitHub on 4 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

Copy the skill folder to ~/.claude/skills/lychee-redirect-triage to use it in all your projects:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Twodragon0/claudesec.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/lychee-redirect-triage &&
cp -R "$tmp/.claude/skills/lychee-redirect-triage" ~/.claude/skills/lychee-redirect-triage &&
rm -rf "$tmp"

For one project only, put the folder in .claude/skills/lychee-redirect-triage inside it instead.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/lychee-redirect-triage to use it in every repository:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Twodragon0/claudesec.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/lychee-redirect-triage &&
cp -R "$tmp/.claude/skills/lychee-redirect-triage" ~/.agents/skills/lychee-redirect-triage &&
rm -rf "$tmp"

For one repository only, put the folder in .agents/skills/lychee-redirect-triage inside it instead.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/lychee-redirect-triage to use it in every project:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Twodragon0/claudesec.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/lychee-redirect-triage &&
cp -R "$tmp/.claude/skills/lychee-redirect-triage" ~/.cursor/skills/lychee-redirect-triage &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/lychee-redirect-triage inside it instead.

Cursor docs on skills

Run in a terminal (add --scope workspace to install it for the current workspace only):

gemini skills install https://github.com/Twodragon0/claudesec.git --path .claude/skills/lychee-redirect-triage

Or copy the folder to ~/.gemini/skills/lychee-redirect-triage yourself.

Gemini CLI docs on skills

For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/lychee-redirect-triage:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Twodragon0/claudesec.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/lychee-redirect-triage &&
cp -R "$tmp/.claude/skills/lychee-redirect-triage" ~/.copilot/skills/lychee-redirect-triage &&
rm -rf "$tmp"

For one project only, put the folder in .github/skills/lychee-redirect-triage inside it instead.

VS Code docs on skills

Get the folder:

git clone --depth 1 https://github.com/Twodragon0/claudesec.git

Then copy claudesec/.claude/skills/lychee-redirect-triage into your agent's skills folder as lychee-redirect-triage. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

Redirect versus rot classification
Guides the agent to tell a working redirect apart from a dead 4xx or 5xx link using the first status code.
Bot-block differential check
Compares plain and browser user-agent responses to decide whether a host blocks bots or the URL is truly dead.
Intentional redirect registration
Explains how to add a path-specific exclude to both the lychee config and its guard test.
Exclude hygiene rules
Covers where excludes must live and why path-specific entries are preferred over whole-host excludes.
Pre-PR verification steps
Lists the lychee and pytest commands to run before opening a documentation pull request.

Good for

  • Triage a monthly redirect sweep issue about outdated links
  • Fix a 404 reported by lychee in a markdown file
  • Decide whether a redirecting login URL should be excluded
  • Rewrite a redirected Markdown link to its canonical address
  • Check a link that a bot-protected site blocks in CI

Lychee redirect triage FAQ

When does Lychee redirect triage trigger?

It applies when the monthly redirect sweep opens an issue, when lychee prints a redirect or 404 warning, or when a link needs triaging before a docs pull request.

Why not just exclude every failing link?

Excluding a dead link hides real rot silently, so the skill prefers rewriting redirects and fixing dead URLs, reserving excludes for intentional redirects and bot-blocked hosts.

What must change when adding an intentional redirect exclude?

The entry must be added to lychee.toml under the intentional redirects section and also to the INTENTIONAL_REDIRECT_EXCLUDES tuple in the config guard test, because the guard checks for an exact match and count.

Does the skill check the scanner shell scripts?

No. The skill states that lychee only scans markdown files and explains why globbing the shell sources is not recommended.

How do I install Lychee redirect triage in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/lychee-redirect-triage to use it in all your projects, or to .claude/skills/lychee-redirect-triage in one project.

Does Lychee redirect triage run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

Which AI agents can use Lychee redirect triage?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

What are the best alternatives to Lychee redirect triage?

The closest alternatives to Lychee redirect triage are Validate skills, Deps, Ci, Claude md refactor and Code review subagent fabricates specifics to inflate severity.

Where this comes from

  • Description: from the skill's own SKILL.md.

More from Twodragon0/claudesec

  1. Guides writing CI config regression tests for the ClaudeSec repo's workflows

    • Open source
    • 14 GitHub stars
    • Developer tools
  2. Diagnoses and fixes kcov bash and pytest coverage failures in ClaudeSec CI

    • Open source
    • 14 GitHub stars
    • Developer tools
  3. Reference catalog for OMC agents, tools, team pipelines, skills and commit trailers

    • Open source
    • 14 GitHub stars
    • Developer tools