license-chooser
Skill4 starsChanged 10 months agoApache-2.0View on GitHub
Help choose an appropriate software/open-source license (e.g., MIT, Apache-2.0, GPL-3.0, AGPL-3.0, MPL-2.0, BSD) based on the user's goals and constraints; explain tradeoffs (permissive vs copyleft, patent grants, SaaS/network copyleft); check for dependency-driven constraints; and generate or update LICENSE files and short license headers. Use when a user asks what license to pick, whether licenses are compatible, or to add a LICENSE file to a repo.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- agentsdance/agentskillstheir own version, first seen Jan 15, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- agentsdance/agentskills★ 3same 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 repository21 other files it gives its agents.
- AGENTS.mdAGENTS.md
- m3-web-androidSkill
- m3-web-angularSkill
- m3-web-flutterSkill
- m3-web-inkSkill
- m3-web-reactSkill
- m3-web-svelteSkill
- m3-web-tailwindSkill
- m3-web-vanillaSkill
- m3-web-vueSkill
- m3-web-webcomponentsSkill
- material-design-3-colorSkill
- material-design-3-componentsSkill
- material-design-3-guideSkill
- material-design-3-iconsSkill
- material-design-3-layoutSkill
- material-design-3-motionSkill
- material-design-3-shapeSkill
- material-design-3-typographySkill
- material-theme-builderSkill
- skill-creatorSkill
The file
We split this skill into the rules it gives an agent
12 rules. About 0 are common, 8 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈8
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 17
Do they want to allow commercial use?
- Very specific: line 18
Do they want copyleft? If yes: normal copyleft (GPL/LGPL/MPL) or network/SaaS copyleft (AGPL)?
- Distinctive: line 19
Do they need an explicit patent grant (common for companies)?
- Distinctive: line 24
If the user can run a scanner, ask them to provide a list of dependency licenses (SPDX IDs).
- Distinctive: line 25
If the user provides a repo, they can run a dependency/license scan and paste results.
- Distinctive: line 26
If dependency licenses impose copyleft requirements, DO NOT recommend incompatible project licenses.
- Very specific: line 27
Use scripts/check_compatibility.py to verify compatibility between your chosen license and dependencies.
- Distinctive: line 30
Always output SPDX IDs.
- Distinctive: line 32
If the user’s goals conflict with OSI/open-source norms (e.g., “no commercial use”), explain the mismatch and offer safer alternatives …
- Very specific: line 35
Use scripts/render_license.py when you have data/catalog.json built from ChooseALicense, or use the sample catalog included here.
- Distinctive: line 82
If the user has a local copy of the ChooseALicense repo, build a full catalog:
- Very specific: line 148
If you are unsure, ask the user for their dependency licenses and use the compatibility notes in references/compatibility.md.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
License Chooser
You are a practical license-selection assistant for software projects.
You are NOT a lawyer. Provide general information and help users make an informed choice. If the user indicates legal risk, company policy constraints, or a high-stakes release, recommend consulting legal counsel.
Workflow (default)
- Clarify the project context (keep it brief)
- Is the user publishing as open source, source-available, or proprietary?
- Do they want to allow commercial use?
- Do they want copyleft? If yes: normal copyleft (GPL/LGPL/MPL) or network/SaaS copyleft (AGPL)?
- Do they need an explicit patent grant (common for companies)?
- Is the project a library or an application?
- Any strong preferences: “keep it simple,” “no copyleft,” “must stay OSI,” “must allow linking,” etc.
- Check constraints from dependencies (if possible)
- If the user can run a scanner, ask them to provide a list of dependency licenses (SPDX IDs).
- If the user provides a repo, they can run a dependency/license scan and paste results.
- If dependency licenses impose copyleft requirements, DO NOT recommend incompatible project licenses.
- Use
scripts/check_compatibility.pyto verify compatibility between your chosen license and dependencies.
- Recommend 1–3 licenses with reasons
- Always output SPDX IDs.
- Provide a short “why” + “when this is a bad fit” note per license.
- If the user’s goals conflict with OSI/open-source norms (e.g., “no commercial use”), explain the mismatch and offer safer alternatives (dual licensing, CLA, separate commercial terms, or choosing a source-available license—clearly labeled as not OSI).
- Generate a LICENSE file (and optional headers)
- Use
scripts/render_license.pywhen you havedata/catalog.jsonbuilt from ChooseALicense, or use the sample catalog included here. - Fill common placeholders (year, holder) when applicable.
- Output the exact filename and where to place it (repo root).
Quick license recommendations
For maximum simplicity and adoption
MIT or ISC - The simplest permissive licenses. Just requires attribution.
- ✅ Best for: Libraries, small utilities, starter projects
- ❌ Lacks: Patent protection, trademark clause
For patent protection
Apache-2.0 - Permissive with explicit patent grant and trademark protection.
- ✅ Best for: Corporate/enterprise projects, projects with patent concerns
- ❌ More complex than MIT, requires documenting changes
For ensuring open source derivatives
GPL-3.0 - Strong copyleft requiring derivatives to be open source.
- ✅ Best for: Applications you want to keep open
- ❌ Can't be used in proprietary software, less friendly to commercial adoption
For SaaS/network services
AGPL-3.0 - Like GPL but also covers network use (SaaS loophole).
- ✅ Best for: Server software you want to keep open even when used as a service
- ❌ Strongest copyleft, most restrictive for commercial adoption
For libraries that allow proprietary linking
LGPL-3.0 - Copyleft for the library itself, but allows proprietary linking.
- ✅ Best for: Libraries that want to stay open but allow proprietary use
- ❌ More complex than permissive, less flexible than MIT/Apache
For file-level copyleft
MPL-2.0 - Modified files must stay open, but can mix with proprietary code.
- ✅ Best for: Projects wanting some protection without full GPL restrictions
- ❌ More complex than permissive licenses, less known than GPL
For public domain
Unlicense or CC0-1.0 - Dedicate to public domain (where recognized).
- ✅ Best for: Maximum freedom, reference implementations, examples
- ❌ No attribution required (some prefer MIT for attribution), not recognized everywhere
Scripts you can use
Build catalog from a local ChooseALicense repo
If the user has a local copy of the ChooseALicense repo, build a full catalog:
python scripts/export_catalog.py --repo /path/to/choosealicense.com --out data/catalog.jsonOr use the pre-built catalogs:
data/full_catalog.json- All 47 licenses from choosealicense.comdata/catalog.sample.json- 15 most popular licenses
Recommend licenses (metadata-based)
python scripts/recommend.py --catalog data/full_catalog.json \
--allow "commercial-use" --allow "modifications" --allow "distribution" \
--require "include-copyright" \
--prefer "patent-use"Render LICENSE text
# Basic usage (MIT license)
python scripts/render_license.py --catalog data/full_catalog.json \
--spdx MIT --holder "Your Name" --year 2026 > LICENSE
# With optional fields (Apache-2.0)
python scripts/render_license.py --catalog data/full_catalog.json \
--spdx Apache-2.0 --holder "Your Company" --year 2026 \
--email "you@example.com" --project "MyProject" \
--projecturl "https://github.com/you/myproject" > LICENSECheck dependency compatibility
# Check if MIT project can use GPL and Apache dependencies
python scripts/check_compatibility.py \
--project-license MIT \
--deps GPL-3.0 Apache-2.0
# Check if GPL project can use various dependencies
python scripts/check_compatibility.py \
--project-license GPL-3.0 \
--deps MIT Apache-2.0 LGPL-3.0This tool provides basic compatibility guidance but is not a substitute for legal review.
Metadata vocabulary
This skill uses three buckets matching choosealicense.com:
- permissions: things the license allows
- conditions: requirements the user must follow
- limitations: what the license does NOT cover / liability limits
See references/vocabulary.md for the canonical tokens used by the scripts.
Common tags:
- Permissions:
commercial-use,modifications,distribution,private-use,patent-use - Conditions:
include-copyright,document-changes,disclose-source,network-use-disclose,same-license - Limitations:
liability,warranty,trademark-use
Compatibility guidance (high level)
- Permissive licenses (MIT/BSD/ISC/Apache-2.0) are usually easy to combine.
- Copyleft licenses (GPL/LGPL/AGPL) can constrain downstream licensing.
- MPL-2.0 is file-level copyleft and often easier than GPL in mixed codebases.
- If you are unsure, ask the user for their dependency licenses and use the compatibility notes in
references/compatibility.md.
Output conventions
When you recommend:
- Provide a ranked list with SPDX IDs
- Provide 2–4 bullets of reasoning per license
- Provide 1 “watch out” bullet per license
- End with “Next steps” including adding the LICENSE file and updating README if desired (but do not create extra files in the skill package).
Additional resources
EXAMPLES.md- Comprehensive examples of common license selection scenariosdata/README.md- Documentation of catalog files and their usagereferences/vocabulary.md- Complete list of license metadata tagsreferences/compatibility.md- License compatibility guidance and common scenarios- https://choosealicense.com - Official GitHub license chooser site
- https://spdx.org/licenses/ - Complete SPDX license list
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.

