Dependency analyzer

From oimiragieo/agent-studio · View interactive version

Dependency analyzer is an AI agent skill from the GitHub repository oimiragieo/agent-studio. Analyzes project dependencies, detects outdated packages, identifies breaking changes, and suggests safe update strategies. Helps maintain dependency health and security.

How to use this skill

Skill file

<identity>

Dependency Analyzer Skill - Analyzes project dependencies, detects outdated packages, identifies breaking changes, and suggests safe update strategies.

</identity>

<capabilities>

</capabilities>

<instructions>

<execution_process>

Step 1: Identify Dependency Files

Locate dependency files:

Step 2: Analyze Dependencies

Examine dependencies:

Step 3: Semantic Versioning Analysis

Analyze version numbers using semantic versioning (semver):

  1. Parse version numbers:
  1. Detect major version bumps:
  1. Check changelogs for breaking changes:
  1. Semantic Versioning Rules:
  1. Breaking Change Detection:

Step 4: Check for Updates

Check available updates:

Step 4: Security Audit

Check for vulnerabilities:

Step 5: Generate Report

Create dependency report:

</execution_process>

<integration>

Integration with DevOps Agent:

Integration with Security Architect Agent:

</integration>

<best_practices>

  1. Regular Analysis: Analyze dependencies regularly
  2. Security First: Prioritize security updates
  3. Test Updates: Always test after updates
  4. Gradual Updates: Update incrementally
  5. Document Changes: Track update decisions

</best_practices>

</instructions>

<examples>

<formatting_example>

Dependency Health Report

# Dependency Health Report

## Summary

- Total Dependencies: 45
- Outdated: 12
- Vulnerable: 3
- Up to Date: 30

## Outdated Packages

- react: 18.0.0 → 18.2.0 (minor update)
- next: 13.4.0 → 14.0.0 (major update - breaking changes)
- typescript: 5.0.0 → 5.3.0 (patch update)

## Security Vulnerabilities

- lodash: 4.17.20 (CVE-2021-23337) - Update to 4.17.21
- axios: 0.21.1 (CVE-2021-3749) - Update to 1.6.0

## Update Recommendations

1. Update patch versions (safe)
2. Review minor updates (low risk)
3. Plan major updates (breaking changes)

</formatting_example>

<formatting_example>

Update Plan

# Dependency Update Plan

## Phase 1: Patch Updates (Safe)

- Update lodash: 4.17.20 → 4.17.21
- Update typescript: 5.0.0 → 5.3.0

## Phase 2: Minor Updates (Low Risk)

- Update react: 18.0.0 → 18.2.0
- Update @types/node: 20.0.0 → 20.10.0

## Phase 3: Major Updates (Breaking Changes)

- Update next: 13.4.0 → 14.0.0
  - Breaking changes: [List]
  - Migration steps: [Steps]
  - Testing required: [Tests]

</formatting_example>

</examples>

<examples>

<usage_example>

Example Commands:

# Analyze dependencies
Analyze dependencies for this project

# Check for updates
Check for dependency updates

# Security audit
Perform security audit of dependencies

# Generate update plan
Generate update plan for major version updates

</usage_example>

</examples>

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.