Skip to content
Back to skills

Checking Urls

ASecurity

Validates all URLs (internal relative links and external URLs) in markdown files. Use when adding new content, after making changes, or when asked to check/audit links.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 27, 2026
documentationbash

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 27, 2026

npx -y skills add David-Li0406/meta-skill-evloving --skill checking-urls --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Checking Urls?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Checking Urls
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/david-li0406-checking-urls/badge)](https://www.skillsdirectory.com/skills/david-li0406-checking-urls)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: checking-urls
description: Validates all URLs (internal relative links and external URLs) in markdown files. Use when adding new content, after making changes, or when asked to check/audit links.
---

# URL Checking Skill

Validates all URLs in the repository to ensure they are active and valid.

## When to Use

- **Automatically** when new weekly entries or posts are added
- **On demand** when asked to check links
- **Periodically** to audit existing content

## Capabilities

1. **Internal links**: Validates relative paths to other markdown files
2. **External links**: Checks HTTP/HTTPS URLs are accessible (2xx/3xx status)
3. **Anchor links**: Validates `#section` references exist in target files
4. **Logging**: Records all checks to `logs/url-checks/YYYY-MM-DD.log`

## Workflow

### Run the Check Script

```bash
./scripts/check-urls.sh
```

This will:
1. Scan all `.md` files for URLs
2. Validate internal relative links
3. Check external URLs with HEAD requests
4. Write results to `logs/url-checks/YYYY-MM-DD.log`

### Log Format

```
[YYYY-MM-DD HH:MM:SS] CHECKING: source_file.md
[YYYY-MM-DD HH:MM:SS] ✓ VALID: ./weeks/2025/week-01/README.md
[YYYY-MM-DD HH:MM:SS] ✗ INVALID: <url> (404)
[YYYY-MM-DD HH:MM:SS] ✗ MISSING: ./weeks/2025/nonexistent.md
```

### When Invalid URLs Found

1. The script outputs a summary of broken links
2. **Alert the user** about each invalid URL
3. Continue alerting on subsequent runs until fixed
4. Check `logs/url-checks/` for history

## Invalid URL Tracking

The script maintains `logs/url-checks/UNRESOLVED.md` with currently broken links.
On each run, this file is updated. Use it to track what needs fixing.

Files in this skill

  • SKILL.md1.6 KB
  • scripts/check-urls.sh5 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…