omgkit 2.0.7 → 2.1.1

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 (27) hide show
  1. package/package.json +2 -2
  2. package/plugin/skills/backend/api-architecture/SKILL.md +857 -0
  3. package/plugin/skills/backend/caching-strategies/SKILL.md +755 -0
  4. package/plugin/skills/backend/event-driven-architecture/SKILL.md +753 -0
  5. package/plugin/skills/backend/real-time-systems/SKILL.md +635 -0
  6. package/plugin/skills/databases/database-optimization/SKILL.md +571 -0
  7. package/plugin/skills/databases/postgresql/SKILL.md +494 -18
  8. package/plugin/skills/devops/docker/SKILL.md +466 -18
  9. package/plugin/skills/devops/monorepo-management/SKILL.md +595 -0
  10. package/plugin/skills/devops/observability/SKILL.md +622 -0
  11. package/plugin/skills/devops/performance-profiling/SKILL.md +905 -0
  12. package/plugin/skills/frameworks/nextjs/SKILL.md +407 -44
  13. package/plugin/skills/frameworks/react/SKILL.md +1006 -32
  14. package/plugin/skills/frontend/advanced-ui-design/SKILL.md +426 -0
  15. package/plugin/skills/integrations/ai-integration/SKILL.md +730 -0
  16. package/plugin/skills/integrations/payment-integration/SKILL.md +735 -0
  17. package/plugin/skills/languages/python/SKILL.md +489 -25
  18. package/plugin/skills/languages/typescript/SKILL.md +379 -30
  19. package/plugin/skills/methodology/problem-solving/SKILL.md +355 -0
  20. package/plugin/skills/methodology/research-validation/SKILL.md +668 -0
  21. package/plugin/skills/methodology/sequential-thinking/SKILL.md +260 -0
  22. package/plugin/skills/mobile/mobile-development/SKILL.md +756 -0
  23. package/plugin/skills/security/security-hardening/SKILL.md +633 -0
  24. package/plugin/skills/tools/document-processing/SKILL.md +916 -0
  25. package/plugin/skills/tools/image-processing/SKILL.md +748 -0
  26. package/plugin/skills/tools/mcp-development/SKILL.md +883 -0
  27. package/plugin/skills/tools/media-processing/SKILL.md +831 -0
