diet-assess-risk
БесплатноБез исполняемых скриптовНе проверенDeep-dive security risk analysis for a dependency flagged by uzomuzo diet
от future-architect★ 46 звёзд на GitHubОб этом скилле
Diet Risk Assessment: $ARGUMENTS
Analyze the security risk of keeping a dependency identified by uzomuzo diet. This command performs deep data-flow analysis that diet's automated scoring cannot do.
When to use: After uzomuzo diet flags a dependency as EOL/Stalled/Archived/Review Needed, or scan flags a malicious or dormant-release version. Dependencies diet reports as unused (is_unused: true, with coupling actually measured) usually just need removing; a "trivial" label alone is not enough, because it is also what unmeasured coupling looks like.
Relationship to diet skills:
uzomuzo diettells you what to remove and how hard (automated, broad)/diet-assess-risktells you how dangerous it is to keep (LLM-powered, deep) -- this skill/diet-evaluate-removaltells you whether removal is worth it and how to replace (LLM-powered, per-dep)/diet-removeexecutes the removal (issue or PR)
Do NOT assess replacement options or removal feasibility here -- that is /diet-evaluate-removal's job. This skill answers one question: "If we keep this dependency unchanged for the next 12 months, what is the realistic security exposure?"
Phase 0: Input normalization
Determine input mode and normalize to a diet entry before analysis.
Mode A: Diet JSON available
Extract the target dependency's entry from the diet JSON:
uzomuzo diet --sbom bom.json --source . --format json | jq '.dependencies[] | select(.name == "TARGET")'
Or read from a saved diet JSON file. All fields are available.
Mode B: PURL only (no diet JSON)
Run uzomuzo scan <purl> to get health signals. Mark coupling fields (import_file_count, call_site_count, api_breadth, symbols, import_files) as "unavailable". Proceed with Phase 1 Steps 1-2 and Phase 3 only. Skip Phase 1 Steps 3-4 (no coupling data to filter) and Phase 2 (no source code). When classifying threat profile in Step 2, treat absent import_file_count as "assume > 0" (conservative — do not default to SUPPLY-CHAIN-ONLY). In the verdict, omit the "Security-relevant coupling" line and note "Source coupling data unavailable" in Limitations.
Mode C: "top N"
Sort diet entries by health_risk * (1 - coupling_effort) descending (both fields are 0.0-1.0 normalized). This prioritizes dependencies that are both unhealthy and actionable — high health risk combined with lower coupling effort gives the best risk-reduction ROI. Run Phase 0-3 for each of the top N entries (N is user-specified, default 5), then produce the summary table.
If coupling was not measured -- every entry without a scope has import_file_count = 0 and is_unused = false. That happens when source analysis is skipped, fails, or matches no import because --source points at the wrong directory; the top-level source_root cannot tell you, because the CLI fills it with . by default. Then every coupling_effort is 0 and this sort degenerates to health_risk alone. Say so above the summary table, and treat each entry as Mode B for coupling.
Each entry's assessment is independent. If your environment can run subagents, assess the N entries in parallel, one subagent per dependency, each returning only its verdict block; then build the summary table from the returned blocks. Separate contexts also stop one dependency's data flows from leaking into another's scenarios.
Signals that are not in diet JSON (all modes)
Diet JSON does not carry the OSV malicious-package check or the npm dormant-release marker, and its vulnerability fields describe the package's latest release (including advisories in that release's own dependencies) rather than the version you ship. Before the early exits, fetch these for the exact version in the SBOM:
uzomuzo scan "pkg:npm/[email protected]" --format json \
| jq '.packages[0] | {lifecycle, reason, stable_version, malicious, malicious_check, dormant_release,
direct_advisory_count, transitive_advisory_count, max_cvss3_score, max_cvss4_score}'
uzomuzo runs the malicious-package check only for npm, PyPI, crates.io, Go, and Maven. For other ecosystems (NuGet, GitHub Actions, ...) neither malicious nor malicious_check appears, which means "not checked", not "clean".
Then check the pinned version's advisories with an OSV-backed tool (osv-scanner, govulncheck, npm audit, pip-audit). Record both: "advisories on the pinned version" and "advisories still present on the latest release" (diet's vulnerability_count, split by scan into direct_advisory_count and transitive_advisory_count). Direct advisories on the latest release mean upgrading does not help; transitive-only ones live in a package this one depends on, and the data-flow analysis below should target that package's role, not this one's.
Early exits
- If scan returns a
maliciousobject: Stop the normal flow. Report "Malicious version (advisory {advisory_id}) -- Remove urgently." Data-fl
Установить diet-assess-risk в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл diet-assess-risk?
Deep-dive security risk analysis for a dependency flagged by uzomuzo diet
Как установить скилл diet-assess-risk?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл diet-assess-risk запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic