license-check
Check licenses of all dependencies and detect prohibited licenses
SKILL.md.claude/skills/license-check/SKILL.md
GitHub/license-check
A skill for checking the licenses of all project dependency libraries.
License Policy
Allowed
MIT, BSD-2-Clause, BSD-3-Clause, Apache-2.0, ISC, MPL-2.0
Prohibited
GPL-2.0, GPL-3.0, LGPL-2.1, LGPL-3.0, AGPL-3.0 and other GPL variants
Steps
- List all dependencies with
go list -m -json all - Check the LICENSE file of each dependency's repository/package
- Compare licenses against the policy
- Display results in a table:
- Dependency | Version | License | Status (OK / PROHIBITED / UNKNOWN)
- Warn if any prohibited or unknown licenses are found
Notes
- For UNKNOWN licenses, recommend manual verification
- Include transitive dependencies (indirect) in the scope