Runs dependency audits, SAST analysis, and secret detection across multiple project types. Classifies findings by severity and creates a structured GitHub issue.
Ships in dlc. 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.
None: SKILL.md is the whole skill.
Run security checks against the current project and create a GitHub issue with findings.
Before running, read ../dlc/references/ISSUE-TEMPLATE.md now for the issue format, and read ../dlc/references/REPORT-FORMAT.md now for the findings data structure.
Scan the repository root for project indicators:
| Indicator | Project Type | Primary Tool |
|---|---|---|
package.json / package-lock.json / bun.lockb | Node.js | npm audit / bun audit |
requirements.txt / pyproject.toml / Pipfile | Python | pip-audit |
Cargo.toml | Rust | cargo audit |
go.mod | Go | govulncheck |
pom.xml / build.gradle | Java/Kotlin | dependency-check |
Gemfile | Ruby | bundler-audit |
If multiple indicators exist, treat as a monorepo and scan each.
For each detected project type, run tools in this priority order. Use the first available tool; skip unavailable ones.
Select the tool based on availability (command -v), not exit codes — audit tools exit non-zero when vulnerabilities are found, which is a valid result to capture.
# Node.js — select by availability
if command -v npm >/dev/null 2>&1; then
npm audit --json 2>/dev/null
elif command -v bun >/dev/null 2>&1; then
bun audit 2>/dev/null
fi
# Python
command -v pip-audit >/dev/null 2>&1 && pip-audit --format=json 2>/dev/null
# Rust
command -v cargo-audit >/dev/null 2>&1 && cargo audit --json 2>/dev/null
# Go
command -v govulncheck >/dev/null 2>&1 && govulncheck ./... 2>/dev/null
Check for packages significantly behind the latest stable release — these accumulate security patches without formal CVEs.
Select tools based on availability (command -v), not exit codes — staleness tools exit non-zero when outdated packages are found, which is a valid result to capture.
# Node.js — prefer npm, fall back to Bun
if command -v npm >/dev/null 2>&1; then
npm outdated --json 2>/dev/null
elif command -v bun >/dev/null 2>&1; then
bun outdated 2>/dev/null
fi
# Python
command -v pip >/dev/null 2>&1 && pip list --outdated --format=json 2>/dev/null
# Rust
command -v cargo-outdated >/dev/null 2>&1 && cargo outdated --json 2>/dev/null
# Go
command -v go >/dev/null 2>&1 && go list -u -m -json all 2>/dev/null
Try in order — use the first available:
semgrep scan --config=auto --json .trivy fs --format json --scanners vuln,secret .# Try gitleaks first
gitleaks detect --source . --no-git --report-format json 2>/dev/null
# Fallback: grep for common patterns. Not POSIX grep — -r, -o, and the
# --include long option are all GNU/BSD extensions this command relies on.
# -o prints only the matched token itself — never the surrounding line — so
# the actual secret value never reaches output. This scan's findings end up
# in the issue's Raw Output section, which gets posted verbatim to a public
# GitHub issue.
#
# A prior version of this fix tried to strip the line content in a separate
# sed pass keyed on "first two colon-delimited fields = path:line". That
# breaks on any filename containing a colon (valid on Linux/macOS): grep's
# own "path:line:" prefix becomes ambiguous, the substitution silently fails
# to match, and the raw secret-containing line passes through unredacted —
# verified empirically. -o has no such ambiguity: none of these five patterns
# captures a value, only a short fixed prefix/keyword (AKIA, sk-, ghp_,
# "password =", "secret ="), so there's nothing sensitive left to leak either
# way the line is parsed downstream.
#
# Do NOT widen any pattern to capture the secret body itself (e.g.
# AKIA[A-Z0-9]{16} instead of bare AKIA) — -o's safety depends entirely on
# every pattern staying prefix/keyword-only. A body-matching pattern would
# print the actual secret value straight into the public issue.
#
# --include flags come before the pattern and the pattern comes before `.` —
# verified empirically that with option permutation disabled (POSIXLY_CORRECT=1,
# and some non-GNU grep builds by default), --include after the pattern gets
# consumed as a positional filename argument instead of a flag, producing
# "No such file or directory" for every --include and a nonzero exit code.
# *.env* (not *.env) so .env.local / .env.production match too — verified
# a leading * in --include isn't shell-glob-style hidden-file-exclusive,
# it already matches dotfiles like .env.local without a separate .env*
# pattern.
grep -rnoE \
--include="*.ts" --include="*.js" --include="*.py" --include="*.go" \
--include="*.rs" --include="*.java" --include="*.rb" --include="*.env*" \
"AKIA|sk-|ghp_|password[[:space:]]*=|secret[[:space:]]*=" .
If no specialized security tools are available, use the Explore agent to discover security-sensitive areas across the codebase. Use repomix-explorer (if available) for large codebases to get a structural overview. Then use targeted Grep and Read for detailed analysis:
**/auth/**, **/login/**, **/api/**, **/*.env*Map tool output to the findings format from REPORT-FORMAT.md.
Severity mapping (reinforced here for defense-in-depth):
| Tool Output | Maps To |
|---|---|
critical / CVSS >= 9.0 | Critical |
high / CVSS 7.0-8.9 | High |
moderate / medium / CVSS 4.0-6.9 | Medium |
low / CVSS 0.1-3.9 | Low |
info / advisory only | Info |
| Dependency > 2 major versions behind latest | Medium — type: dependency-staleness |
| Dependency > 1 major version behind | Low — type: dependency-staleness |
| Dependency last updated > 2 years ago (unmaintained, when metadata available) | Medium — type: dependency-staleness |
| > 10 dependencies with pending updates | Low — type: dependency-staleness (aggregate) |
Deduplicate findings that appear in multiple tools. Prefer the source with more detail.
Read ../dlc/references/ISSUE-TEMPLATE.md now and format the issue body exactly as specified.
Critical format rules (reinforced here):
[DLC] Security: {summary of top finding}dlc-securityAcquire BRANCH for the Scan Metadata table above — ISSUE-TEMPLATE.md's lifecycle acquires REPO itself. Then follow ISSUE-TEMPLATE.md's Issue Creation Command lifecycle exactly — substitute {skill-name} = security, {Type} = Security, {type} = security, {additional-required-sections} = '## Raw Output':
BRANCH=$(git branch --show-current)
echo "BRANCH=$BRANCH" # ISSUE-TEMPLATE.md's Write step is a separate tool call and can't see this shell's variables
Print a summary to the user:
Security scan complete.
- Project type: {type}
- Tools used: {list}
- Findings: {critical} critical, {high} high, {medium} medium, {low} low
- Issue: #{number} ({url})
If no findings, skip issue creation and report: "No security issues found."
What SKILL.md sets; muted values are Claude Code's defaults
10 skills in this plugin
/babysitPR babysitter: monitors CI status, auto-rebases when behind, auto-fixes CI where possible, delegates review comment handling to dlc:pr-check, and re-requests review after fixes. Designed for /loop usage with Remote Control./dlcDev Life Cycle quality gates: run security scans, code quality checks, performance analysis, test coverage, and PR review compliance. Routes to domain-specific sub-skills or runs all checks in sequence./git-opsGit hygiene: clean up merged branches, prune stale remotes, and verify repository state./perfPerformance analysis: bundle size checks, profiling, benchmarks, and algorithmic complexity review. Identifies performance-sensitive areas and creates a structured GitHub issue./dlc:securityfrom dlc
npx claudepluginhub rube-de/cc-skills --plugin dlcOther plugins' skills for the same job