Our review
Installs and configures import_sorter to automatically sort Dart imports, with support for monorepos using pub workspaces.
Strengths
- Quick installation from a fix branch
- Native support for pub workspaces
- Simple command via dart pub global run
Limitations
- Requires Dart SDK installed
- Depends on an unofficial GitHub branch for monorepo support
When you need to sort imports in Dart files, especially in a monorepo project with pub workspaces.
If you are using another import formatter like built-in dartfmt or an IDE that already handles sorting.
Security analysis
CautionThe skill instructs the agent to run 'dart pub global activate' from a GitHub repository, which downloads and executes code. While the tool is legitimate, the source is not audited, and the skill provides no assurance of the repository's trustworthiness. This introduces moderate risk of executing malicious code.
- •Installs a Dart package from an external Git repository without verifying its integrity or authenticity.
- •No checksum or signature validation is performed, posing a supply chain risk.
Examples
Install import_sorter for sorting Dart imports in my monorepo project.Sort the imports in my Dart file using import_sorter.I need to set up import_sorter with support for pub workspaces.name: init-import-sorter description: Install import_sorter for Dart import sorting. Use when user needs import sorting, wants to sort imports, or gets "import_sorter not found". Triggers on "install import_sorter", "init import sorter", "sort imports", "setup import_sorter".
安装 Import Sorter
确保 import_sorter 已安装并可用。使用支持 pub workspaces 的修复版本。
安装步骤
# 1. 检查是否已安装
dart pub global list | grep import_sorter
# 2. 如果未安装,从修复分支安装(支持 monorepo pub workspaces)
dart pub global activate --source git https://github.com/myConsciousness/import_sorter.git --git-ref fix/monorepo-pub-workspaces
使用
# 对单个文件排序
dart pub global run import_sorter --no-comments
# 通过 melos 对所有包排序
melos sort
Next.js App Router Expert
Development
A skill that turns Claude into a Next.js App Router expert.
README Generator
Development
Creates professional and comprehensive README.md files for your projects.
API Documentation Writer
Development
Generates comprehensive API documentation in OpenAPI/Swagger format.