woocommerce
/woocommerce
Pomaga pisać rozszerzenia WooCommerce na HPOS i CRUD, z obsługą zamówień, produktów oraz bloków koszyka i kasy.
- Autor
- TheBeardedBearSAS ↗
- Repozytorium
- claude-craft ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 12.11.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 3
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 12.11.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
Pomaga pisać rozszerzenia WooCommerce na HPOS i CRUD, z obsługą zamówień, produktów oraz bloków koszyka i kasy.
Oryginalny opis (EN)
WooCommerce extension development (HPOS, CRUD, Store API, Cart/Checkout blocks). Use when the project extends WooCommerce: Requires Plugins: woocommerce, wc_* APIs, orders, products, checkout.
Jak działa
- When to Use
- Key Rules
- Where to Look
- Workflow
Podgląd SKILL.md
--- name: "woocommerce" description: "WooCommerce extension development (HPOS, CRUD, Store API, Cart/Checkout blocks). Use when the project extends WooCommerce: Requires Plugins: woocommerce, wc_* APIs, orders, products, checkout." allowed-tools: - Read - Glob - Grep --- # WooCommerce Extension Development Optional module of the WordPress stack (WooCommerce 11.2 line, WordPress 7.0+, PHP 7.4+). Load it only when the project depends on WooCommerce. The WordPress core rules (hooks, security, i18n, tests) still apply. ## When to Use - Plugin header has `Requires Plugins: woocommerce`, or code calls `wc_*` functions, `WC_Order`, `WC_Product`, `WC()` - Work touches orders, products, customers, cart, checkout, payment gateways, shipping, emails or webhooks - A `before_woocommerce_init` hook or `FeaturesUtil` call is present or missing ## Key Rules 1. **HPOS first**: orders are not posts. Use `wc_get_order()`, `wc_get_orders()`, `$order->get_meta()` and `$order->update_meta_data()` followed by `$order->save()`. Never `get_post()`, `WP_Query` or `*_post_meta()` on orders 2. **Declare compatibility** on `before_woocommerce_init` with `FeaturesUtil::declare_compatibility()` for `custom_order_tables` and `cart_checkout_blocks`, guarded by `class_exists()` 3. **Use the CRUD layer** (`WC_Data`, `WC_Product`, `WC_Customer`, `WC_Order`) for reads and writes; avoid direct SQL on WooCommerce tables 4. **Blocks-ready checkout**: extend Cart and Checkout through the Store API (`woocommerce_store_api_register_endpoint_data`, `ExtendSchema`) and block integrations (`IntegrationInterface`, slot-fills), not only classic template hooks 5. **Security**: verify payment webhooks (signature plus `hash_equals()`), never trust client-sent prices or totals, check capabilities (`manage_woocommerce`, `edit_shop_order`), escape all order data on output 6. **Dependency guard**: do not run when WooCommerce is inactive; rely on `Requires Plugins` and check `class_exists( 'WooCommerce' )` for load-order safety ## Where to Look - Detailed APIs, snippets, hooks, Store API, gateways, REST, testing: `REFERENCE.md` (this folder) - Auditable items for reviews and `/wordpress:check`: `checklist.md` (this folder) - Core WordPress rules: `.claude/references/wordpress/rules/` ## Workflow 1. Read `REFERENCE.md` sections matching the task (HPOS, CRUD, blocks, gateway, REST, tests) 2. Write the failing test first (`WP_UnitTestCase` with WooCommerce active in `wp-env`) 3. Implement through CRUD and hooks; declare feature compatibility 4. Walk `checklist.md` before commit and report findings separately from the core WordPress score
Pliki w paczce (3)
- REFERENCE.md 14 KB
- SKILL.md 3 KB
- checklist.md 6 KB
Wersje
| Repozytorium | Wynik | Licencja |
|---|---|---|
| Ta strona · TheBeardedBearSAS/claude-craft | 90 | MIT |
| TerminalSkills/skills | 100 | Apache-2.0 |
| apideck-libraries/api-skills | 100 | Apache-2.0 |
| craftos-dev/craftbot | 91 | MIT |
Migawka bazy z 13.11.2026 · wersja paczki 9eebd570bc4d (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 1 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 90wp-woocommerce-dev
Przegląda rozszerzenia WooCommerce: zgodność z HPOS, użycie CRUD, bramki płatności, fragmenty koszyka i integracje z blokami. - 100woocommerce-plugin-development
Buduje i zmienia wtyczki WooCommerce z hookami, zapisem danych CRUD, bezpiecznym dostępem do zamówień i nonce. - 91wp-woocommerce-dev
Przegląda kod rozszerzeń WooCommerce pod kątem zgodności z HPOS, bezpieczeństwa bramek płatniczych, optymalizacji koszyka i nadpisań szablonów. - 95wp-woocommerce
Pomaga pisać i sprawdzać kod WooCommerce: wtyczki, bramki płatności, metody dostawy, koszyk, zamówienia i e-maile. - 100woo-blocks
Buduje bloki WooCommerce: integracja z Gutenbergiem, rozszerzenia blokowego koszyka i checkoutu, Store API oraz pakiet @woocommerce/blocks-checkout. - 100woo-guard
Recenzuje wygenerowany lub zmieniony kod WooCommerce przed wdrożeniem: płatności, dostawy, checkout i logikę zamówień.