by woocommerce
在 WooCommerce 开发中确保代码质量可能具有挑战性,因为存在多种编码标准。此技能通过检查 WooCommerce 特定的 PHP、JavaScript 和 UI 文本规范来自动执行代码审查。
1. 打开 Claude 聊天界面
2. 点击下方 "📋 复制" 按钮
3. 粘贴到 Claude 聊天框中并发送
4. 输入 "使用 woocommerce-code-review 技能" 开始使用
=== woocommerce-code-review 技能 === 作者: woocommerce 描述: 在 WooCommerce 开发中确保代码质量可能具有挑战性,因为存在多种编码标准。此技能通过检查 WooCommerce 特定的 PHP、JavaScript 和 UI 文本规范来自动执行代码审查。 使用方法: 1. 调用技能: "使用 woocommerce-code-review 技能" 2. 提供相关信息: 根据技能要求提供必要参数 3. 查看结果: 技能会返回处理结果 示例: "使用 woocommerce-code-review 技能,帮我分析一下这段代码"
这种方法适用于所有 Claude 用户,不需要安装额外工具。
coding
safe
Review code changes against WooCommerce coding standards and conventions.
Consult the woocommerce-backend-dev skill for detailed standards. Using these standards as guidance, flag these violations and other similar ones:
Architecture & Structure:
new for DI-managed classes - Classes in src/ must use $container->get() (dependency-injection.md)src/Internal/ - Default location unless explicitly public (file-entities.md)Naming & Conventions:
Documentation:
@since annotations - Required for public/protected methods and hooks (code-entities.md)Data Integrity:
Testing:
$instance in tests - Must use $sut variable name (unit-tests.md)@testdox - Required in test method docblocks (unit-tests.md)includes/ vs src/ (unit-tests.md)Consult the woocommerce-copy-guidelines skill. Flag:
For each violation found:
❌ [Issue Type]: [Specific problem]
Location: [File path and line number]
Standard: [Link to relevant skill file]
Fix: [Brief explanation or example]
woocommerce-backend-dev, woocommerce-dev-cycle, and woocommerce-copy-guidelines skillsView Count
0
Download Count
0
Favorite Count
0
Quality Score
70