agentleFS
GucixdevGucixdev/claude-skills/skills/which-license/SKILL.md

which-license

Skill0 starsChanged 9 days agoMITView on GitHub

Pick a licence for his code and judge the licence of code he wants to reuse - MIT by default for maximum integration, 0BSD/Unlicense or MIT-or-public-domain for stb-style headers, Apache-2.0 only for the patent grant, GPL kept out of the tree (technique-only inspiration is fine, copying is not). Use for LICENSE, SPDX, copyright, can I copy this code, fork, dwl/GPL, MIT, Apache, pizzaware.

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 2 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Not legal advice; I say how sure I am and name the file to read to confirm.

    line 12
  2. Distinctive:

    Avoid for his own code: GPL-2.0/3.0 and AGPL (they force every user to the same terms and block MIT/Apache mixing).

    line 26
  3. Very specific:

    No licence file means all rights reserved: do not copy it, ask or write it from scratch (rea for the idea only).

    line 43
  4. Very specific:

    Before a push: grep -rIL 'SPDX-License-Identifier' src finds files without a tag.

    line 53

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

which-license

Not legal advice; I say how sure I am and name the file to read to confirm. His wish (2026-11-15): the most integration possible, mostly MIT, GPL 2/3 avoided, Apache maybe, joke licences like pizzaware asked about.

For his own code

CaseLicenceWhy
Default for any repoMITeveryone can use it, short, compatible with nearly everything
stb-style single-file header (holyc)MIT, or "MIT or public domain" (Unlicense) like stbpeople paste one file; public domain removes even the notice
Tiny snippet, no attribution wanted0BSD or Unlicenseno notice duty at all
A bigger library where users or firms fear patentsApache-2.0explicit patent grant; adds NOTICE and "changed files" duties; not compatible with GPL-2.0-only
Wants changes to one library shared back, but usable in closed appsMPL-2.0 (file-level) or LGPLonly if he ever wants that; not his default
Joke: pizzaware, beerwareMIT with the joke in the READMEjoke licences are not OSI-approved and lawyers/distros may refuse them; the README carries the pizza, LICENSE stays MIT

Avoid for his own code: GPL-2.0/3.0 and AGPL (they force every user to the same terms and block MIT/Apache mixing).

Code he wants to reuse (inbound)

  • MIT, BSD, ISC, 0BSD, Zlib, Unlicense/CC0: copy freely into an MIT project; keep the copyright line and licence text (holyc keeps them in THIRD_PARTY/ plus THIRD_PARTY.md).
  • Apache-2.0: fine in an MIT/Apache project, keep NOTICE; makes the combined work effectively Apache-governed.
  • His stance (2026-11-23, symbiotecpp): his goal is everything on MIT. Permissive code (MIT/BSD/Apache) may be copied, or better rewritten "similarly, not 100 % whole", with the header/NOTICE kept. Copyleft code (GPL/AGPL/LGPL, CC-NC, Polyform) is inspiration only: take the technique and the maths, write own code from that description, no copied lines, helper names or comments; note what was learned in the project's references list, not in a code header. Where a copyleft library has unique value, answer it with an own proof or measurement (Lean 4, AMPL, benchmark), not a transcription. Closed source: behaviour and docs only. Check the real LICENSE file, README badges can be wrong.
  • GPL/AGPL/LGPL: do not copy or fork into an MIT tree; the whole result must then be GPL. Calling such a program as a separate process (CLI, socket) is fine. A fork of GPL code stays GPL: that is why forking dwl (GPLv3, check its LICENSE) blocks MIT; wlroots, sway and tinywl are MIT/permissive, so an own compositor built on wlroots can be MIT.
  • No licence file means all rights reserved: do not copy it, ask or write it from scratch (rea for the idea only).
  • Clean-room: reimplement from the behaviour or spec, never from reading GPL source side by side.

Doing it in a repo

  1. LICENSE at the root with the full text; copyright line Copyright (c) YEAR Gucixdev (the handle, never a real name or e-mail, publish-anything).
  2. One SPDX-License-Identifier: MIT line at the top of each source file (cheap, machine-readable); stb-style header: the licence block at the end like stb does.
  3. THIRD_PARTY.md: every ported or vendored piece, its source URL, author and licence.
  4. Before a push: grep -rIL 'SPDX-License-Identifier' src finds files without a tag; reuse lint if installed; audit-everything checks dependencies' licences.
  5. Changing a licence later needs every contributor's consent: decide before the first outside pull request.

When unsure

Contested or irreversible (relicensing a public repo, using GPL code): one line in questions.md through decide, safe default meanwhile = do not copy it.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.