wp-plugin-scaffold
/wp-plugin-scaffold
Tworzy szkielet nowej wtyczki WordPress z autoloadingiem PSR-4, obsługą aktywacji i dezinstalacji, tłumaczeniami i testami.
- Autor
- addblack ↗
- Repozytorium
- wp-sdlc-kit ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 27.10.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 1
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 27.10.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
Co robi i kiedy
Tworzy szkielet nowej wtyczki WordPress z autoloadingiem PSR-4, obsługą aktywacji i dezinstalacji, tłumaczeniami i testami.
Oryginalny opis (EN)
Create a new WordPress plugin with a clean structure, PSR-4 autoloading, activation/uninstall handling, i18n and test setup. Use when asked to start a new plugin or add the base structure to an existing one.
Jak działa
- Structure
- Rules
Podgląd SKILL.md
---
name: wp-plugin-scaffold
description: Create a new WordPress plugin with a clean structure, PSR-4 autoloading, activation/uninstall handling, i18n and test setup. Use when asked to start a new plugin or add the base structure to an existing one.
---
# WordPress plugin scaffold
Ask for: plugin name, slug, text domain, global prefix, minimum WP and PHP versions, namespace. Use the values from `CLAUDE.md` and `phpcs.xml` if already set.
## Structure
```
my-plugin/
├── my-plugin.php # header, constants, bootstrap only
├── uninstall.php # remove options/tables created by the plugin
├── composer.json # psr-4 autoload for src/
├── src/
│ ├── Plugin.php # wires hooks, single entry point
│ ├── Admin/
│ ├── Rest/
│ └── Support/
├── languages/
├── assets/ # source; built output goes to build/
└── tests/php/
```
## Rules
- Main file: plugin header (including `Requires at least`, `Requires PHP`, `Text Domain`), `defined( 'ABSPATH' ) || exit;`, constants for version/path/url, require `vendor/autoload.php`, call `Plugin::boot()` on `plugins_loaded`.
- No logic in the main file. Hooks are registered in `Plugin` and delegated to small classes.
- Activation: `register_activation_hook` only for things that must exist before first request (rewrite flush, default options, tables via `dbDelta`). Store `{prefix}_db_version`. Never output anything.
- `uninstall.php`: check `WP_UNINSTALL_PLUGIN`, delete options, transients, custom tables and cron events created by the plugin.
- Prefix every option, transient, hook, cron event and global. Load the text domain on `init`.
- Add one real test per class from the start (see `tests/php/SampleTest.php`) and set `PLUGIN_MAIN_FILE` in `tests/bootstrap.php` if the main file name differs from the folder.
- Finish by running `composer install`, `composer check` and `npm run test:php`, and report the output.
Wersje
W bazie nie ma innych skilli o nazwie wp-plugin-scaffold.
Migawka bazy z 13.11.2026 · wersja paczki afbf861d9f49 (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
- 100woo-plugin-dev
Tworzy rozszerzenia i wtyczki WooCommerce: struktura plików, główny plik wtyczki, hooki aktywacji i dezaktywacji, własne tabele bazy, autoloading i API wtyczek WordPress. - 90php-pure
Pisze aplikacje PHP bez frameworka według standardów PSR: autoloading, żądania, middleware, kontener usług i logowanie. - 100php-standards
Pomaga ustawić autoloading pakietów PHP, styl kodowania i interfejsy PSR: PSR-4, PER Coding Style 3.1 i composer.json. - 100dashboard-plugin-scaffold
Tworzy szkielet nowej wtyczki pi-dashboard w monorepo albo dodaje wkład wtyczki do istniejącego projektu rozszerzenia pi, po jednej serii pytań na początku. - 100create-plugin-scaffold
Tworzy szkielet wtyczki Cursor z poprawnym manifestem, katalogami komponentów i podłączeniem do marketplace, także w repozytorium z wieloma wtyczkami. - 100wp-plugin-bootstrap
Tworzy i przegląda główny plik wejściowy PHP wtyczki WordPress: nagłówek z Requires Plugins, ABSPATH guard, stałe, autoload Composer PSR-4, hook aktywacji ze sprawdzeniem wymagań i start klasy Plugin.