rule-optimize

Modify, test, and benchmark secret scanning detection rules against baseline metrics.

2|Updated Jan 24, 2026
One-click install
npx skills add https://github.com/ahrav/scratch-scanner-rs --skill rule-optimize
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rule-optimize
Source: https://github.com/ahrav/scratch-scanner-rs/tree/main/.claude/skills/rule-optimize
Command: npx skills add https://github.com/ahrav/scratch-scanner-rs --skill rule-optimize

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a structured workflow for modifying, testing, and benchmarking detection rules to ensure performance and accuracy.

Core Features & Use Cases

  • Rule Modification & Testing: Guides users through the process of updating detection rules and verifying changes.
  • Performance Benchmarking: Facilitates performance testing against baseline configurations and test repositories.
  • Use Case: After adding a new secret detection pattern, use this Skill to ensure it doesn't negatively impact scan speed and correctly identifies secrets.

Quick Start

Run the rule-optimize skill to benchmark changes to detection rules.

Frequently Asked Questions about rule-optimize

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I benchmark detection rules for secret scanning performance?

Benchmarking detection rules for secret scanning involves comparing performance metrics against a baseline configuration and test repositories. This process verifies that modifications maintain optimal scanner efficiency and correctly identify secrets.

What is the process for testing modified secret scanning patterns?

Testing modified secret scanning patterns involves running tests, building release versions, and validating against pattern guidelines for anchors and validation. This structured workflow ensures new detection rules correctly identify secrets without introducing errors.

When do I need to optimize my scanner's detection rules?

You need to optimize detection rules when adding new secret detection patterns or modifying existing ones. This validation step ensures new rules adhere to pattern guidelines and do not degrade the scanner's overall speed and efficiency.

How do I ensure new secret detection patterns do not impact scan speed?

To ensure new patterns do not impact scan speed, you benchmark performance against baseline configurations and test repositories. Checking against pattern guidelines for anchors and validation helps maintain optimal scanner efficiency after rule modifications.

What pattern guidelines should I follow when modifying secret scanning rules?

When modifying secret scanning rules, follow pattern guidelines for anchors, performance, and validation. Adhering to these guidelines during the rule modification and testing checklist maintains optimal scanner efficiency and accurate secret detection.