[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7F321B8Z0F10Q67XAVRRWTX":3,"skill-same:01M7F321B8Z0F10Q67XAVRRWTX":48},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":27,"commitSha":28,"skillDirectory":29,"forksCount":30,"repositoryHtmlUrl":31,"repositoryHomepageUrl":6,"ownerHtmlUrl":32,"ownerBlogUrl":33,"ownerDescription":12,"updatedAt":34,"install":35,"resources":47},"01M7F321B8Z0F10Q67XAVRRWTX","security-audit",null,"Comprehensive security audit with scored posture assessment","313DEVGRP\u002FJava-Service-Tree-Framework-Multi-Agent-Workspace","313DEVGRP","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F34762848?v=4","01M7F2M535Z5X8XGHYD8TDVAB3","A-RMS by 313DEVGRP","01M7F2M54CR0P3631F4YM0D014",0,"MIT","https:\u002F\u002Fgithub.com\u002F313DEVGRP\u002FJava-Service-Tree-Framework-Multi-Agent-Workspace\u002Fblob\u002Fmain\u002Freference\u002Fclaude-code-ultimate-guide-main\u002Fexamples\u002Fskills\u002Fsecurity-audit\u002FSKILL.md",[],[],"2026-11-16 10:05:34",false,"---\nname: security-audit\ndescription: Comprehensive security audit with scored posture assessment\nargument-hint: \"[path] [--owasp] [--verbose]\"\neffort: high\ndisable-model-invocation: true\n---\n\n# Security audit\n\nComprehensive security audit of your project AND Claude Code configuration. Analyzes secrets exposure, injection surfaces, dependencies, hook security, and produces a scored security posture assessment.\n\n**Time**: 2-5 minutes | **Scope**: Full project + Claude Code config\n\n> For a quick config-only check, use `\u002Fsecurity-check` instead.\n\n## Instructions\n\nYou are a senior application security engineer. Perform a 6-phase security audit and produce a scored report with prioritized remediation plan.\n\n---\n\n### Pre-Step: Establish audit context\n\n**Before running any checks**, use `AskUserQuestion` to ask:\n\n1. **Environment**: Is this code running in production, staging, or local development?\n2. **Scope**: Full audit or specific areas to prioritize?\n\nThis is critical for accurate findings:\n- **Local dev**: `DEBUG=True`, CORS `*`, HTTP without TLS, `.env` files, all normal. Do NOT flag as vulnerabilities. Mention in an \"Before going to production\" informational section instead.\n- **Staging**: Configs should mirror production. Flag deviations as MEDIUM.\n- **Production**: Any misconfiguration is a real finding with full severity.\n\nIf the user doesn't answer or is unsure, default to **production** (conservative).\n\n---\n\n### Phase 1: Configuration security (via \u002Fsecurity-check)\n\nExecute all checks from `\u002Fsecurity-check` (the `examples\u002Fskills\u002Fsecurity-check\u002FSKILL.md` command). This covers:\n- MCP server audit against CVE database\n- Skills & agents against known malicious entries\n- Hook exfiltration patterns\n- Memory poisoning detection\n- Permissions & settings review\n- Exposed secrets in Claude Code config\n\nRecord findings, as they contribute to the final score.\n\n---\n\n### Phase 2: Project secrets scan\n\nScan the entire project for exposed secrets and credentials:\n\n```bash\n# API keys and tokens\ngrep -rn --include=\"*.{js,ts,py,go,java,rb,php,yaml,yml,json,toml,env,cfg,ini,conf}\" \\\n  -E '(?i)(api[_-]?key|apikey|secret|password|passwd|token|bearer|auth)\\s*[=:]\\s*[\"'\\''\"][^\"'\\'']{8,}[\"'\\''\"]\\s' \\\n  --exclude-dir={node_modules,vendor,.git,dist,build,target,__pycache__,.venv} . 2>\u002Fdev\u002Fnull | head -30\n\n# Known provider key patterns\ngrep -rn -E 'sk-[a-zA-Z0-9]{20,}|sk-ant-[a-zA-Z0-9]{20,}|ghp_[a-zA-Z0-9]{36}|AKIA[A-Z0-9]{16}|xox[bps]-[a-zA-Z0-9\\-]{20,}' \\\n  --exclude-dir={node_modules,vendor,.git,dist,build,target} . 2>\u002Fdev\u002Fnull | head -20\n\n# Private keys\ngrep -rn 'BEGIN.*PRIVATE KEY' --exclude-dir={node_modules,vendor,.git} . 2>\u002Fdev\u002Fnull\n\n# .env files that might be committed\nfind . -name \".env*\" -not -path \"*\u002Fnode_modules\u002F*\" -not -path \"*\u002F.git\u002F*\" -type f 2>\u002Fdev\u002Fnull\n\n# Check .gitignore coverage\n[ -f \".gitignore\" ] && {\n  grep -q \"\\.env\" .gitignore && echo \"✅ .env in .gitignore\" || echo \"⚠️ .env NOT in .gitignore\"\n  grep -q \"\\.pem\" .gitignore && echo \"✅ .pem in .gitignore\" || echo \"⚠️ .pem NOT in .gitignore\"\n  grep -q \"\\.key\" .gitignore && echo \"✅ .key in .gitignore\" || echo \"⚠️ .key NOT in .gitignore\"\n}\n```\n\n**Anti-false-positive rule (MANDATORY before reporting any secret finding):**\n\nBefore raising a secrets finding, run these verification commands:\n\n```bash\n# 1. Verify .env is actually in .gitignore (if yes, local .env is NOT a finding)\ngrep -n '\\.env' .gitignore 2>\u002Fdev\u002Fnull || echo \".env NOT in .gitignore\"\n\n# 2. Verify secrets were actually committed (empty output = no finding)\ngit log --all -p -- '*.env' '*.key' '*.pem' '*.secret' 2>\u002Fdev\u002Fnull | grep -E '^\\+.*(password|secret|api_key|token)' | head -20\n\n# 3. Check git history for provider-specific patterns\ngit log --all -p 2>\u002Fdev\u002Fnull | grep -E '^\\+(sk-[a-zA-Z0-9]{20,}|AKIA[A-Z0-9]{16}|ghp_[a-zA-Z0-9]{36})' | head -10\n```\n\nOnly report a secret finding if you have **concrete proof from these commands**. A `.env` file present locally is not a finding if it's in `.gitignore`. Never report \"secrets may be exposed\" based on pattern matching alone.\n\n**Scoring:**\n- 0 secrets found → +20 points\n- 1-3 secrets → +10 points\n- 4+ secrets → 0 points\n- Private key committed → -10 points\n\n---\n\n### Phase 3: Prompt injection surface\n\nAnalyze markdown and config files for injection vectors:\n\n```bash\n# Zero-width characters (invisible instructions)\ngrep -rPn '[\\x{200B}-\\x{200D}\\x{FEFF}]' --include=\"*.md\" --include=\"*.yaml\" --include=\"*.json\" . 2>\u002Fdev\u002Fnull\n\n# Hidden HTML comments with instructions\ngrep -rn '\u003C!--' --include=\"*.md\" . 2>\u002Fdev\u002Fnull | grep -i 'ignore\\|system\\|admin\\|instruction\\|override\\|forget'\n\n# Base64 in comments (potential hidden payloads)\ngrep -rn -E '[#;].*[A-Za-z0-9+\u002F]{20,}={0,2}' --include=\"*.py\" --include=\"*.js\" --include=\"*.ts\" --include=\"*.md\" \\\n  --exclude-dir={node_modules,vendor,.git} . 2>\u002Fdev\u002Fnull | head -10\n\n# ANSI escape sequences\ngrep -rPn '\\x1b\\[|\\x1b\\]|\\x1b\\(' --exclude-dir={node_modules,vendor,.git} . 2>\u002Fdev\u002Fnull | head -10\n\n# Null bytes\ngrep -rPn '\\x00' --exclude-dir={node_modules,vendor,.git,dist} . 2>\u002Fdev\u002Fnull | head -5\n\n# Nested command execution in markdown\u002Fconfig\ngrep -rn -E '\\$\\([^)]+\\)|`[^`]+`' --include=\"*.md\" --include=\"*.yaml\" --include=\"*.json\" \\\n  --exclude-dir={node_modules,vendor,.git} . 2>\u002Fdev\u002Fnull | head -10\n```\n\n**Scoring:**\n- 0 injection vectors → +15 points\n- 1-2 vectors (likely false positives) → +10 points\n- 3+ vectors → +5 points\n- Confirmed injection in CLAUDE.md → 0 points\n\n---\n\n### Phase 4: Dependency audit\n\nRun the appropriate package audit for the project:\n\n```bash\n# Node.js\n[ -f \"package-lock.json\" ] && npm audit --json 2>\u002Fdev\u002Fnull | jq '{total: .metadata.vulnerabilities.total, critical: .metadata.vulnerabilities.critical, high: .metadata.vulnerabilities.high}' 2>\u002Fdev\u002Fnull\n\n# Python\n[ -f \"requirements.txt\" ] && pip-audit -r requirements.txt 2>\u002Fdev\u002Fnull || [ -f \"pyproject.toml\" ] && pip-audit 2>\u002Fdev\u002Fnull\n\n# Rust\n[ -f \"Cargo.toml\" ] && cargo audit 2>\u002Fdev\u002Fnull\n\n# Go\n[ -f \"go.mod\" ] && govulncheck .\u002F... 2>\u002Fdev\u002Fnull\n```\n\nIf no package manager detected, note it and skip (no penalty).\n\n**Scoring:**\n- 0 vulnerabilities → +20 points\n- 0 critical + 0 high → +15 points\n- 1-3 high → +10 points\n- Any critical → +5 points\n- 10+ high or 3+ critical → 0 points\n\n---\n\n### Phase 5: Hook security assessment\n\nVerify security hooks from `guide\u002Fsecurity\u002Fsecurity-hardening.md` are properly installed:\n\n```bash\n# Check for recommended security hooks\necho \"=== Checking security hooks ===\"\n\n# PreToolUse hooks (should block dangerous patterns)\nls .claude\u002Fhooks\u002FPreToolUse* 2>\u002Fdev\u002Fnull || echo \"⚠️ No PreToolUse hooks found\"\n\n# PostToolUse hooks (should monitor output)\nls .claude\u002Fhooks\u002FPostToolUse* 2>\u002Fdev\u002Fnull || echo \"⚠️ No PostToolUse hooks found\"\n\n# Check if prompt injection detector exists\nfind . -path \"*\u002Fhooks\u002F*injection*\" -o -path \"*\u002Fhooks\u002F*security*\" -o -path \"*\u002Fhooks\u002F*scanner*\" 2>\u002Fdev\u002Fnull\n\n# Check settings for hook configuration\ngrep -c \"hooks\" .claude\u002Fsettings.json 2>\u002Fdev\u002Fnull || echo \"No hooks in settings.json\"\n```\n\n**Scoring:**\n- PreToolUse security hooks installed → +10 points\n- PostToolUse output scanner installed → +5 points\n- Prompt injection detector hook → +5 points\n- No hooks at all → 0 points\n\n---\n\n### Phase 6: Posture score & report\n\nCalculate total score and generate report.\n\n**Scoring Breakdown:**\n\n| Category | Max Points | Source |\n|----------|-----------|--------|\n| Config Security (Phase 1) | 30 | \u002Fsecurity-check results |\n| Secrets Scan (Phase 2) | 20 | Secrets found in project |\n| Injection Surface (Phase 3) | 15 | Injection vectors found |\n| Dependencies (Phase 4) | 20 | Vulnerability audit |\n| Hook Security (Phase 5) | 15 | Security hooks installed |\n| **Total** | **100** | |\n\n**Phase 1 scoring detail:**\n- 0 CRITICAL findings → +15 points\n- 0 HIGH findings → +10 points\n- 0 MEDIUM findings → +5 points\n- Any CRITICAL → 0 for that sub-score\n\n**Grade Scale:**\n\n| Score | Grade | Meaning |\n|-------|-------|---------|\n| 90-100 | A | Excellent: production-ready security posture |\n| 75-89 | B | Good: minor improvements recommended |\n| 60-74 | C | Acceptable: address HIGH issues before production |\n| 40-59 | D | Poor: significant security gaps |\n| 0-39 | F | Critical: do not deploy, address CRITICAL issues immediately |\n\n## Output format\n\n```\n## 🛡️ Security Audit Report\n\n**Date**: [timestamp]\n**Project**: [directory name]\n**Scope**: Full project + Claude Code configuration\n\n### Security Posture Score: [XX]\u002F100 (Grade [X])\n\n[1-sentence assessment]\n\n### Phase Results\n\n| Phase | Score | Max | Key Finding |\n|-------|-------|-----|-------------|\n| 1. Config Security | XX | 30 | [summary] |\n| 2. Secrets Scan | XX | 20 | [summary] |\n| 3. Injection Surface | XX | 15 | [summary] |\n| 4. Dependencies | XX | 20 | [summary] |\n| 5. Hook Security | XX | 15 | [summary] |\n| **Total** | **XX** | **100** | |\n\n### 🔴 Critical Findings\n[Each finding with location, description, and exact fix]\n\n### 🟠 High Findings\n[Each finding with location, description, and fix]\n\n### 🟡 Medium Findings\n[Each finding with location, description, and fix]\n\n### 🔧 Remediation Plan (Priority Order)\n\n| # | Action | Severity | Effort | Command\u002FSteps |\n|---|--------|----------|--------|---------------|\n| 1 | [action] | CRITICAL | [time] | [how] |\n| 2 | [action] | HIGH | [time] | [how] |\n| ... | | | | |\n\n### 📊 Benchmark\n\nYour score vs security-hardening.md recommendations:\n- [X] items from the guide are implemented\n- [X] items are missing\n- Top 3 missing items to implement next: [...]\n\n### 📚 References\n- Security hardening guide: guide\u002Fsecurity\u002Fsecurity-hardening.md\n- Threat database: examples\u002Fcommands\u002Fresources\u002Fthreat-db.yaml\n- Quick check: `\u002Fsecurity-check`\n- MCP scan tool: `npx mcp-scan` (Snyk)\n```\n\n$ARGUMENTS\n","# Security audit\n\nComprehensive security audit of your project AND Claude Code configuration. Analyzes secrets exposure, injection surfaces, dependencies, hook security, and produces a scored security posture assessment.\n\n**Time**: 2-5 minutes | **Scope**: Full project + Claude Code config\n\n> For a quick config-only check, use `\u002Fsecurity-check` instead.\n\n## Instructions\n\nYou are a senior application security engineer. Perform a 6-phase security audit and produce a scored report with prioritized remediation plan.\n\n---\n\n### Pre-Step: Establish audit context\n\n**Before running any checks**, use `AskUserQuestion` to ask:\n\n1. **Environment**: Is this code running in production, staging, or local development?\n2. **Scope**: Full audit or specific areas to prioritize?\n\nThis is critical for accurate findings:\n- **Local dev**: `DEBUG=True`, CORS `*`, HTTP without TLS, `.env` files, all normal. Do NOT flag as vulnerabilities. Mention in an \"Before going to production\" informational section instead.\n- **Staging**: Configs should mirror production. Flag deviations as MEDIUM.\n- **Production**: Any misconfiguration is a real finding with full severity.\n\nIf the user doesn't answer or is unsure, default to **production** (conservative).\n\n---\n\n### Phase 1: Configuration security (via \u002Fsecurity-check)\n\nExecute all checks from `\u002Fsecurity-check` (the `examples\u002Fskills\u002Fsecurity-check\u002FSKILL.md` command). This covers:\n- MCP server audit against CVE database\n- Skills & agents against known malicious entries\n- Hook exfiltration patterns\n- Memory poisoning detection\n- Permissions & settings review\n- Exposed secrets in Claude Code config\n\nRecord findings, as they contribute to the final score.\n\n---\n\n### Phase 2: Project secrets scan\n\nScan the entire project for exposed secrets and credentials:\n\n```bash\n# API keys and tokens\ngrep -rn --include=\"*.{js,ts,py,go,java,rb,php,yaml,yml,json,toml,env,cfg,ini,conf}\" \\\n  -E '(?i)(api[_-]?key|apikey|secret|password|passwd|token|bearer|auth)\\s*[=:]\\s*[\"'\\''\"][^\"'\\'']{8,}[\"'\\''\"]\\s' \\\n  --exclude-dir={node_modules,vendor,.git,dist,build,target,__pycache__,.venv} . 2>\u002Fdev\u002Fnull | head -30\n\n# Known provider key patterns\ngrep -rn -E 'sk-[a-zA-Z0-9]{20,}|sk-ant-[a-zA-Z0-9]{20,}|ghp_[a-zA-Z0-9]{36}|AKIA[A-Z0-9]{16}|xox[bps]-[a-zA-Z0-9\\-]{20,}' \\\n  --exclude-dir={node_modules,vendor,.git,dist,build,target} . 2>\u002Fdev\u002Fnull | head -20\n\n# Private keys\ngrep -rn 'BEGIN.*PRIVATE KEY' --exclude-dir={node_modules,vendor,.git} . 2>\u002Fdev\u002Fnull\n\n# .env files that might be committed\nfind . -name \".env*\" -not -path \"*\u002Fnode_modules\u002F*\" -not -path \"*\u002F.git\u002F*\" -type f 2>\u002Fdev\u002Fnull\n\n# Check .gitignore coverage\n[ -f \".gitignore\" ] && {\n  grep -q \"\\.env\" .gitignore && echo \"✅ .env in .gitignore\" || echo \"⚠️ .env NOT in .gitignore\"\n  grep -q \"\\.pem\" .gitignore && echo \"✅ .pem in .gitignore\" || echo \"⚠️ .pem NOT in .gitignore\"\n  grep -q \"\\.key\" .gitignore && echo \"✅ .key in .gitignore\" || echo \"⚠️ .key NOT in .gitignore\"\n}\n```\n\n**Anti-false-positive rule (MANDATORY before reporting any secret finding):**\n\nBefore raising a secrets finding, run these verification commands:\n\n```bash\n# 1. Verify .env is actually in .gitignore (if yes, local .env is NOT a finding)\ngrep -n '\\.env' .gitignore 2>\u002Fdev\u002Fnull || echo \".env NOT in .gitignore\"\n\n# 2. Verify secrets were actually committed (empty output = no finding)\ngit log --all -p -- '*.env' '*.key' '*.pem' '*.secret' 2>\u002Fdev\u002Fnull | grep -E '^\\+.*(password|secret|api_key|token)' | head -20\n\n# 3. Check git history for provider-specific patterns\ngit log --all -p 2>\u002Fdev\u002Fnull | grep -E '^\\+(sk-[a-zA-Z0-9]{20,}|AKIA[A-Z0-9]{16}|ghp_[a-zA-Z0-9]{36})' | head -10\n```\n\nOnly report a secret finding if you have **concrete proof from these commands**. A `.env` file present locally is not a finding if it's in `.gitignore`. Never report \"secrets may be exposed\" based on pattern matching alone.\n\n**Scoring:**\n- 0 secrets found → +20 points\n- 1-3 secrets → +10 points\n- 4+ secrets → 0 points\n- Private key committed → -10 points\n\n---\n\n### Phase 3: Prompt injection surface\n\nAnalyze markdown and config files for injection vectors:\n\n```bash\n# Zero-width characters (invisible instructions)\ngrep -rPn '[\\x{200B}-\\x{200D}\\x{FEFF}]' --include=\"*.md\" --include=\"*.yaml\" --include=\"*.json\" . 2>\u002Fdev\u002Fnull\n\n# Hidden HTML comments with instructions\ngrep -rn '\u003C!--' --include=\"*.md\" . 2>\u002Fdev\u002Fnull | grep -i 'ignore\\|system\\|admin\\|instruction\\|override\\|forget'\n\n# Base64 in comments (potential hidden payloads)\ngrep -rn -E '[#;].*[A-Za-z0-9+\u002F]{20,}={0,2}' --include=\"*.py\" --include=\"*.js\" --include=\"*.ts\" --include=\"*.md\" \\\n  --exclude-dir={node_modules,vendor,.git} . 2>\u002Fdev\u002Fnull | head -10\n\n# ANSI escape sequences\ngrep -rPn '\\x1b\\[|\\x1b\\]|\\x1b\\(' --exclude-dir={node_modules,vendor,.git} . 2>\u002Fdev\u002Fnull | head -10\n\n# Null bytes\ngrep -rPn '\\x00' --exclude-dir={node_modules,vendor,.git,dist} . 2>\u002Fdev\u002Fnull | head -5\n\n# Nested command execution in markdown\u002Fconfig\ngrep -rn -E '\\$\\([^)]+\\)|`[^`]+`' --include=\"*.md\" --include=\"*.yaml\" --include=\"*.json\" \\\n  --exclude-dir={node_modules,vendor,.git} . 2>\u002Fdev\u002Fnull | head -10\n```\n\n**Scoring:**\n- 0 injection vectors → +15 points\n- 1-2 vectors (likely false positives) → +10 points\n- 3+ vectors → +5 points\n- Confirmed injection in CLAUDE.md → 0 points\n\n---\n\n### Phase 4: Dependency audit\n\nRun the appropriate package audit for the project:\n\n```bash\n# Node.js\n[ -f \"package-lock.json\" ] && npm audit --json 2>\u002Fdev\u002Fnull | jq '{total: .metadata.vulnerabilities.total, critical: .metadata.vulnerabilities.critical, high: .metadata.vulnerabilities.high}' 2>\u002Fdev\u002Fnull\n\n# Python\n[ -f \"requirements.txt\" ] && pip-audit -r requirements.txt 2>\u002Fdev\u002Fnull || [ -f \"pyproject.toml\" ] && pip-audit 2>\u002Fdev\u002Fnull\n\n# Rust\n[ -f \"Cargo.toml\" ] && cargo audit 2>\u002Fdev\u002Fnull\n\n# Go\n[ -f \"go.mod\" ] && govulncheck .\u002F... 2>\u002Fdev\u002Fnull\n```\n\nIf no package manager detected, note it and skip (no penalty).\n\n**Scoring:**\n- 0 vulnerabilities → +20 points\n- 0 critical + 0 high → +15 points\n- 1-3 high → +10 points\n- Any critical → +5 points\n- 10+ high or 3+ critical → 0 points\n\n---\n\n### Phase 5: Hook security assessment\n\nVerify security hooks from `guide\u002Fsecurity\u002Fsecurity-hardening.md` are properly installed:\n\n```bash\n# Check for recommended security hooks\necho \"=== Checking security hooks ===\"\n\n# PreToolUse hooks (should block dangerous patterns)\nls .claude\u002Fhooks\u002FPreToolUse* 2>\u002Fdev\u002Fnull || echo \"⚠️ No PreToolUse hooks found\"\n\n# PostToolUse hooks (should monitor output)\nls .claude\u002Fhooks\u002FPostToolUse* 2>\u002Fdev\u002Fnull || echo \"⚠️ No PostToolUse hooks found\"\n\n# Check if prompt injection detector exists\nfind . -path \"*\u002Fhooks\u002F*injection*\" -o -path \"*\u002Fhooks\u002F*security*\" -o -path \"*\u002Fhooks\u002F*scanner*\" 2>\u002Fdev\u002Fnull\n\n# Check settings for hook configuration\ngrep -c \"hooks\" .claude\u002Fsettings.json 2>\u002Fdev\u002Fnull || echo \"No hooks in settings.json\"\n```\n\n**Scoring:**\n- PreToolUse security hooks installed → +10 points\n- PostToolUse output scanner installed → +5 points\n- Prompt injection detector hook → +5 points\n- No hooks at all → 0 points\n\n---\n\n### Phase 6: Posture score & report\n\nCalculate total score and generate report.\n\n**Scoring Breakdown:**\n\n| Category | Max Points | Source |\n|----------|-----------|--------|\n| Config Security (Phase 1) | 30 | \u002Fsecurity-check results |\n| Secrets Scan (Phase 2) | 20 | Secrets found in project |\n| Injection Surface (Phase 3) | 15 | Injection vectors found |\n| Dependencies (Phase 4) | 20 | Vulnerability audit |\n| Hook Security (Phase 5) | 15 | Security hooks installed |\n| **Total** | **100** | |\n\n**Phase 1 scoring detail:**\n- 0 CRITICAL findings → +15 points\n- 0 HIGH findings → +10 points\n- 0 MEDIUM findings → +5 points\n- Any CRITICAL → 0 for that sub-score\n\n**Grade Scale:**\n\n| Score | Grade | Meaning |\n|-------|-------|---------|\n| 90-100 | A | Excellent: production-ready security posture |\n| 75-89 | B | Good: minor improvements recommended |\n| 60-74 | C | Acceptable: address HIGH issues before production |\n| 40-59 | D | Poor: significant security gaps |\n| 0-39 | F | Critical: do not deploy, address CRITICAL issues immediately |\n\n## Output format\n\n```\n## 🛡️ Security Audit Report\n\n**Date**: [timestamp]\n**Project**: [directory name]\n**Scope**: Full project + Claude Code configuration\n\n### Security Posture Score: [XX]\u002F100 (Grade [X])\n\n[1-sentence assessment]\n\n### Phase Results\n\n| Phase | Score | Max | Key Finding |\n|-------|-------|-----|-------------|\n| 1. Config Security | XX | 30 | [summary] |\n| 2. Secrets Scan | XX | 20 | [summary] |\n| 3. Injection Surface | XX | 15 | [summary] |\n| 4. Dependencies | XX | 20 | [summary] |\n| 5. Hook Security | XX | 15 | [summary] |\n| **Total** | **XX** | **100** | |\n\n### 🔴 Critical Findings\n[Each finding with location, description, and exact fix]\n\n### 🟠 High Findings\n[Each finding with location, description, and fix]\n\n### 🟡 Medium Findings\n[Each finding with location, description, and fix]\n\n### 🔧 Remediation Plan (Priority Order)\n\n| # | Action | Severity | Effort | Command\u002FSteps |\n|---|--------|----------|--------|---------------|\n| 1 | [action] | CRITICAL | [time] | [how] |\n| 2 | [action] | HIGH | [time] | [how] |\n| ... | | | | |\n\n### 📊 Benchmark\n\nYour score vs security-hardening.md recommendations:\n- [X] items from the guide are implemented\n- [X] items are missing\n- Top 3 missing items to implement next: [...]\n\n### 📚 References\n- Security hardening guide: guide\u002Fsecurity\u002Fsecurity-hardening.md\n- Threat database: examples\u002Fcommands\u002Fresources\u002Fthreat-db.yaml\n- Quick check: `\u002Fsecurity-check`\n- MCP scan tool: `npx mcp-scan` (Snyk)\n```\n\n$ARGUMENTS\n",{"name":5,"effort":24,"description":7,"argument-hint":25,"disable-model-invocation":26},"high","[path] [--owasp] [--verbose]",true,"main","f2cc95bc769ca4c3a398965b767dfb41cdf8d698","reference\u002Fclaude-code-ultimate-guide-main\u002Fexamples\u002Fskills\u002Fsecurity-audit",2,"https:\u002F\u002Fgithub.com\u002F313DEVGRP\u002FJava-Service-Tree-Framework-Multi-Agent-Workspace","https:\u002F\u002Fgithub.com\u002F313DEVGRP","https:\u002F\u002Fwww.a-rms.net","2026-10-18 12:48:10",{"source":8,"skillName":5,"commands":36,"prompt":46,"zipAvailable":26},[37,40,43],{"tool":38,"command":39},"npx","npx skills add 313DEVGRP\u002FJava-Service-Tree-Framework-Multi-Agent-Workspace --skill security-audit",{"tool":41,"command":42},"bunx","bunx skills add 313DEVGRP\u002FJava-Service-Tree-Framework-Multi-Agent-Workspace --skill security-audit",{"tool":44,"command":45},"pnpm","pnpm dlx skills add 313DEVGRP\u002FJava-Service-Tree-Framework-Multi-Agent-Workspace --skill security-audit","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002F313DEVGRP\u002FJava-Service-Tree-Framework-Multi-Agent-Workspace\u002Fblob\u002Fmain\u002Freference\u002Fclaude-code-ultimate-guide-main\u002Fexamples\u002Fskills\u002Fsecurity-audit\u002FSKILL.md",[],[49,56,63,70,77,84],{"skillNo":50,"name":51,"nameZh":6,"description":52,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":53,"categories":54,"keywords":55,"publishedAt":19},"01M7F343WNVHZWWYJDD77QEJ7J","voice-refine","Transform verbose voice input into structured, token-efficient Claude prompts. Use when cleaning up voice memos, dictation output, or speech-to-text transcriptions that contain filler words, repetitions, and unstructured thoughts.","https:\u002F\u002Fgithub.com\u002F313DEVGRP\u002FJava-Service-Tree-Framework-Multi-Agent-Workspace\u002Fblob\u002Fmain\u002Freference\u002Fclaude-code-ultimate-guide-main\u002Fexamples\u002Fskills\u002Fvoice-refine\u002FSKILL.md",[],[],{"skillNo":57,"name":58,"nameZh":6,"description":59,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":60,"categories":61,"keywords":62,"publishedAt":19},"01M7F3417SNXASFTDA1B2X4XYZ","validate-changes","Evaluate staged changes using LLM-as-a-Judge before committing","https:\u002F\u002Fgithub.com\u002F313DEVGRP\u002FJava-Service-Tree-Framework-Multi-Agent-Workspace\u002Fblob\u002Fmain\u002Freference\u002Fclaude-code-ultimate-guide-main\u002Fexamples\u002Fskills\u002Fvalidate-changes\u002FSKILL.md",[],[],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":19},"01M7F33YN9QK88H2B81PVHMNG1","update-threat-db","Delegate threat-intelligence research and updates to AgentSec, then validate the guide and landing mirrors.","https:\u002F\u002Fgithub.com\u002F313DEVGRP\u002FJava-Service-Tree-Framework-Multi-Agent-Workspace\u002Fblob\u002Fmain\u002Freference\u002Fclaude-code-ultimate-guide-main\u002Fexamples\u002Fskills\u002Fupdate-threat-db\u002FSKILL.md",[],[],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":19},"01M7F33SXQ57G2FVFK094T4584","token-audit","Audit Claude Code configuration to measure fixed-context token overhead and produce a prioritized action plan. Use when hitting rate limits, experiencing early context compression, or after adding significant config files.","https:\u002F\u002Fgithub.com\u002F313DEVGRP\u002FJava-Service-Tree-Framework-Multi-Agent-Workspace\u002Fblob\u002Fmain\u002Freference\u002Fclaude-code-ultimate-guide-main\u002Fexamples\u002Fskills\u002Ftoken-audit\u002Fskill.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":19},"01M7F33NAWXFPHW59CF52EAGGK","talk-stage6-revision","Produces revision sheets with quick navigation by act, a master concept-to-URL table, Q&A cheat-sheet with 6-10 anticipated questions, glossary, and external resources list. Use when preparing for a talk with Q&A, creating shareable reference material for attendees, or building a safety-net glossary for live delivery.","https:\u002F\u002Fgithub.com\u002F313DEVGRP\u002FJava-Service-Tree-Framework-Multi-Agent-Workspace\u002Fblob\u002Fmain\u002Freference\u002Fclaude-code-ultimate-guide-main\u002Fexamples\u002Fskills\u002Ftalk-pipeline\u002Fstage-6-revision\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":19},"01M7F33G9V96HVZKAGZ84J4EBR","talk-stage5-script","Produces a complete 5-act pitch with speaker notes, a slide-by-slide specification, and a ready-to-paste Kimi prompt for AI slide generation. Requires validated angle and title from Stage 4. Use when you have a confirmed talk angle and need the full script, slide spec, and AI-generated presentation prompt.","https:\u002F\u002Fgithub.com\u002F313DEVGRP\u002FJava-Service-Tree-Framework-Multi-Agent-Workspace\u002Fblob\u002Fmain\u002Freference\u002Fclaude-code-ultimate-guide-main\u002Fexamples\u002Fskills\u002Ftalk-pipeline\u002Fstage-5-script\u002FSKILL.md",[],[]]