# url-context-validator

Checks links for technical problems and judges whether each destination fits its surrounding content. Useful for audits of docs and web copy.

- subagent · `type=agent` · Claude Code · 640 installs
- Author: davila7
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/davila7/claude-code-templates/tree/HEAD/cli-tool/components/agents/web-tools/url-context-validator.md
- Updated: 2026-10-24
- HTML: https://affpapa.org/en/nevibecode/agents/url-context-validator

## What it does

This subagent pulls URLs from supplied content, sorts them into internal, external, anchor, and download links, then checks how they respond. Its review covers HTTP results, redirect paths, response delays, HTTPS certificate issues, and malformed addresses.

It then compares anchor wording and nearby text with the destination page. The review can flag topic mismatches, stale pages, repeated links, and cases where an internal destination would fit better. Its report assigns a link status, rates contextual fit, explains issues, and suggests keeping, updating, replacing, or removing the link. The setup lists `Read`, `Write`, `WebFetch`, and `WebSearch`, so URL checks depend on access to those web tools.

## Install

### Claude Code (native platform)

1. **claude-code-templates**
```bash
npx claude-code-templates@latest --agent web-tools/url-context-validator
```

2. **Manually: put the files in place**
- File: `.claude/agents/url-context-validator.md` — For all projects use ~/.claude/agents/. Claude delegates by the description field or an @-mention

### Codex

**Manually: put the files in place**
- File: `.codex/agents/url-context-validator.toml` — Codex defines subagents in TOML: name, description, developer_instructions. Move the Markdown text into developer_instructions by hand. For all projects use ~/.codex/agents/

### Cursor

**Manually: put the files in place**
- File: `.cursor/agents/url-context-validator.md` — Cursor also reads .claude/agents/

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/davila7/claude-code-templates/tree/HEAD/cli-tool/components/agents/web-tools/url-context-validator.md

## When to use it
- check URLs for HTTP failures and malformed addresses
- trace redirects to their final destinations
- compare anchor text with the target page
- spot stale or redundant links
- produce an action report for each URL

## Example prompts
- Use the subagent to check every link in `README.md`, including redirects and HTTPS problems.
- Review the anchors and nearby copy in `docs/links.md`, then flag destinations that do not match their context.
- Create a URL report for `content.md` and recommend which links to keep, replace, or remove.

## Similar
- [discovery-interview](https://affpapa.org/en/nevibecode/skills/discovery-interview.md) — skill · 4100 installs
- [url-slug-generator](https://affpapa.org/en/nevibecode/skills/url-slug-generator.md) — skill · 1100 installs
- [url-structure](https://affpapa.org/en/nevibecode/skills/url-structure.md) — skill · 1100 installs
- [Web Validator by DigestSEO](https://affpapa.org/en/nevibecode/mcp/web-validator-by-digestseo.md) — MCP server · ★ 9
- [agent-experience](https://affpapa.org/en/nevibecode/skills/agent-experience.md) — skill · 862 installs
- [domain-hunter](https://affpapa.org/en/nevibecode/skills/domain-hunter.md) — skill · 2000 installs

From the same set: [davila7/claude-code-templates](https://affpapa.org/en/nevibecode/by/davila7/claude-code-templates.md) — 495 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
