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.
npx agentmods add skills/fmind/dot/opengrepnpx skills add fmind/dot --skill opengrepgit clone --depth 1 https://github.com/fmind/dotWrote 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.
[](https://agentmods.dev/skills/fmind/dot/opengrep)<a href="https://agentmods.dev/skills/fmind/dot/opengrep"><img src="https://agentmods.dev/badge/skills/fmind/dot/opengrep.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00052 | $0.01040 |
| Opus 5 | $0.00026 | $0.00520 |
| Sonnet 5 | $0.00010 | $0.00208 |
| Haiku 4.5 | $0.00005 | $0.00104 |
Grade A, and why
opengrep 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 yesterday.
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.
How it starts
The opening of the file, as written. The whole thing — 60 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Opengrep
Semantic code-pattern scanning (SAST) with opengrep, the LGPL fork of the Semgrep engine; it is opt-in as check:sast, and secure decides when a repository adopts it.
Commands
opengrep scan --error --quiet --config .opengrep/rules/go --config .opengrep/rules/python . # check:sast: exit 1 on findings, findings only
opengrep scan --error --quiet --config .opengrep/rules/go --json --output opengrep.json . # machine-readable report
opengrep scan --error --quiet --config .opengrep/rules/go --sarif --output opengrep.sarif . # SARIF for code scanning
opengrep scan --experimental --config git+https://github.com/opengrep/opengrep-rules#<ref> . # clone-on-run pin, no checkout task
PAGER=cat opengrep scan --help # the help is a man page
Mise Tasks
The rules are pinned by commit into an ignored directory so the check stays offline and reproducible; add .opengrep/ to .gitignore:
[tasks."install:sast"]
description = "Fetch the pinned opengrep rules"
run = "test -d .opengrep/rules || (git init -q .opengrep/rules && git -C .opengrep/rules fetch -q --depth 1 https://github.com/opengrep/opengrep-rules <commit> && git -C .opengrep/rules checkout -q FETCH_HEAD)"
[tasks."check:sast"]
description = "Scan source for insecure code patterns (opengrep)"
depends = ["install:sast"]
run = "opengrep scan --error --quiet --config .opengrep/rules/go --config .opengrep/rules/python ." # one --config per language directory
The rules repository ships one directory per language, including go/, python/, typescript/, terraform/, dockerfile/, and yaml/.
Workflow
- Adopt: pin
opengrepinmise.toml[tools], pin an opengrep-rules commit ininstall:sast, and addcheck:sastto thedependsofcheckper mise. - Triage: fix each finding; suppress a true false positive inline with
// nosemgrep: <rule id>plus a reason, where the id is theidfield of the rule file. Exclude generated paths in.semgrepignore. - Report: pass
--jsonor--sarifwhen a report is needed; the gate itself stays text-only.
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.
- yesterday First seen · 60 lines · 52 tokens per session scan A 09e07f2adcc5
opengrep is a skill published in the GitHub repository fmind/dot (4 stars, last pushed today), licensed MIT. It adds 52 tokens to every session and 1,040 once invoked, about $0.0003 per session on Opus 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-09-03.
Other skills, from other repositories
go-stack
Build Go projects, libraries, CLIs, TUIs, web apps, or ADK agents with the standard package layout and pinned tooling.
python-stack
Build typed Python projects with uv, Ruff, ty, pytest, Litestar, and Typer. Use for packages, CLIs, web apps, tests, typing, or API verification.
k8s-local
Create and manage local Kubernetes clusters (k3d or kind) and deploy to them with kubectl, helm, helmfile, and skaffold. Use for local k8s cluster setup, dev loops, and debugging.
chezmoi
Manage chezmoi dotfiles: source naming, Go templates, age-encrypted secrets, and the edit-source then apply/diff workflow.
hugo
Canonical Hugo static-site stack with the Hextra docs theme — Hugo Modules, mise tasks, dprint, lefthook, and GitHub Pages deploy. Use for documentation sites, project docs, and static websites.
mise
Configure pinned mise tools and canonical install, format, check, test, build, and watch tasks shared by hooks and CI.