dart-dart-fix

To apply automated Dart fixes, run `dart fix --apply` on the given roots to resolve suggested changes.

⭐6stars🔀3forks📁View on GitHub🕐Updated Jan 7, 2026⬇️1downloads

When & Why to Use This Skill

This Claude skill automates the application of Dart code fixes by executing the `dart fix --apply` command across specified project roots. It streamlines the development workflow by automatically resolving linting issues, deprecations, and other suggested improvements, ensuring codebases remain clean, modern, and compliant with Dart best practices without manual intervention.

Use Cases

  • Automated Lint Resolution: Quickly fix multiple linting warnings and code style issues across a large Dart project to maintain high code quality standards.
  • SDK and Package Migrations: Efficiently apply recommended code changes and migrations when upgrading to newer versions of the Dart SDK or third-party libraries.
  • Codebase Maintenance: Periodically run automated fixes as part of a cleanup routine to address deprecated APIs and improve overall code health.
  • Bulk Refactoring: Apply consistent, automated refactoring suggestions across multiple project subdirectories simultaneously through a single command interface.
namedart-dart-fix
description"To apply automated Dart fixes, run `dart fix --apply` on the given roots to resolve suggested changes."

Usage

Use the MCP tool dev-swarm.request to send the payload as a JSON string:

{"server_id":"dart","tool_name":"dart_fix","arguments":{}}

Tool Description

Runs dart fix --apply for the given project roots.

Arguments Schema

The schema below describes the arguments object in the request payload.

{
  "type": "object",
  "properties": {
    "roots": {
      "type": "array",
      "title": "All projects roots to run this tool in.",
      "items": {
        "type": "object",
        "properties": {
          "root": {
            "type": "string",
            "title": "The file URI of the project root to run this tool in.",
            "description": "This must be equal to or a subdirectory of one of the roots allowed by the client. Must be a URI with a `file:` scheme (e.g. file:///absolute/path/to/root)."
          }
        },
        "required": [
          "root"
        ]
      }
    }
  }
}

Background Tasks

If the tool returns a task id, poll the task status via the MCP request tool:

{"server_id":"dart","method":"tasks/status","params":{"task_id":"<task_id>"}}