smithery.ai

add-dependency

Add a new third-party dependency to the project following the version catalog and approval workflow.

First seen Apr 6, 2026

Installation

$ npx skills add https://smithery.ai

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery.ai · top by installs.

npx skills add https://smithery.ai

Browse all from smithery.ai

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,898 B
  • docs SUMMARY.md 122 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 1 installs

SKILL.md

Add Third-Party Dependency

This skill outlines the necessary steps to validly adding a new dependency to the project.

Workflow

  1. Verify Necessity:

Goal: Ensure the dependency is absolutely necessary. Action: Avoid adding new third-party dependencies unless there is no tailored solution available or implementing it manually helps the project significantly. * Action: You MUST get user approval before adding any new third-party dependency. Explain why it is needed and what alternatives were considered.

  1. Find Latest Version:

Goal: Use the most up-to-date stable version. Action: Perform a web search to determine the latest stable version of the library. * Example: search_web(query="latest version of retrofit")

  1. Update Version Catalog:

Goal: Centralize dependency management. Action: Add the dependency to gradle/libs.versions.toml. * Format: ```toml [versions] libraryName = "1.2.3"

[libraries] library-artifact = { group = "com.example", name = "library-artifact", version.ref = "libraryName" } ```

  1. Sync and Build:

Goal: Verify the dependency is resolved correctly. Action: Run a build or sync command to ensure the new dependency doesn't break the build. * Command: ./gradlew assembleDebug (or relevant task).

Guidelines

  • Approval First: Do not modify files before getting confirmation from the user (unless in a fully autonomous mode where this is pre-approved).
  • No Hardcoding: Never put version numbers directly in build.gradle.kts files. Always use the version catalog (libs.versions.toml).