/woocommerce-commerce:woo-catalogfrom woocommerce-commerce
Manages WooCommerce product catalog programmatically: product types, CRUD, categories, tags, attributes, queries, and search. Use when building custom product management or display features.
Ships in woocommerce-commerce. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Fetch live docs:
site:developer.woocommerce.com products for product documentationhttps://woocommerce.github.io/code-reference/ for class referencewoocommerce custom product type implementation for custom product types| Type | Class | Description |
|---|---|---|
| Simple | WC_Product_Simple | Single product, no options |
| Variable | WC_Product_Variable | Product with variations (size, color) |
| Variation | WC_Product_Variation | Individual variation of a variable product |
| Grouped | WC_Product_Grouped | Collection of related simple products |
| External/Affiliate | WC_Product_External | Linked to external URL |
Any product can be marked:
WC_Product (or WC_Product_Simple)woocommerce_product_type_selector filterwoocommerce_product_class filter or woocommerce_product_type_{type} class name filterWC_Product_Factory resolves a product ID to the correct class:
wc_get_product( $id ) — returns the correct WC_Product_* subclasswoocommerce_product_class filter to allow custom type resolution$product = new WC_Product_Simple();
$product->set_name( 'My Product' );
$product->set_regular_price( '29.99' );
$product->set_status( 'publish' );
$product->save();
wc_get_products( $args ) — primary query method:
type — product type(s)status — post statussku — SKU lookupcategory — category slug(s)tag — tag slug(s)limit, page, offset — paginationorderby, order — sortingmeta_key, meta_value — meta queriesreturn — 'objects' (default) or 'ids'Object-oriented query builder — same as wc_get_products() but chainable.
Taxonomy: product_cat (hierarchical)
wp_set_object_terms( $product_id, $term_ids, 'product_cat' )get_the_terms( $product_id, 'product_cat' )$product->set_category_ids( [ 12, 15 ] )Taxonomy: product_tag (non-hierarchical)
$product->set_tag_ids( [ 5, 8 ] )Taxonomy: product_type — internal, determines the product class.
Register with register_taxonomy() associated with product post type. Set show_in_rest => true for block editor and API support.
$product->set_catalog_visibility( $visibility ):
visible — shop and searchcatalog — shop onlysearch — search onlyhidden — not visible (accessible via direct URL)$product->set_stock_status( $status ):
instock, outofstock, onbackorder$product->set_image_id( $attachment_id ) — featured image$product->set_gallery_image_ids( [ $id1, $id2 ] ) — galleryWC_Product_Variableset_attributes() (mark as variation = true)WC_Product_Variation for each combinationEach variation specifies attribute values:
$variation->set_attributes( [ 'pa_color' => 'red', 'pa_size' => 'large' ] )$product->set_upsell_ids( $ids ) — upsell products$product->set_cross_sell_ids( $ids ) — cross-sells (shown in cart)woocommerce_related_products filter)wc_get_product() to load products — never new WC_Product( $id ) directlywc_get_products() for queries — not WP_Query with post_type => 'product'show_if_simple, show_if_variable classes on admin tabswc_clean() to sanitize product input dataFetch the WooCommerce product documentation and code reference for exact method signatures, query parameters, and product type registration patterns before implementing.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub orcaqubits/agentic-commerce-skills-plugins --plugin woocommerce-commerce20 skills in this plugin
/php-modernWrite modern PHP 8.x code — typed properties, enums, readonly classes, match expressions, named arguments, union/intersection types, fibers, attributes, and constructor promotion. Use when writing PHP for WooCommerce or any PHP 8.x project./php-patternsApply PHP design patterns — Singleton, Factory, Strategy, Observer, Repository, Decorator, and Dependency Injection in PHP. Use when structuring WooCommerce extension code or implementing complex business logic./php-testingWrite PHP tests with PHPUnit — unit tests, mocking, data providers, assertions, test doubles, and TDD workflow. Use when writing tests for WooCommerce extensions or PHP projects./woo-adminBuild WooCommerce admin interfaces — settings pages, admin menus, product data tabs/panels, order meta boxes, WooCommerce Admin (React analytics), and reports. Use when creating admin-facing configuration or display pages./woo-apiBuild and consume WooCommerce REST API v3 endpoints — authentication, custom endpoints, extending existing resources, webhooks, and batch operations. Use when creating custom API endpoints or integrating external systems with WooCommerce./woo-blocksBuild WooCommerce Blocks — Gutenberg block integration, block-based cart/checkout extensions, Store API, and the @woocommerce/blocks-checkout package. Use when extending the block editor for WooCommerce or customizing block-based checkout/cart.Other plugins' skills for the same job