用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/alpha-omega-security/scrutineer --skill dependencies命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
基于 SOC 职业分类
| name | dependencies |
| description | Run git-pkgs list and sbom against the repository and emit one envelope with per-section status. |
| license | MIT |
| compatibility | Requires `git-pkgs` (https://github.com/git-pkgs/git-pkgs) and `python3` on PATH. |
| metadata | {"scrutineer.version":1,"scrutineer.output_file":"report.json","scrutineer.output_kind":"dependencies","scrutineer.paths":["**"],"scrutineer.ignore_paths":["**/node_modules/**","**/dist/**","**/generated/**","**/__generated__/**","**/*.min.js","**/*.min.css"]} |
Run the two per-repository git-pkgs analyses after one git-pkgs init and assemble the results into a versioned envelope. analyses.inventory is the manifest occurrence list from git-pkgs list; analyses.sbom is the CycloneDX document from git-pkgs sbom --skip-enrichment. Each section has its own status so a failure in one does not discard the other. Per-package registry lookups (licences, vulnerabilities, latest-version, deprecation) are not run here; scrutineer performs those once per package outside the scan. Scrutineer's worker resolves Maven requirements from local pom.xml files with git-pkgs/pom, fills requirement_resolution, and marks unresolved placeholders with requirement_unresolved.
./src — the cloned repository./scripts/index.sh — the wrapper script./report.json — write the final report here./schema.json — output shapescripts/index.sh — runs git-pkgs init inside ./src, then list and sbom --skip-enrichment, capturing stdout, stderr, and exit code per command, and writes the assembled envelope to stdout.Run the script and capture its stdout as the report:
bash scripts/index.sh > ./report.json
If the script exits non-zero, read its stderr, then write {"schema_version": 1, "analyses": {}, "error": "..."} to ./report.json so the caller sees why nothing was collected.
The wrapper already emits the exact schema the parser expects, including per-section status: "error" for a failed command. Do not post-process, merge sections, or hand-author dependency rows. Do not inspect manifests yourself or infer dependencies from files that git-pkgs did not report. An empty analyses.inventory.result means git-pkgs found no manifests; write that report and stop.