Agent skill
bump-deps
Analyze and upgrade dependencies with breaking change detection. Use when updating frontend (pnpm) or backend (uv) dependencies.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/bump-deps-casper-studios-casper-marketplace
Metadata
Additional technical details for this skill
- author
- BastiDood <[email protected]>
SKILL.md
Bump Dependencies
Analyze outdated dependencies and safely upgrade them with breaking change detection.
Workflow
-
Detect package manager based on current directory:
- If in
frontend/directory or working with TypeScript/JavaScript: usepnpmreference - If in
backend/directory or working with Python: useuvreference
- If in
-
List outdated dependencies using the package manager-specific command from the reference
-
Spawn background analysis tasks for EACH notable upgrade:
CRITICAL: You MUST spawn the
package-upgrade-analyzersub-agent as a background Task for EACH and EVERY notable upgrade. Do NOT take shortcuts.Task( subagent_type="package-upgrade-analyzer", run_in_background=true, prompt="Analyze upgrade for {package_name} from {old_version} to {new_version}. GitHub: {repo_url}" )Notable upgrades include:
- Major version bumps (e.g., v4 → v5)
- Packages with known breaking changes
- Core dependencies (React, Next.js, FastAPI, SQLAlchemy, etc.)
Spawn ALL tasks in a single message with multiple tool calls for maximum parallelism.
-
Wait for all background tasks to complete:
- Use
TaskOutputto retrieve results from each background task - Once ALL tasks are complete, ultrathink about the suggestions, migration guides, and release notes
- Invoke the
Plantool and its sub-agents to strategically address the breaking changes - Plan carefully to maintain as much of the original behavior as possible
- Use
-
Ask clarifying questions:
- If the migration path forward is ambiguous, ASK questions
- Do NOT proceed unless you're sure about the safety of the dependency version bumps
-
Generate PR summary document:
Write a
.claude/scratchpad/PR.mdfile using the PR template. Ensure that all package identifiers are properly wrapped in backticks for readability. -
Create PR (user confirmation required):
After generating
.claude/scratchpad/PR.md, useAskUserQuestionto confirm:AskUserQuestion( question="Ready to create the PR? You can edit .claude/scratchpad/PR.md first if needed.", header="Create PR?", options=[ { label: "Create PR", description: "Create the PR with current PR.md content" }, { label: "Let me edit first", description: "I'll edit PR.md and confirm when ready" } ] )Once the user confirms, derive
PR_TITLEand create the PR:Deriving
PR_TITLE:- Scope: Use
appfor frontend (pnpm),apifor backend (uv) - Content (pick first applicable):
- ≤3 notable packages: List them by name with target major version
→ "deps(app): bump
react-queryto v5,nextto v15" - >3 packages with notable ones: Highlight 1-2 notable + count
→ "deps(api): bump
sqlalchemyto v2 (+4 packages)" - Many minor bumps only: Just the count → "deps(app): bump 12 dependencies"
- ≤3 notable packages: List them by name with target major version
→ "deps(app): bump
- Keep under 72 characters
bashPR_TITLE="deps(app): bump react-query to v5, next to v15" gh pr create --base dev --head "$(git rev-parse --abbrev-ref HEAD)" --title "$PR_TITLE" --body-file .claude/scratchpad/PR.mdAfter successful PR creation:
bash# Clean up the scratchpad file rm .claude/scratchpad/PR.mdReturn the PR URL to the user.
- Scope: Use
Important Notes
- Always analyze breaking changes BEFORE upgrading
- Use parallel Task agents for efficiency
- Focus on safety over speed - better to ask than to break production
- Consider rollback strategies for risky upgrades
Additional Instructions
The remaining instructions are behavior overrides by the user.
$ARGUMENTS
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?