# Review WooCommerce code against project standards

WooCommerce changes can violate project-specific architecture, testing, documentation, and copy rules. This skill structures reviews around those standards and returns cited, actionable fixes.

## Install

```bash
npx skillstore add woocommerce/woocommerce-code-review
```

## Metadata

- Status: approved
- Slug: woocommerce-woocommerce-code-review
- Skillstore revision: r2
- Version status: missing
- Tree hash: b34ea21a69fa3678de6200757d8270e8c3a35b198ba0655e3806057241f49f46
- Author: woocommerce
- GitHub username: woocommerce
- License: MIT
- Repository: https://github.com/woocommerce/woocommerce/tree/trunk/.ai/skills/woocommerce-code-review
- Ref: 88a8e9a07f4c54ab105c1c41b6267c287146b07b
- Supported tools: Claude, Codex, Claude Code
- Audit status: complete
- Agent install advisory: allowed
- Manual install advisory: allowed
- Artifact signature: available
- Audit attestation: unavailable
- Human verification: not\_verified
- Risk factors: scripts, external\_commands, filesystem
- Quality score: 79
- Quality tier: bronze
- Public page: https://skillstore.pages.dev/skills/woocommerce-woocommerce-code-review
- Manifest: https://skillstore.pages.dev/api/skills/woocommerce-woocommerce-code-review/manifest

## Capabilities

- Reviews WooCommerce PHP changes for architecture and dependency injection conventions.
- Checks PHP naming, documentation, data integrity, and unit test conventions.
- Flags frontend barrel self-imports that can create circular dependencies.
- Reviews WooCommerce interface text for sentence case.
- Formats findings with locations, referenced standards, and suggested fixes.

## Use Cases

- Check a local change: Review a WooCommerce patch before submission and identify project-specific convention violations.
- Prepare pull request feedback: Generate structured comments with locations, standards, and concise correction guidance.
- Audit cross-stack changes: Check PHP, JavaScript, TypeScript, tests, and interface copy within one review.

## Prompt Templates

### Quick standards check

```
Review this WooCommerce change for the listed standards. Report each issue with its location, standard, and suggested fix.
```

### Review PHP changes

```
Review these PHP changes for architecture, dependency injection, naming, documentation, data integrity, and unit test conventions.
```

### Review a full pull request

```
Review this WooCommerce pull request across PHP, JavaScript, TypeScript, tests, and interface copy. Group related findings and cite relevant standards.
```

### Assess architecture risks

```
Perform a detailed review of this WooCommerce change. Prioritize dependency injection violations, barrel self-imports, destructive state changes, and missing test coverage.
```

## Limitations

- Requires companion WooCommerce skills for complete standards and examples.
- Does not run tests, linters, static analyzers, or repository commands.
- Does not provide an exhaustive security, performance, or accessibility review.
- Review accuracy depends on receiving the relevant code changes and file context.

## Best Practices

- Provide the complete diff and enough surrounding code to verify each finding.
- Load the referenced companion skills before reviewing detailed WooCommerce standards.
- Validate each reported issue against the current repository context before changing code.

## Anti Patterns

- Do not request a review without file paths or line context.
- Do not treat the listed checks as a complete security or performance audit.
- Do not apply suggested fixes without checking intentional public APIs and documented exceptions.

## Security Audit

- Audited at: 2026-07-24T01:54:34.579\+00:00
- Summary: All 27 static findings are false positives caused by Markdown formatting, relative documentation links, and prose examples. The skill provides review guidance without executable scripts, shell commands, runtime path handling, or prompt injection.

## Stats

- Views: 224
- Downloads: 10
- Favorites: 0
- Popularity score: 0
