- Home
- Skills
- Testing & Debugging
- QA Spec Intelligence: Visual Spec Digest with Traceability
More screenshots
Works with the AI Agents you already use
QA Spec Intelligence: Visual Spec Digest with Traceability
A spec is read once by everyone and remembered differently by each.
$5
QA Spec Intelligence: Visual Spec Digest with Traceability
Example session with this skill installed
Turn docs/gift-card-frd (the FRD and the checkout mockup) into a page for the team. Then make the DB view for QA from the technical design in docs/gift-card-ta.
- Read your context and instructions
- Compiled the qa spec intelligence
Business page saved as spec-intelligence/2026-11-24_18-28-13-gift-card-redeem.html and published as a private link (listed in page-links/spec-intelligence.md). Excerpt of the page's text (tables as Markdown, diagrams as their Mermaid source):
FRD: Redeem a gift card at checkout
Flows, business rules, messages and traceability of the gift card redeem FRD v1.4, plus what the attached checkout mockup shows. Original IDs are kept; points the spec does not settle are marked ❓ and collected under Open questions.
- Source FRD: Redeem a gift card at checkout · v1.4 · updated 2026-11-02 · In review
- Product DemoShop Web
- Module Checkout
- Affected systems Checkout, Gift card service, Order service
Overview and scope
A signed-in shopper enters a 16-character DemoShop gift card code at checkout; the system checks the format, then the card status and balance with the gift card service, and applies
min(card balance, remaining order total). Up to
2 cards per order; the balance is deducted only when the order is placed, and a card can be reused across orders until its balance reaches zero.
Key numbers
- Gift card code: 16 letters or digits after removing spaces and dashes (VR-02)
- At most 2 gift cards per order (BR-02)
- 5 failed apply attempts within 15 minutes → Apply disabled for 15 minutes for that shopper (BR-05)
- Card with balance $0.00 cannot be applied (BR-04)
- Gift card service timeout: 5 seconds (§9)
- Amount applied = min(card balance, remaining order total) (FR-03); balance in USD (§1)
- Mockup example: Items $72.00 + Shipping $8.00 − Gift card $50.00 = To pay $30.00 (from image #1)
Flows
Flow 1 · Apply a gift card (UC-01)
The spec defines format check → gift card service → apply (§9). Where the per-card business checks (limit, same card, status, balance) sit in that order is not defined.
flowchart TD
A["Enter code, click Apply"] --> L{"Apply disabled? (BR-05)"}
L -- "yes" --> E0["Too many attempts. Try again in 15 minutes."]
L -- "no" --> B{"Code empty? (VR-01)"}
B -- "yes" --> E1["Enter a gift card code."]
B -- "no" --> N["Normalize: ignore case, spaces, dashes (BR-01)"]
N --> C{"16 letters or digits? (VR-02, FR-01)"}
C -- "no" --> E2["Gift card codes have 16 letters or digits."]
C -- "yes" --> D{"2 cards already applied? (BR-02)"}
D -- "yes" --> E3["You can use up to 2 gift cards per order."]
D -- "no" --> S{"Same card already applied? (BR-07)"}
S -- "yes" --> E4["This gift card is already applied."]
S -- "no" --> G["Call gift card service (FR-02)"]
G -. "no answer in 5 s" .-> E9["Gift cards are unavailable right now. Try again later."]
G --> F{"Found? (VR-03)"}
F -- "no" --> E5["We could not find this gift card."]
F -- "yes" --> H{"Status (BR-03)"}
H -- "Expired" --> E6["This gift card has expired."]
H -- "Blocked" --> E7["This gift card has been blocked. (AC-09 only)"]
H -- "other" --> Z{"Balance $0.00? (BR-04, VR-05)"}
Z -- "yes" --> E8["This gift card has no balance left."]
Z -- "no" --> OK["Apply min(balance, remaining total) (FR-03)<br/>Gift card applied. $X.XX will be deducted."]
Business rules
| ID | Group | Rule | Refs |
|---|---|---|---|
| FR-01 | Function | The code format is validated before calling the gift card service. | VR-01, VR-02 |
| FR-02 | Function | Card status and balance are checked with the gift card service. | VR-03, VR-04, VR-05 |
| FR-03 | Pricing | Amount applied = min(card balance, remaining order total). | AC-01, AC-02 |
| FR-04 | Function | The shopper can remove an applied card; its amount is no longer applied. | UC-02, AC-05 |
| FR-05 | Function | When gift cards cover the whole total, the payment method step is skipped. | UC-03, AC-06 |
| FR-06 | Function | The balance is deducted only when the order is placed. | AC-02 |
| BR-01 | Input | Codes are case-insensitive; spaces and dashes are ignored. | AC-08 |
| BR-02 | Limit | At most 2 gift cards per order. | AC-03 |
| BR-03 | Status | A card whose status is Expired or Blocked cannot be applied. | VR-04, AC-04, AC-09 |
| BR-04 | Balance | A card with balance $0.00 cannot be applied. | VR-05 |
| BR-05 | Lockout | After 5 failed apply attempts within 15 minutes, the Apply button is disabled for 15 minutes for that shopper. | AC-07 |
| BR-06 | Pricing | Gift cards cannot pay for shipping fees. | ❓ no AC (Q-02) |
| BR-07 | Limit | The same card cannot be applied twice to the same order. | §7 Same card |
| §5 note | Pricing | The applied amount is recalculated whenever the cart changes; if the order total drops below the applied amount, it is reduced to the new total. | FR-03 |
| BR-08 | Payment | Gift cards cannot be combined with the "PAYLATER" payment method (written below the BR table). | ❓ no AC (Q-08) |
| §9 | Timeout | If the gift card service does not answer within 5 seconds, the unavailable message is shown. | FR-02 |
| Image #1 | Input | ❓ A checked checkbox "Use the full card balance" is shown under the code field; its behavior is not in the spec. | Q-01 |
Decision tables
Apply result by card condition
Per card, after the format check passes and fewer than 2 other cards are applied.
| Card found | Status | Balance | Already applied | Result | Message |
|---|---|---|---|---|---|
| No | — | — | — | Rejected | We could not find this gift card. |
| Yes | Expired | any | — | Rejected | This gift card has expired. |
| Yes | Blocked | any | — | Rejected | This gift card has been blocked. (AC-09; ❓ not in VR, Q-03) |
| Yes | other | $0.00 | — | Rejected | This gift card has no balance left. |
| Yes | other | > $0.00 | Yes | Rejected | This gift card is already applied. |
| Yes | other | > $0.00 | No | Applied | Gift card applied. $X.XX will be deducted. |
| Yes | Expired and $0.00 | $0.00 | — | Rejected | ❓ Not specified which message wins (Q-09) |
Use cases and traceability
| Use case | Scenario | Expected | Rules | Checks |
|---|---|---|---|---|
| UC-01 | Apply a gift card | min(balance, remaining total) applied, success message, card listed masked with Remove | FR-01, FR-02, FR-03, BR-01, BR-02, BR-03, BR-04, BR-07 | VR-01..VR-05, AC-01..AC-04, AC-08, AC-09 |
| UC-02 | Remove an applied gift card | Amount no longer deducted | FR-04 | AC-05 |
| UC-03 | Pay an order fully covered by gift cards | Payment method step skipped; balance deducted at Place order | FR-05, FR-06, BR-06 | AC-06 |
| — | Failed attempts and lockout | Apply disabled for 15 minutes after 5 failures in 15 minutes | BR-05 | AC-07 |
| — | Cart change, payment method and service timeout | Applied amount capped at new total; no PAYLATER; unavailable message after 5 s | §5 note, BR-08, §9 | ❓ no AC |
Open questions
| ID | Priority | Type | Question | Refs |
|---|---|---|---|---|
| Q-01 | High | Conflict | The mockup shows a checked "Use the full card balance" checkbox that the spec never mentions, while FR-03 always applies min(balance, remaining total). Is the checkbox in scope, what does unchecking it do, and can the shopper apply a partial amount? | Image #1, FR-03, §2 |
| Q-02 | High | Conflict | BR-06 says gift cards cannot pay shipping, but FR-03 and AC-02 use the "order total". Does the remaining total include shipping? With Items $72 + Shipping $8 and a $100 card, is $72 or $80 applied? | BR-06, FR-03, AC-02, Image #1 |
| Q-03 | High | Conflict | AC-09 expects "This gift card has been blocked." but VR and §7 define no Blocked message. Is this the official message, and should a VR row be added? | AC-09, BR-03, VR-04 |
| Q-04 | High | Conflict | If shipping can never be paid by gift card (BR-06), can cards ever cover the whole total for FR-05 / AC-06 when shipping is above $0? How is the shipping amount paid then? | BR-06, FR-05, AC-06, UC-03 |
| Q-05 | High | Ambiguity | For BR-05, which failures count (empty code, format error, not found, expired, blocked, zero balance, limit, same card, service timeout)? Is the 15-minute window rolling, when does the lockout start, and does it follow the shopper across devices and sessions? | BR-05, AC-07, §9 |
| Q-06 | High | Concurrency | §10 is TBD: the card is used in another order (or its balance drops, or it is blocked) between Apply and Place order. What happens at Place order, which message is shown, and what if the deduction fails after the order is created? | §10, FR-06, UC-03 |
| Q-07 | Medium | Missing | When the cart changes: if the total rises, is the applied amount raised back up to the card balance? With 2 cards, which card is reduced first when the total drops? Is the shopper told? | §5 note, FR-03 |
| Q-08 | Medium | Missing | BR-08 blocks PAYLATER with gift cards: is PAYLATER hidden, disabled or rejected, and which message is shown? BR-08 also sits outside the BR table; is it a confirmed rule? | BR-08 |
| Q-09 | Medium | Ambiguity | What is the order of the checks after the format check (limit, same card, not found, status, balance)? Which message is shown for a card that is both Expired and $0.00? | FR-01, FR-02, BR-02, BR-07, VR-03..VR-05 |
| Q-10 | Medium | Missing | Which statuses besides Expired and Blocked exist, and can any other status be applied (e.g. not yet activated)? | BR-03 |
| Q-11 | Medium | Image | The mockup shows only the success state. Are there designs for the error messages, the disabled Apply button during lockout, the loading state during the 5-second service call and two applied cards? | Image #1, §7, BR-05 |
| Q-12 | Low | Missing | Do applied cards stay on the checkout after the shopper leaves and returns, signs out or the session ends? | UC-01, FR-06 |
| Q-13 | Low | Ambiguity | Does the success message "$X.XX will be deducted." show the amount for this card or the total of all applied cards, and in which format for large amounts? | §7 Success, FR-03 |
| Q-14 | Low | Concurrency | Double click on Apply or two tabs applying the same card: is it applied once and does the second count as a failed attempt? | BR-07, BR-05 |
Editorial issues in the source
- BR-08 is written below the business rules table instead of inside it.
- The recalculation rule in §5 is an unnumbered note between BR-07 and BR-08.
- AC-10 is listed only as "AC-10 removed." in §10; the AC table ends at AC-09.
- AC-09 cites a message that is not in the VR table nor in §7 Messages (see Q-03).
- §7 uses the placeholder "$X.XX" for the success amount without defining it.
The page also has 3 more flow diagrams, 1 more decision table, the event-to-state matrix, 11 messages quoted verbatim plus 3 situations flagged as having no message, 5 VR and 10 AC, and the attached mockup with its notes (see screenshots).
Technical page (second run, technical mode, on the 3 design files) saved as spec-intelligence/2026-11-24_18-28-51-gift-card-redeem-db-map.html. Excerpt:
Gift card redeem: technical design
Which steps the gift card redeem flow goes through and which tables and columns change at each step, with read-only SQL to check the DB after a test. Built only from the three technical design files.
- Source Gift card redeem technical design (FEAT-GC-12)
gift-card-ta/ - DB PostgreSQL 15, schema
shop - Services checkout-web, checkout-api, giftcard-service, order-service
Summary
At checkout the customer applies up to 2 gift cards to a
draft order; checkout-api puts a
hold on each card for part of the item total. The hold is
captured (card balance goes down) when the order is paid, or
released when the card is removed, a cart change brings it to 0, or it is older than 30 minutes. Every apply attempt, good or failed, is logged for the lockout.
Flows
1. Apply a gift card
Customer enters a code at checkout · POST /checkout/{order_id}/gift-cards with body { "code": "..." }
| # | User does | System checks / does | Screen shows | DB change |
|---|---|---|---|---|
| 1 | Enters the code | checkout-web: uppercases, removes spaces and dashes, checks 16 letters or digits | — | — |
| 2 | — | checkout-api: counts the customer's failed attempts in the last 15 minutes | — | read gift_card_attempts by customer_id, attempted_at |
| 3 | — | checkout-api: reads the card by code_hash; checks not expired, not blocked, balance > 0 | — | read gift_cards.status, expires_at, balance_cents |
| 4 | — | checkout-api: checks the order has fewer than 2 active holds and none for this card | — | read gift_card_holds by order_id |
| 5 | — | Amount = min(balance_cents − other held holds of the card, items_total_cents − giftcard_total_cents). Shipping is never covered | — | read orders.items_total_cents, giftcard_total_cents |
| 6 | — | Saves the hold (one transaction: on error nothing is saved) | Card shown with last 4 characters and amount; 201 returns hold_id, last4, amount_cents, remaining_cents | + gift_card_holds state = held, amount_cents = amount; ~ orders.giftcard_total_cents += amount; + gift_card_attempts result = ok |
Branches and errors
| Situation | Shown (message / code) | DB change | Note |
|---|---|---|---|
| Code is not 16 letters or digits | "Gift card codes have 16 letters or digits." · 400 · GC_FORMAT | + gift_card_attempts result = format | ❓ checked in checkout-web; how the row reaches the DB is not said (Q-04) |
| 5 or more failed attempts in 15 minutes | "Too many attempts. Try again in 15 minutes." · 429 · GC_LOCKED | ❓ not said whether a row is inserted (Q-06) | header Retry-After = seconds until the lockout ends |
| No card with this code | "We could not find this gift card." · 404 · GC_NOT_FOUND | + gift_card_attempts result = not_found | counts toward the lockout |
status = expired or expires_at < now | "This gift card has expired." · 422 · GC_EXPIRED | + gift_card_attempts result = expired | counts toward the lockout |
status = blocked | "This gift card cannot be used." · 422 · GC_BLOCKED | + gift_card_attempts result = blocked | counts toward the lockout |
balance_cents = 0 | "This gift card has no balance left." · 422 · GC_EMPTY | + gift_card_attempts result = empty | counts toward the lockout |
| Order already has 2 active holds | "You can use up to 2 gift cards per order." · 409 · GC_LIMIT | — | not counted: no attempt row |
| Same card already applied to this order | "This gift card is already applied." · 409 · GC_DUPLICATE | — | not counted; also unique (card_id, order_id) |
| giftcard-service does not answer in 5000 ms | "Gift cards are unavailable right now. Try again later." · 503 · GC_UNAVAILABLE | ❓ not said (Q-06) | giftcard.service_timeout_ms |
SQL to check (read-only)
-- Suggested from the column names in the document; check the real schema
SELECT hold_id, card_id, amount_cents, state, created_at, closed_at FROM gift_card_holds WHERE order_id = :order_id ORDER BY created_at;
SELECT order_id, status, items_total_cents, shipping_cents, giftcard_total_cents FROM orders WHERE order_id = :order_id;
SELECT attempted_at, result FROM gift_card_attempts WHERE customer_id = :customer_id ORDER BY attempted_at DESC;
Open questions (first 3 of 7)
| ID | Priority | Question | Why it matters | Where |
|---|---|---|---|---|
| Q-01 | High | When the cart changes, is the hold amount updated in place (gift_card_holds.amount_cents) or is the old hold released and a new hold row created? | The expected rows in gift_card_holds after a cart change differ (one row vs released + new row with a new hold_id). | design.md §3 SEQ-5 vs api.md §3 |
| Q-02 | High | orders.amount_due_cents feeds remaining_cents but is not declared in the data model: does the column exist, and how is it computed? | No expected value for remaining_cents and no SQL check possible. | api.md §4 vs data-model.md |
| Q-03 | High | When the order is cancelled, who releases the holds, and are closed_at and giftcard_total_cents updated? | No expected DB state for the cancel path. | design.md §1 (no sequence) |
The page also has 5 more flows, cards for 5 tables (columns, status chains), 6 numbers to test (4 with their config keys) and 9 messages with HTTP codes (see screenshots).
Connects securely to your tools. The creator never sees your data.
About this skill
A spec is read once by everyone and remembered differently by each. Spec Intelligence reads the whole document and turns it into one HTML page the team can open, search and share: every rule keeps its original ID, every row traces back to the source, and every gap becomes a question instead of a guess.
Two modes
- Business (PRD, FRD, BRD, user story, a ticket, optionally with screenshots or mockups): user flow diagrams, business rules with their IDs, decision tables, an event-to-state matrix, every UI message quoted word for word, use case → rule → VR/AC traceability, editorial errors in the spec and prioritized open questions (High / Medium / Low, typed Conflict, Ambiguity, Missing…).
- Technical (technical design, data model, DDL or migrations, API design, often a folder of files): a QA view of each flow step by step, which tables and columns each step reads or writes, read-only SQL to check the DB after a test, status chains, numbers to test (with their config keys when the design gives them), messages with HTTP codes, and what the design leaves unclear.
What makes it different
- Built not to invent. The agent is told to take every rule, value and message from the source, never round numbers or soften "must not", and mark what it infers ❓ as a question; the script cross-checks the IDs on the page against the source.
- Reads images too. In business mode, mockups and screenshots are read and compared with the text: in the demo, a checkbox on the mockup that the spec never mentions becomes the first High question.
- Checks the page with a script. A bundled renderer builds the page and refuses SQL that is not read-only, Windows / macOS / network-share file paths and values that look like secrets; it warns about other local-looking paths, source IDs missing on the page, tables or columns the document never declares, and tables used in a flow without a card.
- Inventory by script: IDs (BR-, FR-, AC-…) and, in technical mode, tables, columns, endpoints and config keys are listed by a script, not by memory.
Demo numbers (DemoShop gift card redeem, with planted gaps)
- Business page from an FRD and one mockup: 4 flows, 17 rule rows, 5 VR, 10 AC, 11 messages quoted verbatim (+3 situations flagged as having no message), 14 open questions (6 High), 5 editorial notes; every conflict planted in the demo spec was found (4 typed Conflict, all High), including the one only visible on the mockup.
- Technical page from 3 design files: 6 flows, 5 tables, read-only SQL per flow, 7 questions (a sequence that contradicts the API doc, a column used but never declared, a cancel path with no sequence).
Input
Pasted text, local files or folders (md, txt, html, docx, json, yaml, sql…), PDFs and spreadsheets read with your agent's own document tools, a public URL, or Confluence / Jira / Notion / Drive pages through a connector you have already set up. It never asks for a token. With nothing to read, it asks up to 3 short questions and stops; it never builds a page from general knowledge.
Works with the free QA skills
The free QA Requirement Clarifier gives you a question list for a review meeting, and the free QA Product Feature Overview maps a whole product into epics and features. Spec Intelligence goes deep on one spec and gives the whole team a page to work from.
Use cases
- Giving Dev, QA and the PO one page of the rules before a sprint starts
- Preparing a spec review: conflicts, gaps and questions with their IDs
- Finding which tables and columns a flow writes, and how to check them with SQL
- Reading a mockup against the written spec
- Onboarding a new tester onto a feature quickly
Output
spec-intelligence/yyyy-mm-dd_hh-mm-ss-<slug>.html in your project: a standalone page with light and dark themes that opens in any browser, plus spec-intelligence/registry.json (source → page and link) and page-links/spec-intelligence.md, the list of every page made in the project. When your agent has a page-publishing tool (e.g. Claude Artifacts), it also uploads the page there as a private link and reuses the same link when you rerun it on the same source in the same mode.
The chat reply stays short: the link or path, the source read, the counts, the 3–5 most important questions (2–3 unclear points in technical mode) and any warning still open.
Requirements
An agent that can run local Python scripts and write files; Python 3.8+. The scripts use the standard library only: nothing to install.
Language
Written in English; the page and the reply are in English or Vietnamese, matching your request. IDs, table, column and endpoint names, status values and UI messages are kept exactly as in the source.
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.
- One spec (one feature) per run; business and technical pages of the same document are two runs and two pages.
- It summarizes and questions a spec; it does not write test cases, bug reports or a test plan, and never runs anything against your system.
- The page is only as complete as the source: what the spec does not say is marked ❓ and asked, not filled in.
- It does not compare documents: business and technical pages are built separately, technical mode reads only the design files you give, and differences between them get one line in the reply at most.
- The technical page is a QA view, not full documentation: no ERD, full API contract, migrations or index lists; about 6 flows and at most 8 open questions.
- IDs written without a dash (AC1, BR01) are not counted by the script, so the missing-ID check does not cover them.
- PDFs, spreadsheets and slides are read with your agent's own document tools; Confluence, Jira and similar need a connector you set up, or an export.
- The SQL uses only names declared in the design and is not run; it is for you to run on a test database.
- Images over 1.5 MB (or past 8 MB in total) are described on the page instead of embedded.
- The flow diagrams need network when the page is opened; offline they show their source text.
- The page layout is fixed; it does not fill a company template.
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 today
- Software
Python 3.8+
Permissions
File Scopes
Terminal: runs the bundled extract, scan and render scripts (standard library only). Read Files: the spec files or folder you point to (never modified). Write Files: the HTML page and registry.json in spec-intelligence/, the page list in page-links/, and temporary working files. The scripts make no network calls; a public URL or a linked tool is read with your agent's own web tool or a connector you set up, never with credentials. SQL on the page is read-only and never run. Optional: opens the page once in a browser tool to check the diagrams, through a local python -m http.server on 127.0.0.1 if needed. With a page-publishing tool (e.g. Claude Artifacts), the page is uploaded there, private to you. The page loads its diagram library from a CDN when opened in a browser.