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 skills add skrun-dev/skrun --skill semgrep-rule-creatorgit clone --depth 1 https://github.com/skrun-dev/skrunWrote 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/skrun-dev/skrun/semgrep-rule-creator)<a href="https://agentmods.dev/skills/skrun-dev/skrun/semgrep-rule-creator"><img src="https://agentmods.dev/badge/skills/skrun-dev/skrun/semgrep-rule-creator/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.
<a href="https://agentmods.dev/skills/skrun-dev/skrun/semgrep-rule-creator"><img src="https://agentmods.dev/badge/skills/skrun-dev/skrun/semgrep-rule-creator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.1 | $0.00086 | $0.01326 |
| Opus 5.5 | $0.00034 | $0.00530 |
| Sonnet 5.5 | $0.00017 | $0.00265 |
| Haiku 4.5 | $0.00009 | $0.00133 |
Grade A, and why
semgrep-rule-creator 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 1mo 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.
How it starts
The opening of the file, as written. The whole thing — 115 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Semgrep Rule Creator
You are a security engineer who writes Semgrep rules for a living. Given a vulnerability description and a concrete bad-code example, you produce three artifacts:
rule.yml— the actual Semgrep rule (drop into the repo's.semgrep/directory).tests.md— good/bad code examples that document expected behavior.README.md— rationale, severity reasoning, references (CWE/OWASP links).
Workflow
-
Analyze the input — read
cve_descriptionandbad_code_example. Identify:- The vulnerability category (SSRF, SQLi, XSS, command injection, path traversal, hardcoded secret, weak crypto, deserialization, etc.)
- The most appropriate CWE (e.g.,
CWE-918for SSRF,CWE-89for SQLi,CWE-79for XSS,CWE-78for OS command injection,CWE-22for path traversal,CWE-798for hardcoded credentials). - The most appropriate OWASP Top 10 (2021) category (
A01:2021 - Broken Access Control,A03:2021 - Injection, etc.). - Severity:
ERRORfor clear high-impact patterns (SQLi, RCE, SSRF, command injection);WARNINGfor context-dependent or lower-impact (weak crypto, hardcoded secrets in non-prod paths);INFOfor style/audit hints.
-
Write the AST pattern — translate
bad_code_exampleinto a Semgrep pattern. Generalize correctly:- Use ellipsis (
...) and metavariables ($X,$URL, etc.) instead of literal strings/identifiers. - For tainted-input flow patterns, prefer
pattern-eithercovering common sources (req.body.$X,req.query.$X,req.params.$Xin JS/TS Express). - If a
good_code_exampleis provided, infer apattern-notthat excludes it.
- Use ellipsis (
-
Generate the rule id —
<rule_id_prefix>.<short-slug>(default prefixcustom). Slug from the vulnerability category — kebab-case, max 40 chars (e.g.,ssrf-via-user-input,sql-injection-string-concat). -
Compose
rule.yml— exact structure:rules: - id: <rule_id> message: <one-line human-readable description, ≤120 chars> severity: <ERROR | WARNING | INFO> languages: [<language>] metadata: category: security cwe: "<CWE-XXX: full CWE name>" owasp: "<A0X:2021 - Category Name>" confidence: <HIGH | MEDIUM | LOW> likelihood: <HIGH | MEDIUM | LOW> impact: <HIGH | MEDIUM | LOW> references: - https://cwe.mitre.org/data/definitions/<CWE_NUMBER>.html pattern-either: - pattern: <generalized pattern matching bad_code_example> # pattern-not: # - pattern: <pattern matching good_code_example, if provided>
What ships with it
4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 1mo ago First seen · 115 lines · 86 tokens per session scan A a0518c099cb7
semgrep-rule-creator is a skill published in the GitHub repository skrun-dev/skrun (210 stars, last pushed 27d ago), licensed MIT. It adds 86 tokens to every session and 1,326 once invoked, about $0.0003 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-08-30.
Other skills, from other repositories
openai-patterns
Production OpenAI API patterns — model selection, prompt engineering, function calling, streaming, error handling, cost control, and structured outputs.
clinicaltrials-database
Query ClinicalTrials.gov via API v2. Search trials by condition, drug, location, status, or phase. Retrieve trial details by NCT ID, export data, for clinical research and patient matching.
openalex-database
Query and analyze scholarly literature using the OpenAlex database. This skill should be used when searching for academic papers, analyzing research trends, finding works by authors or institutions, tracking citations, discovering open access publications, or conducting bibliometric analysis across 240M+ scholarly…
glycoengineering
Analyze and engineer protein glycosylation. Scan sequences for N-glycosylation sequons (N-X-S/T), predict O-glycosylation hotspots, and access curated glycoengineering tools (NetOGlyc, GlycoShield, GlycoWorkbench). For glycoprotein engineering, therapeutic antibody optimization, and vaccine design.
esm
Comprehensive toolkit for protein language models including ESM3 (generative multimodal protein design across sequence, structure, and function) and ESM C (efficient protein embeddings and representations). Use this skill when working with protein sequences, structures, or function prediction; designing novel…
pysam
Genomic file toolkit. Read/write SAM/BAM/CRAM alignments, VCF/BCF variants, FASTA/FASTQ sequences, extract regions, calculate coverage, for NGS data processing pipelines.