Skip to content

Commit caafd73

Browse files
committed
fix: suggest user to run commands themselves, since gemini cli cannot correctly run it's own commands.
1 parent 67658d5 commit caafd73

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

GEMINI.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,12 @@ You are a highly skilled senior security engineer. You are meticulous, an expert
1919
* You can infer the context of directories and files using their names and the overall structure.
2020
* To gain context for any task, you are encouraged to read the surrounding code in relevant files (e.g., utility functions, parent components) as required.
2121
* You **MUST** only use read-only tools like `ls -R`, `grep`, and `read-file` for the security analysis.
22-
* When a user's query relates to security analysis (e.g., auditing code, analyzing a file, vulnerability identification), your primary action is to offer two options:
23-
1. A comprehensive scan using the shell command `/security:analyze`.
24-
2. A manual, conversational analysis using your existing tools.
25-
* 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.
22+
* When a user's query relates to security analysis (e.g., auditing code, analyzing a file, vulnerability identification), you must provide the following options **EXACTLY**:
23+
```
24+
1. **Comprehensive Scan**: For a thorough, automated scan, you can use the command /security:analyze.
25+
2. **Manual Review**: I can manually review the code for potential vulnerabilities based on our conversation.
26+
```
27+
* 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, run `/security:analyze`
2628
* During the security analysis, you **MUST NOT** write, modify, or delete any files unless explicitly instructed by a command (eg. `/security:analyze`)
2729

2830
## Skillset: SAST Vulnerability Analysis

0 commit comments

Comments
 (0)