add-and-validate-guardian-developer-semgrep-rule
This skill helps developers write custom Semgrep rules and add them to Guardian to enforce project conventions or catch patterns Guardian's standard rules miss.
Identity proven by GitHub's verified organisation badge (semgrep)
- Agents
- Claude Code
- License
- No license stated
- Pin
- f488aadpinned Oct 9, 2026
- Context cost
- about 2,100 tokenswhen the skill loads
- GitHub stars
- 16on semgrep/guardian
- Scripts
- None found
What it does
“write a custom semgrep rule with the user, add it to guardian in either user or repo scope, and prove it fires by writing a file that should trip it. use when someone wants guardian to catch something it currently misses, asks to write or add a semgrep rule, or wants a project convention enforced on the code claude writes.”
Generated summary from the skill's own text
This skill helps developers write custom Semgrep rules and add them to Guardian to enforce project conventions or catch patterns Guardian's standard rules miss. The agent collaborates with the user to craft a rule, adds it to either user or repository scope, and validates it by writing test files that should trigger the rule.
When to use it
- Enforcing project-specific code conventions or style requirements
- Catching deprecated internal APIs or footgun patterns your team needs blocked
- Adding a rule to Guardian's scanner when the deployment's existing ruleset has gaps
- Validating that a new Semgrep rule fires correctly before committing it
When not to
- When developer rules are disabled in your Semgrep deployment
- When you need cross-file analysis or call graph patterns that single-file scans cannot detect
- If the rule would require more disk space or rule count than your deployment's limits allow
Install
No license stated: install from the publisher's repository, and ask the author before you reuse or share it.
These commands install from the publisher's repository and need no account.
skills CLI
npx skills add semgrep/guardian --skill add-and-validate-guardian-developer-semgrep-ruleInstalls from the repository's default branch, which may have changed since the commit we checked.
GitHub CLI 2.90 or later
gh skill install semgrep/guardian add-and-validate-guardian-developer-semgrep-rule@f488aadb860337ecdcb7dfc1ce7f6ec3a61ace43Installs the commit we checked (f488aad).
Copy by hand
Download the folder at f488aad and put it in .claude/skills/add-and-validate-guardian-developer-semgrep-rule for Claude Code and in .agents/skills/add-and-validate-guardian-developer-semgrep-rule for Codex, Cursor, Gemini CLI, GitHub Copilot and OpenCode.
Claude Code plugin
/plugin install semgrep@claude-plugins-officialThe publisher's plugin in Claude's official marketplace. It may hold more than this skill, and we have not pinned it.
Copy for your agent
A prompt for any coding agent. It installs this skill from GitHub at the pinned commit, copies the files as they are, and runs nothing unless you ask.
Prompt
Install the agent skill "add-and-validate-guardian-developer-semgrep-rule" by Semgrep. Source, pinned to commit f488aadb860337ecdcb7dfc1ce7f6ec3a61ace43: https://github.com/semgrep/guardian/tree/f488aadb860337ecdcb7dfc1ce7f6ec3a61ace43/plugin/skills/add-and-validate-guardian-developer-semgrep-rule 1. Download that folder at exactly this commit. Do not use the default branch. 2. Copy every file unchanged, keeping the folder structure, into .claude/skills/add-and-validate-guardian-developer-semgrep-rule/ for Claude Code and .agents/skills/add-and-validate-guardian-developer-semgrep-rule/ for Codex, Cursor, Gemini CLI, GitHub Copilot and OpenCode. Create the folders if they do not exist. 3. Do not edit the files, and do not run any script in the folder unless I ask you to. 4. When you are done, list the files you copied and where you put them. Its license is restricted or not stated. Show me the license terms from the repository before you copy anything. Listing and checks: https://www.agentnative.dev/skills/semgrep/add-and-validate-guardian-developer-semgrep-rule
SKILL.md at the pin
The license of this skill does not let us show its files here.
Files
- SKILL.md8.8 KB · cde31a31c56f
1 file, 8.8 KB in total. Each file has a sha256 in the pin's manifest; the first 12 characters are shown.
Skill folder on GitHub at f488aadMore from Semgrep
code-security
This skill provides comprehensive security guidelines for writing secure code across 15+ languages, covering OWASP Top 10 vulnerabilities and infrastructure…
Claude Code, Codex, Cursor +4 · about 1.1K tokens · pinned 6 days ago
llm-security
This skill provides security guidelines for LLM applications based on the OWASP Top 10 for LLM 2025.
Claude Code, Codex, Cursor +4 · about 1.1K tokens · pinned 6 days ago
semgrep
This skill enables the agent to run Semgrep static analysis scans for security vulnerabilities and create custom detection rules in YAML.
Claude Code, Codex, Cursor +4 · about 2.2K tokens · pinned 6 days ago
remove-guardian-developer-semgrep-rule
This skill removes custom Semgrep rules that Guardian maintains in user or repository directories.
Claude Code · about 940 tokens · pinned 6 days ago
setup-semgrep-plugin
This skill installs and configures Semgrep on the agent's system, including authentication with Semgrep's service and verification that version 1.146.0 or…
Claude Code, Codex, Cursor +4 · about 190 tokens · pinned 6 days ago
Related in Coding workflow
planning
This skill orchestrates multi-workflow projects with dependencies and shared data tables by creating a task graph in the orchestrator via the create-tasks tool.
by n8nOfficial publisher
Claude Code, Codex, Cursor +3 · about 2.4K tokens · pinned 6 days ago
progressive-building
This skill implements incremental workflow development for agents building or extending workflows.
by n8nOfficial publisher
Claude Code, Codex, Cursor +3 · about 1.4K tokens · pinned 6 days ago
workflow-builder
Builds and edits n8n workflows using the TypeScript SDK.
by n8nOfficial publisher
Claude Code, Codex, Cursor +3 · about 14.2K tokens · pinned 6 days ago
remotion-upgrade
This skill upgrades Remotion and its related packages to the latest stable version.
by RemotionOfficial publisher
Claude Code, Codex, Cursor +3 · about 460 tokens · pinned 6 days ago
remotion-upgrade
This skill upgrades Remotion and related packages across a project, automatically detecting the package manager and workspaces.
by RemotionOfficial publisher
Claude Code, Codex, Cursor +3 · about 460 tokens · pinned 6 days ago
final-release-review
Audits Python SDK release candidates or plans against the previous release, comparing diffs for regressions, API changes, and version compatibility.
by OpenAIOfficial publisher
Contains scripts
Claude Code, Codex, Cursor +3 · about 5.4K tokens · pinned 6 days ago