plan-code-scanning-remediation

Plan GitHub code scanning alert remediation as a structured epic with grouped child features.

1|Updated Apr 15, 2026
One-click install
npx skills add https://github.com/pnewsam/skills --skill plan-code-scanning-remediation-pnewsam
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: plan-code-scanning-remediation
Source: https://github.com/pnewsam/skills/tree/main/archive/plan-code-scanning-remediation
Command: npx skills add https://github.com/pnewsam/skills --skill plan-code-scanning-remediation-pnewsam

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Triaging CodeQL and SAST alerts ad hoc leads to scattered fixes, duplicate PRs, and lost context. This Skill turns raw code scanning findings into a durable, idempotent remediation plan before any code changes happen. ## Core Features & Use Cases - Alert Verification: Reads flagged source files to confirm whether each GitHub code scanning alert is still real, already fixed, or covered by an open PR. - Idempotent Grouping: Groups related alerts by rule ID, file, or subsystem into focused remediation features with stable group IDs, branch names, and PR markers. - Epic Generation: Creates or updates a standard docs/epics/NNN-code-scanning-remediation.md epic with a remediation inventory, success criteria, and child feature checklist. - Use Case: After a CodeQL scan reports 15 open alerts across your repository, use this Skill to verify each finding against current source, detect two alerts already covered by open PRs, and produce an epic grouping the rest into three reviewable remediation features. ## Quick Start Triage the open GitHub code scanning alerts in this repository and create a remediation epic in docs/epics grouping them into focused features.

Frequently Asked Questions about plan-code-scanning-remediation

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

FAQPage Schema
How do I triage GitHub code scanning alerts before fixing them?▼

Fetch open alerts via the gh api code-scanning endpoint, read each flagged source file to confirm the vulnerable pattern still exists, and check open PRs for existing coverage. Then group verified alerts by rule ID or subsystem into focused remediation features.

How to group CodeQL alerts into remediation features?▼

Group alerts that share the same rule ID in one file or directory, the same rule family in one subsystem, or the same source/sink pattern and verification path. Never mix unrelated languages, rule families, or ownership areas in one feature.

Should I use this for dependency vulnerabilities or code scanning alerts?▼

Use this Skill only for code scanning alerts such as CodeQL and SAST findings in your own source code. For dependency vulnerabilities from tools like Dependabot, use the plan-vulnerability-remediation skill instead.

Does planning code scanning remediation change any source code?▼

No, this Skill is strictly read-only planning. It never modifies source code, workflows, branches, or config; it only produces or updates a remediation epic document under docs/epics with grouped findings and verification guidance.

How does the remediation plan stay idempotent across runs?▼

Each alert group gets a stable group_id, a predictable branch name like security/<group_id>, and an HTML PR marker comment embedding the group ID, alert numbers, and rule IDs. Re-running the workflow updates the existing epic instead of creating duplicates.