Skip to content
edge-case-discovery logo

Edge Case Discovery

edge-case-discovery

Use when user requests exhaustive edge case analysis. Enforces TodoWrite with 15+ items (5 categories). Triggers: "all edge cases", "what could break", "bulletproof", "failure modes". If thinking "main path is sufficient" - use this.

SKILL.md

Full skill instructions

Edge Case Discovery

Systematic 5-category analysis for exhaustive edge case enumeration.


MANDATORY FIRST STEP

CREATE TodoWrite with these 5 categories (15+ items total):

CategoryMinimum Items
Boundary Value Analysis3+
Equivalence Partitioning3+
State Transition Analysis3+
Error Condition Enumeration3+
Assumption Challenging3+

Do not proceed to implementation or testing until TodoWrite is verified.


Verification Checkpoint

After creating TodoWrite, verify 3 random items pass this test:

Each item must have ALL THREE:

  • ✓ Specific input/​condition ("empty string", "null value", "overflow at 2^31")
  • ✓ Expected behavior ("returns error", "throws exception", "defaults to X")
  • ✓ Test scenario ("when user submits form with...", "if API returns...")
❌ FAILS✅ PASSES
"Test boundaries""Test numeric input: min (-2^31), max (2^31-1), zero, negative (-1), overflow (2^31)"
"Check errors""Network timeout after 30s: retry 3x with exponential backoff, return error 503 to client"
"Test state changes""User logout during file upload: cancel upload, clean temp files, redirect to login"

DO NOT PROCEED until 15+ items AND quality check passes.


Framework

1. Boundary Value Analysis

Test min/​max/​zero/​null/​empty/​overflow for ALL inputs:

  • Numeric: min, max, zero, negative, overflow
  • Strings: empty, null, very long, special chars, encoding
  • Collections: empty, single item, max size, duplicates
  • Time: past, future, now, leap years, timezones

2. Equivalence Partitioning

Group inputs into classes, test one representative from each:

  • Valid inputs (happy path)
  • Invalid inputs (expected errors)
  • Boundary inputs (edge of valid/​invalid)

3. State Transition Analysis

Map ALL valid + invalid state transitions:

  • Valid transitions
  • Invalid transitions (should reject)
  • Edge states (init, cleanup)
  • Concurrent access scenarios

4. Error Condition Enumeration

List ALL failure modes for each operation:

  • Network failures, timeouts
  • Resource exhaustion (memory, disk, connections)
  • Concurrent access conflicts
  • Partial failures, external dependency failures

5. Assumption Challenging

Question every "always", "never", "impossible":

  • "This will always be valid" → What if not?
  • "Users won't do that" → What if they do?
  • "This is impossible" → Under what conditions could it happen?

Red Flags - STOP When You Think:

ThoughtReality
"Main path is sufficient"Edge cases cause 60% of production bugs - exhaustive analysis prevents incidents
"This is overkill for a simple feature"15 items takes 10 minutes, prevents hours of debugging and hotfixes
"We'll catch issues in testing"Manual testing misses 70% of edge cases - systematic enumeration is essential
"Users won't do that"Users do unexpected things constantly - assume nothing about behavior
"This analysis takes too long"Post-release bug fixes cost 10-100x more than upfront analysis

Response Templates

"Just test the happy path"

❌ BLOCKED: Happy path testing leaves production vulnerable to edge case failures.

Required to override:

  1. Documented risk acceptance from technical lead
  2. Explicit scope limitation with rationale ("internal tool with controlled inputs")
  3. Post-release budget allocated for edge case fixes (2-4 engineer-weeks)
  4. Monitoring/​alerting plan for unexpected edge cases in production

Reality check:

  • 60% of production incidents stem from unhandled edge cases
  • Average incident costs: $5-50K in lost productivity, reputation damage
  • Systematic edge case analysis: 30-60 minutes upfront

"We don't have time for this"

❌ BLOCKED: Edge case discovery is NOT optional for production code.

Time investment:

  • TodoWrite creation: 10-15 minutes
  • Analysis per category: 5-10 minutes (25-50 minutes total)
  • Total: 35-65 minutes

Compared to:

  • One production incident investigation: 4-8 hours
  • Hotfix deployment: 2-4 hours
  • Customer impact/​reputation damage: immeasurable

Verification Before Complete

After completing TodoWrite and analysis, verify:

CategoryRequirements
Boundary Value✓ Min/​max/​zero/​null tested ✓ Overflow scenarios identified ✓ Empty collections handled
Equivalence✓ Valid inputs ✓ Invalid inputs ✓ Boundary cases
State Transition✓ Valid transitions ✓ Invalid transitions ✓ Concurrent access
Error Conditions✓ Network failures ✓ Resource exhaustion ✓ Partial failures
Assumptions✓ All "always"/"never" challenged ✓ Impossible scenarios explored

If any category incomplete, do not proceed to implementation.


Output

Edge case catalog with test scenarios for each category.

More skills from majiayu000

xiaohongshu logo
majiayu000/claude-arsenal

xiaohongshu

xiaohongshu

286 148
View
agent-task-conductor logo
majiayu000/claude-skill-registry

agent-task-conductor

Conduct multi-agent task orchestration and workflow coordination.

663 1
View
conductor-setup logo
majiayu000/claude-skill-registry

conductor-setup

Initialize project with Conductor artifacts (product definition,

663 1
View
animation-designer logo
majiayu000/claude-skill-registry

animation-designer

Expert in web animations, transitions, and motion design using Framer Motion and CSS

663 1
View
diagramming logo
majiayu000/claude-skill-registry

diagramming

Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...

663 1
View
h3-pg logo
majiayu000/claude-skill-registry-data

h3-pg

PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.

23 1
View
conductor-development logo
majiayu000/claude-skill-registry

conductor-development

Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...

663 1
View
conductor-status logo
majiayu000/claude-skill-registry

conductor-status

Display project status, active tracks, and next actions

663 1
View
dockerization logo
majiayu000/claude-skill-registry

dockerization

Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.

663 1
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View