threat-patch
Remediate security findings by producing minimal, surgical code patches.
Skill by pproenca
Chalk Labs
Need help deploying threat-patch?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/pproenca-threat-patch
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: spreadsheets, security, agent-building
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Shell scripts
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/threat-patch
What's inside
- Skill name
threat-patch- Description
- Remediate security findings by producing minimal, surgical code patches. Triggers on 'patch security findings', 'fix vulnerabilities', 'remediate findings', 'threat patch', or when the user provides a findings.json (from threat-model), a Codex security findings CSV, a THREAT-MODEL.md, or individual vulnerability descriptions and wants them fixed. Also trigger when reviewing code flagged by a security scanner and the user wants actionable fixes rather than just reports.
- License
- MIT
- Instructions
- 84 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
Files (9)
- SKILL.md
- config.json
- gotchas.md
- hooks.json · hooks/
- metadata.json
- fix-patterns.md · references/
- output-format.md · references/
- workflow.md · references/
- parse-findings.sh · scripts/
SKILL.md (first lines)
# 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) | Source | What It Provides | How to Use | |--------|-----------------|-----------| | **findings.json** (from threat-model) | Structured findings with data flow traces, systemic groupings, exploit chains, and severity ratings | Read directly — richest input, already triaged and grouped | | **Codex CSV** | Title, description, severity, relevant_paths per finding | Run `scripts/parse-findings.sh <csv-path>` to extract structured output | | **THREAT-MODEL.md** | Human-readable threat model | Extract findings from Criticality Calibration section | | **Inline description** | User describes a specific vulnerability | Parse 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](references/workflow.md) for the detailed patching methodology at each step 2. Read [fix patterns](references/fix-patterns.md) when designing fixes — common patterns by vulnerability class 3. Read [output format](references/output-format.md) 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 | File | When to Read | |------|-------------| | [references/workflow.md](references/workflow.md) | Before starting — detailed approach for each patching phase | | [references/fix-patterns.md](references/fix-patterns.md) | When designing fixes — patterns by vulnerability class | | [references/output-format.md](references/output-format.md) | When documenting — templates for both output modes |
From pproenca/dot-skills, MIT.
More from pproenca/dot-skills
- 0.694score
tanstack-query
community
TanStack Query v5 performance optimization for data fetching, caching, mutations, and query patterns.
SkillCFreshness: C★ 218Claude Code +9 - 0.596score
mlflow-3
pproenca
MLflow 3 (open-source, pinned to 3.15) for classic-ML MLOps — logging and registering models, promoting versions across dev/staging/prod, standing up a…
SkillBFreshness: B★ 218Claude Code +9 - 0.596score
ray
pproenca
Production Ray (open-source, pinned to 2.57) for classic-ML workloads from training to serving — Ray Train, Tune, Data, Serve, Core, and cluster deployment on…
SkillBFreshness: B★ 218Claude Code +9 - 0.596score
mlflow-mlops-migration
pproenca
Guided workflow for taking any ML codebase — including one with no experiment tracking at all, or one full of MLflow 2-era idioms — to a production-grade…
SkillBFreshness: B★ 218Claude Code +9 - 0.596score
ray-llm
pproenca
LLM workloads on open-source Ray (pinned to 2.57) — OpenAI-compatible serving with ray.serve.llm (vLLM-backed LLMConfig + build_openai_app) and batch…
SkillBFreshness: B★ 218Claude Code +9 - 0.550score
expo-ui
pproenca
Library reference for @expo/ui SwiftUI components on iOS — covers Host boundaries, modifier composition, iOS 26 Liquid Glass and Human Interface Guidelines…
SkillCFreshness: C★ 218Claude Code +9 - 0.550score
debug
pproenca
Comprehensive debugging methodology for finding and fixing bugs (formerly debugging).
SkillCFreshness: C★ 218Claude Code +9 - 0.550score
bug-review
pproenca
Use this skill when a user asks to review a pull request for bugs, wants AI code review focused on correctness issues, or runs /bug-review.
SkillCFreshness: C★ 218Claude Code +9 - 0.550score
ios-taste
pproenca
Designs iOS 18+ SwiftUI experiences with real taste — starting from user goals, not pixels.
SkillCFreshness: C★ 218Claude Code +9 - 0.550score
implementation-functional-patterns
pproenca
TypeScript's functional answers to the 22 Gang of Four classes — factory functions (Factory Method, Abstract Factory, Prototype, Memento), module-scope…
SkillCFreshness: C★ 218Claude Code +9 - 0.550score
expo
pproenca
Expo React Native performance optimization guidelines.
SkillCFreshness: C★ 218Claude Code +9 - 0.550score
deterministic-metric-design
pproenca
Inventing deterministic metrics — turning a fuzzy property like 'maintainability', 'risk', or 'how reducible this code is' into a deterministic, computable…
SkillCFreshness: C★ 218Claude Code +9
Signals
- Stars
- 218
- Forks
- 19
- Open issues
- 3
- Last commit (this folder)
- Jul 5, 2026 (3 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/pproenca/dot-skills
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from pproenca
- 0.596score
ray-llm
pproenca
LLM workloads on open-source Ray (pinned to 2.57) — OpenAI-compatible serving with ray.serve.llm (vLLM-backed LLMConfig + build_openai_app) and batch…
SkillBFreshness: B★ 218Claude Code +9 - 0.596score
mlflow-mlops-migration
pproenca
Guided workflow for taking any ML codebase — including one with no experiment tracking at all, or one full of MLflow 2-era idioms — to a production-grade…
SkillBFreshness: B★ 218Claude Code +9 - 0.596score
mlflow-3
pproenca
MLflow 3 (open-source, pinned to 3.15) for classic-ML MLOps — logging and registering models, promoting versions across dev/staging/prod, standing up a…
SkillBFreshness: B★ 218Claude Code +9 - 0.596score
ray
pproenca
Production Ray (open-source, pinned to 2.57) for classic-ML workloads from training to serving — Ray Train, Tune, Data, Serve, Core, and cluster deployment on…
SkillBFreshness: B★ 218Claude Code +9 - 0.550score
expo
pproenca
Expo React Native performance optimization guidelines.
SkillCFreshness: C★ 218Claude Code +9 - 0.550score
debug
pproenca
Comprehensive debugging methodology for finding and fixing bugs (formerly debugging).
SkillCFreshness: C★ 218Claude Code +9
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get threat-patch running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
threat-patch skill. Agent Mart. https://agentmart.dev/skills/pproenca-threat-patch (last updated 2026-10-24)