Skip to content
Back to skills

Dart Tooling

ASecurity

The fix is to run code generation with `--delete-conflicting-outputs`. Use: ```bash dart run build_runner build --delete-conflicting-outputs ``` Or for Flutter projects: ```bash flutter pub run build_runner build --delete-conflicting-outputs ``` Why this happens: - `build_runner` found generated files such as `.g.dart` outputs that no longer match the current builder state. - This usually comes from renamed models, changed annotations, switching branches, or previously generated artifacts lef...

  • 584 stars
  • 0 votes
  • 0 copies
  • 5 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-992d7829/badge)](https://www.skillsdirectory.com/skills/hoangnguyen0403-dart-tooling-992d7829)

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
The fix is to run code generation with `--delete-conflicting-outputs`.

Use:

```bash
dart run build_runner build --delete-conflicting-outputs
```

Or for Flutter projects:

```bash
flutter pub run build_runner build --delete-conflicting-outputs
```

Why this happens:

- `build_runner` found generated files such as `.g.dart` outputs that no longer match the current builder state.
- This usually comes from renamed models, changed annotations, switching branches, or previously generated artifacts left behind.
- Without the flag, the generator stops to avoid overwriting files it considers conflicting.

Why the flag is the standard fix:

- It removes stale generated outputs that are blocking regeneration.
- It allows the current generation pass to recreate files from source-of-truth annotations and builders.
- It prevents recurring local compile failures caused by outdated generated code.

Good practice:

- Always use `--delete-conflicting-outputs` for routine generation, not only when things are already broken.
- Run analysis after generation so you fail fast on real code issues:

```bash
flutter analyze --fatal-infos --fatal-warnings
```

If conflicts still persist after using the flag, the next thing to inspect is whether multiple builders are targeting the same outputs or whether generated files are being manually edited, which they should not be.

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.