omgkit 2.1.1 → 2.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/plugin/skills/databases/mongodb/SKILL.md +81 -28
- package/plugin/skills/databases/prisma/SKILL.md +87 -32
- package/plugin/skills/databases/redis/SKILL.md +80 -27
- package/plugin/skills/devops/aws/SKILL.md +80 -26
- package/plugin/skills/devops/github-actions/SKILL.md +84 -32
- package/plugin/skills/devops/kubernetes/SKILL.md +94 -32
- package/plugin/skills/devops/performance-profiling/SKILL.md +59 -863
- package/plugin/skills/frameworks/django/SKILL.md +158 -24
- package/plugin/skills/frameworks/express/SKILL.md +153 -33
- package/plugin/skills/frameworks/fastapi/SKILL.md +153 -34
- package/plugin/skills/frameworks/laravel/SKILL.md +146 -33
- package/plugin/skills/frameworks/nestjs/SKILL.md +137 -25
- package/plugin/skills/frameworks/rails/SKILL.md +594 -28
- package/plugin/skills/frameworks/react/SKILL.md +94 -962
- package/plugin/skills/frameworks/spring/SKILL.md +528 -35
- package/plugin/skills/frameworks/vue/SKILL.md +147 -25
- package/plugin/skills/frontend/accessibility/SKILL.md +145 -36
- package/plugin/skills/frontend/frontend-design/SKILL.md +114 -29
- package/plugin/skills/frontend/responsive/SKILL.md +131 -28
- package/plugin/skills/frontend/shadcn-ui/SKILL.md +133 -43
- package/plugin/skills/frontend/tailwindcss/SKILL.md +105 -37
- package/plugin/skills/frontend/threejs/SKILL.md +110 -35
- package/plugin/skills/languages/javascript/SKILL.md +195 -34
- package/plugin/skills/methodology/brainstorming/SKILL.md +98 -30
- package/plugin/skills/methodology/defense-in-depth/SKILL.md +83 -37
- package/plugin/skills/methodology/dispatching-parallel-agents/SKILL.md +92 -31
- package/plugin/skills/methodology/executing-plans/SKILL.md +117 -28
- package/plugin/skills/methodology/finishing-development-branch/SKILL.md +111 -32
- package/plugin/skills/methodology/problem-solving/SKILL.md +65 -311
- package/plugin/skills/methodology/receiving-code-review/SKILL.md +76 -27
- package/plugin/skills/methodology/requesting-code-review/SKILL.md +93 -22
- package/plugin/skills/methodology/root-cause-tracing/SKILL.md +75 -40
- package/plugin/skills/methodology/sequential-thinking/SKILL.md +75 -224
- package/plugin/skills/methodology/systematic-debugging/SKILL.md +81 -35
- package/plugin/skills/methodology/test-driven-development/SKILL.md +120 -26
- package/plugin/skills/methodology/testing-anti-patterns/SKILL.md +88 -35
- package/plugin/skills/methodology/token-optimization/SKILL.md +73 -34
- package/plugin/skills/methodology/verification-before-completion/SKILL.md +128 -28
- package/plugin/skills/methodology/writing-plans/SKILL.md +105 -20
- package/plugin/skills/omega/omega-architecture/SKILL.md +178 -40
- package/plugin/skills/omega/omega-coding/SKILL.md +247 -41
- package/plugin/skills/omega/omega-sprint/SKILL.md +208 -46
- package/plugin/skills/omega/omega-testing/SKILL.md +253 -42
- package/plugin/skills/omega/omega-thinking/SKILL.md +263 -51
- package/plugin/skills/security/better-auth/SKILL.md +83 -34
- package/plugin/skills/security/oauth/SKILL.md +118 -35
- package/plugin/skills/security/owasp/SKILL.md +112 -35
- package/plugin/skills/testing/playwright/SKILL.md +141 -38
- package/plugin/skills/testing/pytest/SKILL.md +137 -38
- package/plugin/skills/testing/vitest/SKILL.md +124 -39
- package/plugin/skills/tools/document-processing/SKILL.md +111 -838
- package/plugin/skills/tools/image-processing/SKILL.md +126 -659
- package/plugin/skills/tools/mcp-development/SKILL.md +85 -758
- package/plugin/skills/tools/media-processing/SKILL.md +118 -735
- package/plugin/stdrules/SKILL_STANDARDS.md +490 -0
|
@@ -1,355 +1,109 @@
|
|
|
1
1
|
---
|
|
2
|
-
name:
|
|
3
|
-
description:
|
|
2
|
+
name: solving-problems
|
|
3
|
+
description: AI agent applies a 5-phase systematic framework for tackling complex problems when conventional approaches fail. Use when stuck, blocked, or troubleshooting issues.
|
|
4
4
|
category: methodology
|
|
5
5
|
triggers:
|
|
6
6
|
- stuck
|
|
7
7
|
- blocked
|
|
8
|
-
- can't figure out
|
|
9
8
|
- problem solving
|
|
10
|
-
-
|
|
9
|
+
- troubleshooting
|
|
10
|
+
- can't figure out
|
|
11
11
|
---
|
|
12
12
|
|
|
13
|
-
#
|
|
14
|
-
|
|
15
|
-
A **systematic 5-phase framework** for tackling complex problems when conventional approaches fail. This skill provides structured methods to break through blockers and find solutions efficiently.
|
|
13
|
+
# Solving Problems
|
|
16
14
|
|
|
17
15
|
## Purpose
|
|
18
16
|
|
|
19
|
-
|
|
17
|
+
Apply a systematic 5-phase framework for complex problems:
|
|
20
18
|
|
|
21
|
-
-
|
|
22
|
-
-
|
|
23
|
-
-
|
|
24
|
-
-
|
|
25
|
-
-
|
|
19
|
+
- Define problem boundaries clearly before investigating
|
|
20
|
+
- Generate multiple hypotheses before testing any
|
|
21
|
+
- Test hypotheses efficiently with time-boxing
|
|
22
|
+
- Fix root causes, not just symptoms
|
|
23
|
+
- Prevent recurrence with process improvements
|
|
26
24
|
|
|
27
|
-
##
|
|
25
|
+
## Quick Start
|
|
26
|
+
|
|
27
|
+
1. **Define** (5-10 min) - Clarify what IS and IS NOT the problem, set success criteria
|
|
28
|
+
2. **Hypothesize** (10-15 min) - Generate 3+ hypotheses BEFORE testing any
|
|
29
|
+
3. **Test** (time-boxed) - Test cheapest hypothesis first, mark confirmed/eliminated
|
|
30
|
+
4. **Solve** - Fix root cause, verify fix, add regression test
|
|
31
|
+
5. **Prevent** - Analyze why it happened, implement preventive measures
|
|
32
|
+
|
|
33
|
+
## Features
|
|
34
|
+
|
|
35
|
+
| Feature | Description | Guide |
|
|
36
|
+
|---------|-------------|-------|
|
|
37
|
+
| Problem Boundary | Define what IS vs IS NOT the problem | List symptoms, affected scope, working parts |
|
|
38
|
+
| Hypothesis Generation | Create 3+ theories before testing | Include evidence for/against, test cost |
|
|
39
|
+
| Prioritized Testing | Test highest-value hypotheses first | Score = evidence x (1/cost) |
|
|
40
|
+
| Root Cause Fix | Address underlying cause, not symptoms | Verify fix prevents recurrence |
|
|
41
|
+
| Prevention Plan | Stop future occurrences | Code, process, monitoring changes |
|
|
42
|
+
| Escalation Criteria | Know when to ask for help | Time-boxed out, all hypotheses eliminated |
|
|
43
|
+
|
|
44
|
+
## Common Patterns
|
|
28
45
|
|
|
29
|
-
### Phase 1: Define (5-10 minutes)
|
|
30
46
|
```
|
|
47
|
+
# Define Phase
|
|
31
48
|
BOUNDARY DEFINITION
|
|
32
|
-
==================
|
|
33
49
|
What IS the problem:
|
|
34
|
-
-
|
|
35
|
-
-
|
|
36
|
-
-
|
|
37
|
-
- [ ] Affected scope (users, features, environments)
|
|
50
|
+
- Specific error: [error message]
|
|
51
|
+
- Steps to reproduce: [steps]
|
|
52
|
+
- When started: [date/commit]
|
|
38
53
|
|
|
39
54
|
What is NOT the problem:
|
|
40
|
-
-
|
|
41
|
-
-
|
|
42
|
-
- [ ] Red herrings already eliminated
|
|
55
|
+
- What still works: [list]
|
|
56
|
+
- Red herrings eliminated: [list]
|
|
43
57
|
|
|
44
58
|
Success criteria:
|
|
45
|
-
-
|
|
46
|
-
- [ ] How will we verify the fix?
|
|
47
|
-
```
|
|
59
|
+
- What does "solved" look like?
|
|
48
60
|
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
H1: [Most likely] ________________________
|
|
54
|
-
Evidence for: ________________________
|
|
55
|
-
Evidence against: ____________________
|
|
56
|
-
Test cost: Low / Medium / High
|
|
57
|
-
|
|
58
|
-
H2: [Second likely] ______________________
|
|
59
|
-
Evidence for: ________________________
|
|
60
|
-
Evidence against: ____________________
|
|
61
|
-
Test cost: Low / Medium / High
|
|
61
|
+
# Hypothesize Phase
|
|
62
|
+
H1: [Most likely] - Evidence: ___ - Test cost: Low
|
|
63
|
+
H2: [Second likely] - Evidence: ___ - Test cost: Medium
|
|
64
|
+
H3: [Less likely] - Evidence: ___ - Test cost: High
|
|
62
65
|
|
|
63
|
-
|
|
64
|
-
Evidence for: ________________________
|
|
65
|
-
Evidence against: ____________________
|
|
66
|
-
Test cost: Low / Medium / High
|
|
67
|
-
|
|
68
|
-
RULE: Generate hypotheses BEFORE testing any of them.
|
|
69
|
-
```
|
|
70
|
-
|
|
71
|
-
### Phase 3: Test (Time-boxed per hypothesis)
|
|
72
|
-
```
|
|
73
|
-
HYPOTHESIS TESTING ORDER
|
|
74
|
-
========================
|
|
75
|
-
Sort by: (Evidence strength) × (1 / Test cost)
|
|
66
|
+
RULE: Generate hypotheses BEFORE testing any.
|
|
76
67
|
|
|
68
|
+
# Test Phase
|
|
77
69
|
Test H1: [15 min box]
|
|
78
|
-
Action:
|
|
79
|
-
Result: CONFIRMED / ELIMINATED / INCONCLUSIVE
|
|
80
|
-
If inconclusive: Need more data on __________
|
|
81
|
-
|
|
82
|
-
Test H2: [15 min box]
|
|
83
|
-
Action: ________________________________
|
|
70
|
+
Action: ___
|
|
84
71
|
Result: CONFIRMED / ELIMINATED / INCONCLUSIVE
|
|
85
|
-
|
|
86
|
-
STOP when: Hypothesis confirmed OR all eliminated
|
|
87
72
|
```
|
|
88
73
|
|
|
89
|
-
### Phase 4: Solve (Implementation)
|
|
90
|
-
```
|
|
91
|
-
SOLUTION IMPLEMENTATION
|
|
92
|
-
=======================
|
|
93
|
-
Root cause: ______________________________
|
|
94
|
-
Solution approach: _______________________
|
|
95
|
-
|
|
96
|
-
Implementation checklist:
|
|
97
|
-
- [ ] Write the fix
|
|
98
|
-
- [ ] Verify fix addresses root cause (not symptom)
|
|
99
|
-
- [ ] Check for side effects
|
|
100
|
-
- [ ] Add test to prevent regression
|
|
101
|
-
- [ ] Document the issue and solution
|
|
102
|
-
```
|
|
103
|
-
|
|
104
|
-
### Phase 5: Prevent (Post-mortem)
|
|
105
|
-
```
|
|
106
|
-
PREVENTION ANALYSIS
|
|
107
|
-
===================
|
|
108
|
-
Why did this happen?
|
|
109
|
-
- Immediate cause: _______________________
|
|
110
|
-
- Contributing factors: __________________
|
|
111
|
-
- Systemic issues: _______________________
|
|
112
|
-
|
|
113
|
-
How do we prevent recurrence?
|
|
114
|
-
- [ ] Code changes
|
|
115
|
-
- [ ] Process changes
|
|
116
|
-
- [ ] Monitoring/alerting
|
|
117
|
-
- [ ] Documentation updates
|
|
118
|
-
```
|
|
119
|
-
|
|
120
|
-
## Features
|
|
121
|
-
|
|
122
|
-
### 1. Root Cause Hypothesis Generator
|
|
123
|
-
```javascript
|
|
124
|
-
// Common hypothesis categories for software issues:
|
|
125
|
-
|
|
126
|
-
const hypothesisCategories = {
|
|
127
|
-
data: [
|
|
128
|
-
"Invalid input data",
|
|
129
|
-
"Data corruption",
|
|
130
|
-
"Missing required data",
|
|
131
|
-
"Encoding/format mismatch",
|
|
132
|
-
"Stale/cached data"
|
|
133
|
-
],
|
|
134
|
-
configuration: [
|
|
135
|
-
"Environment variable missing",
|
|
136
|
-
"Config file incorrect",
|
|
137
|
-
"Feature flag state",
|
|
138
|
-
"Permission misconfiguration",
|
|
139
|
-
"Version mismatch"
|
|
140
|
-
],
|
|
141
|
-
timing: [
|
|
142
|
-
"Race condition",
|
|
143
|
-
"Timeout too short",
|
|
144
|
-
"Order of operations",
|
|
145
|
-
"Async/await issue",
|
|
146
|
-
"Deadlock"
|
|
147
|
-
],
|
|
148
|
-
resources: [
|
|
149
|
-
"Memory exhaustion",
|
|
150
|
-
"Disk space",
|
|
151
|
-
"Connection pool depleted",
|
|
152
|
-
"Rate limiting",
|
|
153
|
-
"CPU throttling"
|
|
154
|
-
],
|
|
155
|
-
external: [
|
|
156
|
-
"Third-party service down",
|
|
157
|
-
"Network connectivity",
|
|
158
|
-
"DNS resolution",
|
|
159
|
-
"Certificate expiry",
|
|
160
|
-
"API contract change"
|
|
161
|
-
]
|
|
162
|
-
};
|
|
163
|
-
```
|
|
164
|
-
|
|
165
|
-
### 2. Decision Tree Construction
|
|
166
|
-
```
|
|
167
|
-
START: Error occurs
|
|
168
|
-
|
|
|
169
|
-
+-- Is it reproducible?
|
|
170
|
-
| |
|
|
171
|
-
| +-- YES: Proceed to isolation
|
|
172
|
-
| |
|
|
173
|
-
| +-- NO: Focus on logging/monitoring
|
|
174
|
-
| |
|
|
175
|
-
| +-- Add debug logging
|
|
176
|
-
| +-- Wait for recurrence
|
|
177
|
-
| +-- Analyze patterns
|
|
178
|
-
|
|
|
179
|
-
+-- Can you isolate the component?
|
|
180
|
-
|
|
|
181
|
-
+-- YES: Deep dive that component
|
|
182
|
-
|
|
|
183
|
-
+-- NO: Binary search approach
|
|
184
|
-
|
|
|
185
|
-
+-- Disable half the system
|
|
186
|
-
+-- Does error persist?
|
|
187
|
-
+-- Narrow down iteratively
|
|
188
|
-
```
|
|
189
|
-
|
|
190
|
-
### 3. Risk Assessment Matrix
|
|
191
74
|
```
|
|
75
|
+
# Risk Assessment Matrix
|
|
192
76
|
| Hypothesis | Probability | Impact | Test Effort | Priority |
|
|
193
77
|
|------------|-------------|--------|-------------|----------|
|
|
194
78
|
| H1 | High | High | Low | 1st |
|
|
195
79
|
| H2 | Medium | High | Medium | 2nd |
|
|
196
|
-
| H3 | Low | High | Low | 3rd |
|
|
197
|
-
| H4 | High | Low | High | 4th |
|
|
198
|
-
```
|
|
199
|
-
|
|
200
|
-
### 4. Time-Boxing Templates
|
|
201
|
-
```
|
|
202
|
-
INVESTIGATION TIME BOX: 2 hours total
|
|
203
|
-
|
|
204
|
-
Phase 1 (Define): 15 min [■■■□□□□□□□□□]
|
|
205
|
-
Phase 2 (Hypothesize): 15 min [■■■□□□□□□□□□]
|
|
206
|
-
Phase 3 (Test): 60 min [■■■■■■■■■■■■]
|
|
207
|
-
Phase 4 (Solve): 20 min [■■■■□□□□□□□□]
|
|
208
|
-
Phase 5 (Prevent): 10 min [■■□□□□□□□□□□]
|
|
209
|
-
|
|
210
|
-
ESCALATION TRIGGER: If no progress after Phase 3, escalate.
|
|
211
80
|
```
|
|
212
81
|
|
|
213
82
|
## Use Cases
|
|
214
83
|
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
- Works: Local dev environment
|
|
221
|
-
- Fails: Staging environment
|
|
222
|
-
- Error: "Connection refused to service X"
|
|
223
|
-
- Started: After last deployment
|
|
224
|
-
|
|
225
|
-
Phase 2 - Hypothesize:
|
|
226
|
-
H1: Environment variable not set in staging
|
|
227
|
-
H2: Network policy blocking connection
|
|
228
|
-
H3: Service X not deployed to staging
|
|
229
|
-
H4: Different service discovery mechanism
|
|
230
|
-
|
|
231
|
-
Phase 3 - Test:
|
|
232
|
-
H1 Test: Check env vars → MISSING API_URL! ✓ CONFIRMED
|
|
233
|
-
|
|
234
|
-
Phase 4 - Solve:
|
|
235
|
-
- Add API_URL to staging config
|
|
236
|
-
- Verify connection works
|
|
237
|
-
- Add config validation on startup
|
|
238
|
-
|
|
239
|
-
Phase 5 - Prevent:
|
|
240
|
-
- Add env var validation script to CI
|
|
241
|
-
- Document all required env vars
|
|
242
|
-
```
|
|
243
|
-
|
|
244
|
-
### Performance Bottleneck
|
|
245
|
-
```
|
|
246
|
-
PROBLEM: API response time degraded from 100ms to 2s
|
|
247
|
-
|
|
248
|
-
Phase 1 - Define:
|
|
249
|
-
- Specific: GET /api/users endpoint
|
|
250
|
-
- Started: Monday after deployment
|
|
251
|
-
- Scope: All users, all requests
|
|
252
|
-
|
|
253
|
-
Phase 2 - Hypothesize:
|
|
254
|
-
H1: N+1 query introduced
|
|
255
|
-
H2: Missing database index
|
|
256
|
-
H3: External API slowdown
|
|
257
|
-
H4: Resource contention
|
|
258
|
-
|
|
259
|
-
Phase 3 - Test:
|
|
260
|
-
H1: Query count check → 1 query, not N+1
|
|
261
|
-
H2: EXPLAIN ANALYZE → Full table scan! ✓ CONFIRMED
|
|
262
|
-
|
|
263
|
-
Phase 4 - Solve:
|
|
264
|
-
- Add index on users.organization_id
|
|
265
|
-
- Response time: 2s → 50ms
|
|
266
|
-
|
|
267
|
-
Phase 5 - Prevent:
|
|
268
|
-
- Add query performance tests
|
|
269
|
-
- Require EXPLAIN for new queries in PR review
|
|
270
|
-
```
|
|
271
|
-
|
|
272
|
-
### Integration Failures
|
|
273
|
-
```
|
|
274
|
-
PROBLEM: Webhook deliveries failing intermittently
|
|
275
|
-
|
|
276
|
-
Phase 1 - Define:
|
|
277
|
-
- Failure rate: ~5% of webhooks
|
|
278
|
-
- No pattern in time/endpoint
|
|
279
|
-
- Error: Timeout after 30s
|
|
280
|
-
- Started: Gradual increase over 2 weeks
|
|
281
|
-
|
|
282
|
-
Phase 2 - Hypothesize:
|
|
283
|
-
H1: Receiving servers slow
|
|
284
|
-
H2: Our server resource exhaustion
|
|
285
|
-
H3: Network issues
|
|
286
|
-
H4: Payload size growth
|
|
287
|
-
|
|
288
|
-
Phase 3 - Test:
|
|
289
|
-
H1: Check receiving server logs → Mixed results
|
|
290
|
-
H2: Monitor our CPU/memory → Normal
|
|
291
|
-
H3: Network packet loss test → Normal
|
|
292
|
-
H4: Analyze payload sizes → 10x increase! ✓ CONFIRMED
|
|
293
|
-
|
|
294
|
-
Phase 4 - Solve:
|
|
295
|
-
- Compress payloads
|
|
296
|
-
- Increase timeout for large payloads
|
|
297
|
-
- Add pagination for large datasets
|
|
298
|
-
|
|
299
|
-
Phase 5 - Prevent:
|
|
300
|
-
- Add payload size monitoring
|
|
301
|
-
- Set alerts for size thresholds
|
|
302
|
-
```
|
|
84
|
+
- Debugging complex bugs when conventional approaches fail
|
|
85
|
+
- Troubleshooting production incidents with unknown root causes
|
|
86
|
+
- Analyzing intermittent failures or race conditions
|
|
87
|
+
- Investigating performance regressions
|
|
88
|
+
- Resolving integration issues between systems
|
|
303
89
|
|
|
304
90
|
## Best Practices
|
|
305
91
|
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
- Don't spend 4 hours on 1 hypothesis
|
|
316
|
-
- Don't discard hypotheses without testing
|
|
317
|
-
- Don't fix symptoms without understanding root cause
|
|
318
|
-
- Don't skip the prevention phase
|
|
319
|
-
|
|
320
|
-
### Escalation Criteria
|
|
321
|
-
```
|
|
322
|
-
ESCALATE WHEN:
|
|
323
|
-
- [ ] Time box exceeded with no progress
|
|
324
|
-
- [ ] All hypotheses eliminated but problem persists
|
|
325
|
-
- [ ] Problem scope larger than initially understood
|
|
326
|
-
- [ ] Required access/knowledge not available
|
|
327
|
-
- [ ] Business impact exceeds threshold
|
|
328
|
-
|
|
329
|
-
ESCALATION FORMAT:
|
|
330
|
-
"I've investigated [problem] for [time].
|
|
331
|
-
Tested hypotheses: [H1, H2, H3]
|
|
332
|
-
Current status: [findings]
|
|
333
|
-
Blocker: [what's needed]
|
|
334
|
-
Ask: [specific help needed]"
|
|
335
|
-
```
|
|
92
|
+
| Do | Avoid |
|
|
93
|
+
|----|-------|
|
|
94
|
+
| Generate multiple hypotheses before testing | Testing first idea that comes to mind |
|
|
95
|
+
| Test cheapest hypothesis first when evidence equal | Spending 4 hours on 1 hypothesis |
|
|
96
|
+
| Time-box each phase | Rabbit holes without progress |
|
|
97
|
+
| Document failed approaches (valuable data) | Discarding hypotheses without testing |
|
|
98
|
+
| Verify root cause, not just symptoms | Fixing symptoms without understanding cause |
|
|
99
|
+
| Escalate when time-boxed out | Hero-coding beyond time limits |
|
|
100
|
+
| Add regression tests for every fix | Skipping prevention phase |
|
|
336
101
|
|
|
337
102
|
## Related Skills
|
|
338
103
|
|
|
339
|
-
|
|
340
|
-
- **root-cause-tracing** - Deep investigation techniques
|
|
341
|
-
- **sequential-thinking** - Structure reasoning as numbered thoughts
|
|
342
|
-
- **brainstorming** - Generate more hypotheses
|
|
343
|
-
- **verification-before-completion** - Ensure fix is complete
|
|
344
|
-
|
|
345
|
-
## Integration
|
|
104
|
+
See also these related skill documents for complementary techniques:
|
|
346
105
|
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
3. Investigate → problem-solving Phases 2-3 (Hypothesize, Test)
|
|
352
|
-
4. Fix → systematic-debugging Phase 3 (Fix)
|
|
353
|
-
5. Verify → verification-before-completion
|
|
354
|
-
6. Prevent → problem-solving Phase 5 (Prevent)
|
|
355
|
-
```
|
|
106
|
+
- `debugging-systematically` - Four-phase debugging framework
|
|
107
|
+
- `tracing-root-causes` - Deep investigation techniques
|
|
108
|
+
- `thinking-sequentially` - Structure reasoning as numbered thoughts
|
|
109
|
+
- `verifying-before-completion` - Ensure fix is complete
|
|
@@ -1,41 +1,90 @@
|
|
|
1
1
|
---
|
|
2
|
-
name: receiving-code-
|
|
3
|
-
description:
|
|
2
|
+
name: receiving-code-reviews
|
|
3
|
+
description: AI agent handles code review feedback professionally by categorizing, responding appropriately, and extracting learnings. Use when PR feedback arrives, addressing reviewer comments, or improving from feedback.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
# Receiving Code
|
|
6
|
+
# Receiving Code Reviews
|
|
7
7
|
|
|
8
|
-
##
|
|
9
|
-
- Feedback is about code, not you
|
|
10
|
-
- Reviewers want to help
|
|
11
|
-
- Every comment is an opportunity
|
|
8
|
+
## Quick Start
|
|
12
9
|
|
|
13
|
-
|
|
10
|
+
1. **Pause** - Read all comments before responding; don't react immediately
|
|
11
|
+
2. **Categorize** - Sort by type: blocking, suggestion, question, nitpick, praise
|
|
12
|
+
3. **Prioritize** - Address blocking issues first, then questions, then suggestions
|
|
13
|
+
4. **Respond** - Acknowledge every comment with specific action or reasoning
|
|
14
|
+
5. **Learn** - Track recurring feedback patterns for improvement
|
|
14
15
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
## Features
|
|
17
|
+
|
|
18
|
+
| Feature | Description | Guide |
|
|
19
|
+
|---------|-------------|-------|
|
|
20
|
+
| Feedback Categories | Classify comment types | Blocking > Question > Suggestion > Nitpick |
|
|
21
|
+
| Response Templates | Professional reply patterns | Agree, disagree-with-reason, clarify, defer |
|
|
22
|
+
| Systematic Processing | Address all comments | Group related, post summary update |
|
|
23
|
+
| Learning Extraction | Identify improvement patterns | Track recurring categories |
|
|
24
|
+
| Anti-Patterns | Avoid defensive responses | No arguing, ignoring, or dismissiveness |
|
|
25
|
+
| Progress Tracking | Communicate resolution status | Addressed X, Discussing Y, Deferred Z |
|
|
26
|
+
|
|
27
|
+
## Common Patterns
|
|
19
28
|
|
|
20
|
-
### Discuss
|
|
21
29
|
```
|
|
22
|
-
|
|
23
|
-
|
|
30
|
+
# Feedback Category Priority
|
|
31
|
+
1. blocking - Must fix before merge
|
|
32
|
+
2. question - Answer to unblock discussion
|
|
33
|
+
3. suggestion - Consider and respond
|
|
34
|
+
4. nitpick - Fix if easy, discuss if not
|
|
35
|
+
5. praise - Thank the reviewer
|
|
36
|
+
6. fyi - Acknowledge
|
|
37
|
+
|
|
38
|
+
# Response Templates
|
|
39
|
+
AGREE:
|
|
40
|
+
"Good catch! Fixed in abc123."
|
|
41
|
+
|
|
42
|
+
DISAGREE (with reason):
|
|
43
|
+
"I considered this approach but chose current because:
|
|
44
|
+
- [reason 1]
|
|
45
|
+
- [reason 2]
|
|
46
|
+
What do you think given these trade-offs?"
|
|
47
|
+
|
|
48
|
+
CLARIFY:
|
|
49
|
+
"Could you elaborate on [point]? Want to understand fully."
|
|
50
|
+
|
|
51
|
+
DEFER:
|
|
52
|
+
"Good idea! Outside PR scope - created follow-up: [link]"
|
|
24
53
|
```
|
|
25
54
|
|
|
26
|
-
### Clarify
|
|
27
55
|
```
|
|
28
|
-
|
|
29
|
-
|
|
56
|
+
# Processing Workflow
|
|
57
|
+
1. Read ALL comments first (don't start responding)
|
|
58
|
+
2. Categorize and sort by priority
|
|
59
|
+
3. Group related comments together
|
|
60
|
+
4. Address blocking issues first
|
|
61
|
+
5. Answer questions to unblock
|
|
62
|
+
6. Consider suggestions thoughtfully
|
|
63
|
+
7. Post summary update:
|
|
64
|
+
|
|
65
|
+
## Review Response Summary
|
|
66
|
+
- Addressed: 8 comments
|
|
67
|
+
- Pending discussion: 2 comments
|
|
68
|
+
- Deferred (follow-up issues): 1 comment
|
|
69
|
+
Ready for another look!
|
|
30
70
|
```
|
|
31
71
|
|
|
32
|
-
##
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
72
|
+
## Best Practices
|
|
73
|
+
|
|
74
|
+
| Do | Avoid |
|
|
75
|
+
|----|-------|
|
|
76
|
+
| Read all comments before responding | Reacting immediately/defensively |
|
|
77
|
+
| Categorize by priority (blocking first) | Ignoring comments without explanation |
|
|
78
|
+
| Respond to every comment | Marking resolved without addressing |
|
|
79
|
+
| Be specific - reference commit hashes | Over-explaining simple changes |
|
|
80
|
+
| Thank reviewers for insights | Taking feedback personally |
|
|
81
|
+
| Ask for clarification when needed | Arguing about preferences endlessly |
|
|
82
|
+
| Learn from recurring feedback | Dismissing nitpicks dismissively |
|
|
83
|
+
| Re-request review when done | Delaying response to feedback |
|
|
84
|
+
|
|
85
|
+
## Related Skills
|
|
37
86
|
|
|
38
|
-
|
|
39
|
-
-
|
|
40
|
-
-
|
|
41
|
-
-
|
|
87
|
+
- `requesting-code-reviews` - How to request effective reviews
|
|
88
|
+
- `finishing-development-branches` - Complete PR preparation
|
|
89
|
+
- `verifying-before-completion` - Pre-review verification
|
|
90
|
+
- `solving-problems` - Handle tough feedback constructively
|
|
@@ -1,38 +1,109 @@
|
|
|
1
1
|
---
|
|
2
|
-
name: requesting-code-
|
|
3
|
-
description:
|
|
2
|
+
name: requesting-code-reviews
|
|
3
|
+
description: AI agent requests effective code reviews through proper preparation, clear descriptions, and appropriate reviewer selection. Use when creating PRs, requesting feedback, or submitting for review.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
# Requesting Code
|
|
6
|
+
# Requesting Code Reviews
|
|
7
7
|
|
|
8
|
-
##
|
|
9
|
-
- [ ] Tests pass
|
|
10
|
-
- [ ] Self-reviewed
|
|
11
|
-
- [ ] No debug code
|
|
12
|
-
- [ ] Docs updated
|
|
8
|
+
## Quick Start
|
|
13
9
|
|
|
14
|
-
|
|
15
|
-
|
|
10
|
+
1. **Self-Review** - Review your own diff first, catch obvious issues
|
|
11
|
+
2. **Prepare Code** - Tests pass, no debug code, documentation updated
|
|
12
|
+
3. **Write Description** - Clear summary, changes list, testing info, screenshots
|
|
13
|
+
4. **Select Reviewers** - Match expertise to changes, respect workload
|
|
14
|
+
5. **Time Appropriately** - Early week, morning hours, avoid Fridays
|
|
15
|
+
|
|
16
|
+
## Features
|
|
17
|
+
|
|
18
|
+
| Feature | Description | Guide |
|
|
19
|
+
|---------|-------------|-------|
|
|
20
|
+
| Self-Review | Catch issues before requesting | Check debug code, TODOs, test coverage |
|
|
21
|
+
| PR Description | Guide reviewers effectively | Summary, changes, testing, attention areas |
|
|
22
|
+
| Reviewer Selection | Match expertise to needs | Code owner, domain expert, security reviewer |
|
|
23
|
+
| PR Sizing | Optimal size for review quality | <400 lines ideal, split larger PRs |
|
|
24
|
+
| Timing | When to request reviews | Morning, early week, check availability |
|
|
25
|
+
| Reviewer Guidance | Help reviewers focus | Key areas, skip suggestions, questions |
|
|
26
|
+
|
|
27
|
+
## Common Patterns
|
|
28
|
+
|
|
29
|
+
```
|
|
30
|
+
# PR Description Template
|
|
16
31
|
## Summary
|
|
17
|
-
[What changed and why]
|
|
32
|
+
[What changed and why - 2-3 sentences]
|
|
33
|
+
Resolves #123
|
|
18
34
|
|
|
19
35
|
## Changes
|
|
20
|
-
- [
|
|
21
|
-
- [Specific change 2]
|
|
36
|
+
- [Bullet point each significant change]
|
|
22
37
|
|
|
23
38
|
## Testing
|
|
24
|
-
|
|
25
|
-
- [
|
|
39
|
+
### Automated Tests
|
|
40
|
+
- [x] Unit tests added/updated
|
|
41
|
+
- [x] Integration tests pass
|
|
42
|
+
|
|
43
|
+
### Manual Testing
|
|
44
|
+
1. [Step to verify]
|
|
45
|
+
2. [Expected result]
|
|
26
46
|
|
|
27
47
|
## Screenshots
|
|
28
|
-
[
|
|
48
|
+
[For UI changes]
|
|
49
|
+
|
|
50
|
+
## Areas Needing Review
|
|
51
|
+
- Security: [specific file/concern]
|
|
52
|
+
- Performance: [specific concern]
|
|
53
|
+
|
|
54
|
+
## Checklist
|
|
55
|
+
- [x] Self-review completed
|
|
56
|
+
- [x] Tests pass locally
|
|
57
|
+
- [x] Documentation updated
|
|
58
|
+
```
|
|
29
59
|
|
|
30
|
-
|
|
31
|
-
|
|
60
|
+
```
|
|
61
|
+
# PR Size Guide
|
|
62
|
+
| Size | Lines | Review Time | Recommendation |
|
|
63
|
+
|------|-------|-------------|----------------|
|
|
64
|
+
| Small | <100 | 15-30 min | Ideal for quality review |
|
|
65
|
+
| Medium | <400 | 30-60 min | Acceptable |
|
|
66
|
+
| Large | <800 | 1-2 hours | Consider splitting |
|
|
67
|
+
| Too Large | 800+ | 2+ hours | Split required |
|
|
68
|
+
|
|
69
|
+
# Reviewer Selection
|
|
70
|
+
1. Code owner - maintains affected area
|
|
71
|
+
2. Domain expert - knows the technology
|
|
72
|
+
3. Security - for auth/crypto changes
|
|
73
|
+
4. Architecture - for design changes
|
|
74
|
+
|
|
75
|
+
Max reviewers: 4 (too many = diffused responsibility)
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
```
|
|
79
|
+
# Self-Review Checklist
|
|
80
|
+
[ ] No console.log/debug statements
|
|
81
|
+
[ ] No commented-out code
|
|
82
|
+
[ ] No hardcoded values (should be config)
|
|
83
|
+
[ ] Error handling appropriate
|
|
84
|
+
[ ] All tests pass
|
|
85
|
+
[ ] New code has tests
|
|
86
|
+
[ ] Complex logic has comments
|
|
87
|
+
[ ] Commit messages clear
|
|
88
|
+
[ ] Rebased on latest main
|
|
32
89
|
```
|
|
33
90
|
|
|
34
91
|
## Best Practices
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
-
|
|
92
|
+
|
|
93
|
+
| Do | Avoid |
|
|
94
|
+
|----|-------|
|
|
95
|
+
| Self-review first | Submitting PRs without testing |
|
|
96
|
+
| Keep PRs small (<400 lines) | Creating massive PRs |
|
|
97
|
+
| Write clear descriptions | Leaving descriptions empty |
|
|
98
|
+
| Highlight key review areas | Expecting reviewers to find everything |
|
|
99
|
+
| Choose reviewers wisely | Overloading single reviewers |
|
|
100
|
+
| Be responsive to feedback | Ignoring reviewer availability |
|
|
101
|
+
| Include screenshots for UI | Rushing reviewers |
|
|
102
|
+
| Test thoroughly first | Wasting reviewer time on broken code |
|
|
103
|
+
|
|
104
|
+
## Related Skills
|
|
105
|
+
|
|
106
|
+
- `receiving-code-reviews` - Handle feedback professionally
|
|
107
|
+
- `finishing-development-branches` - Complete PR preparation
|
|
108
|
+
- `verifying-before-completion` - Pre-submission verification
|
|
109
|
+
- `writing-plans` - Plan review-ready deliverables
|