Woo setup

From OrcaQubits/agentic-commerce-skills-plugins · View interactive version

Woo setup is an AI agent skill from the GitHub repository OrcaQubits/agentic-commerce-skills-plugins. Install WooCommerce, configure the development stack, and set up a local dev environment with WP-CLI, Docker, or wp-env. Use when setting up a new WooCommerce project or development environment.

How to use this skill

Skill file

WooCommerce Installation & Environment Setup

Before writing code

Fetch live docs:

  1. Fetch https://developer.woocommerce.com/docs/ for the getting started guide
  2. Web-search site:developer.wordpress.org cli commands for WP-CLI reference
  3. Web-search woocommerce system requirements latest version for current requirements

System Requirements

Minimum Stack

| Component | Requirement |

|-----------|-------------|

| PHP | 7.4+ (8.0–8.3 recommended) |

| MySQL | 8.0+ |

| MariaDB | 10.4+ |

| WordPress | 6.4+ |

| WooCommerce | 9.x (latest) |

| HTTPS | Required for payment gateways |

| max_execution_time | 120+ seconds |

| memory_limit | 256M+ |

Recommended PHP Extensions

curl, gd, intl, mbstring, openssl, xml, zip, sodium, imagick

Local Development Options

wp-env (Official WordPress)

WordPress's official Docker-based local environment:

Docker Compose

Custom Docker setup with wordpress, mysql/mariadb, optional phpmyadmin, mailhog containers. Mount plugin/theme directories into the WordPress container.

Local by Flywheel / DDEV / Lando

GUI or CLI tools that provision WordPress-ready environments with configurable PHP, MySQL, and web server versions.

WP-CLI Setup

Essential WooCommerce Commands

Scaffold a WooCommerce Extension

Project Bootstrapping

Recommended Plugin Structure

my-woo-extension/
├── my-woo-extension.php          # Main plugin file with headers
├── includes/                     # PHP classes
├── src/                          # Namespaced source (PSR-4 autoloaded)
├── assets/
│   ├── css/
│   └── js/
├── templates/                    # Overridable templates
├── languages/                    # i18n .pot/.po/.mo files
├── tests/                        # PHPUnit tests
├── composer.json                 # Dependencies + autoloading
├── package.json                  # JS build tooling (if blocks)
└── readme.txt                    # WordPress.org plugin header

Main Plugin File Headers

Required headers for WooCommerce extensions:

HPOS Compatibility Declaration

Every new extension must declare HPOS compatibility:

add_action( 'before_woocommerce_init', function() {
    if ( class_exists( \Automattic\WooCommerce\Utilities\FeaturesUtil::class ) ) {
        \Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility(
            'custom_order_tables', __FILE__, true
        );
    }
});

Best Practices

Fetch the WooCommerce getting started guide and WP-CLI docs for exact commands and configuration options before setting up.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.