# remove-guardian-developer-semgrep-rule

> Claude/Codex skill by [@semgrep](https://omgskills.com/library/semgrep/index.md) · 18 stars · Updated 2026-10-22

Remove a custom Semgrep rule from Guardian — list what is installed, work out which file holds the rule, and delete or edit it out of the user or repo rules directory. Use when someone wants Guardian to stop flagging something, asks to remove, delete or disable a custom rule, or wants to clear room under the rule limit.

## Install

```sh
git clone https://github.com/semgrep/guardian /tmp/guardian && ln -s /tmp/guardian/plugin/skills/remove-guardian-developer-semgrep-rule ~/.claude/skills/remove-guardian-developer-semgrep-rule
```

## From README

Remove a custom Semgrep rule Custom rules are plain files in two directories, both read on every scan: /.semgrep/guardian-rules/ — user scope, this developer everywhere /.semgrep/guardian-rules/ — repo scope, everyone who clones the repository There is no removal tool, because there is nothing to undo in a service: taking a rule off disk is the whole of it. What matters is removing the right one, and knowing who else loses it. Step 1 — List what is there Call listdevelopersemgreprules. It reports both directories, every rule file with its scope and path, whether the rules are being sent, and the deployment's limit. A file holds one rule or several, so check what a file carries before removing it: the count drops by every rule in it. If it refuses because the feature is off for the deployment, the rules on disk are still just files — nothing is being sent, so removal is still fine. List the two directories yourself and carry on.

## Links

- HTML page: https://omgskills.com/library/semgrep/guardian/plugin/skills/remove-guardian-developer-semgrep-rule/
- GitHub: https://github.com/semgrep/guardian
- Author: [@semgrep](https://omgskills.com/library/semgrep/index.md)

## More from this repo

- [add-and-validate-guardian-developer-semgrep-rule](https://omgskills.com/library/semgrep/guardian/plugin/skills/add-and-validate-guardian-developer-semgrep-rule/index.md) — write a custom semgrep rule with the user, add it to guardian in either user or repo scope, and prove it fires by...
   - [@semgrep](https://omgskills.com/library/semgrep/index.md) · 18 stars
- [install-mfw](https://omgskills.com/library/semgrep/guardian/plugin/skills/install-mfw/index.md) — Used to install the mfw (Semgrep Malware Firewall) CLI via the curl|sh installer and walk the user through setup —...
   - [@semgrep](https://omgskills.com/library/semgrep/index.md) · 18 stars

## More skills by this author

- [code-security](https://omgskills.com/library/semgrep/agent-skills/code-security/index.md) — Security guidelines for writing secure code.
   - [@semgrep](https://omgskills.com/library/semgrep/index.md) · 330 stars
