Pattern Matching
Enables type-safe exhaustive pattern matching in Effect code, replacing imperative control flow with declarative patterns.
Install this skill
Security score
The Pattern Matching skill was audited on Feb 12, 2026 and we found 16 security issues across 1 threat category, including 1 high-severity. Review the findings below before installing.
Categories Tested
Security Issues
Template literal with variable interpolation in command context
| 92 | Match.tag("NetworkError", (e) => `Failed to fetch ${e.url}`), |
Template literal with variable interpolation in command context
| 93 | Match.tag("ValidationError", (e) => `${e.field}: ${e.message}`), |
Template literal with variable interpolation in command context
| 94 | Match.tag("AuthError", (e) => `Auth failed: ${e.reason}`), |
Template literal with variable interpolation in command context
| 119 | (s) => `String: ${s.toUpperCase()}` |
Template literal with variable interpolation in command context
| 123 | (n) => `Number: ${n * 2}` |
Template literal with variable interpolation in command context
| 127 | (b) => `Boolean: ${!b}` |
Template literal with variable interpolation in command context
| 223 | (r) => `User: ${r.data.value}` |
Template literal with variable interpolation in command context
| 227 | (r) => `Product: ${r.data.value}` |
Template literal with variable interpolation in command context
| 355 | `Circle: area=${c.area.toFixed(2)}, circumference=${c.circumference.toFixed(2)}` |
Template literal with variable interpolation in command context
| 358 | `Rectangle: area=${r.area}, perimeter=${r.perimeter}` |
Template literal with variable interpolation in command context
| 390 | Match.when(Schema.is(Circle), (c) => `Valid circle with radius ${c.radius}`), |
Template literal with variable interpolation in command context
| 391 | Match.when(Schema.is(Rectangle), (r) => `Valid rectangle ${r.width}x${r.height}`), |
Template literal with variable interpolation in command context
| 398 | console.log(`Circle area: ${input.area}`) // Type is Circle, has methods |
Template literal with variable interpolation in command context
| 439 | `Published ${p.daysSincePublish} days ago` |
Template literal with variable interpolation in command context
| 442 | `Archived: ${a.archivedReason}` |
Template literal with variable interpolation in command context
| 471 | For comprehensive pattern matching documentation, consult `${CLAUDE_PLUGIN_ROOT}/references/llms-full.txt`. |