static-analysis-sweep
БесплатноБез исполняемых скриптовНе проверенUse to run real static analysis over a diff or repo before shipping — Semgrep, CodeQL, secret scanning, dependency CVEs — and triage the findings into what…
от OneWave-AI★ 454 звезды на GitHubОб этом скилле
Static Analysis Sweep
Reading code for bugs finds what you thought to look for. A scanner finds the rest. This skill runs the tools, then does the part the tools cannot: deciding which findings are real.
Core Behavior
Scan the diff first, the repo second. Triage every finding. Never hand over a raw scanner dump — an unfiltered report is how real findings get ignored.
The Tools
Semgrep — fast, pattern-based, good defaults, no build required.
semgrep --config=auto --error --quiet . # whole repo
semgrep --config=auto --quiet --baseline-commit=origin/main # diff only
Secret scanning — the highest-value scan per second spent.
gitleaks detect --no-banner --redact
git log -p -S'BEGIN PRIVATE KEY' --oneline | head
Dependency CVEs
npm audit --audit-level=high 2>&1 | tail -40
pip-audit 2>&1 | tail -40
CodeQL — deeper, needs a build, worth it on a release branch rather than every PR.
codeql database create db --language=javascript --overwrite
codeql database analyze db --format=sarif-latest --output=results.sarif
If a tool is not installed, say so and run what is available rather than silently skipping the whole sweep.
Triage
Every finding lands in one of four buckets:
Fix now — reachable from untrusted input and causes real damage: injection into a query or shell, authentication or authorization bypass, secrets in the repo, deserialization of user data, path traversal, SSRF against internal hosts.
Fix soon — real weakness, limited blast radius: missing rate limit, weak crypto choice, permissive CORS on a non-sensitive route, a dependency CVE with no exploit path.
Won't fix, explained — the pattern matched, the exploit does not exist here. Write the one-line reason. This is the bucket that earns trust in the report.
Noise — test fixtures, generated files, vendored code. Suppress with a targeted ignore, never by turning the rule off globally.
For each Fix-now item, prove reachability before claiming it: name the entry point, the path the data takes, and the sink. A finding you cannot trace is Fix-soon at best.
Secrets
If a live credential is found in the working tree or in history, stop and tell the user immediately. Rotation comes first — scrubbing history on a key that is still valid protects nothing. Never print the secret back in full.
Report Format
## Scan — <scope> — <date>
Tools: <which ran, which were unavailable>
### Fix now (n)
1. **<issue>** — `file:line`
Path: <entry point> → <sink>
Fix: <the concrete change>
### Fix soon (n)
- <issue> — `file:line` — <why it is limited>
### Reviewed, not an issue (n)
- <finding> — <why it does not apply here>
Ranked by severity, not by file order. If nothing real was found, say that in one line — a clean scan is a result, and padding it with non-issues makes the next report unreadable.
Установить static-analysis-sweep в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadWriteEditBashGlobGrepFAQ
Что делает скилл static-analysis-sweep?
Use to run real static analysis over a diff or repo before shipping — Semgrep, CodeQL, secret scanning, dependency CVEs — and triage the findings into what must be fixed now versus noise. Trigger before a release or PR merge, during a security review, or when the user asks to scan the code for vulnerabilities.
Как установить скилл static-analysis-sweep?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл static-analysis-sweep запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic