Add a SKILL and PROMPT for generating rules with AI (#1557)

Signed-off-by: Cosmin Cojocar <cosmin@cojocar.ch>
This commit is contained in:
Cosmin Cojocar
2026-02-28 09:47:19 +01:00
committed by GitHub
parent 9e5b3e2e5a
commit 50c43450f7
3 changed files with 137 additions and 0 deletions
@@ -0,0 +1,34 @@
---
name: Create Gosec Rule
mode: agent
description: Create a new gosec rule from a Go issue description using the reusable gosec skill.
---
Use the skill Create New Gosec Rule from .github/skills/gosec-new-rule/SKILL.md.
Follow the skill contract exactly:
- First response must propose a rule ID, implementation approach, relevance for Go 1.25 and Go 1.26, and ask for confirmation.
- Do not start implementation until confirmation is explicitly provided.
Issue description:
### Summary
{{summary}}
### Steps to reproduce the behavior
{{steps_to_reproduce}}
### gosec version
{{gosec_version}}
### Go version (output of 'go version')
{{go_version}}
### Operating system / Environment
{{environment}}
### Expected behavior
{{expected_behavior}}
### Actual behavior
{{actual_behavior}}