技能 woocommerce-code-review
🔍

woocommerce-code-review

安全 🌐 网络访问📁 文件系统访问⚙️ 外部命令

依據標準審查 WooCommerce 程式碼

在 WooCommerce 開發中確保程式碼品質,面對多種編碼標準可能相當具挑戰性。此技能會透過檢查 WooCommerce 專屬的 PHP、JavaScript 與 UI 文案指南來自動化程式碼審查。

支持: Claude Codex Code(CC)
📊 69 充足
1

下载技能 ZIP

2

在 Claude 中上传

前往 设置 → 功能 → 技能 → 上传技能

3

开启并开始使用

测试它

正在使用“woocommerce-code-review”。 Review this WooCommerce PHP code: class MyClass { public function getData() { return new Order(); } }

预期结果:

  • ❌ Dependency Injection: Using 'new' for DI-managed class
  • Location: MyClass.php line 3
  • Standard: woocommerce-backend-dev/dependency-injection.md
  • Fix: Use $container->get( Order::class ) instead of new Order()

正在使用“woocommerce-code-review”。 Check these UI strings: 'Save Changes', 'Order Details', 'Payment Options'

预期结果:

  • ❌ UI Text: Title Case should be sentence case
  • Location: UI strings
  • Standard: woocommerce-copy-guidelines/sentence-case.md
  • Fix: Use 'Save changes', 'Order details', 'Payment options'

安全审计

安全
v4 • 1/17/2026

Documentation-only skill providing coding standards guidelines. Contains no executable code, network calls, or file system operations. Static findings are false positives from markdown link syntax and JSON text being misidentified as security patterns.

2
已扫描文件
252
分析行数
3
发现项
4
审计总数
审计者: claude 查看审计历史 →

质量评分

38
架构
100
可维护性
87
内容
20
社区
100
安全
91
规范符合性

你能构建什么

確保程式碼品質

在合併前審查 Pull Request 是否符合 WooCommerce 編碼標準

自動化標準檢查

快速找出 PHP 與 JavaScript 程式碼變更中的關鍵違規

維持一致性

依循 WooCommerce 慣例,讓團隊成員的程式碼保持一致

试试这些提示

基本 PHP 審查
Review this WooCommerce PHP code for critical violations: [paste code]. Check for standalone functions, incorrect DI usage, naming conventions, and missing documentation.
UI 文案檢查
Check these WooCommerce UI strings for proper sentence case: [paste text]. Flag any Title Case usage that should be sentence case.
架構審查
Review this WooCommerce code for dependency injection violations. Check if classes use $container->get() instead of new, and if internal classes are in src/Internal/.
完整 PR 審查
Perform a complete WooCommerce code review on this PR. Check PHP standards, UI text, documentation, and architecture. Group violations by type with specific fixes.

最佳实践

  • 在標記違規時務必引用特定的技能文件
  • 將相關問題分組以提供更清楚的回饋
  • 在審查中提供技能文件中的正確範例

避免

  • 不要標記 WooCommerce 標準未涵蓋的風格偏好
  • 避免在未引用相關技能文件的情況下審查程式碼
  • 切勿自行假設標準,務必參考特定技能檔案

常见问题

這個技能會檢查哪些編碼標準?
它會檢查 WooCommerce 專屬的 PHP 架構、命名慣例、文件與 UI 文案格式標準。
這個技能可以自動修正程式碼違規嗎?
不會,它只會識別違規並提供如何修正的指引,包含技能文件中的範例。
我該如何在 Pull Request 審查中使用它?
在審查 PR 時呼叫此技能,可在核准前自動檢查程式碼是否符合 WooCommerce 標準。
它也會檢查 JavaScript/React 程式碼嗎?
是的,它會依照 WooCommerce 指南檢查 JavaScript/React 程式碼中的 UI 文案是否正確使用句首大寫。
如果標準與我的偏好衝突怎麼辦?
在貢獻 WooCommerce 核心時請遵循 WooCommerce 標準。這些是專案特定的要求。
違規報告的詳細程度如何?
報告會包含違規類型、確切位置、相關技能文件連結,以及具體修正指引。

开发者详情

文件结构

📄 SKILL.md