Skip to content

Commit af2a376

Browse files
authored
Update README.md
1 parent b0bcbee commit af2a376

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

README.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,33 @@ To use the MCP server as a command tool, use the [SuperGateway](https://github.c
6767
}
6868
```
6969

70+
---
71+
72+
## Using rules 👨‍💼
73+
74+
The agent is autonomous and selects when to use the data provided by Digma as needed, however, some clients allow setting rules and policies to set a more structured process.
75+
Here is an example rules file which you can add to your cursor `.cursor/rules` directory
76+
```markdown
77+
# Digma Memory File - Code Review Instructions
78+
79+
## Runtime Analysis Settings
80+
- Environment: TEST
81+
82+
## Code Review Protocol
83+
1. For any code or branch review request:
84+
- Get the list of changed files and methods in the current branch using `git diff`
85+
- Check for ALL runtime issues in TEST environment (not just for the method in context)
86+
- Check if any runtime issue may be related to the changed code
87+
- Check the runtime usage of the changed methods (based on the `git diff`)
88+
- Check if any of the changed methods (based on the `git diff`) have a high risk based on their performance impact
89+
- Synthesize the data with standard code review analysis
90+
91+
92+
## Note
93+
This file is used by the AI assistant to maintain consistent review protocols across sessions.
94+
```
95+
96+
7097

7198
## License 📜
7299

0 commit comments

Comments
 (0)