Évaluation WARM des dépendances

VérifiéSûr

Évalue chaque dépendance ajoutée ou mise à jour par une branche selon les critères WARM (Utile, Actif, Adapté, Sécurisé). Utilisé pour vérifier les nouvelles dépendances avant fusion.

Spar Skills Guide Bot
SecuriteIntermédiaire
28/07/2026
Claude Code
#dependency-review#supply-chain#code-review#git-diff#vulnerabilities

Recommandé pour

Synthèse automatique

Cette skill compare une branche à sa branche de base, repère les dépendances directes ajoutées ou mises à jour dans les manifestes de tous les écosystèmes, puis note chacune selon la grille WARM (utile, vivante, bien dimensionnée, maintenue de façon sûre).

Points forts

  • Couvre de nombreux écosystèmes (npm, Composer, pip, Go, Cargo, Maven/Gradle, .NET, Mix, pub, Swift) sans se limiter à une liste fermée
  • Distingue les nouvelles dépendances directes (évaluation WARM complète) des simples montées de version (A et M seulement) et ignore les suppressions
  • Base ses verdicts sur des sources concrètes : usage réel dans le code, historique de commits et de releases, audits et avis de sécurité
  • S'arrête proprement avec un message explicite quand aucun manifeste n'a changé, ce qui évite les faux rapports

Limites

  • Ne juge que les dépendances directes ; les paquets transitifs ne sont mentionnés que s'ils portent un avis de sécurité connu
  • La qualité des réponses dépend fortement de WebSearch/WebFetch et des outils d'audit disponibles : hors ligne ou sans accès réseau, les critères A et M deviennent fragiles
  • Le seuil « environ 20 lignes de code » du critère W reste une heuristique subjective, à interpréter au cas par cas
Quand l'utiliser

À utiliser avant de fusionner une branche ou une pull request qui ajoute ou met à jour des dépendances, pour décider quoi garder, remplacer ou épingler.

Quand l'éviter

À éviter pour auditer l'ensemble de l'arbre de dépendances d'un projet existant ou pour des paquets transitifs, car la skill se concentre sur les ajouts directs de la branche.

Analyse de sécurité

Sûr
Score qualité86/100

Every granted tool is read-only and directly tied to the stated job: git inspection, package-registry queries, ecosystem audit commands, and file reading. There is no curl|sh, no rm, no credential/token access, no obfuscation, and the instructions explicitly forbid fabricating findings and require disclosing what could not be verified. The only mild exposure is broad `cat`/`grep`/`WebFetch` reach, which is normal for a dependency-audit skill and not steered toward secrets or exfiltration.

Points d'attention
  • •`Bash(cat:*)` / `Bash(grep:*)` / `Bash(find:*)` / `Bash(ls:*)` are unscoped, so the agent could read files outside dependency manifests; this is inherent to the task and not directed at anything sensitive.
  • •`WebFetch`/`WebSearch` are used to reach registries and advisory databases; URLs are chosen at runtime by the agent, so arbitrary pages are reachable, though nothing instructs sending data out.
  • •Read-only tool surface overall: no write, delete, install, or network-posting commands are granted.
Comment cette analyse est faite

Exemples

Check a branch
/warm main
Vet a PR's new dependencies
WARM check this branch before I open the PR — tell me which of the dependencies it adds I should keep, pin, or drop.
Non-default base branch
/warm develop — review the dependencies this feature branch pulls in.

name: warm description: 🌡️ Evaluate every dependency a branch pulls in — client or server, any language — against the WARM check (Worth it, Alive, Right-sized, Maintained securely). Diffs the branch against a base, finds newly added or upgraded direct dependencies across all manifests, and scores each one. Use when the user asks to "WARM check" a branch, vet new dependencies, or review what a PR adds to the dependency tree. argument-hint: "[base branch]" disable-model-invocation: true allowed-tools: "Bash(git diff:), Bash(git log:), Bash(git merge-base:), Bash(git rev-parse:), Bash(git status:), Bash(git show:), Bash(npm audit:), Bash(npm view:), Bash(composer audit:), Bash(pip-audit:), Bash(cat:), Bash(find:), Bash(ls:), Bash(grep:), Read, Grep, Glob, WebSearch, WebFetch"

