Token导航 LogoToken导航

Agent Skill · 研究检索

fix-code-vulnerability(修复代码漏洞)

用于辅助安全审计、权限检查、凭据风险、认证流程和常见漏洞排查。它适合让 Agent 梳理敏感配置、检查依赖风险、分析鉴权逻辑或生成安全复核清单。使用时不能把工具输出直接当最终结论,涉及密钥、令牌、用户数据或生产系统时,应先确认最小权限、脱敏方式和操作边界。

fix-code-vulnerability 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为执行命令;许可证为 MIT,第三方扫描已通过,按安装量在研究检索类的 73,675 个 Skill 里排第 42,822。

总安装 1,038周安装 42GitHub Stars 93下载 326核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:fix-code-vulnerability(修复代码漏洞)
来源仓库:https://github.com/letta-ai/skills
仓库路径:skills/fix-code-vulnerability
安装命令:
npx skills add https://github.com/letta-ai/skills --skill fix-code-vulnerability
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/letta-ai/skills --skill fix-code-vulnerability

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

fix-code-vulnerability 用于辅助安全审计和漏洞排查。适合梳理敏感配置、检查依赖风险或分析鉴权逻辑。通过 npx skills add 命令从指定仓库安装,需确认权限与维护状态。不能将工具输出直接当作最终结论,涉及密钥时应确认最小权限。建议结合原始 README 进一步核验具体用法和功能边界。

来源仓库内路径:skills/fix-code-vulnerability

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/letta-ai/skills --skill fix-code-vulnerability;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要执行命令,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

fix-code-vulnerability 怎么安装?

在终端执行 npx skills add https://github.com/letta-ai/skills --skill fix-code-vulnerability。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

fix-code-vulnerability 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

fix-code-vulnerability 需要什么权限?

权限级别是执行命令。安装流程涉及命令执行,可能通过 npx skills add https://github.com/letta-ai/skills --skill fix-code-vulnerability;npx skills add letta-ai/skills --skill "fix-code-vulnerability" 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

fix-code-vulnerability 是免费的吗?

来源标注的许可证是 MIT。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

fix-code-vulnerability 用的人多吗?

公开数据是累计安装 1,038 次,近一周安装 42 次,下载 326 次,GitHub 93 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

fix-code-vulnerability 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 3 个目录同时收录,说明这个 Skill 流传比较广。
  • 许可证明确为 MIT,商用和分发边界好判断。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 需要执行命令,装到常用环境前要先评估影响面。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。
  • 需要许可证清楚、并且有第三方扫描结果的团队项目。

不太适合

  • 不能接受 Skill 在你机器上执行命令的人。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
fix-code-vulnerability

修复代码漏洞 · 本页

1,03893执行命令MIT通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

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

  1. Identify the vulnerability type - Classify the vulnerability:

- CWE-89: SQL Injection - CWE-78: OS Command Injection - CWE-79: Cross-Site Scripting (XSS) - CWE-93: CRLF Injection (HTTP Response Splitting) - CWE-22: Path Traversal - CWE-94: Code Injection - CWE-611: XML External Entity (XXE)

Phase 2: Code Analysis

Trace the vulnerable code path:

  1. Follow the data flow - Trace from user input to the vulnerable operation:

- Entry points (API endpoints, form handlers, file readers) - Data transformation functions - Output points (database queries, file operations, HTTP responses)

  1. Identify the fix location - Prefer fixing at centralized helper functions rather than multiple call sites:

- Look for utility functions that process the vulnerable data - Fixing a shared helper covers all callers automatically - Avoid scattered fixes that may miss edge cases

  1. Read code in larger chunks - When analyzing related functions, read them together rather than making many small reads. This provides better context for understanding the code flow.

Phase 3: Implementing the Fix

Apply the appropriate defensive measure:

  1. Input validation - For injection vulnerabilities:

- Validate against dangerous characters (e.g., \n, \r, \0 for CRLF) - Use allowlists when possible (define what IS allowed vs. what is NOT) - Raise clear error messages that identify the issue

  1. Output encoding - For XSS and similar:

- Encode output appropriate to the context (HTML, URL, JavaScript) - Use framework-provided encoding functions

  1. Parameterization - For SQL/command injection:

- Use parameterized queries or prepared statements - Avoid string concatenation with user input

  1. Error handling - Ensure the fix:

- Raises appropriate exceptions with descriptive messages - Does not leak sensitive information in error messages - Fails securely (deny by default)

Phase 4: Verification

Confirm the fix is complete:

  1. Run the full test suite - All tests should pass, including:

- The originally failing security tests - Existing functionality tests (ensure no regressions)

  1. Verify edge cases are covered - Check that the fix handles:

- All variations of the attack (e.g., all control characters, not just \n) - Both direct and indirect attack paths - All methods that could trigger the vulnerability

  1. Create a vulnerability report - Document:

- Vulnerability type and CWE identifier - Affected code locations - Fix description and rationale - Test coverage confirmation

Common Pitfalls

Avoid These Mistakes

  1. Incomplete character coverage - When blocking dangerous characters, ensure all variants are covered (e.g., both \r and \n for CRLF, not just one).
  2. Fixing at wrong level - Don't patch individual call sites when a centralized fix is available. Find the common helper function.
  3. Missing indirect paths - A function may be called through multiple code paths. Verify the fix covers all entry points.
  4. Skipping test verification - Always run tests after applying fixes. Visual inspection is insufficient.
  5. Overly broad fixes - Don't break legitimate functionality. Understand what valid inputs look like before blocking patterns.

Attack Scenarios to Consider

When fixing vulnerabilities, understand the attack:

  • CRLF Injection (CWE-93): Attacker injects \r\n to split HTTP headers, enabling response splitting attacks
  • SQL Injection (CWE-89): Attacker escapes string context to execute arbitrary SQL
  • Command Injection (CWE-78): Attacker uses shell metacharacters to execute system commands
  • Path Traversal (CWE-22): Attacker uses ../ sequences to access files outside intended directory

Process Efficiency Tips

  1. Start with tests - Running tests first immediately reveals which security checks are failing and what behavior is expected.
  2. Read tests before code - Security tests describe the vulnerability and expected fix more clearly than searching the codebase.
  3. Fix centralized functions - Identify and fix shared helper functions to cover all code paths with minimal changes.
  4. Verify once, comprehensively - Run the full test suite rather than individual tests to catch any regressions.
  5. Document the vulnerability - Create a report that explains the vulnerability type, fix applied, and verification performed.

平台分布

Claude Code

27.52%
按下载量换算90

Gemini CLI

26.62%
按下载量换算87

Codex

19.43%
按下载量换算63

Antigravity

12.36%
按下载量换算40

OpenCode

7.9%
按下载量换算26

windsurf

4.11%
按下载量换算13

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/letta-ai/skills --skill fix-code-vulnerability;npx skills add letta-ai/skills --skill "fix-code-vulnerability" 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

继续浏览同类 Skills