Prompt file imported from darksilenxe/darksast (
.github/prompts/review-rule.prompt.md). Fill in{{input}}before use. Copyright stays with the author.
Review exactly one scanner rule in this repository based on this request:
{{input}}
Use these repo instructions as the source of truth:
Review checklist:
- Inspect the target rule under rules and compare it with the most similar rules in the repository.
- Check required fields, rule id format, framework casing, description quality, and whether the query is precise and deterministic.
- Check whether existing coverage under tests is sufficient to prove both intended detections and likely non-matches.
- If validation is needed to confirm a review finding, run:
- powershell -NoProfile -ExecutionPolicy Bypass -File ./scripts/scan_entry.ps1 -TargetKey tests
- Do not make code changes unless the user explicitly asks for fixes. Default to review findings first.
Output format:
- Findings: ordered by severity, with the rule weakness and why it matters.
- Coverage gaps: missing or weak tests, if any.
- Validation: whether a scan was run and what it confirmed.
- Recommendation: the smallest next change that would improve the rule.
If there are no material findings, say that explicitly and mention any residual uncertainty.