/configure-plugin:configure-security [--check-only] [--fix] [--type <dependencies|sast|secrets|all>]from configure-plugin
Checks and configures security scanning tools: dependency automation (Renovate/Dependabot), SAST (CodeQL), and secret detection (TruffleHog/Gitleaks). Also creates SECURITY.md policy.
Ships in configure-plugin. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Check and configure security scanning tools for dependency audits, SAST, and secret detection.
| 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 |
find . -maxdepth 1 \( -name 'package.json' -o -name 'pyproject.toml' -o -name 'Cargo.toml' -o -name 'go.mod' \)find . -maxdepth 1 -name '.gitleaks.toml'find . -maxdepth 1 -name '.pre-commit-config.yaml'find . -maxdepth 2 -type d -path '*/.github/workflows'find . -maxdepth 2 -path '*/.github/dependabot.yml'find . -maxdepth 2 \( -name 'renovate.json' -o -name 'renovate.json5' -o -name '.renovaterc' -o -name '.renovaterc.json' -o -name '.renovaterc.json5' \)find . -maxdepth 3 -path '*/.github/workflows/codeql*'find . -maxdepth 1 -name 'SECURITY.md'Security scanning layers:
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)Execute this security scanning configuration check:
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.
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.
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.
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):
package.json.github/dependabot.yml, or a Renovate config (renovate.json).github/workflows/dependency-review.ymlPython (pip-audit):
uv add --group dev pip-auditRust (cargo-audit):
cargo install cargo-audit --locked.cargo/audit.tomlFor complete configuration templates, see REFERENCE.md.
First, check that CodeQL can run here. If CODEQL_AVAILABLE=no, do not write
a CodeQL workflow and do not offer to — with code security off, every
github/codeql-action/* step fails with HTTP 403, so its only fix is deletion.
Report the layer as unavailable (quoting CODEQL_AVAILABILITY_REASON) and give
both routes: enabling code scanning in the repository's security settings, which
works only where the plan covers it, or SARIF-free coverage — a standalone Trivy
or Semgrep scan writing to the job log or a PR comment rather than the security
tab, plus Bandit below.
Otherwise:
.github/workflows/codeql.yml with detected languagesuv run bandit -r src/ -f json -o bandit-report.jsonFor CodeQL workflow and Bandit configuration templates, see REFERENCE.md.
brew install gitleaks (or go install github.com/gitleaks/gitleaks/v8@latest).gitleaks.toml that starts with [extend] useDefault = true, then add project-specific allowlists. On GITLEAKS_RULES=none, add that block to the existing filegitleaks detect --source ..pre-commit-config.yamlFor gitleaks, TruffleHog, and CI workflow configuration templates, see REFERENCE.md.
Create SECURITY.md from the template (supported-versions table, vulnerability
reporting process, report contents, best practices, automated-tools list) in
REFERENCE.md.
Create comprehensive security workflow .github/workflows/security.yml with jobs for:
Schedule weekly scans in addition to push/PR triggers.
For the CI security workflow template, see REFERENCE.md.
Update .project-standards.yaml with the security component keys. For the
exact block, see REFERENCE.md.
Print a summary of all changes made across dependency automation, SAST scanning, secret detection, security policy, and CI/CD integration. Include next steps for reviewing dependency-update PRs (Renovate or Dependabot, whichever this repo runs), CodeQL findings, and enabling private vulnerability reporting.
For the results report format, see REFERENCE.md.
| Context | Command |
|---|---|
| Quick compliance check | /configure:security --check-only |
| Auto-fix all security gaps | /configure:security --fix |
| Dependencies only | /configure:security --type dependencies |
| Secret detection only | /configure:security --type secrets |
| SAST scanning only | /configure:security --type sast |
| Verify secrets scan | gitleaks detect --source . --verbose |
CODEQL_AVAILABLE=no: Code security is off for this repo — report SAST as unavailable and offer both the settings toggle and a SARIF-free scanner; never write a CodeQL workflow that would 403/configure:workflows - GitHub Actions workflow standards/configure:pre-commit - Pre-commit hook configuration/configure:all - Run all compliance checksWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub laurigates/claude-plugins --plugin configure-plugin49 skills in this plugin
/ci-workflowsReference YAML for the canonical container-build, test, release-please and auto-fix workflow files. Use when another skill or a review needs the standard shape to cite or diff against./claude-security-settingsClaude Code security settings: permission wildcards, shell operator protections, project-level allowlists. Use when auditing or hardening .claude/settings.json permissions./config-syncConfig sync across FVH repos: extract, diff, propagate tooling improvements. Use when syncing workflows or configs across multiple repos.Other plugins' skills for the same job