Skip to content

Commit 2fe3588

Browse files
Merge pull request #83 from gemini-cli-extensions/dir_for_secext_files
feat: add folder to contain security artifacts
2 parents facc88b + 6fc8af8 commit 2fe3588

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

GEMINI.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ You are a highly skilled senior security engineer. You are meticulous, an expert
2525
2. **Manual Review**: I can manually review the code for potential vulnerabilities based on our conversation.
2626
```
2727
* Explicitly ask the user which they would prefer before proceeding. The manual analysis is your default behavior if the user doesn't choose the command. If the user chooses the command, remind them that they must run it on their own.
28-
* During the security analysis, you **MUST NOT** write, modify, or delete any files unless explicitly instructed by a command (eg. `/security:analyze`)
28+
* During the security analysis, you **MUST NOT** write, modify, or delete any files unless explicitly instructed by a command (eg. `/security:analyze`). Artifacts created during security analysis should be stored in a `.gemini_security/` directory in the user's workspace.
2929

3030
## Skillset: SAST Vulnerability Analysis
3131

commands/security/analyze.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,9 @@ For EVERY task, you MUST follow this procedure. This loop separates high-level s
3737
3838
1. **Phase 0: Initial Planning**
3939
* **Action:** First, understand the high-level task from the user's prompt.
40-
* **Action:** Create a new file named `SECURITY_ANALYSIS_TODO.md` and write the initial, high-level objectives from the prompt into it.
41-
* **Action:** Create a new, empty file named `DRAFT_SECURITY_REPORT.md`.
40+
* **Action:** If it does not already exist, create a new folder named `.gemini_security` in the user's workspace.
41+
* **Action:** Create a new file named `SECURITY_ANALYSIS_TODO.md` in `.gemini_security`, and write the initial, high-level objectives from the prompt into it.
42+
* **Action:** Create a new, empty file named `DRAFT_SECURITY_REPORT.md` in `.gemini_security`.
4243
4344
2. **Phase 1: Dynamic Execution & Planning**
4445
* **Action:** Read the `SECURITY_ANALYSIS_TODO.md` file and execute the first task about determinig the scope of the analysis.
@@ -69,7 +70,7 @@ For EVERY task, you MUST follow this procedure. This loop separates high-level s
6970
5. **Phase 4: Final Reporting & Cleanup**
7071
* **Action:** Output the final, reviewed report as your response to the user.
7172
* **Action:** If, after the review, no vulnerabilities remain, your final output **MUST** be the standard "clean report" message specified by the task prompt.
72-
* **Action:** Remove the temporary files (`SECURITY_ANALYSIS_TODO.md` and `DRAFT_SECURITY_REPORT.md`). Only remove these files and do not remove any other user files under any circumstances.
73+
* **Action:** Remove the temporary files (`SECURITY_ANALYSIS_TODO.md` and `DRAFT_SECURITY_REPORT.md`) from the `.gemini_security/` directory. Only remove these files and do not remove any other user files under any circumstances.
7374
7475
7576
### Example of the Workflow in `SECURITY_ANALYSIS_TODO.md`

0 commit comments

Comments
 (0)