金色时刻 · 15:48
让好资源,触手可及
AGENT SKILL

woocommerce-dev-cycle

woocommerce-dev-cycle 是面向测试与安全的 Agent Skill,来自 Microck/ordinary-claude-skills。查看技能说明、操作步骤与使用约定,并通过原项目了解详细用法。

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

SKILL.md

下载 MD ↓
namewoocommerce-dev-cycle
descriptionRun tests, linting, and quality checks for WooCommerce development. Use when running tests, fixing code style, or following the development workflow.

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

来源:Microck/ordinary-claude-skills · MIT 许可 · 许可原文 · MD 为来源页保存的历史版本