- Home
- Skills
- APIs & Backend
- Commerce Integrity Auditor for Ecommerce in Taiwan
Commerce Integrity Auditor for Ecommerce in Taiwan
by Mixocreative
Advanced transactional auditor that finds emergent defects and race conditions in e-commerce and payment integrations.
Free
Commerce Integrity Auditor for Ecommerce in Taiwan
Example session with this skill installed
/ecommerce-cia audit this Stripe integration. Focus on the checkout callback and inventory decrement logic. We are using Docker and Pest for tests.
- Read your context and instructions
- Compiled the commerce integrity auditor
- Generated the document
I have completed the discovery scan for the project. Criteria met: pass (src/Integrations/Stripe found). Test runner identified as Pest.
Audit Report: Stripe Checkout & Inventory Integrity
The audit focused on the boundary between Stripe webhook arrivals and the internal InventoryService. While the individual functions are correct, a race condition exists in the reconciliation layer.
| Sweep | Finding | Severity | Evidence |
|---|---|---|---|
| S2: Select-then-act | InventoryService::decrement lacks a row-level lock; concurrent callbacks for the same SKU can cause overselling. | CRITICAL | src/Services/InventoryService.php:42 |
| S15: Four-corner | Admin dashboard shows 'Paid' while inventory remains reserved but not decremented on callback timeout. | HIGH | artefacts/2023-10-27/walk_result_01.png |
| S20: Detector | The Stripe:Reconcile job exits 0 when the API is unreachable, providing a vacuous pass. | MEDIUM | src/Console/Commands/StripeReconcile.php:88 |
| S16: Terminal State | Orders failing at the payment_intent.succeeded stage stay in PENDING indefinitely with no escalation. | HIGH | src/Models/Order.php:112 |
Evidence Ledger (Tier: Screen)
- Stripe Callback: PASS (Artefact:
logs/stripe_webhook_200.json) - Inventory Delta: FAIL (Expected -1, got 0 on concurrent burst)
- Order Surface: PASS (Admin UI reflects status)
- State Ladder: UNPROVEN (Concurrency probe failed)
Next steps
- Fix S2 Race: Implement
SELECT FOR UPDATEor atomic decrement in theinventorytable. - Harden Webhooks: Add an idempotency check on the
stripe_event_idto prevent double-processing. - Update Detectors: Modify the reconcile command to return a non-zero exit code on API failure.
Reference receipts: sweeps.md "the channel is the finding" | doctrine.md "an invariant is a sentence that can be false" | reporting.md "the ledger is harsher on purpose" | browser-walks.md "three observers, one subtraction"
walk_result_01.png
PDF · document
Example file from a real run - the skill writes it into your workspace.
Connects securely to your tools. The creator never sees your data.
About this skill
E-commerce CIA (Commerce Integrity Auditor) is a specialized diagnostic tool for developers building or maintaining transactional systems. It solves the "silent death" problem—where every individual function returns a success code while the integration layer between them fails, resulting in lost orders, double-charged customers, or ghost inventory. It maps your codebase onto a cybernetic model (Viable System Model) to detect cross-boundary invariant violations that standard unit tests miss.
What it does
- Cross-Boundary Sweeps executes 24 specialized checks for temporal coupling, race conditions, and semantic drift between your shop and payment gateways.
- Closed-Loop Verification drives real browser walks to ensure every action (checkout, refund, pickup) has a visible feedback surface and consistent state across customer and admin views.
- Sandbox Stress Testing performs automated end-to-end walks through provider sandboxes (Stripe, Adyen, NewebPay, ECPay, etc.) to verify callback integrity.
- State-Delta Ladders measures arithmetic correctness across observers, ensuring database rows, admin screens, and gateway logs agree on the exact quantity moved.
- Detector Roll Calls audits your internal safety nets to ensure jobs like settlement reconciliation actually report coverage and haven't gone blind.
How it works
- Discovery scans your repo for payment integration roots, test runners, and sandbox credentials.
- Sweep maps the system architecture and runs the doctrine-specific integrity checks (S1-S24).
- Walk executes automated browser and sandbox round-trips to generate proof-of-work artefacts.
- Report produces a numbered audit with evidence ledger rows, grading findings by severity and consequence.
Frameworks & tools
Works with any transactional stack using Stripe, Adyen, NewebPay, ECPay, PayUni, TapPay, or LINE Pay. Supports automated verification via Playwright, Docker, and standard test runners like PHPUnit, Pest, or Jest.
Why this beats prompting it yourself
Generic AI audits focus on syntax and local logic. This skill enforces a hard "Nothing Dies Silently" law, hunting for specific emergent defects—like a gateway callback that 200s but fails to update an order—that require mapping state across three or more disconnected systems.
Use cases
- Auditing a checkout flow before a high-traffic launch.
- Hardening a payment gateway integration against race conditions and TOCTOU bugs.
- Verifying compliance and transactional integrity for a handoff to a new maintainer.
- Debugging "ghost" order status changes that leave no trace in the error logs.
Known limitations
Does not perform production gateway calls. Requires valid sandbox credentials for E2E walks. Analysis depth is budget-capped by the selected Tier (Screen vs. Walk vs. Full).
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
2 uses
Times used to date
Free to use
No account required to browse
Trust & safety
Security scan
Security scan passed 2 months ago
- Free with an Agensi account
- Accounts
Ecpay
Line
Newebpay
Payuni
Example
- Software
PythonPlaywright
Node.js
Permissions
Allowed Hosts
What's inside
Creator
Mixocreative
Frequently Asked Questions
New in APIs & Backend
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for APIs & Backend.