---
title: "Custom Semgrep rules for LiteLLM"
description: "Add custom rule YAML files here. Semgrep loads all `.yml`/`.yaml` files under this directory."
type: skill
canonical_url: https://claudary.paisolsolutions.com/skills/readme-474
source: "Claudary"
difficulty: intermediate
author: "Claude Code Knowledge Pack"
date: 2026-07-10T11:36:34.744Z
license: CC-BY-4.0
attribution: "Custom Semgrep rules for LiteLLM — Claudary (https://claudary.paisolsolutions.com/skills/readme-474)"
---

# Custom Semgrep rules for LiteLLM
Add custom rule YAML files here. Semgrep loads all `.yml`/`.yaml` files under this directory.

## Overview

# Custom Semgrep rules for LiteLLM

Add custom rule YAML files here. Semgrep loads all `.yml`/`.yaml` files under this directory.

**Run only custom rules (CI / fail on findings):**

```bash
semgrep scan --config .semgrep/rules . --error
```

**Run with registry + custom rules:**

```bash
semgrep scan --config auto --config .semgrep/rules .
```

**Layout:**

- `python/` – Python-specific rules (security, patterns)
- Add more subdirs as needed (e.g. `generic/` for language-agnostic rules)

See [Semgrep rule syntax](https://semgrep.dev/docs/writing-rules/rule-syntax/).

---

Source: [Claudary](https://claudary.paisolsolutions.com/skills/readme-474) · https://claudary.paisolsolutions.com
