jpskill.com
🛠️ 開発・MCP コミュニティ

woocommerce-code-review

Review WooCommerce code changes for coding standards compliance. Use when reviewing code locally, performing automated PR reviews, or checking code quality.

⚡ おすすめ: コマンド1行でインストール(60秒)

下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。

🍎 Mac / 🐧 Linux
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o woocommerce-code-review.zip https://jpskill.com/download/21032.zip && unzip -o woocommerce-code-review.zip && rm woocommerce-code-review.zip
🪟 Windows (PowerShell)
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/21032.zip -OutFile "$d\woocommerce-code-review.zip"; Expand-Archive "$d\woocommerce-code-review.zip" -DestinationPath $d -Force; ri "$d\woocommerce-code-review.zip"

完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。

💾 手動でダウンロードしたい(コマンドが難しい人向け)
  1. 1. 下の青いボタンを押して woocommerce-code-review.zip をダウンロード
  2. 2. ZIPファイルをダブルクリックで解凍 → woocommerce-code-review フォルダができる
  3. 3. そのフォルダを C:\Users\あなたの名前\.claude\skills\(Win)または ~/.claude/skills/(Mac)へ移動
  4. 4. Claude Code を再起動

⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。

🎯 このSkillでできること

下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。

📦 インストール方法 (3ステップ)

  1. 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
  2. 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
  3. 3. 展開してできたフォルダを、ホームフォルダの .claude/skills/ に置く
    • · macOS / Linux: ~/.claude/skills/
    • · Windows: %USERPROFILE%\.claude\skills\

Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。

詳しい使い方ガイドを見る →
最終更新
2026-05-18
取得日時
2026-05-18
同梱ファイル
1

📖 Skill本文(日本語訳)

※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。

WooCommerce コードレビュー

WooCommerce のコーディング標準と慣例に照らしてコード変更をレビューします。

報告すべき重大な違反

バックエンド PHP コード

詳細な標準については、woocommerce-backend-dev スキルを参照してください。これらの標準を指針として、以下の違反やその他の類似の違反を報告してください。

アーキテクチャと構造:

  • スタンドアロン関数 - クラスメソッドを使用する必要があります (file-entities.md)
  • DI 管理クラスでの new の使用 - src/ 内のクラスは $container->get() を使用する必要があります (dependency-injection.md)
  • src/Internal/ 外のクラス - 明示的に公開されていない限り、デフォルトの場所です (file-entities.md)

命名と慣例:

  • camelCase 命名 - メソッド/変数/フックには snake_case を使用する必要があります (code-entities.md)
  • Yoda condition 違反 - WordPress コーディング標準に従う必要があります (coding-conventions.md)

ドキュメント:

  • @since アノテーションの欠落 - public/protected メソッドおよびフックに必須です (code-entities.md)
  • docblock の欠落 - すべてのフックとメソッドに必須です (code-entities.md)
  • 冗長な docblock - 簡潔に保ち、1 行が理想的です (code-entities.md)

データ整合性:

  • 検証の欠落 - 削除/変更前に状態を検証する必要があります (data-integrity.md)

テスト:

  • テストでの $instance の使用 - $sut 変数名を使用する必要があります (unit-tests.md)
  • @testdox の欠落 - テストメソッドの docblock に必須です (unit-tests.md)
  • テストファイル命名 - includes/src/ の慣例に従う必要があります (unit-tests.md)

UI テキストとコピー

woocommerce-copy-guidelines スキルを参照してください。以下を報告してください。

  • UI での Title Case - sentence case を使用する必要があります (sentence-case.md)
    • 誤り: "Save Changes", "Order Details", "Payment Options"
    • 正しい: "Save changes", "Order details", "Payment options"
    • 例外: 固有名詞 (WooPayments)、頭字語 (API)、ブランド名

レビューアプローチ

  1. 上記の重大な違反をスキャンします。
  2. 問題を報告する際は特定のスキルファイルを引用します。
  3. スキルドキュメントから正しい例を提供します。
  4. 関連する問題をグループ化して明確にします。
  5. 建設的に - 関連する場合、標準が存在する理由を説明します。

出力形式

見つかった各違反について:

❌ [問題の種類]: [具体的な問題]
場所: [ファイルパスと行番号]
標準: [関連するスキルファイルへのリンク]
修正: [簡単な説明または例]

注意事項

  • すべての詳細な標準は、woocommerce-backend-devwoocommerce-dev-cycle、および woocommerce-copy-guidelines スキルにあります。
  • 完全なコンテキストと例については、これらのスキルを参照してください。
  • 疑問がある場合は、上記の特定のスキル文書を参照してください。
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開

WooCommerce Code Review

Review code changes against WooCommerce coding standards and conventions.

Critical Violations to Flag

Backend PHP Code

Consult the woocommerce-backend-dev skill for detailed standards. Using these standards as guidance, flag these violations and other similar ones:

Architecture & Structure:

  • Standalone functions - Must use class methods (file-entities.md)
  • Using new for DI-managed classes - Classes in src/ must use $container->get() (dependency-injection.md)
  • Classes outside src/Internal/ - Default location unless explicitly public (file-entities.md)

Naming & Conventions:

  • camelCase naming - Must use snake_case for methods/variables/hooks (code-entities.md)
  • Yoda condition violations - Must follow WordPress Coding Standards (coding-conventions.md)

Documentation:

  • Missing @since annotations - Required for public/protected methods and hooks (code-entities.md)
  • Missing docblocks - Required for all hooks and methods (code-entities.md)
  • Verbose docblocks - Keep concise, one line is ideal (code-entities.md)

Data Integrity:

  • Missing validation - Must verify state before deletion/modification (data-integrity.md)

Testing:

  • Using $instance in tests - Must use $sut variable name (unit-tests.md)
  • Missing @testdox - Required in test method docblocks (unit-tests.md)
  • Test file naming - Must follow convention for includes/ vs src/ (unit-tests.md)

UI Text & Copy

Consult the woocommerce-copy-guidelines skill. Flag:

  • Title Case in UI - Must use sentence case (sentence-case.md)
    • Wrong: "Save Changes", "Order Details", "Payment Options"
    • Correct: "Save changes", "Order details", "Payment options"
    • Exceptions: Proper nouns (WooPayments), acronyms (API), brand names

Review Approach

  1. Scan for critical violations listed above
  2. Cite specific skill files when flagging issues
  3. Provide correct examples from the skill documentation
  4. Group related issues for clarity
  5. Be constructive - explain why the standard exists when relevant

Output Format

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]

Notes

  • All detailed standards are in the woocommerce-backend-dev, woocommerce-dev-cycle, and woocommerce-copy-guidelines skills
  • Consult those skills for complete context and examples
  • When in doubt, refer to the specific skill documentation linked above