omgkit 2.0.6 → 2.1.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.
Files changed (33) hide show
  1. package/package.json +6 -3
  2. package/plugin/agents/architect.md +357 -43
  3. package/plugin/agents/code-reviewer.md +481 -22
  4. package/plugin/agents/debugger.md +397 -30
  5. package/plugin/agents/docs-manager.md +431 -23
  6. package/plugin/agents/fullstack-developer.md +395 -34
  7. package/plugin/agents/git-manager.md +438 -20
  8. package/plugin/agents/oracle.md +329 -53
  9. package/plugin/agents/planner.md +275 -32
  10. package/plugin/agents/researcher.md +343 -21
  11. package/plugin/agents/scout.md +423 -18
  12. package/plugin/agents/sprint-master.md +418 -48
  13. package/plugin/agents/tester.md +551 -26
  14. package/plugin/skills/backend/api-architecture/SKILL.md +857 -0
  15. package/plugin/skills/backend/caching-strategies/SKILL.md +755 -0
  16. package/plugin/skills/backend/event-driven-architecture/SKILL.md +753 -0
  17. package/plugin/skills/backend/real-time-systems/SKILL.md +635 -0
  18. package/plugin/skills/databases/database-optimization/SKILL.md +571 -0
  19. package/plugin/skills/devops/monorepo-management/SKILL.md +595 -0
  20. package/plugin/skills/devops/observability/SKILL.md +622 -0
  21. package/plugin/skills/devops/performance-profiling/SKILL.md +905 -0
  22. package/plugin/skills/frontend/advanced-ui-design/SKILL.md +426 -0
  23. package/plugin/skills/integrations/ai-integration/SKILL.md +730 -0
  24. package/plugin/skills/integrations/payment-integration/SKILL.md +735 -0
  25. package/plugin/skills/methodology/problem-solving/SKILL.md +355 -0
  26. package/plugin/skills/methodology/research-validation/SKILL.md +668 -0
  27. package/plugin/skills/methodology/sequential-thinking/SKILL.md +260 -0
  28. package/plugin/skills/mobile/mobile-development/SKILL.md +756 -0
  29. package/plugin/skills/security/security-hardening/SKILL.md +633 -0
  30. package/plugin/skills/tools/document-processing/SKILL.md +916 -0
  31. package/plugin/skills/tools/image-processing/SKILL.md +748 -0
  32. package/plugin/skills/tools/mcp-development/SKILL.md +883 -0
  33. package/plugin/skills/tools/media-processing/SKILL.md +831 -0
@@ -0,0 +1,355 @@
1
+ ---
2
+ name: problem-solving
3
+ description: Systematic 5-phase approaches when stuck on complex problems
4
+ category: methodology
5
+ triggers:
6
+ - stuck
7
+ - blocked
8
+ - can't figure out
9
+ - problem solving
10
+ - not working
11
+ ---
12
+
13
+ # Problem Solving
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.
16
+
17
+ ## Purpose
18
+
19
+ When you're stuck, random attempts waste time and energy. This skill provides:
20
+
21
+ - Structured approach to unknown problems
22
+ - Multiple hypothesis generation
23
+ - Systematic elimination process
24
+ - Time-boxed investigation phases
25
+ - Clear escalation criteria
26
+
27
+ ## The 5-Phase Framework
28
+
29
+ ### Phase 1: Define (5-10 minutes)
30
+ ```
31
+ BOUNDARY DEFINITION
32
+ ==================
33
+ What IS the problem:
34
+ - [ ] Specific error/behavior observed
35
+ - [ ] Exact steps to reproduce
36
+ - [ ] When it started occurring
37
+ - [ ] Affected scope (users, features, environments)
38
+
39
+ What is NOT the problem:
40
+ - [ ] What still works correctly
41
+ - [ ] Unrelated symptoms
42
+ - [ ] Red herrings already eliminated
43
+
44
+ Success criteria:
45
+ - [ ] What does "solved" look like?
46
+ - [ ] How will we verify the fix?
47
+ ```
48
+
49
+ ### Phase 2: Hypothesize (10-15 minutes)
50
+ ```
51
+ HYPOTHESIS GENERATION (minimum 3)
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
62
+
63
+ H3: [Unlikely but possible] ______________
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)
76
+
77
+ 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: ________________________________
84
+ Result: CONFIRMED / ELIMINATED / INCONCLUSIVE
85
+
86
+ STOP when: Hypothesis confirmed OR all eliminated
87
+ ```
88
+
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
+ ```
192
+ | Hypothesis | Probability | Impact | Test Effort | Priority |
193
+ |------------|-------------|--------|-------------|----------|
194
+ | H1 | High | High | Low | 1st |
195
+ | 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
+ ```
212
+
213
+ ## Use Cases
214
+
215
+ ### Stuck on Implementation
216
+ ```
217
+ PROBLEM: Feature works locally but fails in staging
218
+
219
+ Phase 1 - Define:
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
+ ```
303
+
304
+ ## Best Practices
305
+
306
+ ### Do's
307
+ - **Generate multiple hypotheses** before testing any
308
+ - **Test cheapest hypothesis first** when evidence is equal
309
+ - **Time-box each phase** to prevent rabbit holes
310
+ - **Document failed approaches** - they're valuable data
311
+ - **Escalate when time-boxed out** - don't hero-code
312
+
313
+ ### Don'ts
314
+ - Don't test the first idea that comes to mind
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
+ ```
336
+
337
+ ## Related Skills
338
+
339
+ - **systematic-debugging** - Four-phase debugging with 95% fix rate
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
346
+
347
+ Works seamlessly with debugging workflows:
348
+ ```
349
+ 1. Bug reported → problem-solving Phase 1 (Define)
350
+ 2. Reproduce → systematic-debugging Phase 1 (Reproduce)
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
+ ```