Dart Use Pattern Matching
Applies Dart 3 pattern matching, switch expressions, and destructuring idiomatically to validate data...
Works in any agent
2 static scans, 0 counted findings.
Recorded for this package revision; Edge checks the exact bundle again when your agent loads it.
What this skill does for you
Applies Dart 3 pattern matching, switch expressions, and destructuring idiomatically to validate data schemas, handle algebraic data types, and decompose control flow. Use when refactoring complex if-else chains, parsing polymorphic JSON or API responses, destructuring Lists, URI/path segments, String.split() tokens, Records, or Maps, or enforcing exhaustiveness on sealed classes. Don't use for simple boolean conditions, single-variable type promotion (use `is`), or basic collection filtering.
Quoted from the skill description in the pinned sourceUse it with Edge
Set up Edge for me: read getedge.cc/SKILL.md and follow it. Then use Edge to load the dart-use-pattern-matching skill from dart-lang/skills.
Paste it into Claude, ChatGPT, Codex or Cursor.
Or read the skill source first.
Security evidence
| Scanner | Date | Result | Findings |
|---|---|---|---|
| Edge static checks | 2026-09-29 | Pass | 0 |
| Edge committed-secret checks | 2026-09-29 | Pass | 0 |
Static scans check the code, not how well the skill works.
Scanner scope, raw findings and mirrored provider records
Edge static checks (Edge-run): edge-static/1.0.0. Scope: Static patterns for remote execution, credentials with network sends, obfuscation, prompt overrides, hidden Unicode, binaries and persistence. Revision: 0d9f1c4a0ae29d6f5180bf6143d7997ec3bacf49. Raw findings: not supplied. Counted findings: .
Edge committed-secret checks (Edge-run): edge-secrets/1.0.0. Scope: Credentials committed in the skill's files (values never shown). Revision: 0d9f1c4a0ae29d6f5180bf6143d7997ec3bacf49. Raw findings: not supplied. Counted findings: .
Socket (skills.sh mirror): Version unavailable. Scope: Not supplied by the mirrored record. Revision: not supplied. Raw findings: not supplied. Counted findings: Not supplied.
Snyk (skills.sh mirror): Version unavailable. Scope: Not supplied by the mirrored record. Revision: not supplied. Raw findings: not supplied. Counted findings: Not supplied.
Source and licence
- Repository
- https://github.com/dart-lang/skills
- Pinned skill file
- View source at revision
- Revision
- 0d9f1c4a0ae29d6f5180bf6143d7997ec3bacf49
- Package hash
- sha256:6a829314c56c48245ab2b28f200d4374fa5e6a3d6d58e19f4de00e1bbba30941
- Licence
- BSD-3-Clause
Files in the scanned package
| File | Size |
|---|---|
| SKILL.md | 11.7 KB |
| examples/json_patterns.dart | 2.6 KB |
Try Dart Use Pattern Matching in your agent.
Applies Dart 3 pattern matching, switch expressions, and destructuring idiomatically to validate data...