inceptyon-labs/tenet-skills/tenet-dependencies

Claude Code and agent skill by inceptyon-labs/tenet-skills

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Audits dependencies for CVEs, stale packages, duplicates, unused deps, and outdated versions.

Install

npx vskill@latest install inceptyon-labs/tenet-skills/tenet-dependencies

SKILL.md

The same SKILL.md was published earlier as inceptyon-labs/tenet-skills/tenet-dependencies.

Tenet Dependencies — Dependency Health Audit

Audits project dependencies for security vulnerabilities, maintenance status, duplication, staleness, and unused packages. Combines deterministic toolchain output with heuristic analysis of manifest files.

Purpose

This skill evaluates the health of a project's dependency tree across five dimensions: known CVEs (security vulnerabilities with published advisories), unmaintained packages (no release in >2 years), duplicate dependencies (multiple packages serving the same purpose), unused dependencies (declared but never imported), and severely outdated versions (pinned to old majors when newer majors exist). It consumes toolchain output from vulnerability scanners and supplements with its own manifest analysis.

Calibration — read first

Follow shared/scan-discipline.md (complete every step, enumerate rather than sample, and §2a: report only issues that actually exist), shared/verification.md (every finding is confirmed against the code before it ships; unconfirmed candidates are dropped, not demoted), and shared/severity.md (severity is confirmed impact, never a hedge for doubt).

A finding must exist in this codebase on a path that can run. Do not report hypotheticals, dead code, style preferences, or anything an upstream check already prevents. Zero findings for a step is the normal result on healthy code; do not fill a step to show you looked. Do not overthink it: read the code and its context, decide, move on.

Language Support Matrix

yaml
support:
native: [typescript, javascript, python, go, rust]
heuristic: [java, ruby, php]
skip: [yaml, json, markdown, css, html, shell, terraform, dockerfile]
  • Native (npm/pip/go/cargo): Full manifest parsing, lockfile analysis, vulnerability cross-referencing, outdated version detection.
  • Heuristic (Java/Ruby/PHP): Manifest parsing (pom.xml/build.gradle, Gemfile, composer.json) with limited version analysis. Vulnerability detection depends on toolchain (trivy/osv-scanner).

Toolchain Inputs

This skill consumes the following .healthcheck/toolchain/ files if available:

FileToolWhat It Provides
npm_audit.jsonnpm auditKnown CVEs in npm dependency tree
pip_audit.jsonpip-auditKnown CVEs in Python packages
osv_scanner.jsonosv-scannerOSV database CVEs across ecosystems
trivy.jsontrivyContainer and filesystem vulnerability scan

If none of these toolchain files exist, the skill falls back to its own heuristic analysis of manifest files. Toolchain findings have "confidence": "deterministic", while heuristic findings use "confidence": "heuristic".

It also reads:

  • .healthcheck/toolchain/language-census.json — to determine which ecosystems are present

Procedure

Step 0: Read Language Census and Detect Ecosystems

Read .healthcheck/toolchain/language-census.json. Identify which package ecosystems are present:

