license-compliance
Skill0 starsChanged 5 months agoMITView on GitHub
This skill should be used when the user asks to "run ScanCode", "check license compliance", "Lizenz-Compliance", "Lizenzen scannen", "find copyrights", "Copyright prüfen", "OSPO/legal license audit", "detect disallowed licenses (GPL/AGPL)", or wants text-level license/copyright detection with a pass/fail policy gate. Runs ScanCode Toolkit in Docker and gates on a license policy, processed directly in Claude Code.
3 other projects use a version of this.
Adopted by
Most recently taken up by
- 26zl/universal-agent-skillstheir own version, first seen Oct 6, 2026
- VeryGoodOpenSource/vgv-ai-flutter-plugintheir own version, first seen Aug 20, 2026
- WalletConnect/skillstheir own version, first seen Feb 3, 2026
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 3
- VeryGoodOpenSource/vgv-ai-flutter-plugin★ 176same name
- WalletConnect/skills★ 14same name
- 26zl/universal-agent-skills★ 2same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository11 other files it gives its agents.
- architecture-analysisSkill
- bearer-privacySkill
- build-verifySkill
- code-audit-suiteSkill
- dast-runtimeSkill
- kubescape-k8sSkill
- megalinter-qualitySkill
- opengrep-sastSkill
- secrets-scanSkill
- sonarqube-qualitySkill
- trivy-securitySkill
The file
We split this skill into the rules it gives an agent
1 rule. 0 are common, 0 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 3 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 36
No disallowed license → RESULT: PASS, exit 0.
“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
License Compliance
Purpose
ScanCode performs text-level license, copyright and provenance detection — comparing actual file contents against a database of license texts. This finds what Trivy's package-metadata license scan misses: licenses in vendored code, copied snippets, and undeclared/ambiguous files.
Relation to Trivy (similar but more): Trivy reports declared dependency licenses from manifests. ScanCode reads the source itself, adding file-level detection Trivy cannot do. Use ScanCode when real license compliance matters; for a quick dependency-license view, Trivy is enough.
What it actually outputs (important)
By default the scan does not leave a JSON in your repo. It mounts the project
read-only, writes the full result to a temporary directory, evaluates a
license policy against it, prints a verdict, and deletes the temp JSON on
exit. So the normal output is the PASS / FAIL / REVIEW verdict, not a
per-file file in the tree. To keep the full per-file JSON for review, opt in with
SCANCODE_KEEP_JSON=/path/out.json.
The license policy gate
SCANCODE_DENYis a case-insensitive regex of disallowed license expressions. Default: GPL/AGPL (copyleft) — LGPL is allowed.- A detected disallowed license →
RESULT: FAIL, exit 1 (a finding; in the suite this turns the verdict to FINDINGS). - No disallowed license →
RESULT: PASS, exit 0. SCANCODE_DENY=""→ review-only mode: detect + report, never gate (RESULT: REVIEW, exit 0).
Because the suite runs ScanCode on every project, a single GPL/AGPL file flips the
whole suite to FINDINGS — that is intentional. Adjust SCANCODE_DENY if a given
copyleft license is acceptable for your project.
Core Workflow
- Scan:
First run builds the~/.claude/skills/license-compliance/scripts/scan.sh [TARGET_DIR]scancode-localimage (downloads ScanCode, a few minutes). - On
FAIL, the verdict lists the disallowed license expression(s) and an example file. Replace/remove the offending dependency or file, or — if the license is acceptable — widenSCANCODE_DENY. - For a deep per-file review (copyrights, provenance, ambiguous files), re-run
with
SCANCODE_KEEP_JSON=/tmp/scancode.jsonand inspect that JSON. - Re-run until
RESULT: PASS.
Notes
- Project is mounted read-only; the result JSON lives in a temp dir and is removed on exit — nothing is written into the scanned tree.
- Scanning is CPU-intensive;
node_modules,.git,*/test/*,dist,buildandmegalinter-reportsare ignored by default. Add globs viaSCANCODE_IGNORE. SCANCODE_PROCESSEScontrols parallelism (default 4).SCANCODE_PLATFORMdefaults tolinux/amd64(ScanCode's native libs are amd64 wheels).
Resources
scripts/Dockerfile— builds a minimal ScanCode image from PyPI.scripts/scan.sh— builds the image if needed, runs ScanCode (license + copyright + package) to a temp JSON, evaluates the license policy, and exits 0/1 (or 125 on an operational error). Env:SCANCODE_DENY,SCANCODE_KEEP_JSON,SCANCODE_IGNORE,SCANCODE_PROCESSES,SCANCODE_PLATFORM,SCANCODE_IMAGE.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

