- Home
- Skills
- Testing & Debugging
- QA Requirement Analyzer Pro: Testable REQs & PO Questions
More screenshots
Works with the AI Agents you already use
QA Requirement Analyzer Pro: Testable REQs & PO Questions
A lot of test case rework starts with a requirement nobody questioned.
$5
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 ID | Description | Perspective | Priority |
|---|---|---|---|
| REQ-001 | Accept a 16-character code (A–Z, 0–9), case-insensitive, with or without dashes, shown as XXXX-XXXX-XXXX-XXXX (GC-01) | Frontend | P2 |
| REQ-002 | Only logged-in shoppers can apply a gift card, only on the checkout page and only before clicking "Place order" (GC-02) | Frontend | P1 |
| REQ-003 | Reject an expired card with "This gift card has expired." (GC-03) | Frontend, Transaction | P1 |
| REQ-004 | 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) | Transaction | P1 |
| REQ-005 | At most 2 gift cards per order (GC-05) | Frontend, Transaction | P2 |
| REQ-006 | 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) | Frontend | P1 |
| REQ-007 | Deduct the balance only when the order is placed successfully; if payment of the remaining amount fails, nothing is deducted (GC-07) | Transaction | P1 |
| REQ-008 | Shopper can remove an applied gift card before placing the order (GC-08) | Frontend | P2 |
| REQ-009 | 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) | Transaction | P1 |
| REQ-010 | Admin creates gift cards with an amount of $5–$500 and an expiry of 1–24 months (GC-10) | Admin/CMS | P2 |
| REQ-011 | Admin can disable a card; a disabled card is rejected with "Gift card not found." (GC-10) | Admin/CMS, Frontend | P1 |
| REQ-012 | Applied card line shows "Gift card ••••-••••-••••-1234 −$25.00" with a "Remove" link (UI copy) | Frontend | P3 |
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 Type | Condition | Destination |
|---|---|---|
| Success | Amount $5–$500 and expiry 1–24 months | Card created (where/how the code is delivered is not stated, UNC-012) |
| Success | Admin disables a card | Card disabled; later applies get "Gift card not found." |
| Error | Amount or expiry outside the limits | Error 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 Type | Condition | Destination |
|---|---|---|
| Success | Card(s) applied and order placed successfully | Order confirmation (not described) |
| Cancel | Shopper removes the card (GC-08) or leaves checkout | Checkout without the card / leaves the page |
| Error | Wrong/disabled code, expired card, lockout | Inline message, stays on checkout |
| Error | Payment of the remaining amount fails | Nothing 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 Type | Condition | Destination |
|---|---|---|
| Success | Order placed | Balance(s) deducted |
| Error | Remaining-amount payment fails | Order not placed (inferred), no deduction |
| Success | Cancel within 24 h | Used amount returned to the same card |
| Cancel | Cancel after 24 h | Not 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
- Admin enters amount and expiry.
- System validates amount $5–$500 and expiry 1–24 months (inclusive bounds not stated, UNC-012).
- Card created with a balance equal to the amount (inferred) and an expiry date.
- Admin can disable a card; disabled cards are rejected at checkout with "Gift card not found.".
Conditional Logic
| Condition | When True | When False | Edge Cases |
|---|---|---|---|
| Amount in $5–$500 | Card can be created | Rejected (message not stated) | $4.99, $5.00, $500.00, $500.01; non-integer amounts |
| Expiry in 1–24 months | Card can be created | Rejected (message not stated) | 0, 1, 24, 25 months; month-end dates (e.g. created Jan 31 + 1 month) |
| Card disabled | Apply rejected with "Gift card not found." | Normal validation continues | Disabled while applied in an open checkout (UNC-013) |
State Transitions
| Current State | Trigger | New State | Side Effects |
|---|---|---|---|
| — | Admin creates card | Active (inferred) | Code generated (how not stated, UNC-012) |
| Active | Admin disables | Disabled | Apply returns "Gift card not found." |
| Disabled | Re-enable | Not stated (UNC-012) | — |
Perspective: Frontend
Process Sequence
- Shopper (logged in) enters a code in "Gift card code" and clicks "Apply".
- Normalize: uppercase, remove dashes (GC-01).
- Check lockout (inferred order, UNC-011).
- Look up the card; not found or disabled → "Gift card not found." and count one wrong attempt.
- Expired → "This gift card has expired.".
- Check the 2-card limit.
- Show the applied line with masked code and the applied amount, plus "Remove".
Conditional Logic
| Condition | When True | When False | Edge Cases |
|---|---|---|---|
| Shopper logged in | Can apply | Cannot apply (what is shown not stated, UNC-014) | Session expires after applying |
| Code is 16 chars A–Z/0–9 after removing dashes | Look up the card | Not stated (UNC-011) | Lowercase, no dashes, extra spaces, 15/17 chars, letters like O/0 |
| Card exists and is enabled | Continue | "Gift card not found." + wrong attempt | Disabled card counts as wrong attempt? (UNC-005) |
| Card expired | "This gift card has expired." | Continue | Expiry date itself, time zone (UNC-003) |
| Fewer than 2 cards applied | Apply | Not stated (UNC-010) | Same card twice; 2nd card when total is already $0.00 |
| 5 wrong codes within 10 minutes | Lock the field 15 min, "Too many attempts. Try again later." | Allow next try | Exactly 5th attempt; scope (account/session/device); expired codes count? (UNC-005) |
| Balance > 0 | Apply | Not stated (UNC-006) | $0.00 balance card |
State Transitions
| Current State | Trigger | New State | Side Effects |
|---|---|---|---|
| Field unlocked | 5th wrong code within 10 min | Locked (15 min) | Message "Too many attempts. Try again later." |
| Locked | 15 minutes pass | Unlocked | Attempt counter reset (inferred, UNC-005) |
| No card applied | Valid card applied | 1 card applied | Applied line shown, total reduced |
| 1 card applied | 2nd valid card applied | 2 cards applied | Limit reached |
| Card applied | "Remove" | Card not applied | Total restored |
Error Handling
| Error Type | Handling | Recovery |
|---|---|---|
| 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 attempts | Field locked 15 min | Wait 15 min |
| Invalid format | Not stated (UNC-011) | — |
Perspective: Transaction
Process Sequence
- Shopper clicks "Place order".
- Compute the amount taken from each card: min(balance, remaining total) (GC-04); order with 2 cards not stated (UNC-002).
- If a remainder exists, charge it to the credit card.
- Payment succeeds → order placed → deduct the used amounts from the card(s) (GC-07).
- Payment fails → nothing deducted (GC-07).
- 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
| Condition | When True | When False | Edge Cases |
|---|---|---|---|
| Balance < order total | Whole balance used, rest by credit card | Order total $0.00, rest of balance stays | Balance = total exactly; $0.01 difference |
| Remaining-amount payment succeeds | Order placed, balance deducted | Nothing deducted | Timeout / unknown payment result |
| Cancel within 24 h | Return used amount to same card | Not stated (UNC-001) | Exactly 24 h; what "within 24 hours" is measured from |
| Card expired at cancellation | Extend expiry by 30 days | Expiry 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 State | Trigger | New State | Side Effects |
|---|---|---|---|
| Card applied (not deducted) | Order placed successfully | Balance deducted | Order records the gift card amount (inferred) |
| Card applied (not deducted) | Remaining payment fails | Unchanged | Nothing deducted |
| Order placed | Cancel within 24 h | Order cancelled | Used amount returned; expired card extended 30 days |
| Order placed | Cancel after 24 h | Not stated (UNC-001) | — |
Error Handling
| Error Type | Handling | Recovery |
|---|---|---|
| Credit card payment of remainder fails | No deduction (GC-07) | Retry not stated |
| Card balance no longer enough at Place order | Not 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/Entity | Operation | Fields | Constraints |
|---|---|---|---|
| GiftCard (assumed) | Create | code, balance, initial amount, expiry date, status | code unique, 16 chars A–Z/0–9; amount $5–$500; expiry 1–24 months |
| GiftCard (assumed) | Update | status (disabled) | — |
Data Impact Matrix
| Operation | Tables/Entities Affected | Fields Changed | Cascade Effects |
|---|---|---|---|
| Create card | GiftCard | all | None stated |
| Disable card | GiftCard | status | Applies rejected; effect on open checkouts/refunds not stated (UNC-013) |
Perspective: Frontend
Tables/Entities Affected
| Table/Entity | Operation | Fields | Constraints |
|---|---|---|---|
| GiftCard (assumed) | Read | code, balance, expiry date, status | — |
| Checkout/Cart (assumed) | Update | applied gift cards, applied amounts | Max 2 cards |
| Redeem attempt counter (assumed) | Create/Read | shopper, timestamp, result | 5 per 10 min → 15 min lock |
Data Impact Matrix
| Operation | Tables/Entities Affected | Fields Changed | Cascade Effects |
|---|---|---|---|
| Apply card | Checkout/Cart | applied cards, payable total | No balance change (GC-07) |
| Remove card | Checkout/Cart | applied cards, payable total | — |
| Wrong code | Redeem attempt counter | count / lock until | Lock after 5 in 10 min |
Perspective: Transaction
Tables/Entities Affected
| Table/Entity | Operation | Fields | Constraints |
|---|---|---|---|
| Order (assumed) | Create/Update | total, gift card amounts, status | — |
| GiftCard (assumed) | Update | balance, expiry date | balance ≥ 0 (inferred) |
| Payment (assumed) | Create | credit card amount, result | — |
Data Impact Matrix
| Operation | Tables/Entities Affected | Fields Changed | Cascade Effects |
|---|---|---|---|
| Place order | Order, GiftCard, Payment | status, balance, payment result | Balance deducted only on success |
| Cancel within 24 h | Order, GiftCard | status, balance, expiry date | Used 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
| Transaction | Operations Included | Rollback Condition |
|---|---|---|
| Place order | Charge remainder to credit card, create order, deduct card balance(s) | Remainder payment fails → no deduction (GC-07) |
| Cancel order | Cancel order, return used amount to card(s), extend expiry | Not 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 ID | Point | Gap Type | Risk Level | Impact on testing |
|---|---|---|---|---|
| UNC-001 | Cancellation 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 cancellation | Missing | High | Cannot write cancel/refund cases beyond the basic 24 h return |
| UNC-002 | With 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 cards | Missing | High | Expected balances for 2-card orders and their refunds cannot be stated |
| UNC-003 | When a card counts as "expired": at the start or end of the expiry date, and in which time zone | Ambiguity | Medium | Boundary 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 soon | Ambiguity | High | New expiry date after cancel cannot be calculated |
| UNC-005 | Lockout 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 lock | Ambiguity | High | Lockout cases and brute-force protection cannot be verified |
| UNC-006 | A card with $0.00 balance (fully used): message and whether it can be applied | Missing | Medium | No expected result for an empty card |
| UNC-007 | Balance 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 balance | Missing | High | Concurrency 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 applied | Missing | Medium | Calculation cases need an assumed total |
| UNC-009 | Order total $0.00: is the credit card step skipped; "rest is paid by credit card" — are other payment methods allowed for the remainder | Ambiguity | Medium | Payment-step cases for full and partial coverage are uncertain |
| UNC-010 | Applying a 3rd card or the same card twice: message and behavior; applying a 2nd card when the total is already $0.00 | Missing | Medium | Limit cases have no expected message |
| UNC-011 | Invalid format (wrong length, symbols, spaces): message and whether it counts as a wrong attempt; order of the checks (lockout, format, found, disabled, expired, limit) | Missing | Medium | Validation-order and format-error cases rely on an assumption |
| UNC-012 | Admin 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) | Missing | Medium | Admin boundary and permission cases rely on assumptions |
| UNC-013 | Disabled card: applied in an open checkout when disabled; refund on cancellation to a disabled card | Missing | Medium | Interaction between disable and checkout/cancel cannot be tested as specified |
| UNC-014 | Guest (not logged-in) shopper: is the field hidden, disabled or a login prompt; session expiry after applying a card | Missing | Low | Guest UI case expected result is unclear |
| UNC-015 | Masked line "••••-••••-••••-1234": shows the last 4 characters (inferred); amount shown = applied amount; no balance history/audit log stated | Ambiguity | Low | Display 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 ID | Assumption | Related UNC | Category | Impact | Status |
|---|---|---|---|---|---|
| ASM-001 | With 2 cards, they are drawn in the order applied; on cancellation each card gets back exactly the amount taken from it | UNC-002 | Business Rule | High | Pending |
| ASM-002 | 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 | UNC-007 | Business Rule | High | Pending |
| 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 process | UNC-001 | Business Rule | High | Pending |
| ASM-004 | The 30-day extension is counted from the cancellation date and applies only to cards already expired at cancellation | UNC-004 | Business Rule | Medium | Pending |
| ASM-005 | 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 | UNC-005 | Security | High | Pending |
| ASM-006 | A card is valid through the end of its expiry date (23:59:59) in the store time zone | UNC-003 | Data Format | Medium | Pending |
| ASM-007 | 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 | UNC-011 | Error Handling | Medium | Pending |
| ASM-008 | Order total is the final payable amount after shipping, tax and discounts; applied amounts are recalculated whenever it changes | UNC-008 | Business Rule | Medium | Pending |
| ASM-009 | Admin limits are inclusive ($5.00 and $500.00 allowed, 1 and 24 months allowed), amounts may have cents | UNC-012 | Business Rule | Medium | Pending |
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.
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-xxxitems 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:
- Requirement Summary + Requirement Breakdown
- User Flow Analysis
- Logic Flow Analysis
- Database & Data Flow Analysis
- Unclear / Risky Points
- Clarification Questions (High / Medium / Low)
- Temporary Assumptions
- 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
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
Requires
Nothing to install.
Permissions
File Scopes
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.