Skip to content
Back to skills

Edge Cases

ASecurity

Use when an AC has input, state, permission or timing boundaries.

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 16, 2026
developmentgosqlapisecurity

Works with

  • cursor
  • api

Security analysis

A100/100

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

Scanned November 16, 2026

npx -y skills add anhtranhai835/verid --skill edge-cases --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Edge Cases?

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

Security grade badge for Edge Cases
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/anhtranhai835-edge-cases/badge)](https://www.skillsdirectory.com/skills/anhtranhai835-edge-cases)

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
---
name: edge-cases
description: Use when an AC has input, state, permission or timing boundaries.
---

# verid:edge-cases

Decompose an acceptance criterion (an `AC-n` line of the open module in `.verid/plan.md`), or the code
path it reaches, across the dimensions below to surface edge cases, risks and test targets before its
tests are written.

Use it before tests for an AC with input, state, permission or timing boundaries, for complex or
stateful features, and for API contract or risk review. For a simple AC, skip this skill and list 3–5
cases in the test report. Skip it for trivial or cosmetic changes, pure configuration, and stable
well-tested code nobody is changing.

The default is one pass. For a fixed number of iterations, a run until no new scenario appears, or
another domain, focus or output format, read `references/iterative-mode.md`.

## Dimensions

Not all 12 apply to every feature. Identify the relevant ones first, then generate scenarios only for
those.

| #   | Dimension             | What to Look For                                                                               |
| --- | --------------------- | ---------------------------------------------------------------------------------------------- |
| 1   | **User Types**        | admin, guest, banned, new user, power user, bot/scraper                                        |
| 2   | **Input Extremes**    | empty, null, max length, unicode, special chars, SQL/script injection                          |
| 3   | **Timing**            | concurrent access, race conditions, timeout, slow network, retry storms                        |
| 4   | **Scale**             | 0 items, 1 item, 1M items, pagination boundary, cursor wrap                                    |
| 5   | **State Transitions** | first use, mid-flow abort, resume after crash, partial completion                              |
| 6   | **Environment**       | mobile/low-end CPU, no JS, screen reader, proxy/VPN, different timezone/locale                 |
| 7   | **Error Cascades**    | DB down, API timeout, disk full, OOM, network partition, partial write                         |
| 8   | **Authorization**     | expired token, wrong role, shared/public link, CORS, CSRF, privilege escalation                |
| 9   | **Data Integrity**    | duplicate entries, orphan references, encoding mismatch, concurrent schema migration           |
| 10  | **Integration**       | webhook replay, API version mismatch, third-party outage, contract drift                       |
| 11  | **Compliance**        | GDPR deletion request, audit logging gap, data retention, accidental PII exposure              |
| 12  | **Business Logic**    | edge pricing (zero/negative), coupon stacking, refund after partial delivery, free tier limits |

## One pass

1. **Read** the AC and the code it reaches, or parse the feature description
2. **Filter dimensions** — mark which of the 12 apply; skip irrelevant ones explicitly
3. **Generate 3–5 scenarios** per relevant dimension
4. **Categorize severity** — Critical / High / Medium / Low
5. **Output** the table below
6. **Summarize** total scenario count by severity

| Level        | Meaning                                                    |
| ------------ | ---------------------------------------------------------- |
| **Critical** | Data loss, security breach, auth bypass, silent corruption |
| **High**     | Feature broken for a subset of users, data inconsistency   |
| **Medium**   | Degraded UX, recoverable error not surfaced to user        |
| **Low**      | Minor visual glitch, non-blocking warning                  |

```
## Scenario Report: AC-1 [target]

Dimensions analyzed: [list]
Dimensions skipped: [list + reason]

| # | Dimension | Scenario | Severity | Expected Behavior |
|---|-----------|----------|----------|-------------------|
| 1 | Input Extremes | Empty string for required name field | High | Return 400 with field error |
| 2 | Authorization | Expired JWT accessing protected route | Critical | Redirect to login, invalidate session |
| 3 | Timing | Two users submit same form simultaneously | High | Idempotency key or conflict error |

### Summary
- Critical: N
- High: N
- Medium: N
- Low: N
- Total: N scenarios across X dimensions
```

## In verid's loop

The scenarios are test targets, not tests. In verid one behaviour gets one failing test at a time
(verid:tdd):

| Next Step                                                       | Who                                  | How                                                                                        |
| --------------------------------------------------------------- | ------------------------------------ | ------------------------------------------------------------------------------------------ |
| Turn the Critical and High scenarios the AC asks for into tests | the tester (or qa for an `(e2e)` AC) | One failing test per behaviour, its name carrying the AC code, then `verid taste`          |
| Note risks the plan misses                                      | the planner                          | A scenario the AC cannot hold becomes a `[NEEDS CLARIFICATION: …]` in the module's section |
| Feed the security reviewer                                      | the main conversation                | Pass the Critical security scenarios with the diff to verid:security                       |

A scenario becomes a test only when the AC asks for that behaviour, whatever its severity. A Critical
or High scenario the AC does not cover goes to your report as a question for the plan, so nobody
writes code no AC asks for.

Files in this skill

  • SKILL.md5.5 KB
  • references/iterative-mode.md3.3 KB
  • references/saturation-loop.md5.4 KB

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 development →

Comments

Loading comments…

Newsletter

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