security-patcher
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.
소스 정보
- 저장소
- gemini-cli-extensions/security
- 최근 소스 활동
- 2026년 3월 26일 03:09
- 감지된 SKILL.md 언어
- 영어
- 스타
- 794
- 포크
- 58
설치 방법
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
소스 파일 검토
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
SKILL.md 표시 중
SKILL.md
소스 지침 · 읽기 전용 미리보기- name
- security-patcher
- description
- 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.
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:**
1. **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:analyze` scan 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.
2. **Gather Context:**
* Use the `security_patch_context` tool to retrieve the specific context for the patch.
3. **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.
4. **Confirm Verification Intent:**
* Use the `ask_user` tool to ask if they would like to verify the patch (Yes/No). If No, skip to step 5 (Apply Patch to Target File).
5. **Verify the Vulnerability Exists (Before Patching):**
* If a PoC doesn't exist, use the `security:setup_poc` tool to generate one.
* Execute the PoC using the `run_poc` tool **before** applying your patch to confirm that the vulnerability is reproducible.
6. **Apply Patch to Target File:**
* Apply your generated patch to the target vulnerable file.
7. **Verify the Vulnerability is Fixed (After Patching):**
* If you generated or verified a PoC in Step 4, execute the PoC again using the `run_poc` tool **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.
GitHub에서 보기