dart-use-pattern-matching
Pass
Audited by Gen Agent Trust Hub on Oct 22, 2026
Risk Level: SAFE
Full Analysis
- [SAFE]: The skill is purely instructional, focusing on Dart language features. It promotes best practices for data validation and schema handling.
- [INDIRECT_PROMPT_INJECTION]: The skill provides examples for processing untrusted data sources like JSON payloads and URI path segments.
- Ingestion points:
resolveAllowedAssetSubpathinSKILL.mdandprocessUserPayloadinexamples/json_patterns.dartprocess external lists and maps. - Boundary markers: The instructions emphasize explicit validation using patterns and exhaustiveness checking.
- Capability inventory: The provided code only performs data extraction and console logging; it lacks dangerous capabilities such as file system writes, network requests, or dynamic code evaluation.
- Sanitization: The
resolveAllowedAssetSubpathexample explicitly implements a check against path traversal by validating that path segments do not contain '..' sequences.
Audit Metadata