| name | pubspec-manager |
| description | Safely adds dependencies to `pubspec.yaml` using the Flutter CLI. This is much safer than manually editing the `pubspec.yaml` file to ensure indentation and version conflicts are managed effectively. |
Instructions
When the user asks for a new package (e.g., 'riverpod', 'dio', 'build_runner'), NEVER guess or manually manipulate the Pubspec directly.
Instead, use the run_in_terminal tool to run the CLI command:
flutter pub add <package_name>
If it is a dev_dependency, append the --dev flag:
flutter pub add --dev <package_name>
Inform the user if the package was successfully added.