Works with the AI Agents you already use

    Commerce Gift Card State Lab AI

    by Pitiko Studio

    1

    Test issue redeem refund and remaining balance invariants.

    $9.99

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned

    What it does

    • Check logic for issuing, redeeming, refunding, and maintaining remaining balances
    • Identify edge cases in currency rounding and tax rules during redemption
    • Document recovery procedures for failed transactions or partial captures
    Commerce Gift Card State Lab AI

    Commerce Gift Card State Lab AI

    Example session with this skill installed

    Synthetic example

    Test the refund invariant for Gift Card GC-9902 after a partial refund on Order #1055. I've attached the webhook trace and the current balance of $25.00.

    • Read your context and instructions
    • Compiled the commerce gift card
    • Generated the data export

    Synthetic example

    I have analyzed the provided webhook trace for Order #1055 and mapped the state transitions for Gift Card GC-9902. The result is a partial result pending the original transaction ID for the initial issuance.

    Gift Card Acceptance Test Matrix

    Case IDSetupInputOperationExpectedObservedDispositionSource
    TC-001Balance: $25.00Refund: $10.00POST /refundBalance: $35.00$35.00Supportedwebhook_trace_1055.json
    TC-002Partial RefundTax: $0.80RecalculateNet + Tax Match$10.80Review Requiredorder_1055_line_items.csv
    TC-003Boundary CaseBalance: $0.00Void RefundState: CancelledUnknownBlockedMissing Void Log

    Source Register

    • SR-01: webhook_trace_1055.json (v1.2, 2023-10-27) - Contains refund event payload.
    • SR-02: order_1055_line_items.csv - List of items and tax allocations.

    Action Register

    1. High Priority: Supply the initial issuance record for GC-9902 to verify the starting balance invariant.
    2. Medium Priority: Developer to verify if the $0.80 tax refund is credited to the card or the original payment method.

    Next steps

    • Provide the missing void_transaction logs to complete TC-003.
    • Confirm if the observed $10.80 total matches your platform's tax-on-refund configuration.

    order_1055_line_items.csv

    CSV · data export

    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

    Integration bugs in gift card logic often lead to financial discrepancies or locked inventory. This skill provides a structured environment for commerce developers to validate state transitions across the entire gift card lifecycle. It produces a formal acceptance test matrix that maps specific transaction evidence against expected invariants.

    What it does

    • Invariant validation checks logic for issuing, redeeming, refunding, and maintaining remaining balances.
    • State mapping traces order, variant, and financial identity across partial events and retries.
    • Evidence linking anchors every finding to specific source records, sandbox traces, or webhook logs.
    • Boundary analysis identifies edge cases in currency rounding and tax rules during redemption.
    • Exception modeling documents recovery procedures for failed transactions or partial captures.

    How it works

    1. Source Inventory: Provide the specific task, affected item IDs, and representative source records from your commerce platform.
    2. Criterion Definition: The agent establishes the target acceptance criteria and normalizes relevant fields.
    3. State Analysis: The system maps transaction states and applies specialty checks for financial invariants.
    4. Matrix Generation: You receive an acceptance test matrix including setup, operations, and observed versus expected outcomes.

    Frameworks & tools

    This skill is designed for commerce platforms like Shopify, BigCommerce, or Adobe Commerce. It works with JSON/XML transaction logs, webhook fulfillment traces, and API contract definitions.

    Why this beats prompting it yourself

    Generic prompts often miss the subtle "partial refund" or "rounding error" invariants that break commerce integrations. This skill uses a specialized method to isolate financial state transitions and requires hard evidence for every claim.

    Use cases

    • Validate gift card balance integrity after a partial order refund.
    • Audit a new commerce integration for correct webhook handling during redemption.
    • Prepare a reviewable acceptance matrix for a staging environment sign-off.
    • Identify specific gaps in transaction logs when a gift card state is "stuck".

    Known limitations

    Does not execute live refunds or payouts. No verified results are claimed without user-supplied source data. Financial certification requires human review of the generated matrix.

    How to use

    1. 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. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 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

    Fresh listing

    Recently published to Agensi

    Money-back guarantee

    Doesn't do what its page promises? You get your money back.

    Frequently Asked Questions

    This skill automates the validation of complex gift card logic, such as partial refunds and balance integrity, by generating an evidence-based acceptance test matrix to ensure your commerce integration is financially sound.

    The skill is compatible with major commerce platforms like Shopify, BigCommerce, and Adobe Commerce, and can be used with any AI agent capable of processing JSON/XML logs or API documentation.

    You simply provide the skill with your transaction logs, webhook fulfillment traces, or API contract definitions; the agent then normalizes this data to map states and verify invariants.

    Your purchase includes the specialized state-mapping logic, the automated acceptance criteria generator, and the formal test matrix template designed for commerce financial audits.

    No, for safety and security, this skill does not execute live API calls or financial payouts; it acts as a diagnostic and validation layer to audit your existing logs and sandbox traces.

    The skill produces a structured Acceptance Test Matrix that maps observed transaction evidence against expected invariants, ready for review by your QA or engineering leads.

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse All Claude Skills.