Command Palette

Search for a command to run...

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

security

Use when the operator wants to know which security mechanisms run in a repository, what the dependency advisories of its lockfiles mean, whether its install…

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

Установить security в Claude Code и Claude Desktop

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

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

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

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

Security

Plugin root: ${CLAUDE_PLUGIN_ROOT}. Claude Code replaces this with the plugin's absolute path when it loads this file. Where it appears unreplaced — in a file this skill reads with the Read tool, or on Codex, Cursor or Pi — the plugin root is the directory that contains this skill's skills/ folder (two levels above the folder of this SKILL.md). Write that absolute path literally into every command that starts a plugin script: the Bash tool has no plugin variable, and shell variables do not survive between tool calls.

One entry for the security work that recurs: what is switched on, which advisories need a fix, which install settings are missing, and what in the agent setup looks dangerous. The CLI scripts/security.mjs measures and only reads; this skill runs it, records one event, and presents the result. Background and scope: Epic #2200.

The invocation arguments are: $ARGUMENTS

Invocation

/security [status|deps|posture|agent-setup|review] [--ref <commit>]
  • No mode word means status.
  • --ref <commit> judges that commit instead of the default. It must not start with -. status reads the working tree by default; deps and posture judge HEAD by default; agent-setup always reads the files as they are now.
  • review is not a CLI mode. It branches off before the CLI runs (see § review).
  • There are no other flags. Do not invent any.

Running a mode

For status, deps, posture and agent-setup, run from the project root:

node "${CLAUDE_PLUGIN_ROOT}/scripts/security.mjs" --mode <mode> [--ref <commit>] --json --repo-root "<project root>" \
  | node "${CLAUDE_PLUGIN_ROOT}/scripts/security-emit.mjs" --repo-root "<project root>"

The second command passes the JSON through unchanged and records one event orchestrator.security.command (mode, status, counts only) in that repo.

The pipe hides the CLI's exit code (0 ok or findings, 1 degraded, 2 usage error). Judge the run by the JSON instead:

  • status is one of ok, findings, degraded, skipped. degraded and skipped always carry a reason; quote it.
  • Empty stdout means the CLI failed (usage error or crash). Report its stderr and stop. Do not retry with other flags.
  • notChecked counts items that were in scope but not measurable. Say how many; never present them as clean.
  • basis says what was judged: the working tree or a commit, and a note such as "uncommitted changes are not included". Show the note.

status

Answers: which security mechanisms run in this repo — CI audit job, CI signature check, secret scan, close-time security delta, hallucinated-package check, advisory pulse, mirror-protection audit, update automation.

Each check has one state:

State Meaning
on configured and called in this repo
off present and disabled by a config value; the detail names it (only the close-time delta and the hallucinated-package check can be off)
not-wired a measured absence: no CI file in the repo, a CI file without the job, no Renovate or Dependabot config, or the mirror-protection audit is called nowhere
not-measurable could not be read, always with a reason: a read error, a CI file that pulls jobs in through include:, no pulse cache entry for this checkout (normal in a git worktree), or a pulse refresh cached as degraded

Next step: for off, name the key and its current value; turning it on is the operator's decision. For not-wired, say what would call it (a CI job, a config file or a script). For not-measurable, quote the reason; it is not a gap.

deps

Answers: which advisories in every lockfile of the tree need a fix, and which fix. Results stay split per lockfile, one check per lockfile with counts; the audit threshold check names the threshold and where it came from (.npmrc, a CI audit argument, or default = high).

Each finding has a class:

Class Meaning
fix-now a malicious package (always), or severity at or above the audit threshold and not dev-only
can-wait below the threshold
not-reachable dev-only in the lockfile, or a direct dependency with no static import found
severity-not-measurable severity could not be read; no rank and no fix, listed and never dropped

not-reachable is granted only for package-lock.json, where the dev flag is measured. Other lockfile formats rank by severity and say "reachability not measurable for this lockfile format". A malicious package is always fix-now, its fix is "remove the package (malicious)", and no exception is offered.

Every ranked finding carries its basis (detail) and a fix: bump to <version> (direct dependency), override to <version> (transitive) or replace (no patched release). can-wait and not-reachable add or exception with date.

A lockfile that exists but could not be checked makes the whole result degraded (all lockfiles) or adds a lockfile-unchecked fi

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

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

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

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

FAQ

Что делает скилл security?

Use when the operator wants to know which security mechanisms run in a repository, what the dependency advisories of its lockfiles mean, whether its install and publish settings are safe, or what steers the agent in this repo and on this host. Runs the read-only scripts/security.mjs in four modes (status, deps, posture, agent-setup) and routes "review" to the existing security-reviewer agent. Triggered by /security, "security status", "dependency advisories", "npm audit is red", "check the agent setup", "Sicherheitsstatus", "Abhängigkeiten prüfen". Not a vulnerability scanner or diff reviewer of its own, not for answering external advisory reports, and not for configuring the guards or hooks.

Как установить скилл security?

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

Скилл security запускает скрипты?

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

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

Сравнить security с