dart-cognitive-complexity

Pass

Audited by Gen Agent Trust Hub on Aug 11, 2026

Risk Level: SAFE
Full Analysis
  • [SAFE]: The skill provides instructions for using a legitimate Dart CLI tool (cognitive_complexity) available on the official pub.dev registry.
  • [SAFE]: All shell commands referenced (dart run, dart test, dart format, dart analyze) are standard utilities from the Dart SDK.
  • [SAFE]: The skill implements a robust safety framework for code modifications, requiring a 'Read-Only Audit' and an 'Interactive User Selection' gate before any file writes occur.
  • [SAFE]: The technical guidance provided (Dart 3 exhaustive pattern matching, guard clauses, method objects) is accurate and aligns with modern software engineering best practices.
  • [SAFE]: The skill enforces a test coverage gate, ensuring that refactoring is only performed on code with a passing regression baseline.
Audit Metadata
Risk Level
SAFE
Analyzed
Aug 11, 2026, 03:19 AM
Security Audit — agent-trust-hub — dart-cognitive-complexity