code-patch

Generate secure patches for source code vulnerabilities across multiple programming languages.

Updated Jul 1, 2026
One-click install
npx skills add https://github.com/bpnrockstar/UnifiedBugHunter --skill code-patch
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: code-patch
Source: https://github.com/bpnrockstar/UnifiedBugHunter/tree/main/skills/code-patch
Command: npx skills add https://github.com/bpnrockstar/UnifiedBugHunter --skill code-patch

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill automatically generates minimal, correct, and framework-appropriate fixes for vulnerabilities found in source code.

Core Features & Use Cases

  • Automated Patch Generation: Given vulnerable source code, produces secure patches.
  • Framework-Specific Fixes: Covers OWASP Top 10 classes with fix patterns for multiple programming languages.
  • Tested Fixes: Ensures fixes are minimal, correct, and context-aware.

Quick Start

Patch a vulnerability in Python code by running 'code-patch my_vulnerable_code.py'.

Frequently Asked Questions about code-patch

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

FAQPage Schema
How do I generate a secure code patch for an SQL injection vulnerability?

To generate a secure code patch for an SQL injection vulnerability, provide the vulnerable source file to the tool. It produces minimal, context-aware fixes for OWASP Top 10 issues including SQL injection.

What programming languages are supported for automated vulnerability fixing?

Automated vulnerability fixing supports Python, JavaScript, TypeScript, Java, Go, Ruby, PHP, C#, and Rust. The tool generates framework-specific fixes for various OWASP Top 10 security flaws across these languages.

Can I automatically fix cross-site scripting and path traversal flaws in source code?

Yes, you can automatically fix cross-site scripting and path traversal flaws in source code. The tool generates minimal, correct patches for these vulnerabilities, though manual verification of patch effectiveness is required.

How do I patch a vulnerable Python file using command line scripts?

To patch a vulnerable Python file using command line scripts, run the command with your source file as the argument. The tool analyzes the code and generates secure, framework-appropriate patches for detected vulnerabilities.

Are generated security patches ready for immediate production deployment?

Generated security patches are not ready for immediate production deployment. While the tool ensures fixes are minimal and correct, you must perform manual verification of patch effectiveness before applying them.

Does code patching work for deserialization and IDOR vulnerabilities in Java?

Code patching works for deserialization and IDOR vulnerabilities in Java. It generates secure, framework-specific fixes for these classes of vulnerabilities, ensuring the patches are minimal and context-aware.