sast
Skill96 starsChanged 7 months agoMITView on GitHub
Static analysis tool runner. Wraps ESLint, Semgrep, Bandit, Clippy, and language-specific analyzers with unified severity output. Use when deeper code analysis needed beyond pattern matching.
- Installs packages
3 other projects use a version of this.
Adopted by
Most recently taken up by
- Quad4-Software/skillstheir own version, first seen Oct 3, 2026
- zyphr-labs/bounty-harnesstheir own version, first seen Aug 26, 2026
- H-mmer/pentest-agentstheir own version, first seen May 6, 2026
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 3
- H-mmer/pentest-agents★ 815same name
- Quad4-Software/skills★ 1same name
- zyphr-labs/bounty-harness★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository70 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- docs/llms.txtllms.txt
- llms.txtllms.txt
- adversarySkill
- asset-creatorSkill
- auditSkill
- autopsySkill
- baSkill
- brainstormSkill
- browser-pilotSkill
- completion-gateSkill
- constraint-checkSkill
- context-engineSkill
- context-packSkill
- convergeSkill
- cookSkill
- councilSkill
- dbSkill
- debugSkill
- dependency-doctorSkill
- deploySkill
- designSkill
- diagramSkill
- doc-processorSkill
- docs-seekerSkill
- docsSkill
- fixSkill
- gitSkill
- graftSkill
- hallucination-guardSkill
- improve-architectureSkill
- incidentSkill
- integrity-checkSkill
- journalSkill
- launchSkill
- logic-guardianSkill
- marketingSkill
- mcp-builderSkill
- neural-memorySkill
- onboardSkill
- perfSkill
- planSkill
- preflightSkill
- problem-solverSkill
- quarantineSkill
- rescueSkill
- researchSkill
- retroSkill
- review-intakeSkill
- reviewSkill
- safeguardSkill
- scaffoldSkill
- scope-guardSkill
- scoutSkill
- sentinel-envSkill
- sentinelSkill
- sequential-thinkingSkill
- session-bridgeSkill
- skill-forgeSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
10 rules. 0 are common, 7 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 3 edited versions we read keep these.
7
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 43
Use Glob to detect project language and available tools:
- Distinctive: line 63
Run the detected primary tool on changed files (or full project if no diff):
- Very specific: line 103
If semgrep is NOT installed, log INFO: "semgrep not installed — install with pip install semgrep for deeper cross-language analysis."
- Distinctive: line 163
MUST run all available tools for the detected language — not just one
- Distinctive: line 164
MUST attempt Semgrep regardless of primary language (if installed)
- Very specific: line 165
MUST normalize all outputs to unified BLOCK/WARN/INFO — don't dump raw tool output
- Distinctive: line 166
MUST show install instructions for missing tools — not silently skip
- Distinctive: line 167
MUST report which tools ran and which were skipped — transparency
- Distinctive: line 168
MUST NOT block on missing tools — SKIP with instruction, not FAIL
- Distinctive: line 183
All available tools executed (or SKIP with install instruction)
“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
sast
Purpose
Unified static analysis tool runner. While sentinel does regex-based security pattern matching and verification runs lint/type/test/build, SAST goes deeper — running dedicated static analysis tools that understand data flow, taint tracking, and language-specific vulnerability patterns.
Sentinel catches obvious patterns (hardcoded secrets, SQL string concat). SAST catches subtle ones (tainted data flowing through 3 function calls to a sink, unsafe deserialization behind a wrapper).
Triggers
- Called by
sentinel(L2) when deep analysis needed beyond pattern matching - Called by
audit(L2) during security dimension assessment - Called by
cook(L1) on security-sensitive code (auth, crypto, payments) /rune sast— manual static analysis scan
Calls (outbound)
None — pure runner using Bash for all tools.
Called By (inbound)
sentinel(L2): deep analysis beyond regex patternsaudit(L2): security dimension in full auditcook(L1): security-sensitive code pathsreview(L2): when security patterns detected in diff
Execution
Step 1 — Detect Language and Tools
Use Glob to detect project language and available tools:
| Indicator | Language | Primary Tool | Fallback |
package.json | JavaScript/TypeScript | npx eslint --ext .js,.ts,.tsx | npx oxlint |
tsconfig.json | TypeScript | npx tsc --noEmit + ESLint | — |
pyproject.toml / setup.py | Python | bandit -r . -f json | ruff check --select S . |
Cargo.toml | Rust | cargo clippy -- -D warnings | cargo audit |
go.mod | Go | govulncheck ./... | go vet ./... |
.semgrep.yml / any | Any | semgrep --config auto | — |
Check tool availability:
Bash: command -v <tool> 2>/dev/null
→ If not installed: mark as SKIP with install instruction
→ If installed: proceed with scanStep 2 — Run Primary Analysis
Run the detected primary tool on changed files (or full project if no diff):
For each available tool:
Bash: <tool command> 2>&1
→ Capture stdout + stderr
→ Parse output into unified format (see Step 4)
→ Record: exit code, finding count, execution timeTool-specific commands:
# ESLint (JS/TS) — security-focused rules
npx eslint --no-eslintrc --rule '{"no-eval": "error", "no-implied-eval": "error"}' <files>
# Bandit (Python) — security scanner
bandit -r <path> -f json -ll # medium+ severity only
# Semgrep (any language) — pattern-based analysis
semgrep --config auto --json --severity ERROR --severity WARNING <path>
# Clippy (Rust) — lint + security
cargo clippy --all-targets -- -D warnings -W clippy::unwrap_used
# govulncheck (Go) — vulnerability check
govulncheck ./...Step 3 — Run Semgrep (If Available)
Semgrep provides cross-language analysis with community rules. Run regardless of primary language tool:
IF semgrep is installed:
Bash: semgrep --config auto --json <changed-files-or-project>
→ Parse JSON output
→ Map severity: error→BLOCK, warning→WARN, info→INFOIf semgrep is NOT installed, log INFO: "semgrep not installed — install with pip install semgrep for deeper cross-language analysis."
Step 4 — Normalize to Unified Format
Map all tool outputs to unified severity:
BLOCK (must fix):
- Bandit: HIGH confidence + HIGH severity
- ESLint: error-level security rules
- Semgrep: ERROR severity
- Clippy: deny-level warnings
- govulncheck: any known vulnerability
WARN (should fix):
- Bandit: MEDIUM confidence or MEDIUM severity
- ESLint: warning-level rules
- Semgrep: WARNING severity
- Clippy: warn-level suggestions
INFO (informational):
- Bandit: LOW severity
- Semgrep: INFO severity
- Style/convention suggestionsStep 5 — Report
## SAST Report
- **Status**: PASS | WARN | BLOCK
- **Tools Run**: [list with versions]
- **Tools Skipped**: [list with install instructions]
- **Files Scanned**: [count]
- **Findings**: [count by severity]
### BLOCK (must fix)
- `path/to/file.py:42` — [tool] Possible SQL injection via string formatting (B608)
- `path/to/auth.ts:15` — [semgrep] JWT token not verified before use
### WARN (should fix)
- `path/to/utils.py:88` — [bandit] Use of `subprocess` with shell=True (B602)
### INFO
- `path/to/config.ts:10` — [eslint] Prefer `const` over `let` for unchanging variable
### Tool Coverage
| Tool | Status | Findings | Duration |
|------|--------|----------|----------|
| ESLint | RAN | 2 WARN | 1.2s |
| Semgrep | SKIPPED | — | — (not installed) |
| Bandit | N/A | — | — (not Python) |Output Format
SAST Report with status (PASS/WARN/BLOCK), tools run, files scanned, findings by severity (BLOCK/WARN/INFO), and tool coverage table. See Step 5 Report above for full template.
Constraints
- MUST run all available tools for the detected language — not just one
- MUST attempt Semgrep regardless of primary language (if installed)
- MUST normalize all outputs to unified BLOCK/WARN/INFO — don't dump raw tool output
- MUST show install instructions for missing tools — not silently skip
- MUST report which tools ran and which were skipped — transparency
- MUST NOT block on missing tools — SKIP with instruction, not FAIL
Sharp Edges
| Failure Mode | Severity | Mitigation |
| Tool not installed → entire scan skipped silently | HIGH | Constraint 4: show install instruction, continue with available tools |
| Raw tool output dumped without normalization | MEDIUM | Step 4: always normalize to unified format |
| Only running one tool when multiple apply | MEDIUM | Constraint 1: run ALL available tools for the language |
| Semgrep community rules producing noise | LOW | Filter to ERROR+WARNING severity only — skip INFO-level Semgrep |
| Long-running scan on large codebase | MEDIUM | Run on changed files only when diff available, full scan only on manual invocation |
Done When
- Language detected from project config files
- All available tools executed (or SKIP with install instruction)
- Findings normalized to unified BLOCK/WARN/INFO format
- Tool coverage table showing what ran and what was skipped
- SAST Report emitted with overall verdict
Cost Profile
~300-800 tokens input, ~200-500 tokens output. Haiku + Bash commands. Tool execution time varies (1-30s depending on project size).
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

