wcs-types

Generate TypeScript interfaces and error code unions for the WooCommerce Store API.

1|Updated Jun 18, 2026
One-click install
npx skills add https://github.com/kizlo-io/kizlo --skill wcs-types
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: wcs-types
Source: https://github.com/kizlo-io/kizlo/tree/main/.claude/skills/wcs-types
Command: npx skills add https://github.com/kizlo-io/kizlo --skill wcs-types

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill eliminates the manual effort of mapping WooCommerce Store API endpoints to TypeScript interfaces, ensuring your frontend types are always accurate and synchronized with the official API documentation.

Core Features & Use Cases

  • Automated Type Generation: Converts Store API resource groups or documentation URLs into strongly-typed TypeScript interfaces.
  • PHP Fallback Logic: Automatically fetches and parses PHP source code from the WooCommerce repository when documentation is incomplete or missing.
  • Use Case: When building a headless WooCommerce storefront, use this skill to instantly generate the WCS_Cart and associated input types for your cart management logic.

Quick Start

Ask the assistant to generate TypeScript types for the cart resource group by providing the name of the resource or its official documentation URL.

Frequently Asked Questions about wcs-types

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate TypeScript types for the WooCommerce Store API?

You can generate TypeScript types for the WooCommerce Store API by providing a resource group name or official documentation URL to automatically produce strongly-typed interfaces and error code unions for your headless e-commerce application.

What are the limitations of using WooCommerce API documentation for TypeScript codegen?

When WooCommerce API documentation is incomplete or missing, the codegen process automatically falls back to fetching and parsing the official PHP source code from the WooCommerce repository to ensure complete coverage of endpoint arguments and response schemas.

Can I use automated codegen to create input types for a headless WooCommerce cart?

Yes, you can use automated codegen to instantly generate WCS_Cart and associated input types for cart management logic when building a headless WooCommerce storefront.

Why do my headless WooCommerce TypeScript interfaces not match the Store API error codes?

Your TypeScript interfaces may not match Store API error codes because manual mapping is prone to desynchronization; automated fetching and parsing of official documentation and PHP source code ensures consistent WCS_ prefixed error code unions.

Does the WooCommerce Store API type generation cover all endpoint arguments and response schemas?

Yes, the type generation targets the public Store API surface and implements automated fetching and parsing logic to ensure complete coverage of all endpoint arguments, response schemas, and error handling.