License checking and compatibility. Use when evaluating dependency licenses.
/plugin marketplace add IvanTorresEdge/molcajete.ai/plugin install ivantorresedge-js-tech-stacks-js-common@IvanTorresEdge/molcajete.aiThis skill inherits all available tools. When active, it can use any tool Claude has access to.
This skill covers license checking for npm dependencies.
Use this skill when:
KNOW YOUR LICENSES - Understand what licenses allow and require before adding dependencies.
| License | Commercial Use | Modification | Distribution | Attribution |
|---|---|---|---|---|
| MIT | Yes | Yes | Yes | Yes |
| Apache-2.0 | Yes | Yes | Yes | Yes |
| BSD-2-Clause | Yes | Yes | Yes | Yes |
| BSD-3-Clause | Yes | Yes | Yes | Yes |
| ISC | Yes | Yes | Yes | Yes |
| 0BSD | Yes | Yes | Yes | No |
| Unlicense | Yes | Yes | Yes | No |
| License | Effect |
|---|---|
| GPL-2.0 | Derivative works must be GPL |
| GPL-3.0 | Derivative works must be GPL |
| LGPL-2.1 | Dynamic linking OK, static linking requires LGPL |
| LGPL-3.0 | Dynamic linking OK, static linking requires LGPL |
| AGPL-3.0 | Network use triggers copyleft |
| MPL-2.0 | File-level copyleft |
| License | Notes |
|---|---|
| CC-BY-* | Not designed for software |
| WTFPL | May not be recognized legally |
| Proprietary | Requires explicit permission |
| No License | All rights reserved by default |
npm install -g license-checker
# List all licenses
npx license-checker
# Summary view
npx license-checker --summary
# JSON output
npx license-checker --json > licenses.json
# CSV output
npx license-checker --csv > licenses.csv
npx license-checker --onlyAllow "MIT;Apache-2.0;BSD-2-Clause;BSD-3-Clause;ISC;0BSD;Unlicense"
npx license-checker --excludeLicenses "GPL;AGPL"
{
"husky": {
"hooks": {
"pre-commit": "npx license-checker --onlyAllow 'MIT;Apache-2.0;BSD-2-Clause;BSD-3-Clause;ISC'"
}
}
}
- name: License Check
run: npx license-checker --onlyAllow "MIT;Apache-2.0;BSD-2-Clause;BSD-3-Clause;ISC;0BSD"
{
"scripts": {
"license-check": "license-checker --onlyAllow 'MIT;Apache-2.0;BSD-2-Clause;BSD-3-Clause;ISC'"
}
}
## Allowed Licenses
- MIT
- Apache-2.0
- BSD-2-Clause
- BSD-3-Clause
- ISC
- 0BSD
- Unlicense
- CC0-1.0
## Requires Review
- MPL-2.0
- LGPL-*
- EPL-*
## Not Allowed
- GPL-* (without explicit approval)
- AGPL-*
- Proprietary
- No License
Document any exceptions:
## License Exceptions
### package-name@1.0.0
- **License**: GPL-2.0
- **Reason**: CLI tool only, not linked into our code
- **Approved By**: @legal-team
- **Date**: 2024-01-01
## Third-Party Licenses
This software includes the following third-party packages:
### package-name
Copyright (c) 2024 Author Name
Licensed under the MIT License
npx license-checker --production --csv --out THIRD_PARTY_LICENSES.csv
{
"license": "MIT"
}
Use standard SPDX identifiers:
MITApache-2.0BSD-3-Clause(MIT OR Apache-2.0) - dual licenseUNLICENSED - proprietary# Investigate
npx license-checker --unknown
# Manual check
cat node_modules/package-name/LICENSE
npm install -g @cyclonedx/cyclonedx-npm
npx @cyclonedx/cyclonedx-npm --output-format JSON > sbom.json
npm install -g @spdx/spdx-sbom-generator
npx spdx-sbom-generator
This skill should be used when the user asks to "create an agent", "add an agent", "write a subagent", "agent frontmatter", "when to use description", "agent examples", "agent tools", "agent colors", "autonomous agent", or needs guidance on agent structure, system prompts, triggering conditions, or agent development best practices for Claude Code plugins.
This skill should be used when the user asks to "create a slash command", "add a command", "write a custom command", "define command arguments", "use command frontmatter", "organize commands", "create command with file references", "interactive command", "use AskUserQuestion in command", or needs guidance on slash command structure, YAML frontmatter fields, dynamic arguments, bash execution in commands, user interaction patterns, or command development best practices for Claude Code.
This skill should be used when the user asks to "create a hook", "add a PreToolUse/PostToolUse/Stop hook", "validate tool use", "implement prompt-based hooks", "use ${CLAUDE_PLUGIN_ROOT}", "set up event-driven automation", "block dangerous commands", or mentions hook events (PreToolUse, PostToolUse, Stop, SubagentStop, SessionStart, SessionEnd, UserPromptSubmit, PreCompact, Notification). Provides comprehensive guidance for creating and implementing Claude Code plugin hooks with focus on advanced prompt-based hooks API.