Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Fix Imports?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/hbrancalhao-fix-imports)
---
name: fix-imports
description: Report or repair import order, barrel imports, and circular dependencies for a chosen scope. Use for "$fix-imports" requests.
---
# Import organization workflow
Parse `$fix-imports [scope] [--mode=report|fix] [--checks=order|barrel|circular|all]`; defaults are `affected`, `report`, and `all`.
1. Invoke `import-fixer` with the parsed options.
2. Enforce import order: Angular, third-party, PrimeNG, project/shared, then local.
3. Prefer direct project imports over barrel imports.
4. In fix mode, change only imports and run `npx nx affected:lint --base=HEAD~1` afterward.
5. Report each violation or applied fix with a file reference.