Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

scan-before-add

БесплатноБез исполняемых скриптовНе проверен

Use when selecting, comparing, or recommending third-party libraries, and before adding a new dependency (go.mod, package.json, pyproject.toml…

future-architectот future-architect★ 46 звёзд на GitHub

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

Scan Before Add: $ARGUMENTS

Scan the candidates with uzomuzo before a dependency is added, and leave a record of what was checked and who decided.

When an AI agent (or a person) adds a library, the change usually shows which library was added but not what was checked before adding it. This skill runs uzomuzo scan on the candidates and writes that down: the verdict, the evidence uzomuzo printed, what could not be fetched, who proposed each candidate, who chose, and whether a person has reviewed the choice.

Contract: uzomuzo returns maintenance evidence. You choose and add a dependency only within the authority the person gave you. The record keeps uzomuzo's output and your own reading apart, and states whether a person has reviewed the choice. This skill never turns a verdict into an approval. Two cases hold an addition inside that authority: an OSV malicious-package advisory on the package, until the person has seen the advisory ID and says to add it (Step 4); and a name that is not found in its registry while the malicious-package lookup failed, which you never correct on your own: if the person named it, you wait for them to give the name; if you are choosing or recommending, you drop it (Step 3).

Prerequisites

  • uzomuzo on PATH (see Installation). Check with uzomuzo --version.
  • Network access: uzomuzo queries deps.dev, OSV, and GitHub.
  • GITHUB_TOKEN is optional. Without it, archive detection relies on the Scorecard "Maintained" check only (no direct GitHub API check), and the last human commit date, the human/bot commit ratio, and fork detection are not available (details). The verdict for the same package can differ -- a repository archived on GitHub has come back as caution without a token and replace with one. Record whether the token was set ("unknown" if you cannot check; do not infer it from rate-limit numbers); never print its value.

Step 1: Establish the purpose and the candidates

  1. Purpose -- one sentence on what the dependency is for, in the person's words.
  2. Requirements -- conditions the person already stated (license, ecosystem, "must be maintained", and so on). Write "none stated" if there are none.
  3. Authority -- write down three things separately; later steps depend on them: (a) did the person name the package or ask you to choose one, (b) did the person ask you to add it to the manifest, or only to recommend, and (c) did the person tell you not to ask questions.
  4. Candidates:
    • If the person named a package, that package is the candidate. You may add alternatives you think are worth comparing.
    • If you are choosing, pick the candidates that meet the purpose and scan all of them before you pick one, not only the one you end up adding. Consider whether the standard library already covers the purpose. If you scan only one candidate, write down why.
  5. PURLs:
    • Use the name the package manager uses, not the import name: pkg:pypi/[email protected], not pkg:pypi/yaml.
    • Keep Go major-version suffixes: pkg:golang/github.com/Masterminds/semver/[email protected].
    • Encode npm scopes: pkg:npm/%40types/[email protected].
    • If a package name is ambiguous, ask rather than guess (unless told not to ask; then state your interpretation in the record). Scan the name exactly as the person wrote it before you interpret or correct it; if that scan returns a malicious object, or "not found" together with malicious_check: "unknown" (Step 3), you do not reinterpret the name.

Step 2: Run the scan

uzomuzo --version
uzomuzo scan <purl> [<purl> ...] --format json
  • Scanning PURLs without a version is fine while exploring candidates. Before adding or recommending a dependency, decide the version you will pin and scan that exact PURL so the record matches what lands in the manifest. When you only recommend, scan the versioned PURL of stable_version (or the version you would suggest) once before recommending: a PURL without a version is flagged only by an advisory that names every version. Do not run the package manager (go get, npm install, pip install, and so on) for a candidate before this scan: installing, building, or testing can run the package's code.
  • Run the final candidates in one call so they share the same timestamp. Note the date and time, the uzomuzo version, and whether GITHUB_TOKEN was set.
  • If the command fails (network error, rate limit), record "verdict could not be obtained" for the affected candidates. Do not substitute a verdict of your own.
  • --format detailed adds release dates, the last human commit date, Scorecard values, and the Registry link. Step 4 says when it is required; you may also run it for other checks (for example, the Registry link of a review package).

Step 3: Read the result, ca

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

Установить scan-before-add в Claude Code и Claude Desktop

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

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

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

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

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

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

FAQ

Что делает скилл scan-before-add?

Use when selecting, comparing, or recommending third-party libraries, and before adding a new dependency (go.mod, package.json, pyproject.toml, requirements.txt, Cargo.toml, pom.xml, *.csproj, Gemfile, composer.json). Applies both when you choose the candidates and when the user names a package. Runs uzomuzo scan on the candidates and leaves a record of what was checked and who decided.

Как установить скилл scan-before-add?

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

Скилл scan-before-add запускает скрипты?

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

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

Сравнить scan-before-add с