Skip to content
Back to skills

Dart Tooling

ASecurity

Set up `lefthook` so every commit runs formatting first and analysis second. That blocks unformatted or analyzer-broken Dart code before it ever reaches a PR. Example `lefthook.yml`: ```yaml pre-commit: parallel: false commands: dart-format: run: dart format . --line-length 80 flutter-analyze: run: flutter analyze --fatal-infos --fatal-warnings ``` Why this shape is good: - `dart format . --line-length 80` enforces the project formatting standard automatically. - `flutter analyze --fatal-info...

  • 584 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 5, 2026
developmentgo

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-df5efede/badge)](https://www.skillsdirectory.com/skills/hoangnguyen0403-dart-tooling-df5efede)

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
Set up `lefthook` so every commit runs formatting first and analysis second. That blocks unformatted or analyzer-broken Dart code before it ever reaches a PR.

Example `lefthook.yml`:

```yaml
pre-commit:
  parallel: false
  commands:
    dart-format:
      run: dart format . --line-length 80
    flutter-analyze:
      run: flutter analyze --fatal-infos --fatal-warnings
```

Why this shape is good:

- `dart format . --line-length 80` enforces the project formatting standard automatically.
- `flutter analyze --fatal-infos --fatal-warnings` turns warnings and infos into commit-blocking failures, which keeps CI surprises low.
- Running format before analyze ensures the analyzer sees the final formatted source.
- `parallel: false` keeps the sequence deterministic and easier to debug.

Recommended follow-through:

- Keep the hook commands aligned with CI so local behavior matches pull-request enforcement.
- If the repo also uses `dart_code_metrics`, add it to the same hook rather than letting complexity checks exist only in CI.

For example:

```yaml
    dcm:
      run: dart run dart_code_metrics:metrics analyze lib
```

With this in place, contributors do not have to remember formatting and analysis manually; the hook enforces both consistently on every commit.

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.