AGENT SKILL

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

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:

  1. Update the version constraint in mix.exs to allow the new major version

  2. 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
  3. Review breaking changes and apply necessary code modifications

  4. 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 format to auto-fix
  • For test failures: Debug and fix the failing tests

5. Final Steps

Once all verifications pass:

  1. Run mix hex.outdated again to confirm all dependencies are up to date
  2. Summarize what was updated, including any breaking changes that required code modifications

04 同仓库更多 Skills

ream88
ream88/dotfiles

Git 提交整理压缩

tidy

分析当前分支上所有尚未推送的提交,并建议哪些提交应归为一组、压缩合并为同一个提交。当用户在推送前说“tidy”“tidy commits”“which commits belong together”“clean up my commits”或“squash plan”时使用。

软件开发工程师代码仓库协作管理
★ 1
ream88
ream88/dotfiles

简化技术英语写作(ASD-STE100)

simple-english

用 ASD-STE100 简化技术英语撰写回复。当用户要求使用简单英语、简明英语、简化文本或通俗易懂的语言,或面向非英语母语读者撰写内容时使用。

技术文档工程师回复风格与输出控制
★ 1
ream88
ream88/dotfiles

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.

★ 1
ream88
ream88/dotfiles

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).

★ 1
ream88
ream88/dotfiles

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.

★ 1
ream88
ream88/dotfiles

commit

暂无简介

★ 1