Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
pproenca avatar

Threat Patch

  • 170 installs
  • 191 repo stars
  • Updated July 24, 2026
  • pproenca/dot-skills

threat-patch: A skill for development. This provides functionality for development workflows.

Key points

  • threat-patch

Threat Patch by the numbers

  • 170 all-time installs (skills.sh)
  • +5 installs in the week ending Aug 4, 2026 (Skillselion tracking)
  • Ranked #2,287 of 4,347 Backend & APIs skills by installs in the Skillselion catalog
  • Data as of Aug 4, 2026 (Skillselion catalog sync)
npx skills add https://github.com/pproenca/dot-skills --skill threat-patch

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs170
repo stars191
Last updatedJuly 24, 2026
Repositorypproenca/dot-skills

How do I use threat-patch for development tasks?

Use threat-patch for development tasks

Who is it for?

Best when you're working on backend & apis and need structured help with threat-patch.

Skip if: Teams with no backend & apis needs, or anyone wanting a generic chat assistant without this specific workflow.

When should I use this skill?

When you need to use threat-patch for development tasks, or when threat-patch: a skill for development. this provides functionality for development workflows.

What you get

Structured output aligned to threat-patch: threat-patch.

Files

SKILL.mdMarkdownGitHub ↗

Threat Patch

Reads security findings and produces minimal, surgical code patches with structured documentation. Fixes are code-grounded — each patch targets specific files and functions identified in the finding. Output includes a summary, validation steps, and the code changes.

When to Apply

  • User provides a findings.json (from threat-model) and wants fixes
  • User provides a Codex security findings CSV and wants fixes
  • User has a THREAT-MODEL.md and wants to remediate identified risks
  • User describes a specific vulnerability and wants a patch
  • Reviewing security scanner output and needs actionable fixes
  • After a security audit, turning findings into code changes

Input Sources (priority order)

SourceWhat It ProvidesHow to Use
findings.json (from threat-model)Structured findings with data flow traces, systemic groupings, exploit chains, and severity ratingsRead directly — richest input, already triaged and grouped
Codex CSVTitle, description, severity, relevant_paths per findingRun scripts/parse-findings.sh <csv-path> to extract structured output
THREAT-MODEL.mdHuman-readable threat modelExtract findings from Criticality Calibration section
Inline descriptionUser describes a specific vulnerabilityParse from conversation context

When findings.json is available, it's the preferred input — it includes data flow traces (entry → chain → sink) that directly inform where to apply fixes, and systemic groupings that suggest centralized fixes over individual patches.

Workflow Overview

1. Ingest Findings   → Read findings.json / CSV / descriptions
2. Triage & Group    → Sort by severity, use systemic groupings if available
3. For each finding:
   a. Read Code      → Open relevant_paths, understand the pattern
   b. Confirm        → Verify issue is still present in HEAD
   c. Design Fix     → Determine minimal fix approach
   d. Implement      → Write the code changes
   e. Document       → Summary + Validation + Attack-path (if needed)
   f. Test           → Run relevant tests
4. Output            → Per-patch deliverable with summary and diff
5. Update State      → Mark patched findings in findings.json (if present)

How to Use

1. Read workflow for the detailed patching methodology at each step 2. Read fix patterns when designing fixes — common patterns by vulnerability class 3. Read output format for the documentation template per patch 4. If input is findings.json: read it directly — it's already structured 5. If input is Codex CSV: run scripts/parse-findings.sh <csv-path> to extract structured output

Key Principles

  • Minimal diff: Fix the vulnerability, don't refactor surrounding code. The smallest correct patch is the best patch
  • Centralize over duplicate: When multiple code paths share the same vulnerability pattern, extract a shared helper rather than patching each site independently
  • Explicit error paths: Add specific error types for rejected inputs with clear operator feedback, not silent failures or generic errors
  • Confirm before fixing: Always verify the finding is still present in HEAD — code may have moved or been refactored since the finding was detected
  • User approval before edits: Present the fix design (files to change, approach) and wait for approval before modifying source code. Hooks gate Edit/Write tool calls for additional safety
  • Document even failures: When a fix can't be tested due to environment limitations, document the test command and the limitation

Guardrails

This skill modifies source code. Safety measures:

  • PreToolUse hooks on Edit and Write tools prompt for confirmation before each file change
  • Confirmation gate in the workflow between fix design and implementation
  • Revert path: Without commits (default), use git checkout -- <files> to undo. With commits, use git revert

Output Modes

Code patch — when a fix is implemented:

  • Summary of what was confirmed and what the fix does
  • Testing section with build/test commands
  • The actual code changes

Analysis only — when the fix needs user decision or architectural changes:

  • Summary of what was confirmed
  • Validation checklist
  • Attack-path analysis (path, likelihood, impact, assumptions, controls, blindspots)

References

FileWhen to Read
references/workflow.mdBefore starting — detailed approach for each patching phase
references/fix-patterns.mdWhen designing fixes — patterns by vulnerability class
references/output-format.mdWhen documenting — templates for both output modes

Related skills

FAQ

What does threat-patch do?

threat-patch: A skill for development. This provides functionality for development workflows.

When should I use threat-patch?

When you need to use threat-patch for development tasks, or when threat-patch: a skill for development. this provides functionality for development workflows.

What are the main capabilities?

threat-patch.

Backend & APIsbackendintegrations

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.