Diagnoses wrong gradients in differentiable NVIDIA Warp programs by measuring first — comparing autodiff against finite differences on a shrunk reproduction before proposing any fix.
Semgrep Rule CreatorSkill
Summary
Trail of Bits' skill for writing production-quality Semgrep rules — pattern design, taint mode for data-flow bugs, and mandatory test-driven validation.
Features
- Test-driven rule authoring: every rule ships with true and false cases
- Taint-mode rules for source-to-sink data-flow vulnerabilities
- Explicit list of shortcuts to reject when a pattern 'looks done'
- Hands off to the static-analysis skill for running existing rulesets
Install This Skill
Add this skill to your favorite AI agent in a few steps.
Skill Content
Usage Instructions
Learn how to use this skill with different AI agents.
Example Usage
Write a Semgrep taint rule that catches user input reaching subprocess calls in this repo, with tests for both the vulnerable and the sanitised path.
Description
A security-engineering skill from Trail of Bits for the specific job of authoring custom Semgrep rules, as opposed to running someone else's ruleset.
Its value is less in Semgrep syntax — which a model half-knows — and more in the discipline it enforces around it. The skill lists the rationalisations that produce bad rules and rejects each one: "the pattern looks complete" still requires semgrep --test; "it matches the vulnerable case" is only half the job, because a rule that also fires on safe code destroys trust faster than no rule at all. Every rule is expected to ship with a test file covering both true and false cases before it is considered done.
It covers ordinary pattern rules, taint-mode rules for tracing untrusted data from source to sink, and rules that encode a team's own coding standards rather than a published CVE class. It deliberately hands off to the companion static-analysis skill when the task is running existing rulesets instead of writing new ones.
Worth reaching for when you have found a bug and want a detection that stops the whole class of it recurring, or when you are building an in-house ruleset and want it to hold up under review.
Related Skills
Google's official skill for the gws CLI — drive Gmail, Drive, Calendar, Sheets, Docs, Chat and Admin APIs from an agent, with Model Armor screening.
Netlify's official skill for zero-config managed Postgres — querying from Functions, Drizzle setup, migrations and per-preview database branches.
Official WordPress skill for Gutenberg block work: block.json, attributes and serialization, dynamic rendering, and the deprecation path that keeps existing content valid.
