elixir-deps-update
Update all outdated dependencies in this Elixir project, handling both safe updates and breaking changes.
- License 许可
- MIT
- 所属仓库
- ream88/dotfiles
- 最近更新
- 2026-11-15
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- elixir-deps-update
- version
- 1.0.0
- description
- Update all outdated dependencies in this Elixir project, handling both safe updates and breaking changes.
- allowed-tools
- [ "Read", "Edit", "Bash", "WebFetch", "Grep", "Glob", "AskUserQuestion" ]
02 资源文件 1
- 参考文档README.md832 B
03 SKILL.md 正文
Update Elixir Dependencies
Update all outdated dependencies in this Elixir project, handling both safe updates and breaking changes.
Workflow
1. Identify Outdated Dependencies
Run mix hex.outdated to get a list of all outdated dependencies. Parse the output to identify:
- Safe updates: Dependencies where only the patch or minor version has changed (no major version bump)
- Breaking updates: Dependencies with a major version change (e.g., 1.x.x → 2.x.x)
2. Apply Safe Updates
Run mix deps.update --all to update all dependencies. This will apply updates within the version constraints specified in mix.exs.
3. Handle Breaking Changes
For each dependency with a breaking major version change:
-
Update the version constraint in
mix.exsto allow the new major version -
Find the changelog or upgrade guide using this approach:
- First, try
https://hexdocs.pm/{package_name}/changelog.html - If not found, go to the project root at
https://hexdocs.pm/{package_name}and look for:- Links to "Changelog", "CHANGELOG", "Upgrade Guide", or "Migration Guide" in the sidebar navigation
- Any "Upgrading" or "Breaking Changes" sections in the documentation
- Extract the relevant breaking changes between your current version and the target version
- First, try
-
Review breaking changes and apply necessary code modifications
-
Run verification after each breaking change update before moving to the next
4. Verification
After updates, run these commands and fix any issues:
# Compile with warnings as errors
mix compile --warnings-as-errors
# Check formatting
mix format --check-formatted
# Run tests
mix test
If any verification step fails:
- For compile warnings: Fix the warning in the code
- For format issues: Run
mix formatto auto-fix - For test failures: Debug and fix the failing tests
5. Final Steps
Once all verifications pass:
- Run
mix hex.outdatedagain to confirm all dependencies are up to date - Summarize what was updated, including any breaking changes that required code modifications
04 同仓库更多 Skills
Git 提交整理压缩
tidy
分析当前分支上所有尚未推送的提交,并建议哪些提交应归为一组、压缩合并为同一个提交。当用户在推送前说“tidy”“tidy commits”“which commits belong together”“clean up my commits”或“squash plan”时使用。
简化技术英语写作(ASD-STE100)
simple-english
用 ASD-STE100 简化技术英语撰写回复。当用户要求使用简单英语、简明英语、简化文本或通俗易懂的语言,或面向非英语母语读者撰写内容时使用。
open
Open the file most recently worked on in this session with its default macOS app. Use when the user says "open", "open it", "open the file", or "show me the file" after a file was created or edited.
ical
Extract flight or train information from text, screenshots, PDFs, or other data sources and generate an iCalendar (.ics) file with properly formatted events. Supports flights (with IATA codes) and trains (e.g. ÖBB SCOTTY format).
critic
Ruthlessly critical code review that questions every single line change. Enforces KISS (Keep It Simple, Stupid) and DRY (Don't Repeat Yourself) principles. Use this to ensure code changes are truly necessary and not over-engineered. Will challenge any unnecessary complexity, redundancy, or deviation from simplicity.
commit
暂无简介