.ai/skills/woocommerce-store-api/SKILL.md
The Store API is the public REST surface used by Woo blocks (Cart, Checkout, Mini-Cart) and external integrations. It lives under /wc/store/v1/* and has its own conventions distinct from the older /wc/v3/* admin REST API.
/wc/store/v1/.This skill complements woocommerce-backend-dev (general PHP conventions) and woocommerce-performance (cache priming patterns). Read those first for general conventions; this skill covers Store-API-specific decisions.
permission_callback styles, nonce enforcement via AbstractCartRoute, when to extend which abstract.woocommerce-performance for the underlying patterns.AbstractCartRoute (which enforces nonces) or implement equivalent CSRF protection. AbstractRoute alone is for read-only or own-auth routes.Nonce/Cart-Token response headers.prepare_html_response(), prepare_money_response(), response-formatting helpers.parse_variation_data()).