License Compliance
Overview
This skill defines how to manage license compliance when using third-party code, libraries, content, or assets. License violations can cause legal liability, forced code removal, and reputational damage. Every dependency must be checked for license compatibility.
When to Use
- When adding any third-party library, package, or dependency
- When incorporating open-source code into your project
- When using images, fonts, media, or creative assets
- Before distributing or publishing any product
- When evaluating software for commercial use
- Don't use when: Working exclusively with internally developed, fully owned code and assets
Core Procedures
Step 1: Identify All Licenses
For every external dependency:
- What is the license? (MIT, Apache 2.0, GPL, LGPL, AGPL, BSD, proprietary, unknown)
- Where is the license documented? (LICENSE file, package.json, website)
- Is the license version specified? (v2 vs v3 can have very different requirements)
Step 2: Check Compatibility
| Your License |
Can Use |
Cannot Use |
Notes |
| MIT |
Almost anything |
Nothing major |
Very permissive |
| Apache 2.0 |
MIT, BSD, ISC |
GPL-only |
Patent protection clause |
| GPL v3 |
GPL-compatible |
Proprietary, some Apache |
Strong copyleft |
| AGPL |
AGPL-compatible |
Most commercial |
Network use = distribution |
| Proprietary |
Explicitly licensed |
GPL, most open source |
Check contract terms |
Step 3: Understand Obligations
For each license, document required actions:
- Attribution: Must include copyright notice, license text
- Source Disclosure: Must provide source code if distributing binary
- Copyleft: Derivative works must use same license
- Patent Grant: License includes patent rights from contributors
- Network Clause: Network use triggers sharing obligations (AGPL)
- State Changes: Must document any changes made to the code
Step 4: Track All Licenses
Maintain a dependency registry:
DEPENDENCY LICENSE RECORD
=========================
Package/Asset: [name and version]
License: [license name and version]
Source: [where obtained from]
Obligations: [what we must do to comply]
Usage: [how it is used in product]
Compatibility: [compatible with our distribution? yes/no/conditional]
Step 5: Compliance Actions
Quality Checklist
Error Handling
- Error: License for dependency unknown
Response: Do NOT use until license is determined, find alternative with known license
- Error: License incompatible with distribution model
Response: Find alternative compatible library, or change distribution model
- Error: Copyleft dependency incorporated into proprietary code
Response: Isolate copyleft code, re-archecute to use as separate process, consult legal
Cross-Team Integration
Related Skills: secrets-handling, data-privacy-check, audit-trail-management, source-verification
Used By: ALL agents incorporating external code/assets, especially Integrators, Developers, Legal, Procurement
1---2name: license-compliance3description: >4 Use when incorporating or distributing code, libraries, assets, or content with5 licensing requirements. This skill provides procedures for identifying, tracking,6 and complying with licenses across all dependencies and third-party materials.7metadata:8 source: https://skillmd.com/skills/construct-ai-primary/license-compliance9---1011# License Compliance1213## Overview14This skill defines how to manage license compliance when using third-party code, libraries, content, or assets. License violations can cause legal liability, forced code removal, and reputational damage. Every dependency must be checked for license compatibility.1516## When to Use17- When adding any third-party library, package, or dependency18- When incorporating open-source code into your project19- When using images, fonts, media, or creative assets20- Before distributing or publishing any product21- When evaluating software for commercial use22- **Don't use when:** Working exclusively with internally developed, fully owned code and assets2324## Core Procedures2526### Step 1: Identify All Licenses27For every external dependency:28- What is the license? (MIT, Apache 2.0, GPL, LGPL, AGPL, BSD, proprietary, unknown)29- Where is the license documented? (LICENSE file, package.json, website)30- Is the license version specified? (v2 vs v3 can have very different requirements)3132### Step 2: Check Compatibility33| Your License | Can Use | Cannot Use | Notes |34|-------------|---------|-----------|-------|35| MIT | Almost anything | Nothing major | Very permissive |36| Apache 2.0 | MIT, BSD, ISC | GPL-only | Patent protection clause |37| GPL v3 | GPL-compatible | Proprietary, some Apache | Strong copyleft |38| AGPL | AGPL-compatible | Most commercial | Network use = distribution |39| Proprietary | Explicitly licensed | GPL, most open source | Check contract terms |4041### Step 3: Understand Obligations42For each license, document required actions:43- **Attribution:** Must include copyright notice, license text44- **Source Disclosure:** Must provide source code if distributing binary45- **Copyleft:** Derivative works must use same license46- **Patent Grant:** License includes patent rights from contributors47- **Network Clause:** Network use triggers sharing obligations (AGPL)48- **State Changes:** Must document any changes made to the code4950### Step 4: Track All Licenses51Maintain a dependency registry:52```53DEPENDENCY LICENSE RECORD54=========================55Package/Asset: [name and version]56License: [license name and version]57Source: [where obtained from]58Obligations: [what we must do to comply]59Usage: [how it is used in product]60Compatibility: [compatible with our distribution? yes/no/conditional]61```6263### Step 5: Compliance Actions64- [ ] All license texts included in NOTICE or LICENSE file65- [ ] Copyright notices preserved in source code66- [ ] Source code available if required by license67- [ ] No copyleft contamination of proprietary code68- [ ] License-compliant version of dependencies verified6970## Quality Checklist71- [ ] All dependencies identified with licenses72- [ ] License compatibility verified for each dependency73- [ ] Required obligations documented and fulfilled74- [ ] Dependency registry maintained and current75- [ ] Distribution packages include required license notices76- [ ] No unknown-license dependencies in product7778## Error Handling79- **Error:** License for dependency unknown80 **Response:** Do NOT use until license is determined, find alternative with known license81- **Error:** License incompatible with distribution model82 **Response:** Find alternative compatible library, or change distribution model83- **Error:** Copyleft dependency incorporated into proprietary code84 **Response:** Isolate copyleft code, re-archecute to use as separate process, consult legal8586## Cross-Team Integration87**Related Skills:** secrets-handling, data-privacy-check, audit-trail-management, source-verification88**Used By:** ALL agents incorporating external code/assets, especially Integrators, Developers, Legal, Procurement