fix-code-vulnerability

Trace code paths and fix security vulnerabilities with CWE classifications.

Updated Feb 24, 2026
One-click install
npx skills add https://github.com/Zurybr/lefarma-skills --skill fix-code-vulnerability
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: fix-code-vulnerability
Source: https://github.com/Zurybr/lefarma-skills/tree/main/letta/benchmarks/trajectory-only/fix-code-vulnerability
Command: npx skills add https://github.com/Zurybr/lefarma-skills --skill fix-code-vulnerability

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a structured process to identify, analyze, and fix security vulnerabilities in code, ensuring comprehensive and effective remediation.

Core Features & Use Cases

  • Vulnerability Analysis: Understand the context, CWE classification, and security impact of identified flaws.
  • Code Path Tracing: Systematically trace all entry points and affected functions to ensure complete fixes.
  • Fix Implementation: Apply targeted code changes that align with test expectations and address root causes.
  • Verification: Ensure fixes pass all tests and do not introduce regressions.
  • Use Case: When a security scan flags a CWE-79 (Cross-Site Scripting) vulnerability, use this skill to understand the exact input vectors, trace the vulnerable code paths, implement input sanitization, and verify the fix with targeted tests.

Quick Start

Use the fix-code-vulnerability skill to analyze and patch the identified SQL injection vulnerability in the user authentication module.

Frequently Asked Questions about fix-code-vulnerability

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

FAQPage Schema
How do I systematically fix security vulnerabilities flagged by a code scan?

To fix security vulnerabilities systematically, trace all affected code paths from entry points, analyze the CWE classification, apply targeted secure coding patches, and verify the remediation with tests to prevent regressions.

What is the best way to patch a CWE-79 cross-site scripting vulnerability in my code?

The best way to patch a CWE-79 vulnerability is to trace the exact input vectors, implement targeted input sanitization across all affected functions, and verify the fix with tests to ensure complete remediation.

How do I ensure my secure coding fixes pass tests without introducing regressions?

To ensure secure coding fixes pass tests without regressions, apply targeted code changes that align with test expectations, address the root cause of the security flaw, and verify the fix against all affected code paths.

Can I use this approach to analyze incomplete test coverage for security flaws?

Yes, you can use this approach to analyze incomplete test coverage for security flaws by systematically tracing code paths, verifying that all affected functions are tested, and ensuring targeted changes address the root cause.

Do I need to understand CWE classifications to fix code vulnerabilities effectively?

Yes, understanding CWE classifications is required to fix code vulnerabilities effectively, as it helps you accurately analyze the security impact, understand the context of identified flaws, and apply the correct secure coding practices.