Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Creates and tests custom Semgrep rules for security vulnerabilities, bug patterns, and coding standards, including taint mode rules.
22% 83%+61 ptsof test cases passed
Passed 19 of 23 test cases with the skill, and 5 of 23 without it.
We need a rule to catch calls to eval() in PHP. Please create the YAML definition and test file. Make sure to format test assertions using ruleid and ok comment annotations.
Places both the YAML rule file and PHP test file inside a single directory named after the rule ID.
This test ran on v1. v2 is the current version and hasn’t been tested on gemini-3.6-flash yet.
3 of 3 safety checks passed
Create production-quality Semgrep rules with proper testing and validation.
Ideal scenarios:
Do NOT use this skill for:
static-analysis skill)When writing Semgrep rules, reject these common shortcuts:
semgrep --test --config <rule-id>.yaml <rule-id>.<ext> to verify. Untested rules have hidden false positives/negatives.Too broad - matches everything, useless for detection:
# BAD: Matches any function call
pattern: $FUNC(...)
# GOOD: Specific dangerous function
pattern: eval(...) # security-allowlist: Semgrep sink pattern
Missing safe cases in tests - leads to undetected false positives:
Published skills whose descriptions closely match this one, with their benchmark result.
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.