Command Palette

Search for a command to run...

Назад к скиллам
скилл № 56372

dependency-analysis

Derive a code repository's real dependency picture from its own manifests, lockfiles, build config and build output — what the build ships versus what it…

БесплатноБез исполняемых скриптов
VigilOSSот VigilOSS★ 35 звёзд на GitHub

Установить dependency-analysis в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

Dependency Analysis

When to Activate

  • A code engagement has a sealed repository and you need to know what third-party code actually runs inside it.
  • A component looks interesting and you need to establish whether the build ships it before spending a dispatch on it.
  • Someone hands you a Trivy/Grype/ECR report and you need to know which of its rows name an artifact this repository actually builds.
  • A finding depends on a library version and you need the version the build resolves, not the range a manifest requests.

Not for: web-side CVE intake (that is the recon/intel track), mobile SDK inventory (sdk-supply-chain-security), or CI/CD pipeline review (cicd-security).

The Question This Skill Answers

A dependency list is not a finding. Two facts turn a component into work worth doing:

  1. The build ships it. A provided jar, a compileOnly Gradle entry, a peer dependency, a build-system.requires entry and a devDependency are all declared and none of them are in the artifact. Conversely, a shaded jar ships under a name no manifest contains, and a vendored copy ships with no declaration at all.
  2. The reviewed code reaches it. A shipped library nothing imports is a different risk from one the request path runs through.

Only the intersection is a lead. Reporting the whole dependency list is the failure mode: it buries the two or three components that matter under hundreds that do not, and it trains the operator to stop reading.

A clean picture — no shipped-and-reachable component with a known problem — is a valid, complete result. Do not manufacture volume.

Tools

  • vigil assess code-dependencies <repo-path> — the derivation. Reads every dependency-declaring file in the tree and reports, per component, a shipment observation and a reachability observation. --json for the full record set, --structural-index to bring in import evidence, --scan-report to correlate a scanner report as a secondary input. Run vigil assess contract code-dependencies for the payload shape and vigil assess code-dependencies --help for flags.
  • vigil assess code-index build — produces the import index the reachability pass consumes. Without it, every component comes back unverified_reachability_unindexed.
  • vigil assess code-ingest — must have sealed the repository first; run the derivation against the sealed snapshot, not a live working tree.

Nothing Here Is a Verdict

Every value the tool emits is prefixed unverified_ and names an observation, not a conclusion. That is structural, not stylistic: build files do not settle what a built artifact contains. A Gradle script is a program. A Maven property can come from a parent POM that is not in the tree. A distribution name is not an import name (PyYAML imports as yaml). Reflection, service loaders, JNI and dynamic require are invisible to an import index.

Three distinctions carry the honesty of this skill. Learn them before reading a report:

Observation What it means What it does NOT mean
unverified_excluded_by_declared_scope A build file declared a scope that normally keeps the component out of the artifact The bytes are absent. Confirm against the artifact.
unverified_no_reference_observed The declaring module's own index, in a language that could import it, was read and nothing matched The code does not use it. Reflection and dynamic loading are invisible here.
unverified_reachability_unindexed The declaring module had no index to read, its index degraded or was unreadable, or it covers no language that could import this component Anything at all. This is the absence of a measurement.

unverified_reachability_unindexed is never evidence. If you see it on a component you care about, build the index and re-run; do not reason from it.

Every record ships the detection marker naming the reader that produced it and the verbatim evidence (file, line, exact text) it was derived from. Quote the evidence when you record a finding. gradle_script_regex is the weakest reader in the set — treat anything it produced as a prompt to read the build script yourself.

Core Workflow

1. Seal and index first

Run against the sealed snapshot path from code-ingest, and build the structural index before the derivation so reachability is a real measurement rather than a blank. Reference repositories (repo_role: reference) are host/framework source — their manifests describe someone else's build and carry no obligation here.

2. Derive the picture

vigil assess code-dependencies <sealed-source-path> \
  --structural-index <code-index generation>/manifest.json --json

Read the sections in order. The command puts the intersection first on purpose.

3. Work the lead set

For each shipped-and-reachable component: pull the version the build resolves (not the declared range), check it against advisories, and — before recording an

Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл dependency-analysis?

Derive a code repository's real dependency picture from its own manifests, lockfiles, build config and build output — what the build ships versus what it merely declares, and which shipped components the reviewed code reaches

Как установить скилл dependency-analysis?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл dependency-analysis запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить dependency-analysis с