with one click
update-deps
// Update cargo dependencies to their latest major versions one at a time, verifying each with check/build/test and committing individually. Invoke with /update-deps.
// Update cargo dependencies to their latest major versions one at a time, verifying each with check/build/test and committing individually. Invoke with /update-deps.
Reviews a GitHub pull request for correctness, architecture, security, backward compatibility, and test coverage. Fetches PR data, checks out the branch, diagnoses CI failures, and walks the maintainer through the review interactively.
Publish a new version of the crate to crates.io and GitHub. Bumps version, updates CHANGELOG, creates PR, publishes, tags, and creates a GitHub release. Proceeds cautiously with user confirmation at each major step.
| name | update-deps |
| description | Update cargo dependencies to their latest major versions one at a time, verifying each with check/build/test and committing individually. Invoke with /update-deps. |
| disable-model-invocation | false |
| user-invocable | true |
Update each dependency in the root Cargo.toml to its latest major version, one at a time, with
verification and individual commits. Then run cargo update for minor/patch updates.
Verify ALL of the following before starting. If any fails, stop and tell the user.
git branch --show-current must not be main.git fetch origin main, then git rev-parse HEAD must equal
git rev-parse origin/main. If not: AskUserQuestion Is this branch OK?git status --porcelain must produce no output. If not: AskUserQuestion
commit before proceeding?Run cargo update, then cargo check, cargo build, and cargo test. Fix issues. If there are
changes, commit with the message run cargo update
Read the root Cargo.toml. For each crate under [dependencies] (skip [dev-dependencies]), run
cargo search <crate-name> --limit 1 to find the latest published version.
Major update rules:
0.x crates: minor version is the major. 0.3 -> 0.4 is major; 0.3 -> 0.3.5 is not.>=1 crates: only the major matters. 1 -> 2 is major; 1 -> 1.5 is not.Print the list: <name>: <current> -> <latest-major>. If none, skip to Step 3.
Process each major update sequentially. For each:
cargo update — refresh Cargo.lock.cargo check, cargo build, cargo test in order. If any step fails, read the
errors and fix them. Repeat until all three pass. Don't give up after one attempt — breakage from
major bumps is expected. Fix warnings in source code, not in test expectations.update <dep> from <old> to <new> using
least-specific versions (e.g. update toml from 0.8 to 0.9).cargo updateCargo.lock changed (git diff --quiet Cargo.lock), commit it: run cargo updateSummarize: which deps got major updates (from/to), whether cargo update changed anything, total commits created.