Przejdź do treści
Biblioteka skilli
Prawo i compliance · Research

python-packaging-license-finder

/python-packaging-license-finder

Ustala licencję pakietu Python, sprawdzając najpierw metadane PyPI, a następnie pliki LICENSE w repozytorium Git pobranym płytkim klonem.

Repozytorium
ai-helpers ↗
Licencja
Apache-2.0
Ostatnia zmiana repozytorium
22.10.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
2
Skrypty
1
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 22.10.2026, bez odwołań do wycofanych modeli i API.

Licencja

Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.

Co sprawdzić przed instalacją
  • 1 skrypt w paczce. Przejrzyj je przed instalacją, bo Claude może je uruchomić.

Skrypty: scripts/find_license.py

Co robi i kiedy

Ustala licencję pakietu Python, sprawdzając najpierw metadane PyPI, a następnie pliki LICENSE w repozytorium Git pobranym płytkim klonem.

Oryginalny opis (EN)

Use this skill to deterministically find license information for Python packages by checking PyPI metadata first, then falling back to Git repository LICENSE files using shallow cloning.

Jak działa

  1. Instructions
  2. Usage Examples
  3. Error Handling
  4. Integration Notes
Sekcje z nagłówków SKILL.md, w oryginale · 100 linii, 458 słów
Podgląd SKILL.md
---
name: python-packaging-license-finder
description: Use this skill to deterministically find license information for Python packages by checking PyPI metadata first, then falling back to Git repository LICENSE files using shallow cloning.
allowed-tools: Bash Skill
---

# Python Package License Finder

This skill helps you deterministically find license information for Python packages using a two-step approach: first checking PyPI metadata, then searching the source repository if needed.

## Instructions

When a user asks to find the license for a Python package, follow this deterministic process:

### Step 0: Source URL Priority

If a source repository URL is provided by the caller, skip PyPI lookup entirely:

1. Pass the URL directly to the `git:shallow-clone` skill
2. Search for LICENSE files in the cloned repository (see Step 2.3-2.4 below)
3. Report the license found

You can also use the script with a source URL to trigger this flow:
```bash
./scripts/find_license.py <package_name> --source-url <url>
```

If no source URL is provided, proceed with Step 1.

### Step 1: Check PyPI Metadata
First, attempt to find the license from PyPI using the package inspection script:

```bash
./scripts/find_license.py <package_name> [version]
```

If the script finds a license in the PyPI metadata, **stop here** and return the license name.

### Step 2: Search Git Repository (if PyPI fails)
If no license is found in PyPI metadata, search the package's source repository:

1. **Get the source repository URL** from the PyPI metadata (the script will provide it)
2. **Use the shallow-clone skill** to clone the repository:
   ```
   Skill: git:shallow-clone
   ```
3. **Search for LICENSE files** in the cloned repository:
   ```bash
   find . -iname "license*" -o -iname "copying*" -o -iname "copyright*" | head -10
   ```
4. **Read the license file** to identify the license type:
   ```bash
   head -20 <license_file>
   ```

### Step 3: Report Results
- **License Found**: Return the license name (e.g., "MIT License", "Apache-2.0", "GPL-3.0")
- **License Not Found**: Report that the license could not be determined

## Usage Examples

### Find License for Popular Package
```bash
./scripts/find_license.py requests
```
**Expected**: Find "Apache-2.0" from PyPI metadata

### Find License for Package with Missing PyPI License
```bash
./scripts/find_license.py some-package
```
**Expected**: Fall back to repository search if PyPI metadata is incomplete

### Specific Version Analysis
```bash
./scripts/find_license.py django 4.2.0
```
**Expected**: Find license for specific Django version

## Error Handling

### Package Not Found
- Verify package name spelling
- Check package availability on PyPI
- Suggest alternative package names

### Repository Access Issues
- Report if source repository is unavailable
- Note private/restricted repositories
- Suggest manual license verification

### License File Parsing
- Handle non-standard license file formats
- Report unclear or multiple licenses
- Recommend manual review for complex cases

## Integration Notes

This skill complements:
- **python-packaging-complexity** - License info helps assess redistribution complexity
- **python-packaging-license-checker** - Provides license names for compatibility assessment
- **python-packaging-source-finder** - Uses similar PyPI metadata analysis

The skill focuses on **finding** license information, while license-checker focuses on **assessing** license compatibility for redistribution.
Pliki w paczce (2)
  • SKILL.md 3 KB
  • scripts/find_license.py 4 KB

Wersje

W bazie nie ma innych skilli o nazwie python-packaging-license-finder.

Migawka bazy z 28.10.2026 · wersja paczki cc719becce6d (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 90open-source-license-selection
    Pomaga wybrać, uzgodnić i zastosować licencję open source oraz metadane pakietu.
  • 100python-packaging-license-checker
    Sprawdza, czy licencja pakietu Python pozwala na redystrybucję w produktach Red Hat, według Fedora License Data, i zwraca werdykt w sześciu polach z wskazówkami eskalacji.
  • 100python-packaging
    Konfiguruje metadane paczki Pythona, setup.py i pyproject.toml pod publikację na PyPI przez UV lub setuptools.
  • 95python-packaging
    Przygotowuje pakiety Pythona z pyproject.toml, strukturą projektu i publikacją na PyPI.
  • 100license-check
    Ocenia, czy licencja pakietu Pythona pozwala na redystrybucję w potoku dystrybucji pakietów AI Red Hat (RHAI), rozpoznaje licencję SPDX i zapisuje ustrukturyzowany werdykt zgodności.
  • 100python-packaging
    Buduje i publikuje pakiety Python z uv: tworzenie wheel i sdist, publikacja w PyPI oraz punkty wejścia.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.