Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

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от claude-dev-suite★ 51 звезда на GitHub

Об этом скилле

License Compliance

When NOT to Use This Skill

  • Security vulnerabilities - Use supply-chain skill for dependency security
  • Code quality issues - Use quality skills for linting/complexity
  • Secrets in dependencies - Use secrets-management skill
  • Package integrity - Use supply-chain for SBOM and verification

Deep Knowledge: Use mcp__documentation__fetch_docs with technology: spdx for 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:
Полный SKILL.md на GitHub

Установить license-compliance в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Read
Grep
Glob

FAQ

Что делает скилл 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), без исполняемых скриптов.

Похожие скиллы

Сравнить license-compliance с