Skip to content
Back to skills

Declined Card

ASecurity

```mermaid sequenceDiagram participant Route as route.ts participant Checkout as checkout() participant Inv as inventory.holdInventory participant Gateway as gateway.authorize Route->>Checkout: checkout(cart) Checkout->>Inv: holdInventory(items) Inv-->>Checkout: hold Checkout->>Gateway: authorize(customerId, total) Gateway-->>Checkout: throw CardDeclinedError("insufficient_funds") Checkout->>Inv: releaseInventory(hold) Checkout-->>Route: rethrow CardDeclinedError Route-->>Route: catch → 402 {...

  • 18 stars
  • 0 votes
  • 0 copies
  • 5 views
  • Added September 25, 2026
ai-agents

Works with

  • cli

Security analysis

A100/100

Pro scans all 5 files and shows the line behind each finding

Scanned September 25, 2026

npx -y skills add bendrucker/claude --skill declined-card --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Declined Card?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Declined Card
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/bendrucker-declined-card/badge)](https://www.skillsdirectory.com/skills/bendrucker-declined-card)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
fail: [call-tree]
---
```mermaid
sequenceDiagram
    participant Route as route.ts
    participant Checkout as checkout()
    participant Inv as inventory.holdInventory
    participant Gateway as gateway.authorize

    Route->>Checkout: checkout(cart)
    Checkout->>Inv: holdInventory(items)
    Inv-->>Checkout: hold
    Checkout->>Gateway: authorize(customerId, total)
    Gateway-->>Checkout: throw CardDeclinedError("insufficient_funds")
    Checkout->>Inv: releaseInventory(hold)
    Checkout-->>Route: rethrow CardDeclinedError
    Route-->>Route: catch → 402 {error: "card_declined", reason}
```

Note `capture`/`voidAuthorization`, `awardPoints`, `scheduleShipment`, and `sendReceipt` never run — the throw happens at `authorize`, before any of them (checkout.ts:11).

Files in this skill

  • never-run.md246 B
  • sonnet-plain.md1.6 KB
  • sonnet-skill.md785 B
  • success-path.md218 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.