/commcare-tech:dependency-upgrade <library name>from commcare-tech
Upgrade a Python or JS dependency safely. Given a library name, finds the latest safe version, reviews the changelog, assesses impact based on how the library is used in the repo, performs the upgrade, and creates a PR with the changelog and assessment. Use this whenever someone asks to upgrade, bump, or update a package/library/dependency.
Ships in commcare-tech. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Upgrade a dependency to the latest safe version with a well-documented PR. The goal is to make dependency upgrades low-risk and easy to review — the PR should give reviewers everything they need to feel confident merging.
$ARGUMENTS — The library/package name. Examples:
/dependency-upgrade pillow/dependency-upgrade django-celery-results/dependency-upgrade markdown-itDetermine whether this is a Python or JS dependency by searching for it in the repo's dependency files:
Python — search requirements/*.txt, requirements.txt, setup.py, setup.cfg, pyproject.toml
JS — search package.json, package-lock.json, yarn.lock
If the library appears in both ecosystems, ask the user which one they mean. If it doesn't appear anywhere, tell the user — the library might not be a direct dependency, or might be spelled differently.
Record the current pinned version.
Fetch version and release date info from the PyPI JSON API:
curl -s https://pypi.org/pypi/<package>/json
From the response:
info.version is the latest releasereleases is a dict keyed by version string, each containing a list of file objects with upload_time_iso_8601npm view <package> versions --json
npm view <package> time --json
The time object maps version strings to ISO date strings.
The point of these rules is to avoid being an early adopter of a release that might have undiscovered issues — we'd rather let the broader community shake out problems first.
Skip X.0.0 major releases. A brand-new major version (e.g., 3.0.0) often has rough edges, breaking changes that aren't fully documented, and ecosystem incompatibilities. Wait for at least X.0.1 or X.1.0 before considering it. If the only available upgrade is an X.0.0, tell the user and suggest waiting.
Skip releases less than 7 days old — except for patch releases (X.Y.Z where only Z changed from the current version). Patch releases are typically bug/security fixes and are safe to adopt immediately. For minor and major releases, a week gives the community time to surface issues.
Pick the best candidate. Walk backwards from the latest version until you find one that passes both rules above. This is the target version.
If no version passes the safety rules, explain why and ask the user if they want to proceed anyway.
Follow the Changelog Research, Codebase Impact Analysis, and Categorizing Risk sections of ${CLAUDE_PLUGIN_ROOT}/references/dependency-analysis.md to research what changed between the current and target versions and how it affects this repo. Also follow that doc's Writing About Upstream References section when summarizing the changelog in the PR body — the PR will be posted to this repo, so bare #<number> references to the upstream repo need the same care.
Then write a short assessment (3-5 sentences) for the PR body. Cover:
If the risk is high, flag it to the user before proceeding. They may want to handle it manually.
If no changelog is found, note this — it's still worth proceeding, but flag it in the PR.
Create a branch: dependency-upgrade/<package>-<target_version>
Update the version pin in the appropriate file(s). For Python requirements files, match the existing pin style (e.g., ==, >=, ~=). For package.json, match the existing prefix (^, ~, exact).
Update lock files if they exist:
uv pip compile to regenerate lock files (this is the team's default). If uv.lock or pyproject.toml with [tool.uv] is present, use uv lock instead. Fall back to pip-compile only if there's no sign of uv in the project.npm install or yarn installDon't run tests — leave that to CI. Just make sure the install/compile step succeeded without errors.
Commit the changes and open a PR. The PR description is the main deliverable — it should give reviewers everything they need.
Upgrade <package> from <current> to <target>
Upgrade <package> from <current> to <target>
Structure the PR description like this:
## Summary
Upgrades `<package>` from `<current_version>` to `<target_version>`.
## Risk Assessment
<the 3-5 sentence assessment from Step 3>
## Changelog
<summary of notable changes — breaking changes, deprecations, new features, security fixes>
<link to full upstream changelog or GitHub Releases page>
## Usage in this repo
<summary of how the library is used — number of files, main patterns>
Keep it concise but complete. Reviewers should be able to approve based on the PR description alone without having to go read the upstream changelog themselves.
/compare/v<current>...v<target>) as a fallback so reviewers can see the raw diff.What SKILL.md sets; muted values are Claude Code's defaults
7 skills in this plugin
/dependency-upgrade-reviewReview a Dependabot or other dependency-bump PR — identify the changed packages, research their changelogs, assess breaking-change and codebase impact, and post the analysis as a PR comment. Use this whenever someone asks to review, analyze, or evaluate a dependency-upgrade PR./jira-cveCreate a security ticket in JIRA for a CVE from a GitHub Dependabot alert URL./jira-ticketCreate a SAAS Jira ticket. Just describe what you're working on and it handles the rest.Other plugins' skills for the same job
npx claudepluginhub dimagi/dimagi-claude-workflows --plugin commcare-tech