[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M751CVQ8WPXR7DR90CPA2X7E":3,"skill-same:01M751CVQ8WPXR7DR90CPA2X7E":56},{"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":28,"commitSha":29,"skillDirectory":30,"forksCount":31,"repositoryHtmlUrl":32,"repositoryHomepageUrl":6,"ownerHtmlUrl":33,"ownerBlogUrl":34,"ownerDescription":35,"updatedAt":36,"install":37,"resources":49},"01M751CVQ8WPXR7DR90CPA2X7E","x-scan-container-security",null,"Scans Docker images for CVEs and Dockerfile best practices violations. Uses Trivy, Grype, or Snyk Container. Produces SARIF output with scoring.","review-bench\u002Federcnj_ia-dev-environment","review-bench","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F286778065?v=4","01M7517F9NTEPDZDAXJBR30FWT","ReviewBench","01M7517FAC9F4P7TGWCNJ8VYVW",0,"MIT","https:\u002F\u002Fgithub.com\u002Freview-bench\u002Federcnj_ia-dev-environment\u002Fblob\u002Fmain\u002Fsrc\u002Fmain\u002Fresources\u002Ftargets\u002Fclaude\u002Fskills\u002Fconditional\u002Fsecurity\u002Fx-scan-container-security\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: x-scan-container-security\ndescription: \"Scans Docker images for CVEs and Dockerfile best practices violations. Uses Trivy, Grype, or Snyk Container. Produces SARIF output with scoring.\"\nuser-invocable: true\nallowed-tools: Read, Write, Bash, Grep, Glob\nargument-hint: \"[--image name:tag] [--dockerfile path] [--severity-threshold CRITICAL|HIGH|MEDIUM|LOW] [--ignore-unfixed]\"\nrequires-capabilities: []\n---\n\n## Global Output Policy\n\n- **Language**: English ONLY.\n- **Tone**: Technical, Direct, and Concise.\n- **Efficiency**: Remove all conversational fillers and greetings to save tokens.\n\n# Skill: Container Security Scanner\n\n## Purpose\n\nScan Docker container images for known CVEs and analyze Dockerfiles for security best practices violations. Generate a combined SARIF 2.1.0 report with severity scoring and grade assignment.\n\n## Activation Condition\n\nInclude this skill when container security scanning is required for the project.\n\n## Triggers\n\n- `\u002Fx-scan-container-security --image myapp:1.0` -- scan image for vulnerabilities\n- `\u002Fx-scan-container-security --dockerfile .\u002FDockerfile` -- lint Dockerfile for best practices\n- `\u002Fx-scan-container-security --image myapp:1.0 --dockerfile .\u002FDockerfile` -- combined scan\n- `\u002Fx-scan-container-security --image myapp:1.0 --ignore-unfixed` -- exclude CVEs without available fix\n\n## Parameters\n\n| Parameter | Type | Required | Default | Description |\n|-----------|------|----------|---------|-------------|\n| `--image` | String | One of image\u002Fdockerfile required | (none) | Docker image name:tag to scan |\n| `--dockerfile` | String | One of image\u002Fdockerfile required | .\u002FDockerfile | Path to Dockerfile to analyze |\n| `--severity-threshold` | Enum | No | LOW | Minimum severity: CRITICAL, HIGH, MEDIUM, LOW |\n| `--ignore-unfixed` | Boolean | No | false | Exclude CVEs without an available fix |\n\n## Workflow\n\n### Step 1 — Validate Parameters\n\n- At least one of `--image` or `--dockerfile` MUST be provided\n- If `--image` is provided, validate name:tag format\n- If `--dockerfile` is provided, validate file exists at path\n\n### Step 2 — Detect Scanning Tools\n\nCheck tool availability in order of preference:\n\n| Priority | Tool | Image Scan | Dockerfile Lint | Detection Command |\n|----------|------|------------|-----------------|-------------------|\n| 1 | Trivy | Yes | Yes (config mode) | `trivy --version` |\n| 2 | Grype | Yes | No | `grype version` |\n| 3 | Snyk Container | Yes | No | `snyk --version` |\n| 4 | hadolint | No | Yes | `hadolint --version` |\n\nIf no tools are available, produce a single INFO finding with installation instructions.\n\n### Step 3 — Image Vulnerability Scanning\n\nScan the Docker image for known CVEs in OS packages and application dependencies.\n\n#### Trivy (Preferred)\n```bash\ntrivy image --format json --severity CRITICAL,HIGH,MEDIUM,LOW {image}\n```\n\n#### Grype (Fallback)\n```bash\ngrype {image} -o json\n```\n\n#### Snyk Container (Alternative)\n```bash\nsnyk container test {image} --json\n```\n\n### Step 4 — Dockerfile Linting\n\nAnalyze Dockerfile against 7 mandatory security checks:\n\n| Check ID | Check Name | Severity | Fix Recommendation |\n|----------|------------|----------|--------------------|\n| DOCKER-001 | root-user | HIGH | Add `USER \u003Cnon-root-user>` directive |\n| DOCKER-002 | secrets-in-layers | CRITICAL | Use multi-stage build + .dockerignore |\n| DOCKER-003 | latest-tag | MEDIUM | Specify exact image tag |\n| DOCKER-004 | no-multi-stage | LOW | Use multi-stage build pattern |\n| DOCKER-005 | unnecessary-packages | LOW | Add --no-install-recommends flag |\n| DOCKER-006 | excessive-permissions | MEDIUM | Use restrictive permissions (755\u002F644) |\n| DOCKER-007 | missing-healthcheck | MEDIUM | Add HEALTHCHECK instruction |\n\n### Step 5 — Combine and Filter Findings\n\n- Merge all findings from image scan and Dockerfile lint into a single collection\n- **Severity threshold**: Exclude findings below the threshold\n- **Ignore unfixed**: When `--ignore-unfixed` is true, exclude CVE findings where `fixedVersion` is empty\n\n### Step 6 — Generate SARIF Output\n\nProduce SARIF 2.1.0 JSON combining all findings. Write to `results\u002Fsecurity\u002Fcontainer-scan-YYYY-MM-DD.sarif.json`.\n\n### Step 7 — Calculate Score and Grade\n\nStart at 100, deduct per finding:\n\n| Severity | Deduction |\n|----------|-----------|\n| CRITICAL | -25 |\n| HIGH | -15 |\n| MEDIUM | -5 |\n| LOW | -2 |\n\n| Score Range | Grade |\n|-------------|-------|\n| 90-100 | A |\n| 80-89 | B |\n| 70-79 | C |\n| 60-69 | D |\n| 0-59 | F |\n\n### Step 8 — Generate Markdown Report\n\nWrite report to `results\u002Fsecurity\u002Fcontainer-scan-YYYY-MM-DD.md`.\n\n## Error Handling\n\n| Scenario | Action |\n|----------|--------|\n| No scanning tools installed | Return INFO finding with installation instructions, score 100 |\n| Image not found locally | Suggest `docker pull {image}` first |\n| Dockerfile not found | Report error with provided path |\n| Scanner command fails | Report error, continue with other scanners |\n| Neither --image nor --dockerfile provided | Error: at least one parameter required |\n| Network error during scan | Suggest offline mode or retry |\n\n## CI Integration\n\n### GitHub Actions\n\n```yaml\n- name: Container Security Scan\n  run: |\n    trivy image --format sarif --output trivy-results.sarif $IMAGE\n- name: Upload SARIF\n  uses: github\u002Fcodeql-action\u002Fupload-sarif@v3\n  with:\n    sarif_file: trivy-results.sarif\n```\n\n### GitLab CI\n\n```yaml\ncontainer_scan:\n  stage: security\n  script:\n    - trivy image --format json --output gl-container-scanning-report.json $IMAGE\n  artifacts:\n    reports:\n      container_scanning: gl-container-scanning-report.json\n```\n\n### Fail Conditions\n\n| Condition | Action |\n|-----------|--------|\n| Any CRITICAL CVE found | Fail pipeline (exit 1) |\n| Dockerfile score \u003C 70 | Fail pipeline (exit 1) |\n| HIGH CVE count > threshold | Configurable warning\u002Ffail |\n","## Global Output Policy\n\n- **Language**: English ONLY.\n- **Tone**: Technical, Direct, and Concise.\n- **Efficiency**: Remove all conversational fillers and greetings to save tokens.\n\n# Skill: Container Security Scanner\n\n## Purpose\n\nScan Docker container images for known CVEs and analyze Dockerfiles for security best practices violations. Generate a combined SARIF 2.1.0 report with severity scoring and grade assignment.\n\n## Activation Condition\n\nInclude this skill when container security scanning is required for the project.\n\n## Triggers\n\n- `\u002Fx-scan-container-security --image myapp:1.0` -- scan image for vulnerabilities\n- `\u002Fx-scan-container-security --dockerfile .\u002FDockerfile` -- lint Dockerfile for best practices\n- `\u002Fx-scan-container-security --image myapp:1.0 --dockerfile .\u002FDockerfile` -- combined scan\n- `\u002Fx-scan-container-security --image myapp:1.0 --ignore-unfixed` -- exclude CVEs without available fix\n\n## Parameters\n\n| Parameter | Type | Required | Default | Description |\n|-----------|------|----------|---------|-------------|\n| `--image` | String | One of image\u002Fdockerfile required | (none) | Docker image name:tag to scan |\n| `--dockerfile` | String | One of image\u002Fdockerfile required | .\u002FDockerfile | Path to Dockerfile to analyze |\n| `--severity-threshold` | Enum | No | LOW | Minimum severity: CRITICAL, HIGH, MEDIUM, LOW |\n| `--ignore-unfixed` | Boolean | No | false | Exclude CVEs without an available fix |\n\n## Workflow\n\n### Step 1 — Validate Parameters\n\n- At least one of `--image` or `--dockerfile` MUST be provided\n- If `--image` is provided, validate name:tag format\n- If `--dockerfile` is provided, validate file exists at path\n\n### Step 2 — Detect Scanning Tools\n\nCheck tool availability in order of preference:\n\n| Priority | Tool | Image Scan | Dockerfile Lint | Detection Command |\n|----------|------|------------|-----------------|-------------------|\n| 1 | Trivy | Yes | Yes (config mode) | `trivy --version` |\n| 2 | Grype | Yes | No | `grype version` |\n| 3 | Snyk Container | Yes | No | `snyk --version` |\n| 4 | hadolint | No | Yes | `hadolint --version` |\n\nIf no tools are available, produce a single INFO finding with installation instructions.\n\n### Step 3 — Image Vulnerability Scanning\n\nScan the Docker image for known CVEs in OS packages and application dependencies.\n\n#### Trivy (Preferred)\n```bash\ntrivy image --format json --severity CRITICAL,HIGH,MEDIUM,LOW {image}\n```\n\n#### Grype (Fallback)\n```bash\ngrype {image} -o json\n```\n\n#### Snyk Container (Alternative)\n```bash\nsnyk container test {image} --json\n```\n\n### Step 4 — Dockerfile Linting\n\nAnalyze Dockerfile against 7 mandatory security checks:\n\n| Check ID | Check Name | Severity | Fix Recommendation |\n|----------|------------|----------|--------------------|\n| DOCKER-001 | root-user | HIGH | Add `USER \u003Cnon-root-user>` directive |\n| DOCKER-002 | secrets-in-layers | CRITICAL | Use multi-stage build + .dockerignore |\n| DOCKER-003 | latest-tag | MEDIUM | Specify exact image tag |\n| DOCKER-004 | no-multi-stage | LOW | Use multi-stage build pattern |\n| DOCKER-005 | unnecessary-packages | LOW | Add --no-install-recommends flag |\n| DOCKER-006 | excessive-permissions | MEDIUM | Use restrictive permissions (755\u002F644) |\n| DOCKER-007 | missing-healthcheck | MEDIUM | Add HEALTHCHECK instruction |\n\n### Step 5 — Combine and Filter Findings\n\n- Merge all findings from image scan and Dockerfile lint into a single collection\n- **Severity threshold**: Exclude findings below the threshold\n- **Ignore unfixed**: When `--ignore-unfixed` is true, exclude CVE findings where `fixedVersion` is empty\n\n### Step 6 — Generate SARIF Output\n\nProduce SARIF 2.1.0 JSON combining all findings. Write to `results\u002Fsecurity\u002Fcontainer-scan-YYYY-MM-DD.sarif.json`.\n\n### Step 7 — Calculate Score and Grade\n\nStart at 100, deduct per finding:\n\n| Severity | Deduction |\n|----------|-----------|\n| CRITICAL | -25 |\n| HIGH | -15 |\n| MEDIUM | -5 |\n| LOW | -2 |\n\n| Score Range | Grade |\n|-------------|-------|\n| 90-100 | A |\n| 80-89 | B |\n| 70-79 | C |\n| 60-69 | D |\n| 0-59 | F |\n\n### Step 8 — Generate Markdown Report\n\nWrite report to `results\u002Fsecurity\u002Fcontainer-scan-YYYY-MM-DD.md`.\n\n## Error Handling\n\n| Scenario | Action |\n|----------|--------|\n| No scanning tools installed | Return INFO finding with installation instructions, score 100 |\n| Image not found locally | Suggest `docker pull {image}` first |\n| Dockerfile not found | Report error with provided path |\n| Scanner command fails | Report error, continue with other scanners |\n| Neither --image nor --dockerfile provided | Error: at least one parameter required |\n| Network error during scan | Suggest offline mode or retry |\n\n## CI Integration\n\n### GitHub Actions\n\n```yaml\n- name: Container Security Scan\n  run: |\n    trivy image --format sarif --output trivy-results.sarif $IMAGE\n- name: Upload SARIF\n  uses: github\u002Fcodeql-action\u002Fupload-sarif@v3\n  with:\n    sarif_file: trivy-results.sarif\n```\n\n### GitLab CI\n\n```yaml\ncontainer_scan:\n  stage: security\n  script:\n    - trivy image --format json --output gl-container-scanning-report.json $IMAGE\n  artifacts:\n    reports:\n      container_scanning: gl-container-scanning-report.json\n```\n\n### Fail Conditions\n\n| Condition | Action |\n|-----------|--------|\n| Any CRITICAL CVE found | Fail pipeline (exit 1) |\n| Dockerfile score \u003C 70 | Fail pipeline (exit 1) |\n| HIGH CVE count > threshold | Configurable warning\u002Ffail |\n",{"name":5,"description":7,"allowed-tools":24,"argument-hint":25,"user-invocable":26,"requires-capabilities":27},"Read, Write, Bash, Grep, Glob","[--image name:tag] [--dockerfile path] [--severity-threshold CRITICAL|HIGH|MEDIUM|LOW] [--ignore-unfixed]",true,[],"main","952a630c6f38d193a349d86fa18db1de8843e837","src\u002Fmain\u002Fresources\u002Ftargets\u002Fclaude\u002Fskills\u002Fconditional\u002Fsecurity\u002Fx-scan-container-security",1,"https:\u002F\u002Fgithub.com\u002Freview-bench\u002Federcnj_ia-dev-environment","https:\u002F\u002Fgithub.com\u002Freview-bench","https:\u002F\u002Freview-bench.ai","An open benchmark for AI code review.","2026-10-27 06:56:37",{"source":8,"skillName":5,"commands":38,"prompt":48,"zipAvailable":26},[39,42,45],{"tool":40,"command":41},"npx","npx skills add review-bench\u002Federcnj_ia-dev-environment --skill x-scan-container-security",{"tool":43,"command":44},"bunx","bunx skills add review-bench\u002Federcnj_ia-dev-environment --skill x-scan-container-security",{"tool":46,"command":47},"pnpm","pnpm dlx skills add review-bench\u002Federcnj_ia-dev-environment --skill x-scan-container-security","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Freview-bench\u002Federcnj_ia-dev-environment\u002Fblob\u002Fmain\u002Fsrc\u002Fmain\u002Fresources\u002Ftargets\u002Fclaude\u002Fskills\u002Fconditional\u002Fsecurity\u002Fx-scan-container-security\u002FSKILL.md",[50],{"path":51,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":54,"sourceHtmlUrl":55},"README.md","REFERENCE","参考文档",1728,"https:\u002F\u002Fgithub.com\u002Freview-bench\u002Federcnj_ia-dev-environment\u002Fblob\u002Fmain\u002Fsrc\u002Fmain\u002Fresources\u002Ftargets\u002Fclaude\u002Fskills\u002Fconditional\u002Fsecurity\u002Fx-scan-container-security\u002FREADME.md",[57,64,71,78,85,92],{"skillNo":58,"name":59,"nameZh":6,"description":60,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":19},"01M757M8J48TQ1Y3X25GSJBXAS","x-parallel-eval","Detects and classifies file-collision risks between work units (tasks, stories, or epic phases) before parallel execution. Reads ## File Footprint blocks produced by x-task-plan \u002F x-story-plan, applies the parallelism-heuristics knowledge pack (hard \u002F regen \u002F soft categories + hotspot overrides), and emits a collision matrix + serialization recommendation in Markdown (default) or JSON.","https:\u002F\u002Fgithub.com\u002Freview-bench\u002Federcnj_ia-dev-environment\u002Fblob\u002Fmain\u002Fsrc\u002Ftest\u002Fresources\u002Fgolden\u002Fx-parallel-eval\u002FSKILL.md",[],[],{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":19},"01M757M57XMR9546S69466HDWT","parallelism-heuristics","Canonical catalog of file-collision heuristics for parallel task, story, and epic execution. Defines the File Footprint block format, the three Conflict Categories (hard \u002F regen \u002F soft), a hotspot list of high-contention paths, and the degrade-with-warning policy. Consumed by x-task-plan, x-story-plan, x-epic-map, x-parallel-eval, and x-dev-*-implement.","https:\u002F\u002Fgithub.com\u002Freview-bench\u002Federcnj_ia-dev-environment\u002Fblob\u002Fmain\u002Fsrc\u002Ftest\u002Fresources\u002Fgolden\u002Fparallelism-heuristics\u002FSKILL.md",[],[],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":19},"01M757M11SZ8P1VCQABT08QVYA","x-watch-pr-ci","Polls a PR's CI checks and Copilot review status, blocking until checks complete or timeout. Returns one of 8 stable exit codes (SUCCESS=0, CI_PENDING_PROCEED=10, CI_FAILED=20, TIMEOUT=30, PR_ALREADY_MERGED=40, NO_CI_CONFIGURED=50, PR_CLOSED=60, PR_NOT_FOUND=70). Writes a versioned state-file for session resume.","https:\u002F\u002Fgithub.com\u002Freview-bench\u002Federcnj_ia-dev-environment\u002Fblob\u002Fmain\u002Fsrc\u002Ftest\u002Fresources\u002Fgolden\u002Fjava-spring\u002Fplatform-claude-code\u002F.claude\u002Fskills\u002Fx-watch-pr-ci\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":19},"01M757KW53K8KFPGADFB4PH949","x-validate-docs","Documentation freshness gate: validates 6 dimensions (readme, api-specs, grpc-proto, adr, skill-docs, system-architecture) against code changes in a PR. Stack-aware — only validates targets declared\u002Fauto-detected from ProjectConfig.documentation.targets. Returns exit non-zero on staleness; produces structured report.","https:\u002F\u002Fgithub.com\u002Freview-bench\u002Federcnj_ia-dev-environment\u002Fblob\u002Fmain\u002Fsrc\u002Ftest\u002Fresources\u002Fgolden\u002Fjava-spring\u002Fplatform-claude-code\u002F.claude\u002Fskills\u002Fx-validate-docs\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":19},"01M757KQZHSA10MKC0CR571D60","x-update-system-architecture","Incrementally updates docs\u002Farchitecture\u002Fsystem.md after an epic completes. Appends new entries to the Decision Log (§11) using x-internal-write-report --append (dedup by ## ID: marker) and surgically inserts component\u002Fintegration changes into sections 1-10 via Edit. Idempotent: re-running with the same epic produces a byte-identical system.md.","https:\u002F\u002Fgithub.com\u002Freview-bench\u002Federcnj_ia-dev-environment\u002Fblob\u002Fmain\u002Fsrc\u002Ftest\u002Fresources\u002Fgolden\u002Fjava-spring\u002Fplatform-claude-code\u002F.claude\u002Fskills\u002Fx-update-system-architecture\u002FSKILL.md",[],[],{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":19},"01M757KKBT5Q1SVF8DMJBVF46M","x-update-architecture","Incrementally updates the service architecture document with changes from architecture plans. Adds new components, integrations, flows, and ADR references without rewriting existing content. Use after implementation to keep architecture documentation current.","https:\u002F\u002Fgithub.com\u002Freview-bench\u002Federcnj_ia-dev-environment\u002Fblob\u002Fmain\u002Fsrc\u002Ftest\u002Fresources\u002Fgolden\u002Fjava-spring\u002Fplatform-claude-code\u002F.claude\u002Fskills\u002Fx-update-architecture\u002FSKILL.md",[],[]]