Skip to main content
subagent

url-link-extractor — Claude Code subagent: features and install

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.

Install into Claude Code · claude-code-templates All methods and platforms ↓
npx claude-code-templates@latest --agent web-tools/url-link-extractor
Open on GitHub

What url-link-extractor 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.

What it helps with

  • 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 for the agent

  • 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

How to install url-link-extractor

1claude-code-templates

npx claude-code-templates@latest --agent web-tools/url-link-extractor

2Manually: put the files in place

.claude/agents/url-link-extractor.md

For all projects use ~/.claude/agents/. Claude delegates by the description field or an @-mention

Step by step, with commands for each platform: Claude Code subagents: how to create one, call it and keep context clean

Questions about url-link-extractor

How to install url-link-extractor in Claude Code?

Run npx claude-code-templates@latest --agent web-tools/url-link-extractor or place the agent prompt file inside .claude/agents/url-link-extractor.md.

What link categories does the subagent find?

It detects relative and absolute paths, protocol-relative addresses, API endpoints, mailto: and tel: links, anchor tags, and CSS asset references.

What output formats are supported?

The agent organizes extracted links into a structured Markdown table or a JSON dataset, grouping them by type with file paths and line numbers.

Similar subagents

All subagents for Frontend and UI →

From the same set804

The whole set →

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor