poocommerce-dev-cycle

Run tests, linting, and quality checks for PooCommerce development. Use when running tests, fixing code style, or following the development workflow.

⭐2stars🔀0forks📁View on GitHub🕐Updated Nov 25, 2025⬇️1downloads

When & Why to Use This Skill

The PooCommerce Development Cycle skill is a comprehensive toolkit designed to streamline the software development lifecycle for PooCommerce projects. It automates critical quality assurance tasks, including PHP and JavaScript testing, code linting, and style enforcement. By providing standardized workflows and integrated environment management, it ensures that developers can maintain high code quality, follow internationalization best practices, and verify functionality before deployment.

Use Cases

  • Automated Testing: Execute targeted PHP and JavaScript test suites using pnpm to verify new features and prevent regressions in the PooCommerce environment.
  • Code Quality & Linting: Automatically detect and fix code style violations and syntax errors across PHP, JavaScript, and TypeScript files to maintain a clean codebase.
  • Internationalization (i18n) Compliance: Validate translatable string patterns and placeholder usage in JS/TS to ensure the application is ready for global localization.
  • Documentation Quality Control: Utilize markdown linting to ensure that project documentation remains consistent, well-formatted, and readable.
  • Workflow Standardization: Guide developers through a structured 'change-test-lint-fix' cycle to minimize bugs and improve team collaboration.
namepoocommerce-dev-cycle
descriptionRun tests, linting, and quality checks for PooCommerce development. Use when running tests, fixing code style, or following the development workflow.

PooCommerce Development Cycle

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

Instructions

Follow these guidelines for PooCommerce 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. JS/TS i18n patterns: See js-i18n-patterns.md for translatable string patterns and placeholder usage
  5. 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/PooCommerce setup automatically