bash
# Check for manifest files
ls package.json package-lock.json yarn.lock pnpm-lock.yaml 2>/dev/null # npm/yarn/pnpm
ls requirements.txt requirements/*.txt Pipfile pyproject.toml setup.py setup.cfg 2>/dev/null # pip
ls go.mod go.sum 2>/dev/null # go
ls Cargo.toml Cargo.lock 2>/dev/null # cargo/rust
ls pom.xml build.gradle build.gradle.kts 2>/dev/null # java
ls Gemfile Gemfile.lock 2>/dev/null # ruby
ls composer.json composer.lock 2>/dev/null # php

If no manifest files are found, mark the dimension as applicable: false and write a minimal report.

Step 1: Known CVE Detection
1a: Consume Toolchain Output

For each available toolchain file, parse the normalized findings:

bash
# Read and parse each available toolchain file
cat .healthcheck/toolchain/npm_audit.json 2>/dev/null
cat .healthcheck/toolchain/pip_audit.json 2>/dev/null
cat .healthcheck/toolchain/osv_scanner.json 2>/dev/null
cat .healthcheck/toolchain/trivy.json 2>/dev/null

For each vulnerability found:

  • Extract: package name, installed version, vulnerable range, CVE ID, severity (CVSS), advisory URL
  • Map tool severity to Tenet severity:
  • CVSS >= 9.0 or tool "critical" → critical
  • CVSS >= 7.0 or tool "high" → major
  • CVSS >= 4.0 or tool "medium" → minor
  • CVSS < 4.0 or tool "low" → info
  • Deduplicate: if multiple tools report the same CVE for the same package, keep only one finding (prefer the toolchain source with more detail)
1b: Fallback — Run npm audit / pip-audit If Available

If no toolchain files exist for an ecosystem but the tool is available:

bash
# npm ecosystem
npm audit --json 2>/dev/null | jq '.vulnerabilities'
# pip ecosystem
pip-audit --format json 2>/dev/null

Parse the output using the same mapping as 1a. Tag these findings with "confidence": "deterministic" since the tool output is authoritative.

Step 2: Unmaintained Package Detection

Check for packages that have not had a release in over 2 years. This indicates potential abandonment — security patches and compatibility updates are unlikely.

npm Ecosystem
bash
# For each direct dependency in package.json, check the last publish date
# Use npm view to get the time metadata
jq -r '.dependencies // {} | keys[]' package.json 2>/dev/null | while read pkg; do
npm view "$pkg" time.modified 2>/dev/null
done

Note: This step requires network access. If npm view is not available or the network is unrestricted, fall back to checking the lockfile for version age heuristics.

Python Ecosystem
bash
# Check PyPI for last release date
# Use pip index versions or parse pyproject.toml/requirements.txt
pip index versions <package> 2>/dev/null
Curated List of Known-Problematic Packages

Flag immediately if any of these are found in dependencies (regardless of network availability):

PackageEcosystemIssue
requestnpmDeprecated since 2020, no security patches
node-uuidnpmDeprecated, use uuid
nomnomnpmUnmaintained since 2015
istanbulnpmReplaced by nyc / c8
tslintnpmDeprecated, use eslint with @typescript-eslint
left-padnpmHistorical incident, use String.padStart
bowernpmDeprecated package manager
coffeescriptnpmEffectively unmaintained
nosepipUnmaintained since 2015, use pytest
pycryptopipUnmaintained, use pycryptodome or cryptography
optparsepipDeprecated, use argparse
distributepipMerged into setuptools
fabric (v1)pipUse fabric2
flask-scriptpipUnnecessary since Flask 0.11+ CLI

Severity: major for deprecated packages with known security implications. minor for packages that are simply unmaintained but have no known vulnerabilities.

Step 3: Duplicate Dependency Detection

Identify multiple packages that serve overlapping purposes — this bloats the dependency tree and creates maintenance burden.

Common Duplicate Groups
GroupPackagesRecommendation
HTTP clientaxios, got, node-fetch, request, superagentPick one
Date/timemoment, date-fns, dayjs, luxonPick one
Validationjoi, yup, zod, class-validator, superstructPick one
Utility beltlodash, underscore, ramdaPick one
Loggingwinston, pino, bunyan, log4jsPick one
ORM/querysequelize, typeorm, prisma, knex (unless deliberate)Pick one
Test runnerjest, mocha, vitest, ava, tapPick one
CSS-in-JSstyled-components, emotion, linaria, vanilla-extractPick one
bash
# Read dependencies from package.json
jq -r '(.dependencies // {}) + (.devDependencies // {}) | keys[]' package.json 2>/dev/null

Cross-reference against the duplicate groups. Flag if two or more packages from the same group appear.

Severity: minor for duplicate utility packages. info for duplicate dev dependencies (less impactful since they don't ship to production).

Step 4: Unused Dependency Detection

Detect dependencies declared in the manifest but never imported in source code.

npm Ecosystem
bash
# Get all declared dependencies
DEPS=$(jq -r '.dependencies // {} | keys[]' package.json 2>/dev/null)
# For each dependency, check if it's imported anywhere in source
for dep in $DEPS; do
# Search for import/require of this package
git grep -qP "from ['\"]${dep}['\"/]|require\(['\"]${dep}['\"/]" -- \
'*.ts' '*.tsx' '*.js' '*.jsx' '*.mjs' '*.cjs'
done

Important exclusions — do NOT flag:

  • Packages used via CLI (eslint, prettier, typescript, ts-node, etc.)
  • Packages used via config files (@babel/preset-env, postcss-*, tailwindcss, autoprefixer)
  • @types/* packages (TypeScript type definitions, used implicitly)
  • Packages referenced in scripts in package.json
  • Webpack/Vite/Rollup plugins (used via bundler config)
  • Packages that are peer dependencies of other installed packages
  • devDependencies used only in test/build tooling
Python Ecosystem
bash
# Parse requirements.txt or pyproject.toml for declared packages
# Search for imports matching package names (handle name mapping: e.g., Pillow -> PIL)
git grep -nP "^import |^from " -- '*.py'

Severity: minor for unused production dependencies. info for unused dev dependencies.

Step 5: Severely Outdated Version Detection

Flag dependencies pinned to very old major versions when significantly newer versions exist.

npm Ecosystem
bash
# Run npm outdated to get current vs latest versions
npm outdated --json 2>/dev/null

Parse the output. Flag if:

  • The installed major version is 2+ majors behind the latest (e.g., installed v3.x, latest v6.x)
  • The package has published security advisories for the installed major
Python Ecosystem
bash
# Check for outdated packages
pip list --outdated --format json 2>/dev/null
Go Ecosystem
bash
# Check for available updates
go list -m -u all 2>/dev/null

Severity mapping:

  • 3+ major versions behind with known CVEs in installed range → critical
  • 3+ major versions behind → major
  • 2 major versions behind → minor
  • 1 major version behind → info
Step 6: Compile Findings

For each detected issue, create a finding object:

json
{
"dimension": "dependencies",
"severity": "critical",
"title": "CVE-2023-44270: postcss ReDoS vulnerability",
"description": "postcss 8.4.20 is affected by CVE-2023-44270, a Regular Expression Denial of Service (ReDoS) vulnerability in the parsing of CSS values. An attacker can craft a malicious CSS input that causes catastrophic backtracking, hanging the process. The fix is available in postcss >= 8.4.31.",
"file": "package.json",
"line": null,
"snippet": "\"postcss\": \"^8.4.20\"",
"fix_prompt": "...",
"confidence": "deterministic"
}
Step 7: Compute Score

Apply the standard scoring formula:

  1. Start at 100
  2. Subtract: 5 x critical + 2 x major + 0.5 x minor
  3. Floor at 0, ceil at 100, round to integer
  4. Info findings do NOT affect the score
Step 8: Write Report

Write .healthcheck/reports/dependencies.json:

This is the start of the file. Read the full SKILL.md on GitHub.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/inceptyon-labs/tenet-skills/tenet-dependencies/badge)](https://verified-skill.com/skills/inceptyon-labs/tenet-skills/tenet-dependencies)

Something wrong with this skill or its page? Tell us.