Skip to content
Back to skills

Dart Tooling

ASecurity

Use `analysis_options.yaml` as the single source of truth for linting and analyzer behavior, and add `dart_code_metrics` so complexity checks run alongside normal analysis. Example setup: ```yaml analyzer: errors: missing_required_param: error todo: ignore linter: rules: - prefer_single_quotes - require_trailing_commas - always_use_package_imports - unawaited_futures ``` Then add `dart_code_metrics` to `dev_dependencies` and configure it so complexity violations are visible in CI and local ch...

  • 584 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 5, 2026
developmentgobash

Security analysis

A100/100

Pro scans all 12 files and shows the line behind each finding

Scanned September 5, 2026

npx -y skills add HoangNguyen0403/agent-skills-standard --skill dart-tooling --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Dart Tooling?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Dart Tooling
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/hoangnguyen0403-dart-tooling-agent-skills-standard/badge)](https://www.skillsdirectory.com/skills/hoangnguyen0403-dart-tooling-agent-skills-standard)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
Use `analysis_options.yaml` as the single source of truth for linting and analyzer behavior, and add `dart_code_metrics` so complexity checks run alongside normal analysis.

Example setup:

```yaml
analyzer:
  errors:
    missing_required_param: error
    todo: ignore

linter:
  rules:
    - prefer_single_quotes
    - require_trailing_commas
    - always_use_package_imports
    - unawaited_futures
```

Then add `dart_code_metrics` to `dev_dependencies` and configure it so complexity violations are visible in CI and local checks:

```yaml
dart_code_metrics:
  metrics:
    cyclomatic-complexity: 15
```

Recommended commands:

```bash
flutter analyze --fatal-infos --fatal-warnings
dart run dart_code_metrics:metrics analyze lib
dart format . --line-length 80
```

Why this setup works:

- `missing_required_param: error` upgrades a correctness issue into a hard failure.
- `prefer_single_quotes` and `require_trailing_commas` keep style consistent and reduce noisy diffs.
- `always_use_package_imports` avoids inconsistent import styles in larger Dart codebases.
- `dart_code_metrics` adds structural checks that the default analyzer does not cover, especially around complexity.

If this is going into CI, make `analyze`, `format`, and `test` all required so style drift or analyzer regressions fail before merge.

Files in this skill

  • eval-1.baseline.md1.6 KB
  • eval-1.with-skill.md1.3 KB
  • eval-2.baseline.md1.6 KB
  • eval-2.with-skill.md1.3 KB
  • eval-3.baseline.md1.5 KB
  • eval-3.with-skill.md1.2 KB
  • trigger-1.md141 B
  • trigger-2.md176 B
  • trigger-3.md179 B
  • trigger-4.md178 B
  • trigger-5.md157 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.