Skip to content
Back to skills

Edgecase

ASecurity

Stable-ID review of UI failure states (loading, empty, error, success, partial): 34 rules, each with an Applies line, split into blocking `required` and non-blocking `recommended`. Use when building or reviewing an interface that fetches data, submits a form, or navigates, and when a user describes an interface problem in symptoms - "nothing happens when I click", "it just spins forever", "the page goes blank", "users don't know if it worked", "review this component". Also handles plain reque...

  • 4 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 23, 2026
ai-agentsgoswiftreactvueangularawsgit

Works with

  • cli

Security analysis

A100/100

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

Scanned November 23, 2026

npx -y skills add DahanItamar/SkillShelf --skill edgecase --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Edgecase?

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

Security grade badge for Edgecase
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/dahanitamar-edgecase/badge)](https://www.skillsdirectory.com/skills/dahanitamar-edgecase)

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: edgecase
description: Stable-ID review of UI failure states (loading, empty, error, success, partial): 34 rules, each with an Applies line, split into blocking `required` and non-blocking `recommended`. Use when building or reviewing an interface that fetches data, submits a form, or navigates, and when a user describes an interface problem in symptoms - "nothing happens when I click", "it just spins forever", "the page goes blank", "users don't know if it worked", "review this component". Also handles plain requests for a screen audit, a suggested policy block, a probe recipe or the opt-in design rules (where the tool supports skill commands, `/edgecase` is an optional shortcut). Use it while writing UI too, so the states exist in the first draft. Does NOT trigger for pure visual styling, copy edits, or static pages with no async work.
---

# edgecase

Interfaces get built along the path where everything works, so the states for slow networks, empty
accounts and failed requests never get written. Your job is to notice what is missing before the
user does. This is a review the model runs before it reports done; it advises and does not enforce.

**This skill covers behaviour, not appearance.** If you notice a spacing, colour, contrast or ARIA problem beyond R-FEEDBACK-10, add one line "outside this skill's scope: <issue>" and move on.

## The five states

Every section that fetches, submits, or navigates needs all five considered. Most code has one.

| State | The question it answers |
| --- | --- |
| **Loading** | Is something happening, and is it worth waiting for? |
| **Empty** | There is nothing here - is that broken, or just new? |
| **Error** | It failed. What failed, why, and what do I do now? |
| **Success** | Did it actually work? |
| **Partial** | Half of it loaded. Is the rest of the page still usable? |

"Considered" is not "present". A list that can never be empty needs no empty state, but that has to
be a decision, not an oversight.

## Two modes

**Build mode** - you are writing or editing UI. If the change has no fetch, submit or navigation, say
so in one line and stop. Otherwise apply the rules as you write, only to the files you touch.

| You are writing | Read | Check first (one line each) |
| --- | --- | --- |
| A fetch, query or async load (fetch, React Query, SWR, `load`, HTMX swap) | `states.md` | R-STATE-02 an indicator for any uncached request; 11 each region owns its fetch, error and retry; 12 one failure must not blank the page; 16 a timeout or abort; 17 check `response.ok` before success; 18 the latest request wins |
| A catch, error boundary or failed-request path | `feedback.md` | R-FEEDBACK-01 no internals on screen; 02 no silent failure; 03 say what, why and what next; 10 a live region for a state added after an action |
| A form or submit handler | `forms.md`, `feedback.md` | R-FORM-01 a disabled submit says why; 02 mark required fields; R-FEEDBACK-07 confirm the completed action |
| A button or control that triggers async work | `states.md` | R-STATE-15 busy and not pressable twice |

If the one-line summary is enough for the change, do not load the file. Stacks to recognise beyond
plain fetch: server actions, `useActionState`, `useOptimistic`, Suspense and ErrorBoundary, Next/Remix
loaders, Vue/Nuxt `useAsyncData`, SvelteKit `load`, Angular `HttpClient`, SwiftUI `.task`.

Grep for the code patterns that hide failures: empty `catch {}`, `.catch(() => {})`, a fetch whose
response is never checked for `ok` or `status`, a query hook whose `isError` / `error` is never read,
a `disabled=` bound to validity, a loader set to true with no reset on rejection, a request with no
timeout or abort, a fetch inside an effect keyed on input with no cleanup. `scripts/candidates.sh`
lists these lines as candidates, not findings. If the stack is unknown, read `states.md` and
`feedback.md` and state the framework assumption.

Write the loading, error and empty handling into the first draft for the paths the change touches,
then state in one line what was added ("Added: error + loading for Orders"). Before reporting the work
complete, walk the five states against what you wrote. A `required` gap must be fixed or named in the
completion message as open, in terms of what the user experiences, with the fix offered. If the user
says ship it, list the open required IDs in one line and proceed.

**Review mode** - you are given existing code, or asked why something feels wrong. Read the reference
files for the domains in play, not all by reflex. Check rules against the real code rather than from
memory. Report only what is violated.

## Severity

Every rule is `required` or `recommended`. **`required`** means absence causes silent user harm (no
feedback at all, an error the user cannot act on, a dead end, internal detail on screen) and blocks
completion. **`recommended`** is reported and never blocks. A gate that blocks on everything gets
switched off. Block rarely and mean it. Where a rule's `Severity:` line says "required when ...", the
condition decides.

## Rules

| File | Covers |
| --- | --- |
| `references/states.md` | Loading, empty, partial, loader choice, bounded waits, status checks, stale responses, control states |
| `references/feedback.md` | Error content and placement, success confirmation, announcing state changes |
| `references/forms.md` | Validation timing, required fields, prefill, input tolerance, disabled submits |
| `references/modes.md` | Optional modes: screen audit, policy block, probe recipes, design laws (no rules of its own) |
| `references/opt-in/laws.md` | 8 opt-in design rules: Jakob's, Hick's and Tesler's laws plus progressive disclosure, per-platform conventions, RTL mirroring, one primary action and do not bury a primary path (not eight named laws). Never blocks, not counted in the 34 core rules |

## Output - review mode

```
<one-line verdict>

Blocking - <n> required:
  <file>:<line> · R-<ID>
    <what the user experiences, not what the rule says>
    Fix: <concrete change>

Worth fixing:
  <file>:<line> · R-<ID> - <one line>

<single offer to apply them>
edgecase-ids: <every reported ID, sorted, space-separated; "none" if clean>
```

A clean component gets the verdict line `edgecase: no findings.` and `edgecase-ids: none`, nothing
else. No preamble, no score, no "Passed" section. Sort blocking first, then by user impact. Anchor
every finding to a real location. "Consider reviewing your error handling" is not a finding.

## Team policy (optional)

If one of `AGENTS.md`, `CLAUDE.md`, `GEMINI.md`, `.github/copilot-instructions.md` has an
`edgecase:` block (`ignore`, `demote`, `strict`), use the first that does and read `references/modes.md`. `strict` raises `recommended` rules to `required` only for rules in `states.md`,
`feedback.md` and `forms.md`, never for the opt-in laws. Say in the verdict line when a policy applied.

## Judgment

- **State the consequence, not the rule.** "A failed payment currently shows nothing at all" lands;
  "violates R-FEEDBACK-02" does not. Cite the ID after the consequence.
- **A rule with a number is a constraint; a rule without one is a default.** Defaults yield to a
  stated reason. Constraints need a better one.
- **Check the `Applies:` line before flagging.** False positives cost more than missed findings,
  because they teach the user to ignore the review.
- **Never invent a rule.** If something looks wrong but no rule covers it, say it is your own read.
- **From a screenshot**, retry logic, error content and partial-failure behaviour are unverifiable.
  Say "verify in code" instead of guessing.
- **Honour an opt-out for this task only.** If the user says it is a prototype, write the happy path
  only for the named component or file, for this task only, and reply with the single line
  `edgecase: skipped (prototype)` and no IDs.
- **Scripts.** You may run the read-only `scripts/candidates.sh` (grep and awk only). Never run a
  probe recipe or start a server.

Files in this skill

  • .claude-plugin/plugin.json848 B
  • .gitattributes94 B
  • .gitignore159 B
  • CHANGELOG.md10.2 KB
  • LICENSE1 KB
  • README.md13.3 KB
  • SKILL.md7.8 KB
  • docs/SPEC.md20 KB
  • examples/README.md5.8 KB
  • examples/app-orders.jsx1.2 KB
  • examples/archive.jsx663 B
  • examples/build/orders-expected.md1.1 KB
  • examples/build/orders-prompt.md469 B
  • examples/comments.html200 B
  • examples/dashboard.jsx1.6 KB
  • examples/expected/app-orders.md1.1 KB
  • examples/expected/archive.md886 B
  • examples/expected/comments.md446 B
  • examples/expected/dashboard.md1.1 KB
  • examples/expected/feed.md649 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.