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.
- Autor
- agenciaRSE ↗
- Repozytorium
- wp-plugin-zip ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 10.11.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 3
- Skrypty
- 2
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 10.11.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
- 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
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
- Build a package
- Check an existing zip
- Before you hand the zip over
- Writing plugin code that survives packaging
- Common WordPress errors and their cause
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.