WARM

Arguments

Raw arguments: $ARGUMENTS

Parse the arguments as the base branch to diff against. If empty, default to main.

Goal

Evaluate the dependencies this branch pulls in — added or upgraded since it diverged from the base — against the WARM check, and give each one a clear verdict. Cover both client-side and server-side dependencies, in any language. The output helps the user decide which new dependencies to keep, reconsider, or pin/patch before merge.

WARM stands for:

  • Worth it? — could ~20 lines of your own code replace it? A dependency you'd write in an afternoon isn't worth the supply-chain surface.
  • Alive? — recent commits, active maintenance, real release cadence. A package last touched years ago is a liability.
  • Right-sized? — are you pulling a whole library for one function? Match the dependency's footprint to what you actually use.
  • Maintained securely? — known vulnerabilities (CVEs/advisories), unpatched issues, or a maintainer with a poor security track record.

This is about direct dependencies you chose to add. The four questions are decisions you make about your dependency — they don't apply to transitive packages dragged in underneath. Evaluate direct additions; only mention transitive packages under M when they carry a known advisory.

Instructions

1. Find what the branch pulls in

Run git diff --name-status <base>...HEAD (three-dot — changes on this branch since it diverged) and identify changed dependency manifests. These declare direct dependencies and exist in every ecosystem:

  • JS/TS (client & server): package.json
  • PHP: composer.json
  • Python: requirements*.txt, pyproject.toml, Pipfile, setup.py, setup.cfg
  • Ruby: Gemfile, *.gemspec
  • Go: go.mod
  • Rust: Cargo.toml
  • Java/Kotlin: pom.xml, build.gradle, build.gradle.kts
  • .NET: *.csproj, Directory.Packages.props, packages.config
  • Elixir: mix.exs
  • Dart/Flutter: pubspec.yaml
  • Swift: Package.swift

Don't restrict yourself to this list — if a changed file is clearly a manifest for another ecosystem, treat it as one.

For each changed manifest, run git diff <base>...HEAD -- <manifest> and extract the added dependency lines (and version bumps). Use the lockfile diff (package-lock.json, composer.lock, pnpm-lock.yaml, go.sum, Cargo.lock, etc.) only to confirm resolved versions and to spot transitive packages with advisories — not as the source of which dependencies to judge.

Scope:

  • New direct dependencies → full WARM evaluation.
  • Version upgrades of existing direct dependencies → evaluate only A and M (Worth-it and Right-sized were already decided when it was first added); note the version delta.
  • Removed dependencies → ignore.

If no manifests changed, output exactly:

✅ No dependencies added or upgraded on this branch.

…and stop.

2. Gather the facts for each dependency

Look up what you need to answer each letter honestly. Sources, in order of preference:

  • W (Worth it): read how the branch actually uses the dependency (Grep the import/require/use sites) and judge the surface area you depend on. A date-formatter used in one component is a different proposition than an HTTP client used everywhere.
  • A (Alive): check the registry/repo for last release date and recent commit activity. Use npm view <pkg> time.modified / WebFetch the registry or repo page. Note the latest release date and whether the repo is archived.
  • R (Right-sized): compare the dependency's footprint (sub-dependencies, install size, breadth of API) against the slice the branch uses. Pulling a 40-dependency framework to call one helper is not right-sized.
  • M (Maintained securely): check for known advisories. Prefer ecosystem tooling when available (npm audit, composer audit, pip-audit), otherwise WebSearch the package name + "CVE"/"advisory" and check the advisory database. Report the resolved version and whether a fixed version exists.

Honesty rule: if you cannot verify something (no network, registry unreachable, ambiguous package), say what you checked and mark that letter unknown — never fabricate a release date, version, or CVE.

3. Score and decide

