borghei/Claude-Skills / project-management/execution/test-scenarios
test-scenarios
VerifiedWrites QA cases from a feature spec across happy, edge, error, empty, concurrent, accessibility and security paths, then audits coverage. Use when planning QA for a feature, or finding coverage gaps after an incident.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 8.3 KB |
| assets/sample_scenarios.json | config | 3.8 KB |
| assets/sample_scenarios_flawed.json | config | 818 B |
| assets/scenario_template.md | markdown | 4.1 KB |
| references/coverage-anti-patterns.md | markdown | 5.9 KB |
| references/scenario-categories.md | markdown | 9.8 KB |
| scripts/test_scenario_generator.py | script | 8.7 KB |
assets/scenario_template.md
View on GitHub# Test Scenarios — Template
**Feature:** [name]
**Feature type:** form / browse / realtime / upload / payment / bulk / generic
**Spec:** [link to PRD / story]
**Generated by:** [PM / dev / QA]
**Date:** [date]
---
## Happy paths
| ID | Scenario | Preconditions | Steps | Expected | Priority | Automated |
|----|----------|---------------|-------|----------|----------|-----------|
| HP-1 | | | | | P0 | yes |
| HP-2 | | | | | P0 | yes |
---
## Edge cases
| ID | Scenario | Input | Expected | Priority | Automated |
|----|----------|-------|----------|----------|-----------|
| E-1 | Empty input | "" | Validation message | P1 | yes |
| E-2 | Maximum length | 256 chars | Validation message | P1 | yes |
| E-3 | Unicode / emoji | "🚀@example.com" | Handled correctly | P2 | yes |
| E-4 | Special characters | "test'or'1='1" | Sanitized | P0 | yes |
---
## Error handling
| ID | Scenario | Failure injected | Expected user experience | Priority | Automated |
|----|----------|------------------|--------------------------|----------|-----------|
| ER-1 | Network offline | Disable network | Clear message; preserves input | P1 | yes |
| ER-2 | Server 500 | Mock 500 | Friendly message; logged for debug | P1 | yes |
| ER-3 | Rate limited | 10+ attempts | Cool-down message; clear next steps | P1 | yes |
---
## Empty / first-use states
| ID | State | Expected | Priority |
|----|-------|----------|----------|
| EM-1 | First use, no data | Friendly empty state with CTA | P1 |
| EM-2 | After delete last item | Returns to empty state, not error | P1 |
---
## Concurrent / race scenarios (if applicable)
| ID | Scenario | Actors | Expected | Priority |
|----|----------|--------|----------|----------|
| C-1 | Two users edit same record | A + B | Consistent end state; conflict UX | P0 |
| C-2 | Idempotent submit | Same submit twice | No duplicate effect | P0 |
---
## Accessibility
| ID | Scenario | Method | Expected | Priority |
|----|----------|--------|----------|----------|
| A-1 | Keyboard-only nav | Tab through | All elements reachable; logical order | P1 |
| A-2 | Screen reader | VoiceOver | Meaningful labels | P1 |
| A-3 | High contrast | OS setting on | Readable; no color-only signals | P1 |
| A-4 | Reduced motion | OS setting on | Motion reduced | P2 |
---
## Security
| ID | Scenario | Method | Expected | Priority |
|----|----------|--------|----------|----------|
| SE-1 | XSS attempt | <script> in field | Escaped on display | P0 |
| SE-2 | SQL injection | ' OR '1'='1 | Sanitized | P0 |
| SE-3 | Unauthorized access | Logged-out request | 401 + redirect | P0 |
| SE-4 | PII not in logs | Trigger action | Audit logs; PII redacted | P0 |
| SE-5 | Brute-force protection | Rapid submits | Rate-limited | P0 |
---
## Performance (if applicable)
| ID | Scenario | Load | Expected | Priority |
|----|----------|------|----------|----------|
| P-1 | P95 latency | 1000 concurrent | < 500ms | P1 |
| P-2 | Large data | 10K items | Renders responsively | P1 |
---
## Localization (if applicable)
| ID | Locale | Expected | Priority |
|----|--------|----------|----------|
| L-1 | de-DE (long strings) | No truncation | P1 |
| L-2 | ar-SA (RTL) | Layout flips correctly | P1 |
| L-3 | ja-JP (multi-byte) | Renders correctly | P2 |
---
## Cross-platform (if applicable)
| ID | Platform | Expected | Priority |
|----|----------|----------|----------|
| X-1 | iOS Safari | Autofill works | P1 |
| X-2 | Android Chrome | Password manager works | P1 |
| X-3 | Older Safari (14) | Graceful degradation | P2 |
---
## Coverage summary
| Category | Count | Recommended | Status |
|----------|-------|-------------|--------|
| Happy paths | | 1-3 | |
| Edge cases | | 4-8 | |
| Error handling | | 4-6 | |
| Empty states | | 1-2 | |
| Concurrent | | varies | |
| Accessibility | | 3-5 | |
| Security | | 3+ | |
| Performance | | situational | |
---
## Review
- [ ] PM signed off
- [ ] Eng lead signed off
- [ ] QA implementer reviewed
- [ ] Security reviewed (P0 security scenarios)
- [ ] Accessibility lead reviewed (a11y scenarios)
---
## Notes
- [Open questions]
- [Known untestable scenarios + workarounds]
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| rea-analysis-optimizationmorluto/reaOptimize REA providers and shared analysis workflows for agent context, latency, CPU, and memory while preserving correctness and Evidence. Use for analysis bottlenecks and cache or query design; CI/test-suite optimization belongs to rea-ci-tests-audit. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| rea-ci-tests-auditmorluto/reaAudit REA CI and test suites for correctness, fixture drift, false passes, and measured performance; use for suite or workflow investigations and efficiency changes, rather than ordinary feature testing or a single test failure. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |