# OpenGrep

Test structural rules against real code

Encode risky source patterns as reviewed rules. Use positive and negative examples to establish when each rule should report an issue.

Category: Security
Languages: Multiple languages

## Standard evidence

Rubric v1 · 4/8 verified · 4 unknown · 0 contrary · reviewed 2026-11-28

- **Definition** (verified) — The rule-test convention marks the exact source line expected to match a named rule and includes a negative input to detect unwanted matches. Reviewed 2026-11-28. [Source](https://github.com/opengrep/skills/blob/main/skills/opengrep/SKILL.md#testing-rules)
- **Measurement** (verified) — The engine evaluates structural rules and emits JSON or SARIF findings. Results are scoped to the selected rules and language support. Reviewed 2026-11-28. [Source](https://raw.githubusercontent.com/opengrep/opengrep/main/README.md)
- **Conformance** (verified) — The official rule-writing skill publishes annotated source for rule tests and shows expected positive and negative outcomes. Reviewed 2026-11-28. [Source](https://github.com/opengrep/skills/blob/main/skills/opengrep/SKILL.md#testing-rules)
- **CI enforcement** (unknown) — No reviewed evidence is recorded for this dimension.
- **Getting started** (unknown) — No reviewed evidence is recorded for this dimension.
- **Real-world adoption** (unknown) — No reviewed evidence is recorded for this dimension.
- **Agent guidance** (verified) — The upstream agent skill instructs agents to test a named YAML rule against annotated source files, interpret missed lines and inspect the call graph when an expected cross-file match is absent. Reviewed 2026-11-28. [Source](https://github.com/opengrep/skills/blob/main/skills/opengrep/SKILL.md#testing-rules)
- **Agent portability** (unknown) — No reviewed evidence is recorded for this dimension.

## Adoption

Use OpenGrep in this repository to meet this standard: Test structural rules against real code. Encode risky source patterns as reviewed rules. Use positive and negative examples to establish when each rule should report an issue. Inspect the repository configuration, record the baseline and exact reproduction steps, then add the smallest repeatable check that detects a regression.

Seikika package: no verified installation is listed.

## References

- [Tool documentation](https://github.com/opengrep/opengrep)
- [Agent skill](/skills/opengrep/SKILL.md)
