# url-link-extractor

Scans your codebase to compile an inventory of internal links, external URLs, asset paths, and API endpoints. Useful during domain migrations, SEO audits, and code cleanup.

- subagent · `type=agent` · Claude Code · 799 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-link-extractor.md
- Updated: 2026-10-24
- HTML: https://affpapa.org/en/nevibecode/agents/url-link-extractor

## What it does

The subagent inspects markup, stylesheets, scripts, and configuration files using `Grep`, `Glob`, and `Read`. It tracks down absolute URLs, relative paths, email and telephone schemes, external API calls, and asset references. Every match gets documented. File locations and exact line numbers are recorded during the scan.

Output comes as a Markdown table or a JSON report with summary counts and categorization into internal and external targets. The assistant flags hardcoded `localhost` references and broken path patterns before production deployments. Without direct read permissions on project files, the scan fails immediately.

## Install

### Claude Code (native platform)

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

2. **Manually: put the files in place**
- File: `.claude/agents/url-link-extractor.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-link-extractor.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-link-extractor.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-link-extractor.md

## When to use it
- Audit external endpoints and internal routes before moving to a new domain
- Spot hardcoded localhost strings across configuration files and scripts
- Catalog asset files, stylesheets, and images for SEO or security checks
- Extract email and telephone links from template files and markup

## Example prompts
- Scan the codebase and generate a Markdown table of all external links with file lines
- Find any leftover localhost URLs across the project
- Extract all API endpoints and asset references into a JSON file

## Similar
- [frontend-developer](https://affpapa.org/en/nevibecode/agents/voltagent-community-frontend-developer.md) — subagent · 40905 installs
- [ui-ux-designer](https://affpapa.org/en/nevibecode/agents/ui-ux-designer.md) — subagent · 27069 installs
- [fullstack-developer](https://affpapa.org/en/nevibecode/agents/fullstack-developer.md) — subagent · 18117 installs
- [javascript-pro](https://affpapa.org/en/nevibecode/agents/javascript-pro.md) — subagent · 4974 installs
- [ui-designer](https://affpapa.org/en/nevibecode/agents/voltagent-community-ui-designer.md) — subagent · 1979 installs
- [ui-designer](https://affpapa.org/en/nevibecode/agents/ui-designer.md) — subagent · 1979 installs

From the same set: [davila7/claude-code-templates](https://affpapa.org/en/nevibecode/by/davila7/claude-code-templates.md) — 804 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
