Przejdź do treści
Biblioteka skilli
Programowanie · Budowanie i kod

wp-plugin-zip

/wp-plugin-zip

Buduje i sprawdza paczki zip wtyczek i motywów WordPress, tak by instalowały się i aktywowały bez błędów.

Repozytorium
wp-plugin-zip ↗
Licencja
MIT
Ostatnia zmiana repozytorium
10.11.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
3
Skrypty
2
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

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

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

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

Skrypty: scripts/test_wp_zip.py, scripts/wp_zip.py

Co robi i kiedy

Buduje i sprawdza paczki zip wtyczek i motywów WordPress, tak by instalowały się i aktywowały bez błędów.

Wyzwalacze z opisu

Plugin file does not existThe theme is missing the style.css stylesheetheaders already sentSend to compressed folderDownload ZIP
Oryginalny opis (EN)

Builds and checks WordPress plugin and theme .zip packages so they install and activate cleanly. Use it whenever you package a WordPress plugin or theme for upload, a release or a client, and whenever the user reports "Plugin file does not exist", "The package could not be installed. No valid plugins were found", "The theme is missing the style.css stylesheet", "headers already sent" right after activating, or asks why a plugin zip will not install. Never build a WordPress zip with Compress-Archive, Explorer's "Send to compressed folder" or a GitHub "Download ZIP".

Jak działa

  1. Build a package
  2. Check an existing zip
  3. Before you hand the zip over
  4. Writing plugin code that survives packaging
  5. Common WordPress errors and their cause
Sekcje z nagłówków SKILL.md, w oryginale · 51 linii, 507 słów
Podgląd SKILL.md
---
name: wp-plugin-zip
description: Builds and checks WordPress plugin and theme .zip packages so they install and activate cleanly. Use it whenever you package a WordPress plugin or theme for upload, a release or a client, and whenever the user reports "Plugin file does not exist", "The package could not be installed. No valid plugins were found", "The theme is missing the style.css stylesheet", "headers already sent" right after activating, or asks why a plugin zip will not install. Never build a WordPress zip with Compress-Archive, Explorer's "Send to compressed folder" or a GitHub "Download ZIP".
---

# WP Plugin Zip

WordPress rejects zips that look fine on your computer. The usual causes are invisible: a `\` separator written by Windows PowerShell's `Compress-Archive`, a BOM before `<?php`, the main file one folder too deep, a GitHub folder called `slug-main`, or a zip that holds other zips. `scripts/wp_zip.py` builds the package correctly and verifies it before you hand it over.

## Build a package

```bash
python "<this skill's directory>/scripts/wp_zip.py" build <plugin-folder> [out.zip] [--lint]
```

- The folder name is the slug: `my-plugin/` gives `my-plugin.zip` with a single `my-plugin/` folder inside.
- `--lint` runs `php -l` on every PHP file when PHP is on the PATH. Use it before any release.
- Use `python3` or `py` when `python` is not found.

The script skips `.git`, `node_modules`, `.DS_Store`, `Thumbs.db`, `desktop.ini`, `*.zip`, `*.map` and logs, converts CRLF to LF in text files, and writes POSIX separators with explicit folder entries. It refuses to write the zip if:

- no PHP file directly inside the folder has a `Plugin Name:` header in its first 8 KB (and there is no `style.css` with `Theme Name:`): WordPress only reads those 8 KB;
- a PHP file starts with a UTF-8 BOM or is saved as UTF-16;
- `php -l` finds a syntax error (with `--lint`).

## Check an existing zip

```bash
python "<this skill's directory>/scripts/wp_zip.py" check <file.zip>
```

Use it on any zip before uploading it: yours, a client's or a marketplace download. Explain each ERROR line to the user in plain words and give the fix. WARNING lines install, but say what will go wrong (for example, a `-main` folder becomes the slug and breaks updates).

## Before you hand the zip over

1. Run `build`, and read its summary.
2. Confirm the **Plugin Name**, **Version** and **Author** match what you just changed. A version that did not go up means the user is about to ship an old zip.
3. Give the user the path of the zip, the version and the WARNING lines, if any.

## Writing plugin code that survives packaging

- Save PHP, JS and CSS as UTF-8 **without BOM**, with LF line endings.
- Use straight ASCII quotes (`"` `'`) in PHP code. Typographic quotes (`“ ” ‘ ’`) outside strings cause a fatal error.
- Keep the main file at `slug/slug.php` and the header at the very top of it.

## Common WordPress errors and their cause

| Message | Usual cause |
|---|---|
| Plugin file does not exist. | `\` separators, or the main file one folder too deep |
| The package could not be installed. No valid plugins were found. | Zip of zips (marketplace download), or no `Plugin Name:` header |
| The theme is missing the style.css stylesheet. | Theme zip of zips, or `style.css` one folder too deep |
| Cannot modify header information - headers already sent | BOM or blank lines before `<?php` |
| Destination folder already exists. | Same slug already installed; replace it from the upload screen or delete it first |
Pliki w paczce (3)
  • SKILL.md 3 KB
  • scripts/test_wp_zip.py 3 KB
  • scripts/wp_zip.py 10 KB

Wersje

W bazie nie ma innych skilli o nazwie wp-plugin-zip.

Migawka bazy z 13.11.2026 · wersja paczki 36e8e09e0e3d (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

  • 96mpc-plugin-package
    Pakuje gotowy plugin MPC do pliku zip z instrukcją instalacji dla właścicieli urządzeń.
  • 100plugin-package
    Buduje dwie paczki sklepowe dla serwera MCP z jednego opisu: plik ZIP wtyczki ChatGPT i pakiet Claude.
  • 100tizen-tv-sdk-install-from-zip
    Instaluje TV SDK dla Tizen z lokalnego archiwum ZIP, bez pobierania, gdy wszystkie pakiety są w pliku.
  • 98tizen-tv-sdk-install-from-zip
    Instaluje rozszerzenie Tizen TV SDK z lokalnego pliku ZIP w trybie offline, po wcześniejszym zainstalowaniu Tizen SDK.
  • 100wp-updates
    Prowadzi rutynowe aktualizacje rdzenia, wtyczek i motywów WordPress przez WP-CLI, w osobnej gałęzi i po zatwierdzeniu.
  • 100wordpress
    Zasady kodowania, bezpieczeństwa i testów dla wtyczek i motywów WordPress, stosowane przy plikach PHP, JS i CSS.

Uwagi i zgłoszenia

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