dependency-audit

Audit codebase syntax and API usage against dependency documentation.

Updated Sep 21, 2024
One-click install
npx skills add https://github.com/JasonLo/code-template --skill dependency-audit-jasonlo
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dependency-audit
Source: https://github.com/JasonLo/code-template/tree/main/%7B%7Bcookiecutter.project_name%7D%7D/.claude/skills/dependency-audit
Command: npx skills add https://github.com/JasonLo/code-template --skill dependency-audit-jasonlo

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps ensure your codebase is up-to-date and compliant with the latest versions of your project's dependencies, preventing future compatibility issues and leveraging modern best practices.

Core Features & Use Cases

  • Detect Deprecated APIs: Identifies and flags the use of deprecated or removed functions and classes in your code.
  • Check Import Paths: Verifies that import statements follow current conventions and flags outdated paths.
  • Ensure Version Compatibility: Audits code against specific dependency versions to catch breaking changes.
  • Use Case: Before a major library upgrade, run this skill to proactively identify all code that needs to be updated due to deprecated features, minimizing risks during the upgrade process.

Quick Start

Run a dependency audit on the current project to identify any deprecated APIs or import path issues.

Frequently Asked Questions about dependency-audit

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I check my codebase for deprecated APIs before a library upgrade?

A dependency audit detects deprecated APIs by parsing your project's dependency manifests and cross-referencing your code's API usage with version-specific documentation. It flags removed features and outdated patterns to ensure version compatibility.

Can I run a dependency audit for Python, Node.js, Rust, and Go projects?

Yes, dependency audits support Python, Node.js, Rust, and Go projects. The audit parses language-specific dependency manifests and cross-references API usage with fetched version-specific documentation to flag deprecated features and outdated import paths.

What is a dependency audit and how does it identify outdated import paths?

A dependency audit is a codebase analysis that verifies import statements follow current conventions and flags outdated paths. It cross-references your codebase syntax against project dependency documentation to detect deprecated or removed functions and classes.

How do I ensure version compatibility when updating project dependencies?

To ensure version compatibility when updating dependencies, audit your codebase against specific dependency versions to catch breaking changes. This proactively identifies all code requiring updates due to deprecated features, minimizing upgrade risks.

What are the limitations of using web search to fetch version-specific documentation for codebase analysis?

The limitation of using web search for codebase analysis is that the audit depends on the availability and accuracy of fetched version-specific documentation. It requires parsing dependency manifests correctly to successfully identify deprecated APIs and removed features.