# Checking License Headers

> Checks source files for the required license header — reports files where the header is missing, stale, or malformed, with the exact first divergent line. Use during an audit or before a release.

- Skill: `brokenrobot-xyz/checking-license-headers` (Agent Skill)
- Install (CLI): `npx skillmds@latest add brokenrobot-xyz/checking-license-headers`
- Raw SKILL.md: https://api.skillmd.com/api/skills/brokenrobot-xyz/checking-license-headers/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: brokenrobot-xyz (https://skillmd.com/u/brokenrobot-xyz)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/brokenrobot-xyz/checking-license-headers

---


# Check license headers

Compare each source file's opening lines against the header template the user names.

## Steps

1. List the source files with `Glob`, honoring the ignore patterns the user gives.
2. Compare each file's opening lines against the template. Report a missing header, a stale
   year, and any other divergence, each with the first line that differs.
3. Report one table — file, status, first divergent line — and the count per status.

