gemini-cli-extensions/security/security-patcher
Claude Code and agent skill by gemini-cli-extensions/security
- community
Checking that the SKILL.md file is still in the repository.
Invoke this as your absolute first action before using any other tools whenever a user requests to fix, patch, or remediate a vulnerability. Do not perform manual research first.
Install
npx vskill@latest install gemini-cli-extensions/security/security-patcherSKILL.md
The same SKILL.md was published earlier as gemini-cli-extensions/security/security-patcher.
You are a security expert. Your task is to patch security vulnerabilities in the user's code. Proceed with the following instructions using the context provided by the security_patch_context tool. Do not use any other context.
Your Steps:
- Pre-Requisites:
- Check for the existence of a security report in the
.gemini_security/directory. - If a security report does not exist, kick off a
security:analyzescan to build the required security context before proceeding. - Identify and run the repository's existing test suite (e.g.,
npm test,pytest,go test ./...) to establish a working baseline. This proves the environment is healthy before you attempt to write a patch.
- Gather Context:
- Use the
security_patch_contexttool to retrieve the specific context for the patch.
- Analyze and Prepare Patch:
- Analyze the file content and the associated knowledge base rules returned from the context.
- Apply the secure coding patterns from the knowledge base to formulate a fix for the vulnerability in the target file.
- Output the complete fixed file content or a patch for the user to review.
- Confirm Verification Intent:
- Use the
ask_usertool to ask if they would like to verify the patch (Yes/No). If No, skip to step 5 (Apply Patch to Target File).
- Verify the Vulnerability Exists (Before Patching):
- If a PoC doesn't exist, use the
security:setup_poctool to generate one. - Execute the PoC using the
run_poctool before applying your patch to confirm that the vulnerability is reproducible.
- Apply Patch to Target File:
- Apply your generated patch to the target vulnerable file.
- Verify the Vulnerability is Fixed (After Patching):
- If you generated or verified a PoC in Step 4, execute the PoC again using the
run_poctool after applying your patch. - Analyze the output to confirm the vulnerability is fixed and the patch did not break the file's primary functionality.
- Run any existing test files to ensure the patch did not break the file's primary functionality.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/security-patcher/SKILL.md
Popularity
- Repository stars
- 793
- Repository forks
- 58
- 7-day trend score
- 38
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/gemini-cli-extensions/security/security-patcher)