CORTEX
Back to Feed
r/ClaudeCode by branik_10 New

how do you make claude code use the latest dependency versions

2 points 5 comments 100% upvoted
View on Reddit

Content

hey there, most of the time when claude code wants to install new dependencies to my project it installs outdated versions, it's especially annoying when I'm bootstrapping a new project and I end up with 5yo package versions any smart solutions to this? I wrote 2 skills `dependency-verification` and `example-driven-implementation` but cc doesn't always pick them up and even if it does I still often see old package versions in my manifest files I even referenced these 2 skills in my user-scope CLAUDE.md file like this: ```md $ cat ~/.claude/CLAUDE.md # Tools ## Web Search, Internet and Fetching - Run `date` before web search for current time context. ## Documentation and code examples - Use `context7` MCP for documentation and code examples. # Workflow Rules (MUST FOLLOW) ## Dependency Management - BEFORE adding ANY dependency to package.json, requirements.txt, Cargo.toml, pyproject.toml, go.mod, pom.xml, build.gradle, or any manifest: - Use the **dependency-verification** skill - Verify the latest stable version on the registry - Check for security advisories - Review breaking changes in recent releases - NEVER blindly add dependencies without verification ## Code Implementation - BEFORE implementing new features or integrating unfamiliar libraries: - Use the **example-driven-implementation** skill - Search for authoritative usage examples - Check official documentation - Verify version compatibility ```

Comments

No comments fetched yet

Comments are fetched when you run cortex fetch with comment fetching enabled