security-scanning
Plans and triages Scientific Agent Skills security scans using scan_pr_skills.py, scan_skills.py, SKILL_SCANNER_LLM_API_KEY, no-key PR behavior, weekly incremental reports, docs/security-report outputs, and docs/security-triage false-positive verification rules.
- License 许可
- MIT
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- security-scanning
- license
- MIT
- metadata
- { "disco-role": "operating" }
- description
- Plans and triages Scientific Agent Skills security scans using scan_pr_skills.py, scan_skills.py, SKILL_SCANNER_LLM_API_KEY, no-key PR behavior, weekly incremental reports, docs/security-report outputs, and docs/security-triage false-positive verification rules.
- disable-model-invocation
- true
02 资源文件 3
- 参考文档references/security-scanning.md2.1 KB
- 参考文档references/troubleshooting.md2.2 KB
- 脚本scripts/plan_security_scan.py4.1 KB
03 SKILL.md 正文
Security Scanning
Use this route when the task involves the repository's automated skill scanner, generated security reports, or a scanner finding against a skill.
Safety posture
Scanner output is a prompt for review, not a determination that a skill is unsafe. Always verify findings against the actual files before changing a skill.
Do not run LLM-backed scans, upload generated reports, or post PR comments unless the user authorizes network/API-key use. Never print API key values.
Changed-skill scan
Read references/security-scanning.md and use the bundled planner:
python sub-skills/security-scanning/scripts/plan_security_scan.py \
--repo-root . \
--mode changed \
--skill <name> \
--fail-on HIGH \
--output pr_scan_comment.md
The PR workflow fails on HIGH or above when a key is present. If SKILL_SCANNER_LLM_API_KEY is unavailable, scan_pr_skills.py writes an explanatory skipped comment and exits 0; this is expected for fork PRs and no-key contexts.
Weekly/full scan
Use scan_skills.py only after explicit approval because it can run many LLM-backed analyses and update generated report files:
SKILL_SCANNER_LLM_API_KEY=... uv run python scan_skills.py --full --workers 8
docs/security-report.md and docs/security-report.json are generated outputs. Human verdicts and repeat false-positive notes belong in docs/security-triage.md.
Triage workflow
- Locate the cited skill and files; confirm they exist.
- Inspect the code or Markdown around each cited line.
- Compare environment variables to the documented service destination.
- Check
references/troubleshooting.mdfor known false-positive classes. - Fix only verified unsafe behavior or instructions.
- Record false-positive classes or real fixes in the triage note when the report would otherwise cause repeat work.
Route structural/test failures to validation-testing; route content/version/layout fixes to skill-authoring.
04 同仓库更多 Skills
passnet-triton-opt
Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.
passnet-solve
END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.
passnet-skill
PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.
passnet-pattern-fusion
Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.
passnet-orchestrate
Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.
passnet-feedback
Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).