woocommerce-dev-cycle

支持 WooCommerce 插件开发全流程,涵盖代码变更后的自动化测试执行、PHP 与 JavaScript 的风格检查及修复、Markdown 格式校验,并提供针对性的故障排查指引,确保符合官方质量标准。

快捷安装

在终端运行此命令,即可一键安装该 Skill 到您的 Claude 中

npx skills add Microck/ordinary-claude-skills --skill "woocommerce-dev-cycle"

WooCommerce Development Cycle

This skill provides guidance for the WooCommerce development workflow, including running tests, code quality checks, and troubleshooting.

Instructions

Follow these guidelines for WooCommerce development workflow:

  1. Running tests: See running-tests.md for PHP and JavaScript test commands, test environment setup, and troubleshooting
  2. Code quality: See code-quality.md for linting and code style fixes
  3. PHP linting patterns: See php-linting-patterns.md for common PHP linting issues and fixes
  4. Markdown linting: See markdown-linting.md for markdown file linting and formatting

Development Workflow

The standard development workflow:

  1. Make code changes
  2. Run relevant tests: pnpm run test:php:env -- --filter YourTestClass
  3. Run linting/type checking: pnpm run lint:changes:branch:php
  4. Fix any issues: pnpm run lint:php:fix
  5. Commit changes only after tests pass

Key Principles

  • Always run tests after making changes to verify functionality
  • Use specific test filters to run relevant tests during development
  • Fix linting errors solely for code in your current branch
  • Test failures provide detailed output showing expected vs actual values
  • The test environment handles WordPress/WooCommerce setup automatically