For each dependency, mark each letter:

  • ✅ — fine on this dimension
  • ⚠️ — a concern worth a second look
  • ❌ — a real problem
  • ? — couldn't verify

Then give a one-word verdict derived from the marks:

  • Keep — no ❌, at most minor ⚠️.
  • Reconsider — ❌ on W or R (you probably don't need this dependency, or not this much of it).
  • Patch/Pin — ❌ on M only (the dependency is justified but has a security issue — upgrade to the fixed version or pin).
  • Replace — ❌ on A (unmaintained) or multiple ❌s.

4. Output the report

Order dependencies by concern: ❌ verdicts first, then ⚠️, then clean Keeps. Use this format exactly:

## `dayjs` — added to package.json (client)

- ✅ **Worth it** — date parsing used across 6 components; non-trivial to hand-roll correctly
- ✅ **Alive** — last release 2 months ago, active repo
- ✅ **Right-sized** — 2KB, zero dependencies, tree-shakeable
- ✅ **Maintained securely** — no known advisories for 1.11.x

**Verdict: Keep**

## `left-pad` — added to package.json (client)

- ❌ **Worth it** — single use, pads a string; ~5 lines of your own code replaces it
- ⚠️ **Alive** — last release 4 years ago
- ✅ **Right-sized** — tiny, no sub-dependencies
- ✅ **Maintained securely** — no known advisories

**Verdict: Reconsider** — inline it rather than take the supply-chain surface.

## `guzzlehttp/guzzle` — upgraded 7.4.0 → 7.4.5 in composer.json (server)

- ✅ **Alive** — actively maintained
- ❌ **Maintained securely** — 7.4.0 affected by GHSA-xxxx (cookie leak); 7.4.5 fixes it

**Verdict: Patch/Pin** — the upgrade resolves the advisory; keep it.

End with a one-line summary: N dependencies evaluated — X keep, Y reconsider, Z replace/patch.

Rules

  • Judge only what the branch pulls in. Don't audit the whole pre-existing dependency tree — only additions and upgrades since the base branch.
  • Direct dependencies get the full WARM. Transitive packages appear only under M, and only when they carry a known advisory.
  • Cover client and server. Label each dependency with which side it lives on (and which manifest) so the user can place it.
  • Language-agnostic. Treat any manifest from any ecosystem the same way. Don't skip a dependency because it's in a language you'd handle differently.
  • Don't fabricate facts. Release dates, versions, and advisories must come from a real lookup. If you can't verify, mark ? and say what you checked.
  • One concern per bullet. Each WARM letter is one line; don't merge two findings.
  • Be specific and quantified. "last release 4 years ago", "pulls 40 sub-dependencies", "GHSA-xxxx fixed in 7.4.5" — not "looks old" or "might have issues".
  • The verdict follows from the marks. Don't soften a ❌ into a Keep, or hedge a clean dependency into a Reconsider. State the verdict plainly.
  • No preamble. Start with the first ## dependency heading (or the no-dependencies line). No "Here's the WARM check…".
  • Don't change any files. This skill evaluates and reports — it doesn't remove dependencies, edit manifests, or run installs.

Du fichier au premier essai

Le téléchargement contient exactement le contenu affiché sur cette fiche. Cette copie peut différer de la dernière version du dépôt source.

Consulter la source et ses fichiers annexes

Ce téléchargement contient uniquement SKILL.md. Les scripts, références, modèles et dépendances éventuels ne sont pas inclus. Récupérez les fichiers nécessaires depuis la source en conservant leur arborescence avant de poursuivre.

1. Télécharger le fichier

Télécharger SKILL.md

Depuis la racine d’un projet de test, enregistrez le fichier sous .skill-downloads/warm-dependency-evaluation-ms47vplx/SKILL.md, ou utilisez la commande suivante. Ce dossier sert à examiner la skill avant son installation.

Commande pour macOS/Linux ou WSL : un shell POSIX et curl sont nécessaires. Sous Windows sans WSL, utilisez le bouton de téléchargement et créez le dossier manuellement.

mkdir -p '.skill-downloads/warm-dependency-evaluation-ms47vplx' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/warm-dependency-evaluation-ms47vplx/download' --output '.skill-downloads/warm-dependency-evaluation-ms47vplx/SKILL.md.part' && mv '.skill-downloads/warm-dependency-evaluation-ms47vplx/SKILL.md.part' '.skill-downloads/warm-dependency-evaluation-ms47vplx/SKILL.md'

2. Vérifier les prérequis

Lisez SKILL.md avant de l’utiliser. Si le fichier cite des scripts ou services externes, examinez-les et préparez les accès nécessaires dans votre environnement de test.

Outils déclarés par l’auteur (à vérifier dans votre agent) : Bash(git diff:*), Bash(git log:*), Bash(git merge-base:*), Bash(git rev-parse:*), Bash(git status:*), Bash(git show:*), Bash(npm audit:*), Bash(npm view:*), Bash(composer audit:*), Bash(pip-audit:*), Bash(cat:*), Bash(find:*), Bash(ls:*), Bash(grep:*), Read, Grep, Glob, WebSearch, WebFetch

Aucune section de prérequis reconnue dans ce fichier. Cela ne signifie pas qu’il est autonome : les bibliothèques, outils et accès peuvent être cités ailleurs dans le contenu ou dans le dépôt source.

Les plateformes de la fiche sont des indications du catalogue. Les chemins ci-dessous suivent la documentation des outils ; ils ne prouvent pas que cette skill y a été exécutée. Aucune version minimale de ces outils n’est attestée pour cette fiche.

3. Charger la skill

Après vérification, copiez le dossier complet dans le projet avec l’une des commandes ci-dessous, puis ouvrez une nouvelle session de l’outil. La commande s’arrête si un dossier du même nom existe déjà : comparez les fichiers avant de le remplacer.

Claude Code
test -f '.skill-downloads/warm-dependency-evaluation-ms47vplx/SKILL.md' && test -s '.skill-downloads/warm-dependency-evaluation-ms47vplx/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/warm' && cp -R '.skill-downloads/warm-dependency-evaluation-ms47vplx' '.claude/skills/warm'

OpenSkills

OpenSkills doit déjà être installé. La procédure locale install/read est contrôlée avec OpenSkills 1.5.0, qui exige Node.js ≥ 20.6.0. Aucun slug du catalogue n’est résolu automatiquement.

Installation officielle d’OpenSkills
openskills install './.skill-downloads/warm-dependency-evaluation-ms47vplx'

openskills read 'warm-dependency-evaluation-ms47vplx'

La lecture doit afficher le contenu du fichier installé et son dossier de base. Elle ne lance ni la skill ni ses dépendances.

Pour un agent qui lit AGENTS.md, synchronisez ensuite l’index. Cette commande modifie AGENTS.md : relisez le diff avant de l’utiliser.

openskills sync

Mode manuel ou autre outil : joignez SKILL.md à une conversation, ou ouvrez-le dans un agent capable de lire les fichiers. Ajoutez les ressources annexes nécessaires. Il n’existe pas de dossier universel reconnu par tous les outils.

4. Faire un premier essai

Utilisez une entrée courte et fictive : un endpoint d’API, un petit document ou un brief d’interface. Dans une nouvelle conversation, joignez le fichier ou donnez son chemin à l’agent, puis adaptez cette demande :

Lis .skill-downloads/warm-dependency-evaluation-ms47vplx/SKILL.md et applique ses instructions à cet exemple : [décrire une entrée de test]. Indique les fichiers, dépendances ou accès qui manquent. Produis le résultat demandé par la skill sans inventer de données ni exécuter de script non examiné.

Résultat attendu : une sortie correspondant aux instructions de la skill, ou une liste précise des prérequis manquants. Une simple confirmation de lecture ne valide pas le premier usage. Si une ressource externe est indisponible, ce parcours reste à tester.

Skills similaires