mcpField
W
woocommerce-dev-cycle

woocommerce-dev-cycle

github.com/secondskyTesting & quality240367 installsUpdated 5w ago
Repository

About woocommerce-dev-cycle

A workflow reference skill for WooCommerce developers, covering tests, linting, and troubleshooting. It outlines a test-and-quality-check cycle and points to focused guides for PHP, JavaScript, and Markdown tasks.

Key features

  1. 01PHP 和 JavaScript 测试指导
  2. 02代码质量与代码风格检查
  3. 03PHP 与 Markdown lint 指南
  4. 04测试环境及故障排查
  5. 05分支变更检查流程

Use cases

  1. 01运行 WooCommerce 相关测试
  2. 02修复 PHP lint 问题
  3. 03检查 Markdown 格式
  4. 04定位测试环境问题

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/secondsky/claude-skills --skill woocommerce-dev-cycle

After installing, type/woocommerce-dev-cyclein Claude Code to confirm it loaded.

Details

From the project README

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

Note: WooCommerce uses pnpm for its build system. For other Node.js projects, prefer bun over npm/pnpm.

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

Comments

Markdown supported