/shield:shieldfrom shield
Orchestrates security scanning and autonomous penetration testing. Runs Shannon pentester with Semgrep SAST, gitleaks secrets scanning, and dependency audits. Consolidates findings, proposes code fixes with diffs, calculates risk scores, and creates GitHub issues.
Ships in shield. 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.
/shield:shield (or /shield if installed standalone)| Mode | Trigger | What Runs |
|---|---|---|
| full | /shield:shield full or /shield:shield URL=https://app.com | Shannon pentest + all complementary tools |
| quick | /shield:shield or /shield:shield quick | Semgrep + gitleaks + package audit + dependency freshness |
| fix | /shield:shield fix | Re-analyze existing report and propose fixes |
| verify | /shield:shield verify | Re-scan to confirm fixes resolved findings |
| score | /shield:shield score | Calculate and display security scorecard only |
| outdated | /shield:shield outdated | Check for outdated dependencies (major/minor/patch behind) |
Run ${CLAUDE_SKILL_DIR}/../../scripts/check-prereqs.sh from the skill directory. This checks for:
./shannon CLI)semgrep binary)gitleaks binary)npm audit, pip-audit, composer audit)govulncheck (Go), bundle-audit (Ruby), cargo-audit/cargo-outdated (Rust), dotnet (.NET), mvn/gradle (Java), trivy (containers)Report which tools are available and which are missing with installation instructions. If no tools are available at all, stop and provide installation guidance. If at least one tool is available, proceed with what's available.
Run ${CLAUDE_SKILL_DIR}/../../scripts/detect-stack.sh in the target project directory. Outputs JSON:
{
"languages": ["javascript", "typescript"],
"frameworks": ["express", "react"],
"package_manager": "npm",
"has_dockerfile": true,
"has_docker_compose": true,
"entry_points": ["src/index.ts", "src/app.ts"]
}
Prerequisites: Docker running, Shannon cloned, target app accessible at URL.
${CLAUDE_SKILL_DIR}/../../scripts/generate-shannon-config.sh with detected stack info to produce a Shannon YAML config./repos/ directory${CLAUDE_SKILL_DIR}/../../scripts/run-shannon.sh with URL and repo name./shannon query ID=<workflow-id> every 30 secondsaudit-logs/ directoryRun all available tools in parallel:
SAST (Semgrep):
${CLAUDE_SKILL_DIR}/../../scripts/run-sast.sh <project-path> <language>
Uses language-specific rules from ${CLAUDE_SKILL_DIR}/../../configs/semgrep-rules/.
Secrets (gitleaks):
${CLAUDE_SKILL_DIR}/../../scripts/run-secrets.sh <project-path>
Scans entire repository for hardcoded secrets, API keys, tokens.
SCA (Package Audit):
${CLAUDE_SKILL_DIR}/../../scripts/run-sca.sh <project-path> <package-manager>
Runs the appropriate audit command for the detected package manager.
Dependency Freshness (all modes):
${CLAUDE_SKILL_DIR}/../../scripts/run-outdated.sh <project-path> <package-manager>
Checks for outdated dependencies. Reports packages that are MAJOR, MINOR, or PATCH versions behind. Runs alongside the vulnerability audit for a complete dependency health picture.
Run ${CLAUDE_SKILL_DIR}/../../scripts/consolidate.sh to merge all tool outputs into a single normalized JSON:
{
"findings": [
{
"id": "SHIELD-001",
"severity": "CRITICAL",
"title": "SQL Injection in UserRepository",
"cwe": "CWE-89",
"owasp": "A03:2021",
"source_tool": "shannon",
"file": "src/repositories/user.ts",
"line": 45,
"evidence": "...",
"poc": "curl -X POST ...",
"status": "exploited"
}
],
"metadata": {
"scan_date": "2026-03-11",
"mode": "full",
"tools_used": ["shannon", "semgrep", "gitleaks", "npm-audit"],
"tools_skipped": []
}
}
Run ${CLAUDE_SKILL_DIR}/../../scripts/calculate-score.sh on the consolidated JSON.
Scoring formula (100 = perfect, 0 = critical risk):
Display as: Security Score: 72/100 [██████████░░░░] MEDIUM RISK
Thresholds:
For EACH finding in the consolidated JSON, you MUST:
Generate the report using ${CLAUDE_SKILL_DIR}/../../templates/report.md structure.
Save to reports/security-YYYY-MM-DD.md in the project root.
If a previous report exists, perform baseline diff:
Present a summary table to the user with finding counts by severity and the security score.
Then ask: "How would you like to proceed?"
Options to offer:
${CLAUDE_SKILL_DIR}/../../templates/issue.mdAfter fixes are applied, offer to re-run the scan to verify the fixes resolved the findings. Compare before/after scores and show improvement.
Use the template at ${CLAUDE_SKILL_DIR}/../../templates/report.md for generating security reports.
Use the template at ${CLAUDE_SKILL_DIR}/../../templates/issue.md for generating GitHub issues.
If the user hasn't installed Shield's dependencies yet, point them to install.sh:
# From the shield-claude-skill directory:
./install.sh
| OWASP 2021 | SOC 2 | PCI-DSS | CWE Examples |
|---|---|---|---|
| A01 Broken Access Control | CC6.1, CC6.3 | 6.5.8, 7.1 | 22, 284, 285, 639 |
| A02 Cryptographic Failures | CC6.1, CC6.7 | 3.4, 4.1, 6.5.3 | 259, 327, 328 |
| A03 Injection | CC6.1 | 6.5.1 | 20, 74, 79, 89 |
| A04 Insecure Design | CC3.2, CC5.2 | 6.3 | 209, 256, 501 |
| A05 Security Misconfiguration | CC6.1, CC7.1 | 2.2, 6.5.10 | 16, 611 |
| A06 Vulnerable Components | CC6.1 | 6.3.2 | 1035 |
| A07 Auth Failures | CC6.1, CC6.2 | 6.5.10, 8.1 | 287, 384 |
| A08 Data Integrity Failures | CC7.2 | 6.5.8 | 345, 502 |
| A09 Logging Failures | CC7.2, CC7.3 | 10.1 | 117, 223, 778 |
| A10 SSRF | CC6.1 | 6.5.9 | 918 |
/shield:audit — Intelligence analysis commandAfter running /shield:shield, the Security Auditor skill can enrich findings with deep
reasoning that tools cannot provide.
Usage:
/shield:audit # Analyze findings from last scan
/shield:audit <path/to/consolidated.json> # Analyze specific output file
/shield:audit <file.py> # Direct code audit, no scan needed
/shield:audit <Dockerfile> # IaC security review
What it adds on top of Shield's tool output:
The Security Auditor skill lives at skills/audit/SKILL.md and loads
references/owasp-top10.md, references/iac-checklist.md, and references/crypto-guidance.md
on demand — only the relevant reference file is loaded per analysis to keep context lean.
What SKILL.md sets; muted values are Claude Code's defaults
Generated from the plugin's indexed repository (alissonlinneker/shield-claude-skill) — no native marketplace selected
npx claudepluginhub p/alissonlinneker-shield2 skills in this plugin
Other plugins' skills for the same job