Works with the AI Agents you already use
Commerce Gift Card State Lab AI
Test issue redeem refund and remaining balance invariants.
$9.99
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
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 ID | Setup | Input | Operation | Expected | Observed | Disposition | Source |
|---|---|---|---|---|---|---|---|
| TC-001 | Balance: $25.00 | Refund: $10.00 | POST /refund | Balance: $35.00 | $35.00 | Supported | webhook_trace_1055.json |
| TC-002 | Partial Refund | Tax: $0.80 | Recalculate | Net + Tax Match | $10.80 | Review Required | order_1055_line_items.csv |
| TC-003 | Boundary Case | Balance: $0.00 | Void Refund | State: Cancelled | Unknown | Blocked | Missing 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
- High Priority: Supply the initial issuance record for GC-9902 to verify the starting balance invariant.
- 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_transactionlogs 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
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
- Source Inventory: Provide the specific task, affected item IDs, and representative source records from your commerce platform.
- Criterion Definition: The agent establishes the target acceptance criteria and normalizes relevant fields.
- State Analysis: The system maps transaction states and applies specialty checks for financial invariants.
- 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
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
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 1 day ago
Permissions
What's inside
Frequently Asked Questions
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse All Claude Skills.