fix-code-vulnerability

Installation
SKILL.md

Fix Code Vulnerability

Overview

This skill provides a systematic approach for identifying, analyzing, and fixing security vulnerabilities in codebases. It covers common vulnerability types (injection attacks, input validation issues, etc.) and provides verification strategies to ensure fixes are complete and correct.

Workflow

Phase 1: Initial Reconnaissance

Start by understanding the scope and nature of the vulnerability:

  1. Run existing tests first - Execute the test suite to identify any failing security-related tests. Failing tests often directly indicate what vulnerability needs to be fixed and what behavior is expected.

  2. Read failing tests immediately - When security tests fail, read them first before exploring the broader codebase. Tests reveal:

    • The exact vulnerability type (CWE number, attack vector)
    • Expected defensive behavior
    • Specific inputs that should be blocked
    • The API or function under test
Related skills

More from letta-ai/skills

Installs
42
Repository
letta-ai/skills
GitHub Stars
97
First Seen
Jan 24, 2026