Claude-skill-registry license-checker

⚖️ License Checker Skill

install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/license-checker" ~/.claude/skills/majiayu000-claude-skill-registry-license-checker && rm -rf "$T"
manifest: skills/data/license-checker/SKILL.md
source content

⚖️ License Checker Skill


name: license-checker description: Check and validate licenses of project dependencies for legal compliance

🎯 Purpose

ตรวจสอบ licenses ของ dependencies เพื่อความถูกต้องตามกฎหมายและนโยบายบริษัท

📋 When to Use

  • Before releasing software
  • Adding new dependencies
  • Compliance audits
  • Open source contributions
  • Enterprise projects

🔧 License Types

Permissive (Safe for commercial)

LicenseCanCannot
MITCommercial use, modify, distributeLiability
Apache 2.0Commercial, patents, modifyLiability, trademark
BSDCommercial, modify, distributeLiability

Copyleft (Careful)

LicenseRisk
GPLMust open source derivative works
LGPLOK if dynamically linked
AGPLNetwork use = distribution

Commercial

LicenseDescription
ProprietaryRequires license purchase
Dual-licensedChoose open or commercial

📝 Check Commands

# NPM - license-checker
npx license-checker --summary
npx license-checker --production --csv > licenses.csv

# NPM - license-report
npx license-report

# Python
pip-licenses --format=markdown

📊 Output Example

├─ package-a@1.0.0
│  ├─ licenses: MIT
│  ├─ repository: https://github.com/...
│  └─ publisher: Author Name
├─ package-b@2.0.0
│  ├─ licenses: Apache-2.0
│  ├─ repository: https://github.com/...
│  └─ publisher: Company Inc

🚨 License Policy Template

## Allowed Licenses
- MIT
- Apache-2.0
- BSD-2-Clause
- BSD-3-Clause
- ISC
- CC0-1.0

## Requires Review
- LGPL-3.0
- MPL-2.0

## Not Allowed
- GPL-3.0
- AGPL-3.0
- Unlicensed

✅ Compliance Checklist

  • All deps have licenses
  • No GPL in commercial
  • Attribution included
  • License files copied
  • NOTICE file updated
  • Legal approved

🔗 Related Skills

  • security-audit
    - Security compliance
  • dependency-management
    - Manage deps
  • documentation
    - License docs