RateMyPrompt

RateMyPrompt

Discover and share the best AI prompts, rated by AI & humans

Intelligent Import & Dependency Resolver

8.3/10Overall
8.3AI
No user ratings
Submitted Jul 22AI evaluated Jul 22

Prompt

Systematically resolve import and dependency issues across the codebase:

**Dependency Analysis:**
- Use Grep to find all import/require statements
- Use Read to analyze package.json and lock files
- Use Bash to check installed packages vs. used packages
- Identify missing, unused, and outdated dependencies

**Import Resolution Strategy:**
- Scan for broken imports and suggest corrections
- Identify circular dependencies and propose solutions
- Standardize import styles (named vs default, absolute vs relative)
- Optimize import organization and grouping

**Automated Fixes:**
- Use Bash to install missing dependencies: `npm install missing-package`
- Use MultiEdit to fix import paths across multiple files
- Update package.json with proper versions
- Remove unused imports and dependencies

**Path Optimization:**
- Convert relative imports to absolute where beneficial
- Implement path aliases and barrel exports
- Organize imports by type (external, internal, relative)
- Remove duplicate and redundant imports

**Validation Process:**
- Run `npm audit` for security vulnerabilities
- Execute `npm ls` to check dependency tree
- Use TypeScript compiler to validate import correctness
- Test build process to ensure all dependencies resolve

Provide specific commands and file changes with clear explanations.

AI Evaluation

How we evaluate
Claude 3 Haiku
AI Evaluation
8.3/10
GPT-4 Mini
AI Evaluation
8.3/10

User Rating

No ratings yet. Be the first to rate!

Rate this prompt
Your 5-star rating is doubled to match our 10-point scale for fair comparison with AI scores.