GS/BS
← Standards directory
Security

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.

Multiple languages

Community rubric · v1

The evidence

Evidence coverage4 / 8
4 supported · 4 unresolved

One point for each verified check. Unknown means we still need evidence. Contrary evidence records an observed result that goes against the criterion.

Latest evidence review ·

  • 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.

    Cited source ↗
  • Measurement

    Verified

    The engine evaluates structural rules and emits JSON or SARIF findings. Results are scoped to the selected rules and language support.

    Cited source ↗
  • Conformance

    Verified

    The official rule-writing skill publishes annotated source for rule tests and shows expected positive and negative outcomes.

    Cited source ↗
  • CI enforcement

    Unknown

    No reviewed evidence is recorded for this dimension.

    Can a change trigger a useful check? Contribute evidence ↗

  • Getting started

    Unknown

    No reviewed evidence is recorded for this dimension.

    Can a newcomer complete a first run? Contribute evidence ↗

  • Real-world adoption

    Unknown

    No reviewed evidence is recorded for this dimension.

    Has another team put it to work? Contribute evidence ↗

  • 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.

    Cited source ↗
  • Agent portability

    Unknown

    No reviewed evidence is recorded for this dimension.

    Does the practice work in two agent harnesses? Contribute evidence ↗

Use this standard

Agent prompt

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.
Read the agent skill ↗

Primary source

OpenGrep documentation ↗