Commerce Integrity Auditor for Ecommerce in Taiwan

    1

    Advanced transactional auditor that finds emergent defects and race conditions in e-commerce and payment integrations.

    Free

    Security scanned

    Works with the AI tools you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIMuseMuseDotsDots+22 more

    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.

    SweepFindingSeverityEvidence
    S2: Select-then-actInventoryService::decrement lacks a row-level lock; concurrent callbacks for the same SKU can cause overselling.CRITICALsrc/Services/InventoryService.php:42
    S15: Four-cornerAdmin dashboard shows 'Paid' while inventory remains reserved but not decremented on callback timeout.HIGHartefacts/2023-10-27/walk_result_01.png
    S20: DetectorThe Stripe:Reconcile job exits 0 when the API is unreachable, providing a vacuous pass.MEDIUMsrc/Console/Commands/StripeReconcile.php:88
    S16: Terminal StateOrders failing at the payment_intent.succeeded stage stay in PENDING indefinitely with no escalation.HIGHsrc/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

    1. Fix S2 Race: Implement SELECT FOR UPDATE or atomic decrement in the inventory table.
    2. Harden Webhooks: Add an idempotency check on the stripe_event_id to prevent double-processing.
    3. 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"

    commerce-integrity-auditor-for-ecommerce.pdf

    PDF · document

    Generated

    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

    1. Discovery scans your repo for payment integration roots, test runners, and sandbox credentials.
    2. Sweep maps the system architecture and runs the doctrine-specific integrity checks (S1-S24).
    3. Walk executes automated browser and sandbox round-trips to generate proof-of-work artefacts.
    4. 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 install

    Works the same in every agent - Claude, Cursor, Codex, Copilot and 20+ more.

    ~30 seconds
    1. 1

      Download the ZIP

      Free skills download straight away. Paid skills unlock right after purchase.

    2. 2

      Unzip into your skills folder

      Every agent reads skills from one folder on your machine. Drop the unzipped folder in there.

    3. 3

      Ask your agent to use it

      Restart the agent if it was already running. It picks the skill up automatically - no config needed.

    Skills folder by agent

    Click the path to copy it. Create the folder if it does not exist yet.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill passes our trust checks below.

    Security scanned

    Passed our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Free forever

    No account required to browse

    Trust & safety

    Security scanned

    Verified clean 3 days ago

    • Free to download with an account

    Needs access to

    Github
    Shields
    Com
    Line
    Newebpay
    Stripe
    Tappaysdk
    Example

    Listed3 days ago

    What's inside

    Frequently Asked Questions