dependency-conflict-resolver
Skill94 starsChanged 7 months agoMITView on GitHub
Detect and resolve package dependency conflicts before installation across npm/yarn/pnpm, pip/poetry, cargo, and composer. Auto-trigger when installing/upgrading packages. Validates peer dependencies, version compatibility, security vulnerabilities. Auto-resolves safe conflicts (patches, dev deps), suggests manual review for breaking changes. Prevents conflicting versions, security vulnerabilities, broken builds.
- Installs packages
2 other projects use a version of this.
Adopted by
Most recently taken up by
- JetBrains/skillstheir own version, first seen Apr 28, 2026
- yalishevant/kotlin-backend-agent-skillstheir own version, first seen Mar 6, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- JetBrains/skills★ 360same name
- yalishevant/kotlin-backend-agent-skills★ 18same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository48 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .codex/Agents.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- analysis-phaseSkill
- anti-duplicationSkill
- audit-claude-mdSkill
- breaking-change-detectorSkill
- caching-strategySkill
- clarification-phaseSkill
- create-agent-skillsSkill
- create-hooksSkill
- create-meta-promptsSkill
- create-slash-commandsSkill
- create-subagentsSkill
- debug-phaseSkill
- design-tokensSkill
- domain-memorySkill
- dry-runSkill
- epic-meta-promptingSkill
- epic-scopingSkill
- epic-sprintsSkill
- epic-walkthroughSkill
- error-recoverySkill
- finalize-phaseSkill
- git-workflow-enforcerSkill
- hallucination-detectorSkill
- implementation-phaseSkill
- mockup-extractionSkill
- multi-agent-votingSkill
- optimization-phaseSkill
- parallel-execution-optimizerSkill
- planning-phaseSkill
- production-deployment-phaseSkill
- project-initialization-phaseSkill
- regression-test-generatorSkill
- roadmap-integrationSkill
- session-boundarySkill
- shadcn-integrationSkill
- specification-phaseSkill
- staging-deployment-phaseSkill
- staging-validation-phaseSkill
- task-breakdown-phaseSkill
- task-status-syncSkill
- theme-consistencySkill
- ultrathinkSkill
- workflow-detectionSkill
- worktree-contextSkill
- x-announcementSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
13 rules. About 0 are common, 10 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈10
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 15
Scan for conflicts: Check peer dependencies, version ranges, transitive dependencies
- Distinctive: line 16
Security audit: Run ecosystem-specific audit tools (npm audit, pip-audit, cargo-audit, composer audit)
- Distinctive: line 72
Check for conflicts in order of severity:
- Distinctive: line 86
Check for semver range compatibility (^, ~, >=, etc.)
- Very specific: line 90
Check Node.js, Python, PHP version requirements
- Distinctive: line 98
Run ecosystem-specific security audits:
- Very specific: line 273
Always commit lockfiles (package-lock.json, poetry.lock, etc.)
- Very specific: line 274
Use npm ci / poetry install in CI/CD (installs exact versions)
- Distinctive: line 276
Use automated tools (Dependabot, Renovate) for monitoring
- Distinctive: line 279
Check workspace/sub-package dependencies
- Distinctive: line 280
Ensure consistent versions across workspace
- Distinctive: line 281
Use workspace protocols (pnpm workspace:, yarn workspace:)
- Distinctive: line 287
Check if vulnerability is exploitable in your usage
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
<objective>
Proactively detect and resolve dependency conflicts before package installation to prevent broken builds, security vulnerabilities, and version incompatibilities across JavaScript, Python, Rust, and PHP ecosystems.
</objective><quick_start>
<workflow>
Pre-installation check workflow:
- Detect package manager: Identify ecosystem from lockfiles (package-lock.json, requirements.txt, Cargo.lock, composer.lock)
- Scan for conflicts: Check peer dependencies, version ranges, transitive dependencies
- Security audit: Run ecosystem-specific audit tools (npm audit, pip-audit, cargo-audit, composer audit)
- Analyze severity: Classify conflicts by risk level (safe auto-fix, manual review, blocking)
- Present resolution: Auto-apply safe fixes, suggest alternatives for breaking changes, block critical vulnerabilities with alternatives
</workflow>
<trigger_detection> Auto-invoke when detecting these commands:
npm install,npm i,yarn add,pnpm addpip install,poetry addcargo add,cargo installcomposer require,composer install</trigger_detection>
<quick_example>
# User attempts: npm install react@18.0.0
# Skill detects: Peer dependency conflict with react-dom@17.0.0
[CONFLICT DETECTED]
Package: react@18.0.0
Conflict: react-dom@17.0.0 requires react ^17.0.0
Risk: MEDIUM (breaking change)
[RECOMMENDED ACTION]
Option 1: Upgrade react-dom to ^18.0.0 (recommended)
npm install react@18.0.0 react-dom@18.0.0
Option 2: Downgrade react to ^17.0.0
npm install react@17.0.0
[SECURITY CHECK]
✓ No known vulnerabilities in react@18.0.0
✓ No known vulnerabilities in react-dom@18.0.0</quick_example> </quick_start>
<workflow>
<detection_phase>
**1. Identify Package Manager and Context**Scan current directory for lockfiles and package manifests:
- JavaScript: package.json + (package-lock.json | yarn.lock | pnpm-lock.yaml)
- Python: requirements.txt | Pipfile | pyproject.toml + (Pipfile.lock | poetry.lock)
- Rust: Cargo.toml + Cargo.lock
- PHP: composer.json + composer.lock
Extract:
- Current dependency versions (from lockfile)
- Requested package and version (from user command)
- Version constraints (from manifest) </detection_phase>
<conflict_analysis> 2. Analyze Dependency Conflicts
Check for conflicts in order of severity:
A. Peer Dependency Conflicts
- Compare requested version against peer dependency requirements
- Identify which packages will be incompatible
- Calculate semver compatibility ranges
B. Transitive Dependency Conflicts
- Build dependency graph of all transitive dependencies
- Detect duplicate packages with incompatible versions
- Identify shared dependencies requiring specific versions
C. Version Constraint Violations
- Validate against existing version constraints in manifest
- Check for semver range compatibility (^, ~, >=, etc.)
- Detect locked versions that prevent resolution
D. Platform/Runtime Conflicts
- Check Node.js, Python, PHP version requirements
- Validate feature flags (Rust features)
- Check platform-specific dependencies </conflict_analysis>
<security_audit> 3. Security Vulnerability Scan
Run ecosystem-specific security audits:
JavaScript (npm/yarn/pnpm):
npm audit --json
# Parse output for HIGH/CRITICAL vulnerabilities
# Check: GHSA IDs, CVE numbers, severity scoresPython (pip/poetry):
pip-audit --format json
# Or: poetry audit --json
# Parse PyPA Advisory Database resultsRust (cargo):
cargo audit --json
# Check RustSec Advisory Database
# Identify RUSTSEC-YYYY-NNNN advisoriesPHP (composer):
composer audit --format json
# Parse security advisories
# Check for blocked insecure packagesFor each vulnerability found:
- Extract severity (LOW, MODERATE, HIGH, CRITICAL)
- Identify patched versions
- Find alternative packages if no patch available
- Assess exploitability and context </security_audit>
<resolution_strategy> 4. Classify Conflicts and Generate Resolutions
Auto-resolve (apply without asking):
- Patch version updates (1.2.3 → 1.2.4)
- Dev dependency conflicts with no production impact
- Security patches within same minor version
- Compatible semver range adjustments (^1.2.0 allows 1.2.4)
Suggest manual review (present options):
- Minor version updates (1.2.x → 1.3.x)
- Production dependency conflicts
- Peer dependency mismatches requiring upgrades
- Multiple resolution paths with tradeoffs
Block with alternatives (prevent installation):
- Major version conflicts requiring breaking changes
- Critical/High security vulnerabilities without patches
- Incompatible platform/runtime requirements
- Circular dependency deadlocks
Resolution output format:
[CONFLICT TYPE] Brief description
Package: package-name@requested-version
Current: package-name@current-version
Conflict: dependency-name requires version-constraint
[IMPACT ASSESSMENT]
Risk: LOW | MEDIUM | HIGH | CRITICAL
Scope: dev-only | production | peer-dependency | transitive
[RECOMMENDED ACTIONS]
1. [Primary recommendation with command]
2. [Alternative approach with tradeoffs]
3. [Fallback option if applicable]
[SECURITY STATUS]
✓ No vulnerabilities | ⚠ Vulnerabilities found (details below)</resolution_strategy>
<execution_phase> 5. Execute Resolution
For auto-resolvable conflicts:
- Generate updated install command with resolved versions
- Execute installation with resolved dependencies
- Verify lockfile updates
- Log changes for review
For manual review conflicts:
- Present options with AskUserQuestion tool
- Explain tradeoffs for each option
- Execute user-selected resolution
- Confirm successful installation
For blocking conflicts:
- Prevent installation
- Display detailed error explanation
- Suggest alternative packages or version ranges
- Provide documentation links for further investigation
</execution_phase>
</workflow>
<ecosystem_specific_patterns> JavaScript (npm/yarn/pnpm)
Common conflict patterns:
- React version mismatches between react and react-dom
- Peer dependency warnings for plugin ecosystems (Babel, ESLint, Webpack)
- Duplicate packages at different major versions in monorepos
Resolution tools:
npm ls <package>- Show dependency tree for packagenpm why <package>- Explain why package is installednpm audit fix- Auto-fix vulnerabilitiesnpm overrides(package.json) - Force specific versions globally
See references/javascript-patterns.md for detailed examples.
Python (pip/poetry)
Common conflict patterns:
- Platform-specific wheels causing resolution failures
- Conflicting constraints from multiple requirements files
- Python version incompatibilities (3.8 vs 3.9+ features)
Resolution tools:
pip check- Verify installed packages have compatible dependenciespip install --dry-run- Simulate installation without applyingpoetry show --tree- Display dependency treepoetry update --dry-run- Preview updates without applying
See references/python-patterns.md for detailed examples.
Rust (cargo)
Common conflict patterns:
- Feature flag conflicts across workspace members
- Git dependencies with conflicting version constraints
- Platform-specific dependencies (Windows vs Linux)
Resolution tools:
cargo tree -d- Show duplicate dependenciescargo tree -i <package>- Show inverse dependenciescargo update --dry-run- Preview updatescargo outdated- Check for newer versions
See references/rust-patterns.md for detailed examples.
PHP (composer)
Common conflict patterns:
- Platform requirements (PHP version, extensions)
- Symfony component version mismatches
- Security advisories blocking updates
Resolution tools:
composer why <package>- Show why package is installedcomposer why-not <package> <version>- Explain why version can't be installedcomposer outdated- List available updatescomposer audit- Security vulnerability scan
See references/php-patterns.md for detailed examples. </ecosystem_specific_patterns>
<advanced_features> Semver Compatibility Analysis
Understand version constraint symbols:
^1.2.3→ >=1.2.3 <2.0.0 (compatible changes)~1.2.3→ >=1.2.3 <1.3.0 (patch updates only)>=1.2.3 <2.0.0→ Explicit range1.2.x→ Any patch version in 1.2.x*→ Any version (avoid in production)
Lockfile Strategy:
- Always commit lockfiles (package-lock.json, poetry.lock, etc.)
- Use
npm ci/poetry installin CI/CD (installs exact versions) - Regularly update dependencies to avoid security debt
- Use automated tools (Dependabot, Renovate) for monitoring
Monorepo Considerations:
- Check workspace/sub-package dependencies
- Ensure consistent versions across workspace
- Use workspace protocols (pnpm workspace:, yarn workspace:)
- Validate peer dependencies across workspace packages
Security Best Practices:
- Prioritize CRITICAL and HIGH vulnerabilities
- Assess vulnerability context (dev vs production runtime)
- Check if vulnerability is exploitable in your usage
- Subscribe to security advisories for your ecosystem
- Integrate audit checks into CI/CD pipelines
See references/advanced-resolution.md for complex scenarios. </advanced_features>
<anti_patterns> Avoid these common mistakes:
1. Blindly using --force or --legacy-peer-deps
- Problem: Bypasses conflict detection, hides real issues
- Alternative: Investigate root cause, resolve properly
2. Ignoring security warnings
- Problem: Leaves known vulnerabilities in production
- Alternative: Assess severity, update or find alternatives
3. Using wildcard versions (*) in production
- Problem: Unpredictable builds, potential breaking changes
- Alternative: Use specific version ranges (^, ~)
4. Deleting lockfiles to "fix" conflicts
- Problem: Loses reproducible builds, may install incompatible versions
- Alternative: Resolve conflicts properly, regenerate lockfile
5. Installing packages without checking compatibility
- Problem: Breaks existing functionality, wastes debugging time
- Alternative: Use this skill to check before installing
6. Mixing package managers (npm + yarn)
- Problem: Conflicting lockfiles, inconsistent dependency resolution
- Alternative: Standardize on one package manager per project
7. Upgrading all dependencies at once
- Problem: Hard to identify which upgrade caused breakage
- Alternative: Update incrementally, test between updates
8. Using outdated audit tools
- Problem: Misses recent vulnerabilities and advisories
- Alternative: Keep audit tools updated, use latest patterns </anti_patterns>
<success_criteria> Conflict successfully resolved when:
- ✓ All peer dependencies are satisfied
- ✓ No version constraint violations
- ✓ Security audit passes (or vulnerabilities acknowledged)
- ✓ Lockfile updated consistently
- ✓ Installation completes without errors
- ✓ Dependency tree has no duplicate incompatible versions
- ✓ Platform/runtime requirements met
- ✓ Tests pass after installation (if applicable)
Blocked installation when:
- ✗ Critical security vulnerabilities without patches
- ✗ Circular dependency deadlock
- ✗ Incompatible platform requirements (Node 14 vs Node 18)
- ✗ Breaking changes without user approval </success_criteria>
<reference_guides> For ecosystem-specific details and advanced scenarios:
- references/javascript-patterns.md - npm/yarn/pnpm conflict examples and solutions
- references/python-patterns.md - pip/poetry conflict examples and solutions
- references/rust-patterns.md - cargo conflict examples and solutions
- references/php-patterns.md - composer conflict examples and solutions
- references/advanced-resolution.md - Complex scenarios (monorepos, workspaces, feature flags)
- references/security-audit-guide.md - Security vulnerability assessment and remediation </reference_guides>
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

