تخطَّ إلى المحتوى
Skillsify
العودة إلى السجلّ
الأمانv1.0.3741 تثبيت

dependency-risk-review

Reviews third-party dependencies for supply-chain and licence risk. Use when the user asks to audit dependencies, evaluate whether to add a package, review a lockfile diff, or check licence compatibility.

المخطّطالفحص الساكنTrigger

التثبيت

npx skillsify add dependency-risk-review

معظم عمليات تدقيق الاعتماديّات تُخرج جدارًا من الثغرات المُعلنة ثمّ تتوقّف. أمّا هذه المهارة فتُقيّم كل حزمة وفق الإشارات التي تتنبّأ فعلًا بحوادث سلسلة التوريد — عدد المشرفين، وحداثة النشر، والأثر العابر، والرخصة، وهل تُشغّل سكربتات تثبيت — وتُلزم بذكر بديل مُسمّى أو قبول صريح للخطر في كل ما يسجّل خطورة عالية. كما ترفض التوصية باعتماديّة لأمر تكفيه دالّة قصيرة واضحة.

تقرير الجودة

يجب أن تُستدعى

  • Should we add this package or write it ourselves?
  • Audit our dependencies for supply-chain risk
  • Is this licence compatible with our commercial product?
  • Review what changed in this lockfile diff

يجب ألّا تُستدعى

  • Refactor this component into smaller pieces
  • Explain how CSS grid works

الملفّات

SKILL.md
---
name: dependency-risk-review
description: Reviews third-party dependencies for supply-chain and licence risk. Use when the user asks to audit dependencies, evaluate whether to add a package, review a lockfile diff, or check licence compatibility.
---

# Dependency risk review

## When to use this
A dependency is being added, a lockfile diff needs review, or the user wants a
supply-chain or licence audit.

## Procedure
1. For each dependency under review, gather: version, licence, install count,
   last publish date, maintainer count, and its own transitive dependency count.
2. Score it against [references/risk-matrix.md](references/risk-matrix.md).
3. Report anything scoring **high** with a named alternative or a rationale for
   accepting the risk.
4. For a lockfile diff, focus on packages that are newly introduced or that
   changed major version. Ignore patch bumps of already-trusted packages.

## Rules
- A small utility with one maintainer and no publishes in two years is a higher
  risk than a large well-maintained package. Size is not the risk signal.
- Always state the licence explicitly. "Permissive" is not a licence.
- Never recommend adding a dependency for functionality achievable in under
  roughly twenty lines of readable code.
references/risk-matrix.md
# Dependency risk matrix

| Signal | Low | Medium | High |
| --- | --- | --- | --- |
| Maintainers | 3+ | 2 | 1 |
| Last publish | < 6 months | 6-24 months | > 24 months |
| Transitive deps | 0-3 | 4-15 | > 15 |
| Licence | MIT / Apache-2.0 / BSD | MPL / LGPL | GPL / AGPL / none |
| Install scripts | none | optional | required postinstall |

Any single **high** in Licence or Install scripts is disqualifying for a
commercial product until explicitly accepted by the owner.

مهارات ذات صلة

الأداءمُوثَّقة

core-web-vitals-audit

Audits a web application for Core Web Vitals regressions. Use when the user asks to check LCP, INP or CLS, investigate a Lighthouse score drop, or review front-end performance before a release.

1,284 تثبيت · v1.2.0

الاختباراتمُوثَّقة

flaky-test-hunter

Finds and diagnoses flaky tests in a test suite. Use when tests pass locally but fail in CI, when a suite fails intermittently, or when the user asks to stabilise or de-flake their tests.

963 تثبيت · v1.1.0

إعادة الهيكلةمُوثَّقة

rtl-layout-audit

Audits a web interface for right-to-left layout correctness in Arabic, Hebrew, Persian or Urdu. Use when adding an RTL locale, when the user reports mirrored or broken Arabic layout, or before shipping a bilingual interface.

688 تثبيت · v1.1.1