More screenshots

    Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIDeepSeekDeepSeekMuseMuse+22 more

    QA Requirement Analyzer Pro: Testable REQs & PO Questions

    1

    A lot of test case rework starts with a requirement nobody questioned.

    $5

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned
    QA Requirement Analyzer Pro: Testable REQs & PO Questions

    QA Requirement Analyzer Pro: Testable REQs & PO Questions

    Example session with this skill installed

    Analyze this requirement (spec-gift-card.md) before we write test cases:

    DemoShop – Redeem a gift card at checkout (ticket DS-482)

    Context

    DemoShop is an online store. Shoppers can pay part or all of an order with a gift card. Admins issue gift cards in the back office.

    Rules

    • GC-01: A gift card code is 16 characters: letters A–Z and digits, shown as XXXX-XXXX-XXXX-XXXX. Input is case-insensitive; dashes are optional.
    • GC-02: Only logged-in shoppers can apply a gift card, on the checkout page, before clicking "Place order".
    • GC-03: A card has a balance (USD, 2 decimals) and an expiry date. Expired cards are rejected with the message "This gift card has expired."
    • GC-04: If the balance is lower than the order total, the balance is fully used and the rest is paid by credit card. If the balance is equal or higher, the order total becomes $0.00 and the remaining balance stays on the card.
    • GC-05: At most 2 gift cards per order.
    • GC-06: Wrong code → "Gift card not found." After 5 wrong codes in 10 minutes the field is locked for 15 minutes ("Too many attempts. Try again later.").
    • GC-07: The balance is deducted only when the order is placed successfully. If payment of the remaining amount fails, nothing is deducted.
    • GC-08: A shopper can remove an applied gift card before placing the order.
    • GC-09: Cancelling an order within 24 hours returns the used amount to the same gift card (even if expired in the meantime, the expiry is extended by 30 days).
    • GC-10: Admin back office: admins create cards (amount $5–$500, expiry 1–24 months) and can disable a card; a disabled card is rejected with "Gift card not found.".

    UI copy

    • Field label: "Gift card code"; button: "Apply"; applied line: "Gift card ••••-••••-••••-1234 −$25.00" with a "Remove" link.
    • Read your context and instructions
    • Compiled the qa requirement analyzer

    Saved: requirement-analysis/2026-11-28_20-35-56-redeem-gift-card-at-checkout.md

    Requirement Analysis: Redeem a gift card at checkout

    Date: 2026-11-28
    Source: spec-gift-card.md (ticket DS-482)
    Status: Pending Clarification


    1. Requirement Summary

    Logged-in shoppers can apply up to 2 gift cards on the checkout page before clicking "Place order". A code is 16 characters (A–Z, 0–9), shown as XXXX-XXXX-XXXX-XXXX; input is case-insensitive and dashes are optional. A card has a USD balance (2 decimals) and an expiry date. Expired cards are rejected with "This gift card has expired."; wrong or disabled codes are rejected with "Gift card not found."; 5 wrong codes in 10 minutes lock the field for 15 minutes ("Too many attempts. Try again later."). If the balance is lower than the order total, the whole balance is used and the rest is paid by credit card; if it is equal or higher, the order total becomes $0.00 and the rest stays on the card. The balance is deducted only when the order is placed successfully; if payment of the remaining amount fails, nothing is deducted. An applied card can be removed before placing the order. Cancelling an order within 24 hours returns the used amount to the same card, extending an expired card by 30 days. Admins create cards ($5–$500, expiry 1–24 months) in the back office and can disable them.

    The core rules (format, limits, messages, calculation) are well described. The gaps are in multi-card behavior, timing/concurrency between apply and place, the lockout scope and the cancellation/refund rules.

    Requirement Breakdown

    Requirement IDDescriptionPerspectivePriority
    REQ-001Accept a 16-character code (A–Z, 0–9), case-insensitive, with or without dashes, shown as XXXX-XXXX-XXXX-XXXX (GC-01)FrontendP2
    REQ-002Only logged-in shoppers can apply a gift card, only on the checkout page and only before clicking "Place order" (GC-02)FrontendP1
    REQ-003Reject an expired card with "This gift card has expired." (GC-03)Frontend, TransactionP1
    REQ-004Apply the balance: balance < order total → whole balance used, rest paid by credit card; balance ≥ order total → order total $0.00, remaining balance stays on the card (GC-03, GC-04)TransactionP1
    REQ-005At most 2 gift cards per order (GC-05)Frontend, TransactionP2
    REQ-006Wrong code → "Gift card not found."; 5 wrong codes in 10 minutes lock the field for 15 minutes with "Too many attempts. Try again later." (GC-06)FrontendP1
    REQ-007Deduct the balance only when the order is placed successfully; if payment of the remaining amount fails, nothing is deducted (GC-07)TransactionP1
    REQ-008Shopper can remove an applied gift card before placing the order (GC-08)FrontendP2
    REQ-009Cancelling an order within 24 hours returns the used amount to the same gift card; an expired card gets its expiry extended by 30 days (GC-09)TransactionP1
    REQ-010Admin creates gift cards with an amount of $5–$500 and an expiry of 1–24 months (GC-10)Admin/CMSP2
    REQ-011Admin can disable a card; a disabled card is rejected with "Gift card not found." (GC-10)Admin/CMS, FrontendP1
    REQ-012Applied card line shows "Gift card ••••-••••-••••-1234 −$25.00" with a "Remove" link (UI copy)FrontendP3

    2. User Flow Analysis

    Perspective: Admin/CMS

    Entry Points
    • Admin back office (GC-10); the exact menu/screen is not stated (UNC-012).
    User Journey
    [Back office] → [Create gift card: amount, expiry] → [Valid?] → [Card created]
                                                            ↓ no
                                                    [Validation error (not stated)]
    [Back office] → [Find card] → [Disable] → [Card disabled]
    
    Exit Points
    Exit TypeConditionDestination
    SuccessAmount $5–$500 and expiry 1–24 monthsCard created (where/how the code is delivered is not stated, UNC-012)
    SuccessAdmin disables a cardCard disabled; later applies get "Gift card not found."
    ErrorAmount or expiry outside the limitsError message not stated (UNC-012)
    Edge Cases
    • Disabling a card that is applied in an open checkout or used by a placed order (UNC-013).
    • Re-enabling, editing or deleting a card: not stated (UNC-012).

    Perspective: Frontend

    Entry Points
    • Checkout page, "Gift card code" field + "Apply" button, logged-in shoppers only (GC-02).
    • What a guest sees (field hidden, disabled, or a login prompt) is not stated (UNC-014).
    User Journey
    [Checkout (logged in)] → [Enter code] → [Apply] → [Locked?] ─yes→ "Too many attempts. Try again later."
                                                         ↓ no
                                                [Card found & enabled?] ─no→ "Gift card not found." (counts toward lockout)
                                                         ↓ yes
                                                [Expired?] ─yes→ "This gift card has expired."
                                                         ↓ no
                                                [Fewer than 2 cards applied?] ─no→ (behavior not stated, UNC-010)
                                                         ↓ yes
                                                [Applied line "Gift card ••••-…-1234 −$X" + "Remove"]
                                                         ↓
                                    [Apply 2nd card] / [Remove] / [Place order]
    

    Check order above is (inferred) — the input does not state the validation order (UNC-011).

    Exit Points
    Exit TypeConditionDestination
    SuccessCard(s) applied and order placed successfullyOrder confirmation (not described)
    CancelShopper removes the card (GC-08) or leaves checkoutCheckout without the card / leaves the page
    ErrorWrong/disabled code, expired card, lockoutInline message, stays on checkout
    ErrorPayment of the remaining amount failsNothing deducted (GC-07); what the shopper sees is not stated
    Edge Cases
    • Multi-tab behavior: the same card applied in two tabs/orders at once (UNC-007).
    • Session timeout: shopper logged out mid-checkout with a card applied — not stated (UNC-014).
    • Network interruption: during "Apply" or "Place order" — not stated; deduction rule GC-07 should still hold.
    • Order total changes after a card is applied (cart edit, shipping change) — not stated (UNC-008).
    • The same card entered twice on one order (UNC-010).
    • A card with $0.00 balance (UNC-006).
    • Invalid format (wrong length, symbols) — message and lockout counting not stated (UNC-011).

    Perspective: Transaction

    Entry Points
    • "Place order" with one or two cards applied (GC-07).
    • Order cancellation within 24 hours (GC-09); who can cancel and from where is not stated (UNC-001).
    User Journey
    [Place order] → [Total covered by cards?] ─yes→ [Order total $0.00] → [Order placed] → [Deduct balance(s)]
                            ↓ no
                    [Charge remaining amount to credit card] ─fail→ [Nothing deducted]
                            ↓ success
                    [Order placed] → [Deduct balance(s)]
    
    [Cancel order] → [Within 24 h?] ─yes→ [Return used amount to same card] → [Expired? → extend 30 days]
                            ↓ no
                    [Not stated, UNC-001]
    
    Exit Points
    Exit TypeConditionDestination
    SuccessOrder placedBalance(s) deducted
    ErrorRemaining-amount payment failsOrder not placed (inferred), no deduction
    SuccessCancel within 24 hUsed amount returned to the same card
    CancelCancel after 24 hNot stated (UNC-001)
    Edge Cases
    • Two cards: which card is used first, and how a cancellation splits the return (UNC-002).
    • Card balance spent in another order between apply and Place order (UNC-007).
    • Cancelling an order whose card has been disabled since (UNC-013).

    3. Logic Flow Analysis

    Perspective: Admin/CMS

    Process Sequence
    1. Admin enters amount and expiry.
    2. System validates amount $5–$500 and expiry 1–24 months (inclusive bounds not stated, UNC-012).
    3. Card created with a balance equal to the amount (inferred) and an expiry date.
    4. Admin can disable a card; disabled cards are rejected at checkout with "Gift card not found.".
    Conditional Logic
    ConditionWhen TrueWhen FalseEdge Cases
    Amount in $5–$500Card can be createdRejected (message not stated)$4.99, $5.00, $500.00, $500.01; non-integer amounts
    Expiry in 1–24 monthsCard can be createdRejected (message not stated)0, 1, 24, 25 months; month-end dates (e.g. created Jan 31 + 1 month)
    Card disabledApply rejected with "Gift card not found."Normal validation continuesDisabled while applied in an open checkout (UNC-013)
    State Transitions
    Current StateTriggerNew StateSide Effects
    —Admin creates cardActive (inferred)Code generated (how not stated, UNC-012)
    ActiveAdmin disablesDisabledApply returns "Gift card not found."
    DisabledRe-enableNot stated (UNC-012)—

    Perspective: Frontend

    Process Sequence
    1. Shopper (logged in) enters a code in "Gift card code" and clicks "Apply".
    2. Normalize: uppercase, remove dashes (GC-01).
    3. Check lockout (inferred order, UNC-011).
    4. Look up the card; not found or disabled → "Gift card not found." and count one wrong attempt.
    5. Expired → "This gift card has expired.".
    6. Check the 2-card limit.
    7. Show the applied line with masked code and the applied amount, plus "Remove".
    Conditional Logic
    ConditionWhen TrueWhen FalseEdge Cases
    Shopper logged inCan applyCannot apply (what is shown not stated, UNC-014)Session expires after applying
    Code is 16 chars A–Z/0–9 after removing dashesLook up the cardNot stated (UNC-011)Lowercase, no dashes, extra spaces, 15/17 chars, letters like O/0
    Card exists and is enabledContinue"Gift card not found." + wrong attemptDisabled card counts as wrong attempt? (UNC-005)
    Card expired"This gift card has expired."ContinueExpiry date itself, time zone (UNC-003)
    Fewer than 2 cards appliedApplyNot stated (UNC-010)Same card twice; 2nd card when total is already $0.00
    5 wrong codes within 10 minutesLock the field 15 min, "Too many attempts. Try again later."Allow next tryExactly 5th attempt; scope (account/session/device); expired codes count? (UNC-005)
    Balance > 0ApplyNot stated (UNC-006)$0.00 balance card
    State Transitions
    Current StateTriggerNew StateSide Effects
    Field unlocked5th wrong code within 10 minLocked (15 min)Message "Too many attempts. Try again later."
    Locked15 minutes passUnlockedAttempt counter reset (inferred, UNC-005)
    No card appliedValid card applied1 card appliedApplied line shown, total reduced
    1 card applied2nd valid card applied2 cards appliedLimit reached
    Card applied"Remove"Card not appliedTotal restored
    Error Handling
    Error TypeHandlingRecovery
    Wrong / disabled code"Gift card not found."Re-enter code (counts toward lockout)
    Expired card"This gift card has expired."Use another card
    Too many attemptsField locked 15 minWait 15 min
    Invalid formatNot stated (UNC-011)—

    Perspective: Transaction

    Process Sequence
    1. Shopper clicks "Place order".
    2. Compute the amount taken from each card: min(balance, remaining total) (GC-04); order with 2 cards not stated (UNC-002).
    3. If a remainder exists, charge it to the credit card.
    4. Payment succeeds → order placed → deduct the used amounts from the card(s) (GC-07).
    5. Payment fails → nothing deducted (GC-07).
    6. Cancellation within 24 hours → return the used amount to the same card; if the card has expired, extend expiry by 30 days (GC-09).
    Conditional Logic
    ConditionWhen TrueWhen FalseEdge Cases
    Balance < order totalWhole balance used, rest by credit cardOrder total $0.00, rest of balance staysBalance = total exactly; $0.01 difference
    Remaining-amount payment succeedsOrder placed, balance deductedNothing deductedTimeout / unknown payment result
    Cancel within 24 hReturn used amount to same cardNot stated (UNC-001)Exactly 24 h; what "within 24 hours" is measured from
    Card expired at cancellationExtend expiry by 30 daysExpiry unchanged (inferred)Base of the 30 days (UNC-004); card disabled (UNC-013)
    Calculations
    • Applied amount per card = min(card balance, remaining order total), USD with 2 decimals (GC-03, GC-04). Order total definition (before/after shipping, tax, discounts) not stated (UNC-008).
    • New balance after placement = balance − applied amount.
    • New balance after cancel = balance + used amount; new expiry when expired = (base not stated) + 30 days (UNC-004).
    State Transitions
    Current StateTriggerNew StateSide Effects
    Card applied (not deducted)Order placed successfullyBalance deductedOrder records the gift card amount (inferred)
    Card applied (not deducted)Remaining payment failsUnchangedNothing deducted
    Order placedCancel within 24 hOrder cancelledUsed amount returned; expired card extended 30 days
    Order placedCancel after 24 hNot stated (UNC-001)—
    Error Handling
    Error TypeHandlingRecovery
    Credit card payment of remainder failsNo deduction (GC-07)Retry not stated
    Card balance no longer enough at Place orderNot stated (UNC-007)—

    Shared

    Concurrency
    • The same card applied to two orders in two tabs or devices: the balance is deducted only at placement (GC-07), so both orders may count on the same balance (UNC-007).
    • Double-click on "Place order" with a card applied: double deduction risk; not stated.
    • Admin disables a card while a shopper has it applied (UNC-013).

    4. Database & Data Flow Analysis

    Perspective: Admin/CMS

    Tables/Entities Affected
    Table/EntityOperationFieldsConstraints
    GiftCard (assumed)Createcode, balance, initial amount, expiry date, statuscode unique, 16 chars A–Z/0–9; amount $5–$500; expiry 1–24 months
    GiftCard (assumed)Updatestatus (disabled)—
    Data Impact Matrix
    OperationTables/Entities AffectedFields ChangedCascade Effects
    Create cardGiftCardallNone stated
    Disable cardGiftCardstatusApplies rejected; effect on open checkouts/refunds not stated (UNC-013)

    Perspective: Frontend

    Tables/Entities Affected
    Table/EntityOperationFieldsConstraints
    GiftCard (assumed)Readcode, balance, expiry date, status—
    Checkout/Cart (assumed)Updateapplied gift cards, applied amountsMax 2 cards
    Redeem attempt counter (assumed)Create/Readshopper, timestamp, result5 per 10 min → 15 min lock
    Data Impact Matrix
    OperationTables/Entities AffectedFields ChangedCascade Effects
    Apply cardCheckout/Cartapplied cards, payable totalNo balance change (GC-07)
    Remove cardCheckout/Cartapplied cards, payable total—
    Wrong codeRedeem attempt countercount / lock untilLock after 5 in 10 min

    Perspective: Transaction

    Tables/Entities Affected
    Table/EntityOperationFieldsConstraints
    Order (assumed)Create/Updatetotal, gift card amounts, status—
    GiftCard (assumed)Updatebalance, expiry datebalance ≥ 0 (inferred)
    Payment (assumed)Createcredit card amount, result—
    Data Impact Matrix
    OperationTables/Entities AffectedFields ChangedCascade Effects
    Place orderOrder, GiftCard, Paymentstatus, balance, payment resultBalance deducted only on success
    Cancel within 24 hOrder, GiftCardstatus, balance, expiry dateUsed amount returned; expired card +30 days; credit card part not stated (UNC-001)

    Shared

    Data Relationships
    • Order → GiftCard: an order uses 0–2 cards; a card can be used by many orders (inferred).
    • Order → Payment: remaining amount paid by credit card.
    Transaction Boundaries
    TransactionOperations IncludedRollback Condition
    Place orderCharge remainder to credit card, create order, deduct card balance(s)Remainder payment fails → no deduction (GC-07)
    Cancel orderCancel order, return used amount to card(s), extend expiryNot stated
    Cache Considerations

    Input does not state — see UNC-007

    Audit Trail
    • No balance history or admin action log is stated (UNC-015).

    5. Unclear / Risky Points

    Unclear IDPointGap TypeRisk LevelImpact on testing
    UNC-001Cancellation rules: "within 24 hours" of what (placement, payment?); what happens after 24 hours; who can cancel (shopper, admin); whether the credit card part is refunded too; partial cancellationMissingHighCannot write cancel/refund cases beyond the basic 24 h return
    UNC-002With 2 cards: which card is used first when the first one already covers part of the total, and how a cancellation splits the returned amount between the cardsMissingHighExpected balances for 2-card orders and their refunds cannot be stated
    UNC-003When a card counts as "expired": at the start or end of the expiry date, and in which time zoneAmbiguityMediumBoundary cases on the expiry date have no expected result
    UNC-004"the expiry is extended by 30 days": from the original expiry date or from the cancellation date; does it apply when the card is still valid but expires soonAmbiguityHighNew expiry date after cancel cannot be calculated
    UNC-005Lockout scope and counting: per account, session, device or IP; rolling or fixed 10-minute window; does the 5th wrong code lock immediately; do disabled codes (same message) and expired codes count; is the counter reset on success or after the lockAmbiguityHighLockout cases and brute-force protection cannot be verified
    UNC-006A card with $0.00 balance (fully used): message and whether it can be appliedMissingMediumNo expected result for an empty card
    UNC-007Balance not reserved at apply: same card applied in two orders/tabs, or balance changed between apply and Place order; double-click on "Place order"; any cached balanceMissingHighConcurrency and double-spend cases have no expected result
    UNC-008"Order total": before or after shipping, tax and discounts; are applied amounts recalculated when the cart changes after a card is appliedMissingMediumCalculation cases need an assumed total
    UNC-009Order total $0.00: is the credit card step skipped; "rest is paid by credit card" — are other payment methods allowed for the remainderAmbiguityMediumPayment-step cases for full and partial coverage are uncertain
    UNC-010Applying a 3rd card or the same card twice: message and behavior; applying a 2nd card when the total is already $0.00MissingMediumLimit cases have no expected message
    UNC-011Invalid format (wrong length, symbols, spaces): message and whether it counts as a wrong attempt; order of the checks (lockout, format, found, disabled, expired, limit)MissingMediumValidation-order and format-error cases rely on an assumption
    UNC-012Admin side: who is an admin (role/permission), how the code is generated and delivered, uniqueness, inclusive bounds of $5–$500 and 1–24 months, cents allowed, error messages, edit/re-enable/delete, initial status and balance of a new card (inferred: Active, balance = amount)MissingMediumAdmin boundary and permission cases rely on assumptions
    UNC-013Disabled card: applied in an open checkout when disabled; refund on cancellation to a disabled cardMissingMediumInteraction between disable and checkout/cancel cannot be tested as specified
    UNC-014Guest (not logged-in) shopper: is the field hidden, disabled or a login prompt; session expiry after applying a cardMissingLowGuest UI case expected result is unclear
    UNC-015Masked line "••••-••••-••••-1234": shows the last 4 characters (inferred); amount shown = applied amount; no balance history/audit log statedAmbiguityLowDisplay and audit checks rely on inference

    6. Clarification Questions

    High Priority

    • QH-001: When an order uses 2 gift cards, which card is drawn first, and when the order is cancelled, how is the returned amount split between the 2 cards? (related: UNC-002; blocks: REQ-004, REQ-005, REQ-009)
    • QH-002: Is the balance reserved when a card is applied? If the same card is applied in two orders (two tabs/devices) or its balance changes before "Place order", what happens at placement, and how is a double "Place order" prevented from deducting twice? (related: UNC-007; blocks: REQ-004, REQ-007)
    • QH-003: For cancellation: is "within 24 hours" measured from order placement; what happens after 24 hours; who can cancel; is the credit card part refunded too; is partial cancellation possible? (related: UNC-001; blocks: REQ-009)
    • QH-004: Is the 30-day extension counted from the original expiry date or from the cancellation date? (related: UNC-004; blocks: REQ-009)
    • QH-005: Is the wrong-code lockout per account, session, device or IP; is the 10-minute window rolling; does the 5th wrong code lock immediately; do disabled and expired codes count; when is the counter reset? (related: UNC-005; blocks: REQ-006)

    Medium Priority

    • QM-001: Does a card expire at the start or end of its expiry date, and in which time zone? (related: UNC-003)
    • QM-002: Is "order total" before or after shipping, tax and discounts, and are applied amounts recalculated when the cart changes after a card is applied? (related: UNC-008)
    • QM-003: What does the shopper see for a code with an invalid format and for a card with $0.00 balance, does an invalid format count as a wrong attempt, and in what order are the checks run? (related: UNC-006, UNC-011)
    • QM-004: What happens when the shopper tries a 3rd card, the same card twice, or a 2nd card when the total is already $0.00? (related: UNC-010)
    • QM-005: When the order total is $0.00, is the payment step skipped? Can the remainder be paid by methods other than credit card? (related: UNC-009)
    • QM-006: For admins: which role can create/disable cards, how is the code generated and delivered, are $5.00/$500.00 and 1/24 months inclusive, are cents allowed, and can a card be edited, re-enabled or deleted? (related: UNC-012)
    • QM-007: What happens when a card is disabled while applied in an open checkout, and when an order paid with a since-disabled card is cancelled? (related: UNC-013)

    Low Priority

    • QL-001: What does a guest shopper see in place of the gift card field, and what happens to an applied card if the session expires? (related: UNC-014)
    • QL-002: Does the applied line always show the last 4 characters of the code and the applied amount (not the card balance), and is a balance history kept per card? (related: UNC-015)

    7. Temporary Assumptions

    Assumption IDAssumptionRelated UNCCategoryImpactStatus
    ASM-001With 2 cards, they are drawn in the order applied; on cancellation each card gets back exactly the amount taken from itUNC-002Business RuleHighPending
    ASM-002The balance is not reserved at apply; it is re-checked at "Place order", and an order whose card no longer covers the applied amount is not placed and nothing is deducted; one click on "Place order" deducts onceUNC-007Business RuleHighPending
    ASM-003"Within 24 hours" is measured from order placement; after 24 hours no amount is returned to the gift card by this feature; the credit card part follows the normal refund processUNC-001Business RuleHighPending
    ASM-004The 30-day extension is counted from the cancellation date and applies only to cards already expired at cancellationUNC-004Business RuleMediumPending
    ASM-005Lockout is per shopper account, rolling 10-minute window, the 5th wrong code triggers the lock; disabled codes count as wrong, expired codes do not; the counter resets when the lock endsUNC-005SecurityHighPending
    ASM-006A card is valid through the end of its expiry date (23:59:59) in the store time zoneUNC-003Data FormatMediumPending
    ASM-007A code with an invalid format gets "Gift card not found." and counts as a wrong attempt; checks run lockout → format → found/disabled → expired → 2-card limitUNC-011Error HandlingMediumPending
    ASM-008Order total is the final payable amount after shipping, tax and discounts; applied amounts are recalculated whenever it changesUNC-008Business RuleMediumPending
    ASM-009Admin limits are inclusive ($5.00 and $500.00 allowed, 1 and 24 months allowed), amounts may have centsUNC-012Business RuleMediumPending

    8. Handoff

    Copy this block as the requirements / assumptions input for test case design.

    {
      "requirements": [
        {"id": "REQ-001", "priority": "P2", "description": "Accept a 16-character code (A–Z, 0–9), case-insensitive, with or without dashes, shown as XXXX-XXXX-XXXX-XXXX (GC-01)"},
        {"id": "REQ-002", "priority": "P1", "description": "Only logged-in shoppers can apply a gift card, only on the checkout page and only before clicking \"Place order\" (GC-02)"},
        {"id": "REQ-003", "priority": "P1", "description": "Reject an expired card with \"This gift card has expired.\" (GC-03)"},
        {"id": "REQ-004", "priority": "P1", "description": "Apply the balance: balance < order total → whole balance used, rest paid by credit card; balance ≥ order total → order total $0.00, remaining balance stays on the card (GC-03, GC-04)"},
        {"id": "REQ-005", "priority": "P2", "description": "At most 2 gift cards per order (GC-05)"},
        {"id": "REQ-006", "priority": "P1", "description": "Wrong code → \"Gift card not found.\"; 5 wrong codes in 10 minutes lock the field for 15 minutes with \"Too many attempts. Try again later.\" (GC-06)"},
        {"id": "REQ-007", "priority": "P1", "description": "Deduct the balance only when the order is placed successfully; if payment of the remaining amount fails, nothing is deducted (GC-07)"},
        {"id": "REQ-008", "priority": "P2", "description": "Shopper can remove an applied gift card before placing the order (GC-08)"},
        {"id": "REQ-009", "priority": "P1", "description": "Cancelling an order within 24 hours returns the used amount to the same gift card; an expired card gets its expiry extended by 30 days (GC-09)"},
        {"id": "REQ-010", "priority": "P2", "description": "Admin creates gift cards with an amount of $5–$500 and an expiry of 1–24 months (GC-10)"},
        {"id": "REQ-011", "priority": "P1", "description": "Admin can disable a card; a disabled card is rejected with \"Gift card not found.\" (GC-10)"},
        {"id": "REQ-012", "priority": "P3", "description": "Applied card line shows \"Gift card ••••-••••-••••-1234  −$25.00\" with a \"Remove\" link (UI copy)"}
      ],
      "assumptions": [
        {"id": "ASM-001", "category": "Business Rule", "description": "With 2 cards, they are drawn in the order applied; on cancellation each card gets back exactly the amount taken from it", "impact": "High", "status": "Pending"},
        {"id": "ASM-002", "category": "Business Rule", "description": "The balance is not reserved at apply; it is re-checked at \"Place order\", and an order whose card no longer covers the applied amount is not placed and nothing is deducted; one click on \"Place order\" deducts once", "impact": "High", "status": "Pending"},
        {"id": "ASM-003", "category": "Business Rule", "description": "\"Within 24 hours\" is measured from order placement; after 24 hours no amount is returned to the gift card by this feature; the credit card part follows the normal refund process", "impact": "High", "status": "Pending"},
        {"id": "ASM-004", "category": "Business Rule", "description": "The 30-day extension is counted from the cancellation date and applies only to cards already expired at cancellation", "impact": "Medium", "status": "Pending"},
        {"id": "ASM-005", "category": "Security", "description": "Lockout is per shopper account, rolling 10-minute window, the 5th wrong code triggers the lock; disabled codes count as wrong, expired codes do not; the counter resets when the lock ends", "impact": "High", "status": "Pending"},
        {"id": "ASM-006", "category": "Data Format", "description": "A card is valid through the end of its expiry date (23:59:59) in the store time zone", "impact": "Medium", "status": "Pending"},
        {"id": "ASM-007", "category": "Error Handling", "description": "A code with an invalid format gets \"Gift card not found.\" and counts as a wrong attempt; checks run lockout → format → found/disabled → expired → 2-card limit", "impact": "Medium", "status": "Pending"},
        {"id": "ASM-008", "category": "Business Rule", "description": "Order total is the final payable amount after shipping, tax and discounts; applied amounts are recalculated whenever it changes", "impact": "Medium", "status": "Pending"},
        {"id": "ASM-009", "category": "Business Rule", "description": "Admin limits are inclusive ($5.00 and $500.00 allowed, 1 and 24 months allowed), amounts may have cents", "impact": "Medium", "status": "Pending"}
      ]
    }
    

    Next steps

    • Ask the PO/BA the 5 High questions (QH-001 to QH-005): REQ-004, REQ-005, REQ-006, REQ-007 and REQ-009 are blocked until they are answered; the other REQ items can already go to test design.
    • Paste the Handoff block into your test case design; for the blocked REQ items, write cases from the matching ASM assumptions or mark them blocked until the answers arrive. Then give it the PO/BA answers to update the assumptions and the Status.
    spec-gift-card.md

    Connects securely to your tools. The creator never sees your data.

    About this skill

    A lot of test case rework starts with a requirement nobody questioned. Requirement Analyzer makes your agent work like a QA analyst in refinement: it restates the requirement as testable statements, maps how the feature really flows, and lists every gap it finds, with the question to ask the PO/BA (Product Owner / Business Analyst) for each one that affects testing, before a single test case is written.

    What it does

    • Breaks the requirement into testable items: a Requirement Breakdown with REQ-001, REQ-002… and a priority P1 (money, security, core flow) to P4 (cosmetic), each tied to the perspective(s) it belongs to.
    • Checks 3 perspectives so no flow group goes missing: Admin/CMS, Frontend (user-facing) and Transaction (payments, orders, any exchange of value or data); every one that applies is analyzed separately.
    • Maps 3 kinds of flow: User Flow (entry points, journey, exit points, edge cases), Logic Flow (conditional logic, state transitions, error handling, concurrency) and Database & Data Flow (entities and CRUD, transaction boundaries, cache).
    • Types every gap: UNC-xxx items marked Ambiguity, Missing, Conflict, Assumption or Testability, with a risk level and the impact on testing. Points with one root cause are merged, not padded.
    • Writes the questions for your PO/BA: High (QH-xxx, blocks test design), Medium and Low, ordered by impact; every High question names the REQ items it blocks.
    • Never fills gaps silently: whatever it had to infer is marked (inferred) or (assumed), and every assumption that affects testing is listed (ASM-xxx) with a category, an impact and a Pending status for the PO/BA to confirm.
    • Sets a Status by a fixed rule: Pending Clarification while any High question is open; Clarified when only Medium/Low questions or unconfirmed assumptions remain; Ready for Testing once every question is answered and every assumption confirmed.
    • Ends with a JSON Handoff (requirements + assumptions) to paste into test case design.

    Why use this skill

    Asking an agent to "analyze this spec" gives a summary that sounds right and invents the missing rules. This skill does the opposite: it uses only what your input says, separates what is stated from what is inferred, and turns every hole into an ID you can trace from the PO's answer to the test cases you write from it.

    Inputs

    User story, BRD, functional spec, acceptance criteria, free text, or an image, Figma frame or screenshot (it describes only what is visible; any behavior not shown becomes a question). If the input is too thin to test, it creates no file and first asks up to 3 questions; if you cannot answer, tell it to go ahead and it records each missing value as a gap (with a question when it blocks test design); any value it has to assume appears only as a labeled assumption, never as part of the requirement.

    Free version vs. this skill

    The free QA Requirement Clarifier gives you a prioritized question list and the Top 3 to ask in a BA/PO meeting. Requirement Analyzer is the full pre-test analysis: REQ breakdown with priorities, flows across 3 perspectives, a separate gap register (UNC-xxx) with risk levels, questions that name the REQ items they block, recorded assumptions, a Status and a JSON handoff for test design.

    Use cases

    • Reviewing a new spec, user story or BRD for gaps before test design starts
    • Preparing the questions for a PO/BA refinement or review meeting, ranked by what they block
    • Turning a requirement into testable statements with IDs and priorities for traceability
    • Mapping the admin, user-facing and transaction sides of a feature so no flow is forgotten
    • Analyzing a Figma frame or screenshot when no written spec exists yet

    Output

    One Markdown file in requirement-analysis/yyyy-mm-dd_hh-mm-ss-<feature>.md (or a location you name), 8 sections:

    1. Requirement Summary + Requirement Breakdown
    2. User Flow Analysis
    3. Logic Flow Analysis
    4. Database & Data Flow Analysis
    5. Unclear / Risky Points
    6. Clarification Questions (High / Medium / Low)
    7. Temporary Assumptions
    8. Handoff (JSON)

    The chat reply stays short: the path, the Status, the counts, the top 3 High questions and, when blocked, which REQ items are blocked (the rest can already go to test design).

    Language

    Written in English; answers in the language you use (English or Vietnamese). IDs, priorities, gap types, statuses and the JSON keys stay in English; UI text from your input is quoted as written.

    License

    For your personal use under the Agensi license; please do not redistribute or resell.

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Testing & Debugging.

    • It analyzes a requirement; it does not write test cases.
    • One requirement or feature per run; split a large PRD into features first.
    • It works only from what you give it. It does not read your code, database or other documents, and it does not run the app.
    • Table and entity names are the ones your input uses; if it names none, it uses descriptive names marked "(assumed)", not your real schema.
    • Assumptions are proposals for the PO/BA to confirm, not decisions; they stay Pending until you report the answers.
    • A first analysis is usually "Pending Clarification": that is the rule while High questions are open, not a failure.
    • The file is detailed (a mid-size feature gives several pages); the chat reply only summarizes it.
    • If the input has no concrete values to test (a feature name, one line or a few vague lines), it creates no file: it asks for the spec and up to 3 questions. If you cannot answer, tell it to go ahead and it records each missing value as a gap and a question.

    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.

    Trust & safety

    Security scan

    Security scan passed 1 day ago

    Requires

    Nothing to install.

    Permissions

    Read Files
    Write Files

    File Scopes

    requirement-analysis/**

    Read Files: the requirement, spec or image you point to, and the skill's own reference files. Write Files: one Markdown analysis in requirement-analysis/ (or a location you name). No scripts, no network.

    Listed1 day ago

    What's inside

    Frequently Asked Questions

    Yes. Ask in Vietnamese and the analysis is in Vietnamese; IDs, priorities, gap types and JSON keys stay in English.

    One requirement: a user story, spec, BRD section, acceptance criteria, free text, or a screenshot / Figma frame. Nothing to connect.

    The Clarifier gives a prioritized question list for a meeting. This skill also breaks the requirement into REQ items with priorities, maps user, logic and data flows across Admin, Frontend and Transaction, records assumptions and ends with a JSON handoff for test design.

    It checks all 3 perspectives every time, analyzes every one that applies across 3 flow types, never presents an inferred rule as stated, types every gap and ties each High question to the REQ items it blocks.

    Pending Clarification: High questions are still open. Clarified: only Medium/Low questions or unconfirmed assumptions remain. Ready for Testing: every question is answered and every assumption confirmed. Give it the PO/BA answers and it updates the analysis.

    It lists the REQ items (ID, priority, description) and assumptions as JSON, so test case design can trace every case back to a requirement without retyping it.

    No. It reads your input and writes one Markdown file.

    New in Testing & Debugging