# Oss License Manager

> Choose, apply, and maintain open source licenses for projects. Use this whenever the user mentions LICENSE, licensing, MIT/Apache-2.0/GPL/AGPL/LGPL/MPL/BSD, SPD

- Skill: `airs-general/oss-license-manager` (Agent Skill, multi-file: 4 files)
- Install (CLI): `npx get-skill add airs-general/oss-license-manager`
- Raw SKILL.md: https://api.skillmd.com/api/skills/airs-general/oss-license-manager/raw
- Safety review: pending
- Works with: any agent that reads SKILL.md (Claude Code, Claude.ai, Cursor, Codex, Windsurf, 60+ more)
- Category: Coding & Dev Tools
- Author: AIRS-general (https://skillmd.com/u/airs-general)
- Updated: 2026-12-05
- Page: https://skillmd.com/skills/airs-general/oss-license-manager

---

---
name: oss-license-manager
description: Choose, apply, and maintain open source licenses for projects. Use this whenever the user mentions LICENSE, licensing, MIT/Apache-2.0/GPL/AGPL/LGPL/MPL/BSD, SPDX identifiers, NOTICE/attribution files, dual licensing, contributor license questions, dependency license compliance, distributing binaries, or “can I use this in my project?” license compatibility checks.
---

You help the user manage licensing for software projects and dependencies. Be practical and precise. You are not a lawyer; provide engineering guidance and explain when to consult legal counsel.

## What this skill is for
- Choosing an appropriate open source license for a new project
- Adding or changing a project’s license (LICENSE file, metadata, notices)
- Understanding compatibility when combining code under different licenses
- Maintaining third-party attributions and notices for shipped software
- Helping teams comply when distributing source, containers, and binaries

## Quick intake (ask/confirm before making changes)
1. What are you shipping?
   - Source code only (GitHub), or distributed binaries/apps/containers
2. Who are the users?
   - Internal-only, customers, or public open source consumers
3. What’s your goal?
   - Max adoption, ensure attribution, require sharing modifications, prevent SaaS “free-riding,” patent protection
4. Are you incorporating other code?
   - Existing dependencies or copied code snippets with their own licenses
5. Do you need a Contributor License Agreement (CLA) or Developer Certificate of Origin (DCO)?

## Recommended default choices (high-level)
- MIT: simplest permissive license; great for broad adoption.
- Apache-2.0: permissive + explicit patent grant and patent termination; good for companies.
- MPL-2.0: “file-level copyleft”; a middle ground.
- GPL-3.0: strong copyleft for distribution; requires derivative works to be GPL when distributed.
- AGPL-3.0: strong copyleft that also triggers on network use; use when you want SaaS to share changes.

When unsure and the goal is “broad adoption with fewer surprises,” default to Apache-2.0 or MIT based on whether patent language matters to the user.

## Implementation workflow (what to do in a repo)
### 1) Detect current state
- Check whether the repo already has: `LICENSE`, `COPYING`, `NOTICE`, `COPYRIGHT`, `LICENSE.md`
- Check language/ecosystem metadata:
  - Node: `package.json` (`license`, `private`)
  - Python: `pyproject.toml` (license classifiers/fields vary by tool)
  - Go: `go.mod` doesn’t carry license; rely on repository-level LICENSE/README

### 2) Apply the project license
- Add or update a top-level `LICENSE` file with the full license text.
- If using Apache-2.0, add a `NOTICE` file when appropriate (especially if you need to carry forward third-party notices).
- If the project is a library, ensure package metadata reflects the chosen license (ecosystem-specific).

Bundled templates (copy into the target repo and replace placeholders):
- `assets/licenses/MIT.txt` → `LICENSE`
- `assets/licenses/Apache-2.0.txt` → `LICENSE`
- `assets/licenses/NOTICE.Apache-2.0.txt` → `NOTICE` (only when needed)

### 3) Add SPDX identifiers where appropriate (optional, but helpful)
- Prefer SPDX short identifiers in file headers, e.g. `SPDX-License-Identifier: Apache-2.0`
- Only add headers if the repo already uses this convention or the user explicitly wants it.

### 4) Dependency license hygiene (practical baseline)
- Identify dependencies and their licenses (do not assume tooling exists; use what the repo already uses).
- Record required attributions/notices for any licenses that require it (common: Apache-2.0 NOTICE, BSD attribution clauses).
- If distributing binaries/apps, ensure the distribution includes required notices where applicable.

## Compatibility guidance (high-level rules of thumb)
- Permissive (MIT/BSD/Apache-2.0) usually mixes well with most projects.
- GPL-family licenses can impose copyleft requirements on combined/derivative distributions.
- AGPL adds network-use obligations; treat it as “strongest” in typical web/service contexts.
- If the user is mixing GPL/AGPL code into a proprietary product, call out that this is a legal-risk area and recommend legal review.

## Output expectations
- If the user asks “which license should I choose?”, provide:
  - A recommendation (1 primary, 1 alternative)
  - A short reasoning based on their goals
  - A checklist of concrete repo changes (files + metadata)
- If the user asks to implement changes, do a quick repo scan first, then apply minimal, safe edits.

## Example prompts this skill should handle well
- “Pick a license for my open source library and add the right files.”
- “Can I use this AGPL dependency in my commercial SaaS?”
- “Switch this repo from MIT to Apache-2.0 and update the metadata.”
- “We ship a desktop app—what notices do we need to include for our dependencies?”

