sast

sast is a skill for Claude Code, Codex from AbyssCN/oh-my-dag. It costs 48 tokens per session (244 once invoked), scanned A, original, MIT.

A Semgrep-based static security scanner that checks source code against known rules and produces a structured report. It uses fixed rules rather than an AI model.

In plain words
What is it for?
Use it to scan a file or project for security issues, group findings by severity, and get a short explanation and repair direction for each match. High-severity results should be checked in the code because rules can produce false positives.
Why use it?
It gives repeatable findings with file locations and severity, without guessing beyond what the rules detect. It helps separate rule-based scanning from deeper, meaning-based security review.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to scan a file or project for security issues, group findings by severity, and get a short explanation and repair direction for each match. High-severity results should be checked in the code because rules can produce false positives.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/abysscn/oh-my-dag/sast
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add AbyssCN/oh-my-dag --skill sast
Clone the repo
git clone --depth 1 https://github.com/AbyssCN/oh-my-dag

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for sast

README.md
[![agentmods](https://agentmods.dev/badge/skills/abysscn/oh-my-dag/sast/github.svg)](https://agentmods.dev/skills/abysscn/oh-my-dag/sast)
Your own site
<a href="https://agentmods.dev/skills/abysscn/oh-my-dag/sast"><img src="https://agentmods.dev/badge/skills/abysscn/oh-my-dag/sast/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for sast

Your own site · 80×15
<a href="https://agentmods.dev/skills/abysscn/oh-my-dag/sast"><img src="https://agentmods.dev/badge/skills/abysscn/oh-my-dag/sast.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 48 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 244 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00048 $0.00244
Opus 5.5 $0.00019 $0.00098
Sonnet 5.5 $0.00010 $0.00049
Haiku 4.5 $0.00005 $0.00024

Measured 5d ago against content hash 030d75c15c57, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

sast scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

client-skills/sast/SKILL.md · 17 lines

What it actually says

/sast — semgrep 静态扫描

对应 pi TUI 的 /sast。确定性工具,直接 Bash 跑 semgrep(装了才可用;没装提示 pip install semgrep 或 brew):

semgrep scan --config auto --json --quiet <目标路径> 2>/dev/null
  • 解析 JSON 输出,按严重度分组转述:file:line + 规则 id + 一句话问题 + 修复方向;
  • 零命中就说零命中,不要脑补;规则误报常见——对高严重度命中读代码确认真实可达再定性;
  • 与 /security-review 互补:sast 是规则事实(便宜、确定),security-review 是语义审查(贵、覆盖设计层)。先 sast 后 security-review 是省钱顺序。
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 17 lines · 48 tokens per session scan A 030d75c15c57

Subscribe to this mod's changes

sast is a skill published in the GitHub repository AbyssCN/oh-my-dag (43 stars, last pushed 5d ago), licensed MIT. It adds 48 tokens to every session and 244 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-12.

Related

Other skills, from other repositories

release-notes

Write release notes for a tagged release — a business-impact summary of what changed for the user, plus a thanks section naming every contributor whose commits are in the release. Short by construction.

no-human-ai/no_human · 41 tokens

review-this-branch

Run the nohuman review gate (fresh-session adversarial reviewer + tamper guard) over the current branch or a GitHub pull request, with no server, no database, and no onboarding, and relay the pass/fail checklist.

no-human-ai/no_human · 53 tokens

file-a-task

File work into nohuman (taskadd) and check on it (taskstatus) via the nohuman MCP bridge, instead of doing the work inline.

no-human-ai/no_human · 37 tokens

design-skill

Use BEFORE building or restyling anything a user will see — web/mobile UIs, landing pages, dashboards, components, emails, AND creative work like Three.js/WebGL/canvas/SVG scenes, data-viz, games, and animations — to make it look intentional and polished, not generic; covers tokens, type, color, layout, motion…

Overbrilliant/ob-1 · 82 tokens

skill-test

Verifies that the skill system is working correctly.

andrefetch/postal · 13 tokens

interview-and-create-plan

Before starting a Ralph RLM loop, interview the user to sharpen the goal, stress-test the design, and write an authored PLAN.md (goal, definition of done, milestones, open questions, invariants) that the loop can follow. Use when a user wants to plan, scope, or stress-test work before delegating it to the supervisor /…

doeixd/opencode-ralph-rlm · 89 tokens