-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.cursorrules
156 lines (123 loc) · 4.76 KB
/
.cursorrules
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
# Cursor Rules Configuration
# Rule: benchperf
# Description: Performs a comparative performance analysis between current and develop branches
# Usage: Type 'benchperf' in the conversation
benchperf:
steps:
# First test on current branch
- name: "Current Branch Test"
commands:
- "time ./run.sh > /tmp/current_branch_output_1 && time ./run.sh > /tmp/current_branch_output_2 && time ./run.sh > /tmp/current_branch_output_3"
- "git stash && git checkout develop"
# Test on develop branch
- name: "Develop Branch Test"
commands:
- "git checkout develop"
- "time ./run.sh > /tmp/develop_branch_output_1 && time ./run.sh > /tmp/develop_branch_output_2 && time ./run.sh > /tmp/develop_branch_output_3"
# Return to original branch
- name: "Restore State"
commands:
- "git checkout $(cat /tmp/current_branch)"
- "git stash pop"
# Analysis template
- name: "Analysis Template"
template: |
1. Branche `${current_branch}` :
```
Test 1 :
Temps total : ${current_output_1_total}s
- User CPU time : ${current_output_1_user}s
- System CPU time : ${current_output_1_system}s
- CPU utilization : ${current_output_1_cpu}%
Étapes :
${current_output_1_times_by_step}
Test 2 :
Temps total : ${current_output_2_total}s
- User CPU time : ${current_output_2_user}s
- System CPU time : ${current_output_2_system}s
- CPU utilization : ${current_output_2_cpu}%
Étapes :
${current_output_2_times_by_step}
Test 3 :
Temps total : ${current_output_3_total}s
- User CPU time : ${current_output_3_user}s
- System CPU time : ${current_output_3_system}s
- CPU utilization : ${current_output_3_cpu}%
Étapes :
${current_output_3_times_by_step}
```
Meilleur test :
Temps total : ${best_test_current_total}s
- User CPU time : ${best_test_current_user}s
- System CPU time : ${best_test_current_system}s
- CPU utilization : ${best_test_current_cpu}%
2. Branche develop :
```
Test 1 :
Temps total : ${develop_output_1_total}s
- User CPU time : ${develop_output_1_user}s
- System CPU time : ${develop_output_1_system}s
- CPU utilization : ${develop_output_1_cpu}%
Étapes :
${develop_output_1_times_by_step}
Test 2 :
Temps total : ${current_output_2_total}s
- User CPU time : ${develop_output_2_user}s
- System CPU time : ${develop_output_2_system}s
- CPU utilization : ${develop_output_2_cpu}%
Étapes :
${develop_output_2_times_by_step}
Test 3 :
Temps total : ${current_output_3_total}s
- User CPU time : ${develop_output_3_user}s
- System CPU time : ${develop_output_3_system}s
- CPU utilization : ${develop_output_3_cpu}%
Étapes :
${develop_output_3_times_by_step}
```
Meilleur test :
Temps total : ${best_test_develop_total}s
- User CPU time : ${best_test_develop_user}s
- System CPU time : ${best_test_develop_system}s
- CPU utilization : ${best_test_develop_cpu}%
1. Différences:
```
Différences moyennes : (${current_branch} vs ${develop_branch}): ${ecart_moyen} en faveur de ${best_branch_result}
Meilleures differences : (${current_branch} vs ${develop_branch}): ${meilleur_ecart} en faveur de ${best_branch_result}
```
2. Explications détaillées:
```
${detailed_explanation}
```
3. Conclusions:
```
${conclusions}
```
# Rule: prtemplate
# Description: Template standard pour les Pull Requests
# Usage: Automatically applied when creating a Pull Request with GitHub CLI
prtemplate:
template: |
# ${pr_title}
${pr_short_description}
## Changes
### ${change_category_1}
${changes_list_1}
### ${change_category_2}
${changes_list_2}
### Code Organization
- ${code_organization_changes}
${testing_section}
## Impact
${impact_short_description}
1. ${impact_point_1}
2. ${impact_point_2}
3. ${impact_point_3}
variables:
testing_section:
optional: true
template: |
## Testing
- ${test_point_1}
- ${test_point_2}
- ${test_point_3}