Receber por email
← Voltar para o catálogo

add-dependency

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

367estrelas
Atualizado há 4 meses

Ver no GitHub ↗

Como adicionar

/plugin marketplace add aiskillstore/marketplace

O comando exato pode variar conforme o repositório. Confira o README no GitHub.

Para o autor da skill

Cole no README do seu repo

Mostra que sua skill está catalogada na Skillteca, gera backlink e tráfego rastreável.

[![Skillteca](https://www.skillteca.com.br/api/badge/add-dependency/svg)](https://www.skillteca.com.br/skills/add-dependency)

Skills relacionadas

Ver todas de Segurança →

Alerta por categoria

Receba novas skills de Segurança toda segunda

1 email curto, só com as skills novas de Segurança. 4 minutos de leitura, sem spam, cancela com 1 clique.

Você confirma o email no primeiro envio. Sem spam. Cancela com 1 clique.

Ler descrição completa

Add Third-Party Dependency

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

Workflow

  1. Verify Necessity:
  2. Goal: Ensure the dependency is absolutely necessary.
  3. Action: Avoid adding new third-party dependencies unless there is no tailored solution available or implementing it manually helps the project significantly.
  4. 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:
  2. Goal: Use the most up-to-date stable version.
  3. Action: Perform a web search to determine the latest stable version of the library.
  4. Example: search_web(query="latest version of retrofit")
  1. Update Version Catalog:
  2. Goal: Centralize dependency management.
  3. Action: Add the dependency to gradle/libs.versions.toml.
  4. Format:

```toml [versions] libraryName = "1.2.3"

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

  1. Sync and Build:
  2. Goal: Verify the dependency is resolved correctly.
  3. Action: Run a build or sync command to ensure the new dependency doesn't break the build.
  4. 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).
Compartilhar X LinkedIn