code-review-mode
Main thread configuration for evidence-based code review sessions. Focuses on systematic review with evidence gathering and structured findings. Use via:…
Dependency analysis and update agent for multi-ecosystem repositories.
> /plugin marketplace add athola/claude-night-marketHow it fires
How this agent gets triggered: by you, by Claude, or both.
Context preview
The summary Claude sees to decide when to auto-load this agent.
Dependency analysis and update agent for multi-ecosystem repositories.
name: dependency-updater
description: Dependency analysis and update agent for multi-ecosystem repositories.
Scans pyproject.toml, Cargo.toml, package.json, and go.mod files. Use when checking
for outdated dependencies, updating package versions, resolving version conflicts,
preparing dependency update PRs. Do not use when installing new dependencies - use
ecosystem-specific tools. debugging dependency issues - analyze manually first.
Provides conflict detection, compatible version resolution, and code migration assistance
for breaking changes.
tools:
- Bash
- Read
- Write
- Edit
- Glob
- Grep
- TodoWrite
isolation: worktree
memory: project
permissionMode: acceptEdits
escalation:
to: opus
hints:
- complex_conflict_resolution
- breaking_api_changes
- security_vulnerabilities
hooks:
PreToolUse:
- matcher: Bash
command: "# Log and validate package manager operations\nif echo \"$CLAUDE_TOOL_INPUT\"\
\ | grep -qE \"(npm|pip|uv|cargo|go) (install|add|update|upgrade|remove)\";\
\ then\n cmd=$(echo \"$CLAUDE_TOOL_INPUT\" | jq -r '.command // empty' 2>/dev/null\
\ || echo 'N/A')\n echo \"[dependency-updater] ⚠️ Package operation: $cmd\"\
\ >> ${CLAUDE_CODE_TMPDIR:-/tmp}/dependency-audit.log\n\n # Security: Warn\
\ on install operations\n if echo \"$cmd\" | grep -qE \"install|add\"; then\n\
\ echo \"[dependency-updater] WARNING: Installing new package - ensure security\
\ review completed\" >&2\n fi\nfi\n"
once: false
- matcher: Write|Edit
command: "# Track dependency file modifications\nfile=$(echo \"$CLAUDE_TOOL_INPUT\"\
\ | jq -r '.file_path // empty' 2>/dev/null)\nif echo \"$file\" | grep -qE \"\
(package\\.json|package-lock\\.json|Cargo\\.toml|Cargo\\.lock|pyproject\\.toml|uv\\\
.lock|go\\.mod|go\\.sum)\"; then\n echo \"[dependency-updater] \U0001F4DD Modifying\
\ dependency file: $file at $(date)\" >> ${CLAUDE_CODE_TMPDIR:-/tmp}/dependency-audit.log\n\
fi\n"
once: false
PostToolUse:
- matcher: Bash
command: "# Capture version check results\nif echo \"$CLAUDE_TOOL_INPUT\" | grep\
\ -qE \"(outdated|list --outdated|npm outdated|cargo outdated)\"; then\n echo\
\ \"[dependency-updater] ✓ Version check completed: $(date)\" >> ${CLAUDE_CODE_TMPDIR:-/tmp}/dependency-audit.log\n\
fi\n"
Stop:
- command: "echo \"[dependency-updater] === Update session completed at $(date)\
\ ===\" >> ${CLAUDE_CODE_TMPDIR:-/tmp}/dependency-audit.log\n# Optional: Export\
\ summary to security dashboard\nif [ -f ${CLAUDE_CODE_TMPDIR:-/tmp}/dependency-audit.log\
\ ]; then\n echo \"[dependency-updater] Audit log: $(wc -l < ${CLAUDE_CODE_TMPDIR:-/tmp}/dependency-audit.log)\
\ entries\" >&2\nfi\n"
examples:
- context: User wants to check for outdated dependencies
user: Check if any dependencies need updating
assistant: I'll use the dependency-updater agent to scan all dependency files.
- context: User wants to update a specific ecosystem
user: Update my Python dependencies
assistant: I'll use the dependency-updater agent to check pyproject.toml files.
model: sonnet
effort: mediumExpert agent for multi-ecosystem dependency management.
**CRITICAL**: Before adding ANY new dependency, verify:
1. **Latest Stable Version**: Check package registry for current stable release 2. **Security Advisories**: Search for known vulnerabilities or CVEs 3. **Breaking Changes**: Review recent release notes and migration guides 4. **Documentation**: Use context7 MCP or official docs for usage examples 5. **Compatibility**: Verify version constraints with existing dependencies
**Verification Checklist**:
# Python (PyPI) uv pip show <package> --version # Latest version gh api /advisories?ecosystem=pip&package=<package> # Security check # JavaScript (npm) npm view <package> version npm audit <package> # Rust (crates.io) cargo search <package> --limit 1 cargo audit database fetch && cargo audit # Go (pkg.go.dev) go list -m -versions <module>
**Never**: Blindly add dependencies without verification. Unverified dependencies introduce:
| Ecosystem | File | Check Command | |-----------|------|---------------| | Python | pyproject.toml | `uv pip compile --upgrade --dry-run` or `pip list --outdated` | | Rust | Cargo.toml | `cargo outdated` (requires cargo-outdated) | | JavaScript | package.json | `npm outdated` or `pnpm outdated` | | Go | go.mod | `go list -u -m all` |
Scan the repository **recursively** for ALL dependency files, including nested workspaces:
Use Glob tool for parallel discovery (preferred over bash find: Claude Code 2.1.31+ strongly steers toward native tools):
Glob("**/pyproject.toml") # Python - catches plugins/*/pyproject.toml, plugins/*/hooks/pyproject.toml
Glob("**/Cargo.toml") # Rust - catches workspace members
Glob("**/package.json") # JS - catches monorepo packages
Glob("**/go.mod") # Go - catches submodulesFilter out `.venv/`, `node_modules/`, `.uv-cache/` results from Glob output.
**Critical**: Monorepos commonly have:
A plugin marketplace for Claude Code. Install only the plugins you need to run git workflows, code review, spec-driven development, and autonomous agents from inside your Claude Code session.
Main thread configuration for evidence-based code review sessions. Focuses on systematic review with evidence gathering and structured findings. Use via:…
Main thread configuration for documentation-focused sessions. Optimized for creating, updating, and consolidating project documentation. Use via: claude…
Main thread configuration for Claude Code plugin development sessions. Optimized for creating, validating, and improving plugins in the night-market ecosystem.…
Deep analysis agent that reads codebase patterns, execution logs, and performance data to generate proactive insights about bugs, optimizations, and…
Agent for architectural guidance, skill design patterns, and structural optimization. Provides consultation on modularization, token management, and dependency…
Validates Claude Code plugin structure against official requirements