wp-devkit-woocommerce-dev
Skill0 starsChanged 34 days agoMITView on GitHub
Build, debug or review WooCommerce extensions: HPOS order access, classic vs block checkout and Store API, gateways, refunds, stock, payment webhooks, Action Scheduler jobs and template overrides. Generic plugin or REST issues go to the plugin and REST skills.
In this repository20 other files it gives its agents.
- docs/llms.txtllms.txt
- wp-devkit-accessibility-reviewSkill
- wp-devkit-acf-and-content-modelingSkill
- wp-devkit-admin-ui-developmentSkill
- wp-devkit-block-developmentSkill
- wp-devkit-ci-cd-and-release-engineeringSkill
- wp-devkit-headless-and-wpgraphqlSkill
- wp-devkit-migration-upgrade-reviewSkill
- wp-devkit-performance-reviewSkill
- wp-devkit-phpstan-reviewSkill
- wp-devkit-playground-developmentSkill
- wp-devkit-plugin-developmentSkill
- wp-devkit-rest-api-developmentSkill
- wp-devkit-security-reviewSkill
- wp-devkit-site-audit-and-onboardingSkill
- wp-devkit-test-strategySkill
- wp-devkit-theme-developmentSkill
- wp-devkit-ui-designSkill
- wp-devkit-wcag-reviewSkill
- wp-devkit-wpcli-and-opsSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 5 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 8
Read references/engineering-contract.md first.
- Distinctive: line 34
Follow the money path: amount, currency, tax, shipping, coupon, refund.
- Distinctive: line 45
Use CRUD and supported extension APIs.
- Distinctive: line 46
Keep money, stock and identity decisions server-side and idempotent.
- Distinctive: line 47
Run the acceptance checks below.
- Distinctive: line 52
Read-only leads; matches are candidates, not findings.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
WooCommerce behavior and reliable order work
Read references/engineering-contract.md first. Review requests stay read-only: assess, explain and recommend without edits, store mutations, mutating WP-CLI (wp wc hpos sync|enable|cleanup), or running untrusted code. Use the implementation path only when the request authorizes changes.
Applicability
Confirm that WooCommerce is active (plugin list) or that the code calls wc_, WC_ or woocommerce_ APIs. If not, report Not used in this project and stop.
Inputs to establish (from the project first, then ask)
WooCommerce, WordPress and PHP versions; order storage (woocommerce_custom_orders_table_enabled) and sync option; checkout type (block or shortcode); active gateways and their provider contract; tax-inclusive setting and currencies; Action Scheduler runner (WP-CLI, loopback, WP-Cron); installed extensions touching orders or checkout; whether a disposable store exists.
Route the task
| Symptom or goal | Start with |
Order data lost, wrong, slow; HPOS warning; wc_get_orders args; metabox or list column on order screens | references/order-storage-and-hpos.md |
| Field, fee, validation or markup works in one checkout only; Store API data; block payment method | references/checkout-blocks-and-store-api.md |
| Double charge/fulfillment, status wrong, stock off, refund mismatch, gateway code | references/payments-refunds-and-stock.md |
| Provider or Woo webhook, stuck jobs, retries, missing events | references/payment-and-job-reliability.md |
| Template override outdated, cart fragments, sessions, product queries, slow shop | references/templates-sessions-and-performance.md |
Hand off: exploitable authorization/XSS/SQLi in general plugin code to wp-devkit-security-review; REST route design to wp-devkit-rest-api-development; lifecycle or uninstall to wp-devkit-plugin-development; measured slowness beyond Woo internals to wp-devkit-performance-review; data upgrades to wp-devkit-migration-upgrade-review.
Code Review Workflow
- Reproduce or describe the journey. Record checkout type and storage mode; a finding is scoped to the modes evidenced.
- Trace each order read and write to its object: order CRUD, product CRUD, or a different post type. Direct post-meta use on non-orders is fine.
- Follow the money path: amount, currency, tax, shipping, coupon, refund. Identify who is authoritative (provider event, order state) at each step.
- For callbacks and jobs, find the authentication step, the durable acceptance point, the idempotency key and the recovery path for a crash between steps.
- Compare overrides and extension points with the installed version (template diff, hook table, Store API route source).
- Confirm each candidate with a code path and, when possible, a runtime check on a disposable store. Otherwise report it as a candidate with the missing evidence.
Insufficient evidence is a valid outcome: report what could not be established (provider behavior, live runner, tax jurisdiction) and the check that would settle it.
Implementation workflow
- State the expected behavior, the affected boundary and the storage/checkout modes in scope.
- Reproduce the failure first (a failing test or a recorded manual run) on a disposable store.
- Use CRUD and supported extension APIs; declare compatibility only after the test matrix passes.
- Keep money, stock and identity decisions server-side and idempotent. Do not regenerate baselines or weaken checks to get green.
- Run the acceptance checks below. Report any unavailable check as unexecuted.
- Publishing, deployment and live maintenance (data sync, cleanup) need their own task scope.
Search Patterns for Quick Detection
Read-only leads; matches are candidates, not findings.
rg -n -g '*.php' -g '!vendor' -g '!node_modules' -e 'get_post_meta|update_post_meta|wp_insert_post|shop_order|post_type.*shop_order' .
rg -n -g '*.php' -g '!vendor' -e 'process_payment|payment_complete|hash_hmac|hash_equals|wc_create_refund|set_stock_quantity|reduce_order_stock' .
rg -n -g '*.php' -g '*.js' -g '!vendor' -g '!node_modules' -e 'woocommerce_checkout_(process|fields|create_order|order_processed)|woocommerce_store_api|registerPaymentMethod|woocommerce_register_additional_checkout_field' .
rg -n -g '*.php' -g '!vendor' -e 'as_(enqueue|schedule)_|wp_schedule_event|wc-cart-fragments|wc_session_expir' .Exit 0 = match, 1 = none, 2 = error. No match does not prove absence: helpers, multi-line calls and generated code defeat grep. Confirm the object type and reachable path before reporting.
Acceptance checks (discover the project's own commands first)
- Storage: run the HPOS test matrix from
references/order-storage-and-hpos.md;wp wc hpos statusandwp wc hpos verify_dataare read-only evidence. - Checkout: Playwright or manual journey in each supported checkout type; Store API
GET /wp-json/wc/store/v1/cartfor extension data. - Payments/webhooks: duplicate, out-of-order and crash-between-steps cases from the failure-state table; sandbox only.
- Static:
phpcswith WordPress and WooCommerce rules, PHPStan withphp-stubs/woocommerce-stubs, PHPUnit viaWC_Unit_Test_Casewhere the project has it. - Queue:
wp action-schedulerrunner output, pending/failed counts and oldest-pending age.
A pass proves the tested modes, versions and fixtures. It does not prove production gateway behavior, live webhook delivery, tax jurisdiction rules, third-party extension interaction or untested storage modes.
Output Format
Review: result and reviewed scope first. Each confirmed finding: severity per the contract, file:line, actor, trigger, reachable path, impact (money/stock/data), confidence, minimal fix, regression test. Keep candidates and "not verified" items in a separate list.
Implementation: changed boundaries, behavior before/after, storage/checkout modes covered, commands run with exit status, checks not run, residual risk, rollback note (flag or revert path; data changes need a backup/restore plan).
References
references/order-storage-and-hpos.md: read for order CRUD, queries, admin screens, sync and CLI.references/checkout-blocks-and-store-api.md: read for hook parity, fields, Store API, block payments, totals.references/payments-refunds-and-stock.md: read for gateway contract, statuses, stock, refunds, money.references/payment-and-job-reliability.md: read for webhooks, inbox/outbox, Action Scheduler.references/templates-sessions-and-performance.md: read for overrides, fragments, sessions, products.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

