license-compliance
БесплатноБез исполняемых скриптовНе проверенOpen source license compliance and SPDX standards. Covers license types, compatibility, auditing with license-checker, and SBOM generation. USE WHEN: user…
от claude-dev-suite★ 51 звезда на GitHubОб этом скилле
License Compliance
When NOT to Use This Skill
- Security vulnerabilities - Use
supply-chainskill for dependency security - Code quality issues - Use quality skills for linting/complexity
- Secrets in dependencies - Use
secrets-managementskill - Package integrity - Use
supply-chainfor SBOM and verification
Deep Knowledge: Use
mcp__documentation__fetch_docswith technology:spdxfor comprehensive documentation.
Official References
| Resource | URL |
|---|---|
| SPDX License List | https://spdx.org/licenses/ |
| SPDX Specification | https://spdx.github.io/spdx-spec/ |
| OSI Approved Licenses | https://opensource.org/licenses/ |
| Choose a License | https://choosealicense.com/ |
| license-checker | https://www.npmjs.com/package/license-checker-rseidelsohn |
License Categories
By Permissiveness
| Category | Licenses | Commercial Use |
|---|---|---|
| Public Domain | Unlicense, CC0-1.0 | Unrestricted |
| Permissive | MIT, Apache-2.0, BSD-3-Clause, ISC | Allowed |
| Weak Copyleft | LGPL-3.0, MPL-2.0, EPL-2.0 | Allowed (with conditions) |
| Strong Copyleft | GPL-3.0, AGPL-3.0 | Must open source |
| Network Copyleft | AGPL-3.0, SSPL-1.0 | Network use triggers |
Common SPDX Identifiers
| License | SPDX ID | OSI | FSF |
|---|---|---|---|
| MIT License | MIT |
✓ | ✓ |
| Apache 2.0 | Apache-2.0 |
✓ | ✓ |
| BSD 3-Clause | BSD-3-Clause |
✓ | ✓ |
| ISC License | ISC |
✓ | ✓ |
| GPL 3.0 | GPL-3.0-only |
✓ | ✓ |
| GPL 3.0+ | GPL-3.0-or-later |
✓ | ✓ |
| LGPL 3.0 | LGPL-3.0-only |
✓ | ✓ |
| MPL 2.0 | MPL-2.0 |
✓ | ✓ |
| AGPL 3.0 | AGPL-3.0-only |
✓ | ✓ |
| Unlicense | Unlicense |
✓ | ✓ |
Compatibility Matrix
Inbound → Outbound
| Your Project | Can Include |
|---|---|
| MIT | MIT, BSD, ISC, Unlicense, CC0 |
| Apache-2.0 | MIT, BSD, ISC, Apache-2.0, Unlicense |
| LGPL-3.0 | MIT, BSD, ISC, Apache-2.0, LGPL, GPL (as library) |
| GPL-3.0 | Most licenses (output must be GPL) |
| Proprietary | MIT, BSD, ISC, Apache-2.0 (check attribution) |
Incompatibilities
| License A | Incompatible With |
|---|---|
| GPL-2.0-only | Apache-2.0 (patent clause conflict) |
| GPL-3.0 | GPL-2.0-only |
| AGPL-3.0 | Proprietary SaaS (network clause) |
| SSPL-1.0 | Not OSI approved, restricted use |
NPM License Auditing
license-checker
# Install
npm install -g license-checker-rseidelsohn
# Basic scan
license-checker
# JSON output
license-checker --json > licenses.json
# Summary only
license-checker --summary
# Production only
license-checker --production
# Exclude dev dependencies
license-checker --production --json
Allowlist Configuration
# Only allow specific licenses
license-checker --onlyAllow "MIT;Apache-2.0;BSD-3-Clause;ISC;0BSD"
# Fail on copyleft licenses
license-checker --failOn "GPL-3.0;AGPL-3.0;GPL-2.0"
# Exclude packages
license-checker --excludePackages "[email protected]"
@onebeyond/license-checker
npm install -g @onebeyond/license-checker
# Scan with allowlist
npx @onebeyond/license-checker scan --allowOnly MIT Apache-2.0 BSD-3-Clause
# Check SPDX compliance
npx @onebeyond/license-checker check "MIT OR Apache-2.0"
license-compliance
npm install -g license-compliance
# Check compliance
license-compliance --production --allow "MIT;ISC;Apache-2.0"
# Generate report
license-compliance --report licenses.csv
SBOM Generation
CycloneDX
# Install
npm install -g @cyclonedx/cyclonedx-npm
# Generate SBOM
cyclonedx-npm --output-file sbom.json
# Specific format
cyclonedx-npm --output-format XML --output-file sbom.xml
# Include dev dependencies
cyclonedx-npm --include-dev --output-file sbom.json
SPDX
# Using Syft
syft . -o spdx-json > sbom-spdx.json
# Verify SBOM
syft validate sbom-spdx.json
SBOM in package.json
{
"name": "my-package",
"version": "1.0.0",
"license": "MIT",
"licenses": [
{
"type": "MIT",
"url": "https://opensource.org/licenses/MIT"
}
]
}
CI Integration
GitHub Actions
name: License Compliance
on: [push, pull_request]
jobs:
license-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install dependencies
run: npm ci
- name: Check licenses
run: |
npx license-checker-rseidelsohn \
--production \
--onlyAllow "MIT;Apache-2.0;BSD-3-Clause;BSD-2-Clause;ISC;0BSD;Unlicense;CC0-1.0" \
--excludePrivatePackages
- name: Generate SBOM
run: |
npx @cyclonedx/cyclonedx-npm --output-file sbom.json
- name: Upload SBOM
uses: actions/upload-artifact@v4
with:
Установить license-compliance в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadGrepGlobFAQ
Что делает скилл license-compliance?
Open source license compliance and SPDX standards. Covers license types, compatibility, auditing with license-checker, and SBOM generation. USE WHEN: user mentions "license", "SPDX", "GPL", "MIT", "Apache", asks about "license compatibility", "license-checker", "copyleft", "proprietary compliance", "OSI approved" DO NOT USE FOR: dependency vulnerabilities - use `supply-chain`, security scanning - use `owasp-top-10`, secrets - use `secrets-management`
Как установить скилл license-compliance?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл license-compliance запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic