licenselisted
Install: claude install-skill TsukiNi22/ai-utils
# License
Not legal advice: say it once in the answer when the choice has consequences (custom terms, commercial
restrictions, relicensing, incompatible dependencies) and recommend a lawyer for anything custom.
`SKILL_DIR` = the directory of this file. Matrix: `reference/matrix.md` (read it before proposing anything).
## 1. Current state
```bash
python3 SKILL_DIR/scripts/license.py identify <LICENSE|COPYING|LICENSE.md> # SPDX id + similarity + copyright notice
```
Also look at where the license is declared: README (badge, `## License`), `CMakeLists.txt`
(`CPACK_RPM_PACKAGE_LICENSE`, `CPACK_RESOURCE_FILE_LICENSE`, `install(FILES LICENSE ...)`), `package.json`,
`pyproject.toml`, `Cargo.toml`, `debian/copyright`, `SPDX-License-Identifier:` headers in the sources.
Dependencies: `find_package`/`pkg_check_modules`/`FetchContent` of the CMake, vendored folders, package manifests
(their LICENSE files when present locally).
## 2. Needs
From the request, then one AskUserQuestion call (French) for what is still unknown, max 4 questions among:
commercial use by others, must modifications/derived works stay open (none / modified files / library / whole work /
also SaaS), patent grant, attribution required, forbid selling or hosting, closed-source linking allowed,
documentation/assets (CC) vs code, compatibility with a given dependency or ecosystem. The user's own projects use
`MIT` (`Copyright (c) <year> Tsukini`): a good default when nothing is required.
## 3. Match (matrix)
- **Ex