Command Palette

Search for a command to run...

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

configure-security

БесплатноЗапускает вложенные скриптыНе проверен

Security scanning: dependency automation, SAST, secrets detection. Use when setting up Renovate/Dependabot, CodeQL, or TruffleHog in CI, or creating a…

laurigatesот laurigates★ 61 звезда на GitHub

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

/configure:security

Check and configure security scanning tools for dependency audits, SAST, and secret detection.

When to Use This Skill

Use this skill when... Use another approach when...
Setting up dependency auditing, SAST, or secret detection for a project Running a one-off security scan (use gitleaks detect or npm audit directly)
Checking project compliance with security scanning standards Reviewing code for application-level vulnerabilities (use security-audit agent)
Configuring Renovate/Dependabot, CodeQL, or TruffleHog in CI/CD Managing GitHub repository security settings via the web UI
Creating or updating a SECURITY.md policy Writing security documentation beyond the policy template
Auditing which security tools are missing from a project Investigating a specific CVE or vulnerability

Context

  • Package files: !find . -maxdepth 1 \( -name 'package.json' -o -name 'pyproject.toml' -o -name 'Cargo.toml' -o -name 'go.mod' \)
  • Gitleaks config: !find . -maxdepth 1 -name '.gitleaks.toml'
  • Pre-commit config: !find . -maxdepth 1 -name '.pre-commit-config.yaml'
  • Workflows dir: !find . -maxdepth 2 -type d -path '*/.github/workflows'
  • Dependabot config: !find . -maxdepth 2 -path '*/.github/dependabot.yml'
  • Renovate config: !find . -maxdepth 2 \( -name 'renovate.json' -o -name 'renovate.json5' -o -name '.renovaterc' -o -name '.renovaterc.json' -o -name '.renovaterc.json5' \)
  • CodeQL workflow: !find . -maxdepth 3 -path '*/.github/workflows/codeql*'
  • Security policy: !find . -maxdepth 1 -name 'SECURITY.md'

Security scanning layers:

  1. Dependency automation - Keep dependencies patched via Renovate or Dependabot (they are alternatives — see Step 4)
  2. SAST (Static Application Security Testing) - Analyze code for security issues
  3. Secret detection - Prevent committing secrets to version control

Parameters

Parse from command arguments:

  • --check-only: Report status without offering fixes
  • --fix: Apply all fixes automatically without prompting
  • --type <type>: Focus on specific security type (dependencies, sast, secrets, all)

Execution

Execute this security scanning configuration check:

Step 1: Fetch latest tool versions

Verify latest versions of Trivy, Grype, gitleaks, pip-audit, cargo-audit, and CodeQL with WebSearch or WebFetch before configuring. The release source for each tool is in references/tool-versions.md.

Step 2: Detect project languages and security posture

Run the detection script to scan the project for language signals and the three security layers (dependency auditing / SAST / secret detection) plus a SECURITY.md policy:

bash "${CLAUDE_SKILL_DIR}/scripts/configure-security.sh" --home-dir "$HOME"

Parse STATUS= and the ISSUES: block from the output. The KEY=VALUE lines report language detection (LANG_*) and the per-layer presence matrix.

DEPENDENCY_AUTOMATION is the layer verdict — true when either RENOVATE or DEPENDABOT is true. Read that key, not DEPENDABOT alone, when deciding whether the dependency layer needs work; the missing_dependency_automation warning is raised only when neither tool is configured.

CODEQL_AVAILABLE (yes/no/unknown) says whether CodeQL can run here at all and gates the severity of a missing SAST layer: yes → WARN missing_sast, no → INFO sast_unavailable, unknown → provisional WARN. The full key list, the availability table with every CODEQL_AVAILABILITY_REASON value, and the probe's opt-out/timeout env vars are in references/detection-output.md — read it when interpreting an unexpected key or reason.

GITLEAKS_RULES is the secret-detection verdict, not GITLEAKS_CONFIG: none means .gitleaks.toml exists but loads zero rules (inert_secret_detection), so every gitleaks scan reading it reports no leaks.

Step 3: Generate compliance report

Print a formatted compliance report showing status for each security component across dependency auditing, SAST scanning, secret detection, and security policies.

If --check-only is set, stop here.

For the compliance report format, see REFERENCE.md.

Step 4: Configure dependency automation (if --fix or user confirms)

First, check the incumbent. If DEPENDENCY_AUTOMATION=true, a dependency bot already runs here — leave it alone and skip to the audit-script and dependency-review items below. Renovate and Dependabot both open update PRs and both rewrite lockfiles, so adding the second one makes them race each other on every update; never configure Dependabot on a repo where RENOVATE=true (or the reverse). Only when DEPENDENCY_AUTOMATION=false do you pick one and install it.

Based on detected language:

JavaScript/TypeScript (npm/bun):

  1. Add audit scripts to package.json
  2. If no bot is configur
Полный SKILL.md на GitHub

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

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

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

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

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

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

Glob
Grep
Read
Write
Edit
Bash(bash ${CLAUDE_SKILL_DIR}/scripts/configure-security.sh *)
Bash(find *)
Bash(uv add *)
Bash(uv run pip-audit *)
Bash(uv run bandit *)
Bash(gitleaks *)
AskUserQuestion
TodoWrite
WebSearch
WebFetch

Вложенные файлы

REFERENCE.mdevals.jsonreferences/detection-output.mdreferences/tool-versions.mdscripts/configure-security.sh

FAQ

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

Security scanning: dependency automation, SAST, secrets detection. Use when setting up Renovate/Dependabot, CodeQL, or TruffleHog in CI, or creating a SECURITY.md policy.

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

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

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

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

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

Сравнить configure-security с