@@ -0,0 +1,260 @@
1
+ ---
2
+ name: sequential-thinking
3
+ description: Numbered thought sequences for complex problem decomposition and structured reasoning
4
+ category: methodology
5
+ triggers:
6
+ - complex problem
7
+ - step by step
8
+ - think through
9
+ - reasoning chain
10
+ - decompose
11
+ ---
12
+
13
+ # Sequential Thinking
14
+
15
+ Master the art of **structured reasoning** through numbered thought sequences. This skill enables systematic problem decomposition, dependency tracking, and clear reasoning chains for complex challenges.
16
+
17
+ ## Purpose
18
+
19
+ Sequential thinking transforms chaotic problem-solving into organized, traceable reasoning. It's essential when:
20
+
21
+ - Problems have multiple interdependent components
22
+ - Solutions require building on previous insights
23
+ - Team communication needs clear reasoning trails
24
+ - Debugging requires systematic elimination
25
+ - Decisions need documented justification
26
+
27
+ ## Features
28
+
29
+ ### 1. Numbered Thought Chains
30
+ ```
31
+ THOUGHT 1: Identify the core problem
32
+ - What exactly is failing?
33
+ - What is the expected behavior?
34
+
35
+ THOUGHT 2: Establish constraints (depends on THOUGHT 1)
36
+ - What cannot change?
37
+ - What resources are available?
38
+
39
+ THOUGHT 3: Generate hypotheses (depends on THOUGHT 1, 2)
40
+ - Hypothesis A: Configuration issue
41
+ - Hypothesis B: Data corruption
42
+ - Hypothesis C: Race condition
43
+ ```
44
+
45
+ ### 2. Dependency Tracking
46
+ ```
47
+ [THOUGHT 4] ← depends on [THOUGHT 2, 3]
48
+ This ensures we don't proceed without establishing prerequisites.
49
+ Mark dependencies explicitly to enable:
50
+ - Parallel thinking on independent thoughts
51
+ - Clear revision paths when assumptions change
52
+ - Better collaboration handoffs
53
+ ```
54
+
55
+ ### 3. Revision and Backtracking
56
+ ```
57
+ REVISION: Updating THOUGHT 3 based on new evidence
58
+ - Original: Assumed single-threaded execution
59
+ - New insight: System uses worker threads
60
+ - Impact: Hypothesis C (race condition) now most likely
61
+
62
+ BACKTRACK: Returning to THOUGHT 2
63
+ - Constraint we missed: 100ms timeout requirement
64
+ - This invalidates THOUGHT 5-7, need to restart from here
65
+ ```
66
+
67
+ ### 4. Checkpoint Summaries
68
+ ```
69
+ === CHECKPOINT after THOUGHT 10 ===
70
+ KEY FINDINGS:
71
+ 1. Root cause identified: Memory leak in cache layer
72
+ 2. Two viable solutions identified
73
+ 3. Solution A preferred (lower risk)
74
+
75
+ OPEN QUESTIONS:
76
+ - Performance impact of Solution A?
77
+ - Rollback strategy needed?
78
+
79
+ NEXT STEPS:
80
+ - THOUGHT 11: Benchmark Solution A
81
+ - THOUGHT 12: Design rollback procedure
82
+ ===================================
83
+ ```
84
+
85
+ ### 5. Visual Thought Mapping
86
+ ```
87
+ [THOUGHT 1: Problem Definition]
88
+ |
89
+ +------------+------------+
90
+ | |
91
+ [THOUGHT 2: Constraints] [THOUGHT 3: Context]
92
+ | |
93
+ +------------+------------+
94
+ |
95
+ [THOUGHT 4: Hypotheses]
96
+ / | \
97
+ / | \
98
+ [T5: H1] [T6: H2] [T7: H3]
99
+ |
100
+ [THOUGHT 8: Solution]
101
+ ```
102
+
103
+ ## Use Cases
104
+
105
+ ### Complex Algorithm Design
106
+ ```
107
+ THOUGHT 1: Define the problem space
108
+ - Input: Unsorted array of N integers
109
+ - Output: K largest elements
110
+ - Constraint: O(N log K) time complexity
111
+
112
+ THOUGHT 2: Evaluate known approaches
113
+ - Full sort: O(N log N) - too slow
114
+ - Min-heap of size K: O(N log K) - meets requirement
115
+ - QuickSelect: O(N) average - better but unstable
116
+
117
+ THOUGHT 3: Select approach (depends on THOUGHT 2)
118
+ - Choose min-heap for guaranteed performance
119
+ - QuickSelect as optimization for large N
120
+
121
+ THOUGHT 4: Design implementation (depends on THOUGHT 3)
122
+ - Initialize min-heap with first K elements
123
+ - For remaining elements, compare with heap root
124
+ - If larger, replace root and heapify
125
+ ```
126
+
127
+ ### System Architecture Decisions
128
+ ```
129
+ THOUGHT 1: Identify scaling bottleneck
130
+ - Database reads: 10,000 QPS
131
+ - Current capacity: 2,000 QPS
132
+ - Gap: 5x improvement needed
133
+
134
+ THOUGHT 2: List scaling options
135
+ - Read replicas
136
+ - Caching layer
137
+ - Database sharding
138
+ - Query optimization
139
+
140
+ THOUGHT 3: Evaluate trade-offs (depends on THOUGHT 1, 2)
141
+ | Option | Complexity | Time | Cost |
142
+ |-----------------|------------|------|-------|
143
+ | Read replicas | Low | 1w | $500 |
144
+ | Caching | Medium | 2w | $200 |
145
+ | Sharding | High | 4w | $1000 |
146
+ | Query optimize | Low | 3d | $0 |
147
+
148
+ THOUGHT 4: Recommendation
149
+ - Immediate: Query optimization (quick win)
150
+ - Short-term: Caching layer
151
+ - Long-term: Read replicas as traffic grows
152
+ ```
153
+
154
+ ### Debugging Multi-Component Issues
155
+ ```
156
+ THOUGHT 1: Reproduce the issue
157
+ - Steps: Login → Dashboard → Click "Export"
158
+ - Result: 500 error after 30 seconds
159
+ - Frequency: 100% reproducible
160
+
161
+ THOUGHT 2: Identify affected components
162
+ - Frontend: React dashboard
163
+ - API: Node.js Express server
164
+ - Database: PostgreSQL
165
+ - External: S3 for file storage
166
+
167
+ THOUGHT 3: Isolate the failure point (depends on THOUGHT 2)
168
+ - Frontend logs: Request sent successfully
169
+ - API logs: Request received, DB query started
170
+ - DB logs: Query completed in 2 seconds
171
+ - API logs: S3 upload started... [timeout]
172
+
173
+ FINDING: Issue is S3 upload timeout
174
+
175
+ THOUGHT 4: Root cause analysis (depends on THOUGHT 3)
176
+ - S3 region: us-east-1
177
+ - Server region: eu-west-1
178
+ - File size: 50MB
179
+ - Network latency: 150ms
180
+
181
+ ROOT CAUSE: Cross-region upload with large file
182
+ ```
183
+
184
+ ## Best Practices
185
+
186
+ ### Do's
187
+ - **Number every thought explicitly** - Enables reference and revision
188
+ - **Mark dependencies clearly** - "This depends on THOUGHT 3"
189
+ - **Allow revision** - "REVISION: Updating THOUGHT 2 based on..."
190
+ - **Summarize at checkpoints** - Every 5-10 thoughts
191
+ - **Time-box thoughts** - Prevent infinite exploration
192
+
193
+ ### Don'ts
194
+ - Don't skip numbering for "obvious" thoughts
195
+ - Don't hide dependencies in prose
196
+ - Don't delete invalid thoughts (strike through instead)
197
+ - Don't exceed 20 thoughts without a checkpoint
198
+ - Don't branch more than 3 levels deep
199
+
200
+ ### Templates
201
+
202
+ **Problem Analysis Template:**
203
+ ```
204
+ THOUGHT 1: Problem statement
205
+ THOUGHT 2: Success criteria
206
+ THOUGHT 3: Constraints
207
+ THOUGHT 4: Assumptions (validate these!)
208
+ THOUGHT 5-N: Solution exploration
209
+ CHECKPOINT: Summary and decision
210
+ ```
211
+
212
+ **Decision Making Template:**
213
+ ```
214
+ THOUGHT 1: Decision to make
215
+ THOUGHT 2: Options identified
216
+ THOUGHT 3-N: Evaluate each option
217
+ THOUGHT N+1: Comparison matrix
218
+ THOUGHT N+2: Recommendation with rationale
219
+ ```
220
+
221
+ ## Related Skills
222
+
223
+ - **writing-plans** - Use sequential thinking to create detailed plans
224
+ - **brainstorming** - Generate options in THOUGHT steps
225
+ - **problem-solving** - Apply systematic approaches
226
+ - **root-cause-tracing** - Use numbered investigation steps
227
+ - **systematic-debugging** - Structure debugging as thought chain
228
+
229
+ ## Integration Example
230
+
231
+ ```markdown
232
+ # Feature: User Authentication Redesign
233
+
234
+ ## Sequential Analysis
235
+
236
+ THOUGHT 1: Current pain points
237
+ - Session timeout too aggressive (15 min)
238
+ - No "remember me" option
239
+ - MFA required on every login
240
+
241
+ THOUGHT 2: User research findings (external input)
242
+ - 73% want "remember me"
243
+ - 45% frustrated by frequent MFA
244
+ - Security team requires MFA for sensitive actions
245
+
246
+ THOUGHT 3: Design constraints (depends on THOUGHT 1, 2)
247
+ - Must maintain SOC2 compliance
248
+ - Cannot increase session beyond 24h
249
+ - MFA must protect financial transactions
250
+
251
+ THOUGHT 4: Proposed solution (depends on THOUGHT 3)
252
+ - Implement "remember device" (30 days)
253
+ - Step-up MFA only for sensitive actions
254
+ - Extend session to 60 min with activity
255
+
256
+ === CHECKPOINT ===
257
+ Solution balances security and UX.
258
+ Next: Security review before implementation.
259
+ ==================
260
+ ```