drevendev/HungryCrab / skills/license
license
VerifiedDecide what may be carried over from a prey repository under its license. Modes are COPY, COPY_FILE, REIMPLEMENT, IDEAS_ONLY and HUMAN. Use when a nutrient's license mode is unclear, when asked whether code or configs from another repository may be copied, or when a sniff verdict says HUMAN. Do not use to choose the maw's own license, for general legal advice, or for licensing questions unrelated to prey-to-maw transfer.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 4.7 KB |
| references/matrix.md | markdown | 4.7 KB |
references/matrix.md
View on GitHub# Maw x prey license matrix
Rows are the prey license class, columns the maw license class. The engine picks the more
restrictive mode when in doubt.
| Prey \ Maw | Permissive (MIT, BSD, Apache, MPL maw) | GPL family maw | Proprietary or unlicensed maw |
|---|---|---|---|
| MIT, BSD, ISC, 0BSD, Zlib, Unlicense, CC0, Boost, PostgreSQL, PSF | `COPY` | `COPY` | `COPY` |
| Apache-2.0 | `COPY` + NOTICE | `COPY` + NOTICE for GPL-3.0, AGPL-3.0 and GPL-2.0-or-later; `IDEAS_ONLY` for GPL-2.0-only | `COPY` + NOTICE |
| MPL-2.0 (ordinary grant) | `COPY_FILE` | `COPY_FILE` (keep original file license) | `COPY_FILE` |
| EPL-1.0, EPL-2.0, CDDL-1.0 | `COPY_FILE` | `IDEAS_ONLY`: incompatible with GPL; an explicit SPDX `OR` offering a compatible GPL branch may permit `COPY` under that branch instead | `COPY_FILE` |
| MPL-1.1, CDDL-1.1, MPL-2.0-no-copyleft-exception (known incompatible variants) | `HUMAN` | `IDEAS_ONLY`: incompatible with GPL | `HUMAN` |
| LGPL | `REIMPLEMENT` (linking is a separate question) | `COPY` when the versions are compatible (table below), else `IDEAS_ONLY`: LGPLv3 never fits GPL-2.0-only | `REIMPLEMENT` |
| GPL-2.0 / GPL-3.0 | `REIMPLEMENT` (clean room) | `COPY` when the versions are compatible, else `IDEAS_ONLY` | `IDEAS_ONLY` |
| AGPL-3.0 | `REIMPLEMENT` | `COPY` only into an AGPL-3.0 maw, else `IDEAS_ONLY` | `IDEAS_ONLY` |
| BUSL, SSPL, Elastic, Commons Clause, FSL, PolyForm, Sustainable Use, proprietary | `IDEAS_ONLY` | `IDEAS_ONLY` | `IDEAS_ONLY` |
| No license found | `IDEAS_ONLY`, flagged for review | `IDEAS_ONLY`, flagged for review | `IDEAS_ONLY`, flagged for review |
| License read and not classified | `HUMAN` | `HUMAN` | `HUMAN` |
| CC-BY (documentation) | `COPY` + attribution | `COPY` + attribution | `COPY` + attribution |
| CC-BY-SA, GFDL | `COPY_FILE` (share-alike flag) | `COPY_FILE` | `COPY_FILE` |
| CC-BY-NC, CC-BY-ND | `IDEAS_ONLY` | `IDEAS_ONLY` | `IDEAS_ONLY` |
An SPDX `OR` is resolved against the **actual recipient** before granting a mode. For example,
`EPL-2.0 OR GPL-3.0-only` selects its GPL branch into a GPL-3.0 maw, but neither
branch is copyable into GPL-2.0-only. The selected license and its obligations must
follow the chosen branch; global class ranking alone cannot make a GPL decision.
MPL-2.0's explicit incompatible-with-secondary-licenses exception is not treated
as the ordinary MPL-2.0 grant. These three known incompatible variants are denied
for GPL recipients; unsupported variants and their non-GPL recipient verdicts
still need human review.
## When the table does not apply
Two relationships short-circuit the whole matrix. The pair's `menu.json` verdict and card traces
record the effective relationship; the repository's `license.json` retains licence evidence.
| Relationship | When | Mode |
|---|---|---|
| `own` | the maw's `origin` owner also owns the prey, or the owner is listed in `trust.owners` in the maw's `.crab.yml` | `COPY` — a license governs strangers, and the owner is not one. Still flagged for review under a copyleft or source-available prey: owning a repository lets its owner relicense what they wrote, not what they received from someone else |
| `bypass` | `trust.bypass_license` is on in the maw's `.crab.yml` | `COPY`, always flagged. This is not a finding about the license; it is a decision to stop asking, and every card says so |
Neither is a licence verdict. If a card carries one, say which, because the reader will assume
the matrix was consulted and it was not.
## GPL and LGPL version compatibility (prey into a GPL maw)
The backward-compatible `modes_by_maw_class.gpl` summary is a **GPL-3.0-only
representative**, not a verdict for the entire GPL family. `mode_maw_samples`
names every representative in sniff/digest JSON; the terminal also names it.
Use the actual maw SPDX identifier and effective menu verdict for a decision.
| Prey | GPL-2.0-only maw | GPL-2.0-or-later maw | GPL-3.0 maw | AGPL-3.0 maw |
|---|---|---|---|---|
| GPL-2.0-only | `COPY` | `COPY` | `IDEAS_ONLY` | `IDEAS_ONLY` |
| GPL-2.0-or-later | `COPY` | `COPY` | `COPY` | `COPY` |
| GPL-3.0 | `IDEAS_ONLY` | `COPY` | `COPY` | `COPY` |
| AGPL-3.0 | `IDEAS_ONLY` | `IDEAS_ONLY` | `IDEAS_ONLY` | `COPY` |
| LGPL-2.0, LGPL-2.1 (only or later) | `COPY` | `COPY` | `COPY` | `COPY` |
| LGPL-3.0 (only or later) | `IDEAS_ONLY` | `COPY` | `COPY` | `COPY` |
LGPL-2.x converts to "GPL version 2 or any later version" (section 3), so it fits every column. LGPLv3 is
GPLv3 with extra permissions: it fits anything that is or can become GPLv3. Into an LGPL maw, the same
version fits, an older one offered "or later" fits, and a newer one fits a maw that is itself "or later".
The code lives in `src/hungry_crab/licensing/matrix.py`; the tests in `tests/test_licensing.py`
are the executable version of this table.
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| receiving-code-reviewobra/superpowersUse when receiving code review feedback, before implementing suggestions, especially if feedback seems unclear or technically questionable - requires technical rigor and verification, not performative agreement or blind implementation | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| requesting-code-reviewobra/superpowersUse when completing tasks, implementing major features, or before merging to verify work meets requirements | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| using-git-worktreesobra/superpowersUse when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools or git worktree fallback | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| verification-before-completionobra/superpowersUse when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions always | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |