Edge Case Analysis
Overview
This skill defines how to systematically identify and test edge cases - unusual conditions, extreme values, or unexpected combinations that can cause failures. Finding edge cases early prevents production bugs and improves robustness.
When to Use
- When designing functions, APIs, or user inputs
- Before delivering any solution that handles variable input
- When reviewing code or specifications for completeness
- When creating test plans
- Don't use when: Solution only handles fixed, known, single value
Core Procedures
Step 1: Identify Dimensions
For each input, parameter, or condition, identify its dimensions:
- Range: Minimum to maximum values
- Type: String, number, list, object, null, undefined
- Length: Empty, single, typical, maximum
- Encoding: Unicode, special characters, binary, emojis
- State: New, existing, deleted, locked, expired
- Access: Owner, admin, guest, anonymous, unauthorized
Step 2: Apply Analysis Techniques
For each dimension:
BOUNDARY VALUES: Test exact boundaries and just outside
- Min-1, Min, Min+1, Typical, Max-1, Max, Max+1
- Zero, one, many, too many
COMBINATIONS: Test pairs of conditions
- Valid input + invalid state
- Normal operation at boundary conditions
- Multiple edge cases occurring simultaneously
NEGATIVE TESTING: Test what should NOT work
- Invalid types for each parameter
- Missing required fields
- Unauthorized access attempts
- Malformed input (truncated, corrupted)
TEMPORAL: Test time-based edge cases
- Midnight, end of month, leap day, DST changes
- Timezone conversions, expired data
- Race conditions, concurrent operations
- Rapid succession of same operation
Step 3: Document and Prioritize
EDGE CASE
=========
Description: [what condition could cause a problem]
Category: [boundary/combination/negative/temporal/state]
Likelihood: [RARE/UNLIKELY/POSSIBLE/LIKELY]
Impact: [LOW/MEDIUM/HIGH/CRITICAL]
Test: [how to validate this edge case]
Status: [OPEN / TESTED PASS / TESTED FAIL / FIXED]
Step 4: Validate Fixes
For each edge case that fails:
- Understand WHY it fails (root cause)
- Fix the root cause, not just the symptom
- Re-test the edge case
- Add to regression test suite
Quality Checklist
Error Handling
- Error: Too many edge cases to test all
Response: Prioritize by Impact × Likelihood, test HIGH and CRITICAL first
- Error: Edge case requires conditions hard to reproduce
Response: Simulate or mock the condition, document in automated test
Cross-Team Integration
Related Skills: testing-strategy, test-driven-development, testing-verification, output-validation-checklist
Used By: Testers, developers, QA agents, validators, especially Performance, Load, Security testing agents
1---2name: edge-case-analysis3description: >4 Use when designing solutions to identify and test boundary conditions, unusual inputs,5 and uncommon scenarios that could cause failures. This skill provides a systematic6 approach to finding edge cases before they become bugs in production.7metadata:8 source: https://skillmd.com/skills/construct-ai-primary/edge-case-analysis9---1011# Edge Case Analysis1213## Overview14This skill defines how to systematically identify and test edge cases - unusual conditions, extreme values, or unexpected combinations that can cause failures. Finding edge cases early prevents production bugs and improves robustness.1516## When to Use17- When designing functions, APIs, or user inputs18- Before delivering any solution that handles variable input19- When reviewing code or specifications for completeness20- When creating test plans21- **Don't use when:** Solution only handles fixed, known, single value2223## Core Procedures2425### Step 1: Identify Dimensions26For each input, parameter, or condition, identify its dimensions:27- **Range:** Minimum to maximum values28- **Type:** String, number, list, object, null, undefined29- **Length:** Empty, single, typical, maximum30- **Encoding:** Unicode, special characters, binary, emojis31- **State:** New, existing, deleted, locked, expired32- **Access:** Owner, admin, guest, anonymous, unauthorized3334### Step 2: Apply Analysis Techniques35For each dimension:3637**BOUNDARY VALUES:** Test exact boundaries and just outside38- Min-1, Min, Min+1, Typical, Max-1, Max, Max+139- Zero, one, many, too many4041**COMBINATIONS:** Test pairs of conditions42- Valid input + invalid state43- Normal operation at boundary conditions44- Multiple edge cases occurring simultaneously4546**NEGATIVE TESTING:** Test what should NOT work47- Invalid types for each parameter48- Missing required fields49- Unauthorized access attempts50- Malformed input (truncated, corrupted)5152**TEMPORAL:** Test time-based edge cases53- Midnight, end of month, leap day, DST changes54- Timezone conversions, expired data55- Race conditions, concurrent operations56- Rapid succession of same operation5758### Step 3: Document and Prioritize59```60EDGE CASE61=========62Description: [what condition could cause a problem]63Category: [boundary/combination/negative/temporal/state]64Likelihood: [RARE/UNLIKELY/POSSIBLE/LIKELY]65Impact: [LOW/MEDIUM/HIGH/CRITICAL]66Test: [how to validate this edge case]67Status: [OPEN / TESTED PASS / TESTED FAIL / FIXED]68```6970### Step 4: Validate Fixes71For each edge case that fails:72- Understand WHY it fails (root cause)73- Fix the root cause, not just the symptom74- Re-test the edge case75- Add to regression test suite7677## Quality Checklist78- [ ] All input dimensions analyzed79- [ ] Boundary values identified for each dimension80- [ ] Negative testing scenarios defined81- [ ] Temporal edge cases considered (if applicable)82- [ ] High-impact edge cases added to test suite83- [ ] Root cause identified for any failing edge cases8485## Error Handling86- **Error:** Too many edge cases to test all87 **Response:** Prioritize by Impact × Likelihood, test HIGH and CRITICAL first88- **Error:** Edge case requires conditions hard to reproduce89 **Response:** Simulate or mock the condition, document in automated test9091## Cross-Team Integration92**Related Skills:** testing-strategy, test-driven-development, testing-verification, output-validation-checklist93**Used By:** Testers, developers, QA agents, validators, especially Performance, Load, Security testing agents