oh-my-codex 0.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 (182) hide show
  1. package/README.md +269 -0
  2. package/bin/omx.js +25 -0
  3. package/dist/agents/definitions.d.ts +22 -0
  4. package/dist/agents/definitions.d.ts.map +1 -0
  5. package/dist/agents/definitions.js +235 -0
  6. package/dist/agents/definitions.js.map +1 -0
  7. package/dist/cli/doctor.d.ts +11 -0
  8. package/dist/cli/doctor.d.ts.map +1 -0
  9. package/dist/cli/doctor.js +157 -0
  10. package/dist/cli/doctor.js.map +1 -0
  11. package/dist/cli/index.d.ts +6 -0
  12. package/dist/cli/index.d.ts.map +1 -0
  13. package/dist/cli/index.js +266 -0
  14. package/dist/cli/index.js.map +1 -0
  15. package/dist/cli/setup.d.ts +12 -0
  16. package/dist/cli/setup.d.ts.map +1 -0
  17. package/dist/cli/setup.js +175 -0
  18. package/dist/cli/setup.js.map +1 -0
  19. package/dist/cli/version.d.ts +2 -0
  20. package/dist/cli/version.d.ts.map +1 -0
  21. package/dist/cli/version.js +17 -0
  22. package/dist/cli/version.js.map +1 -0
  23. package/dist/config/generator.d.ts +14 -0
  24. package/dist/config/generator.d.ts.map +1 -0
  25. package/dist/config/generator.js +106 -0
  26. package/dist/config/generator.js.map +1 -0
  27. package/dist/hooks/__tests__/agents-overlay.test.d.ts +8 -0
  28. package/dist/hooks/__tests__/agents-overlay.test.d.ts.map +1 -0
  29. package/dist/hooks/__tests__/agents-overlay.test.js +148 -0
  30. package/dist/hooks/__tests__/agents-overlay.test.js.map +1 -0
  31. package/dist/hooks/agents-overlay.d.ts +34 -0
  32. package/dist/hooks/agents-overlay.d.ts.map +1 -0
  33. package/dist/hooks/agents-overlay.js +265 -0
  34. package/dist/hooks/agents-overlay.js.map +1 -0
  35. package/dist/hooks/emulator.d.ts +44 -0
  36. package/dist/hooks/emulator.d.ts.map +1 -0
  37. package/dist/hooks/emulator.js +108 -0
  38. package/dist/hooks/emulator.js.map +1 -0
  39. package/dist/hooks/keyword-detector.d.ts +27 -0
  40. package/dist/hooks/keyword-detector.d.ts.map +1 -0
  41. package/dist/hooks/keyword-detector.js +63 -0
  42. package/dist/hooks/keyword-detector.js.map +1 -0
  43. package/dist/hooks/session.d.ts +38 -0
  44. package/dist/hooks/session.d.ts.map +1 -0
  45. package/dist/hooks/session.js +135 -0
  46. package/dist/hooks/session.js.map +1 -0
  47. package/dist/hud/colors.d.ts +26 -0
  48. package/dist/hud/colors.d.ts.map +1 -0
  49. package/dist/hud/colors.js +71 -0
  50. package/dist/hud/colors.js.map +1 -0
  51. package/dist/hud/index.d.ts +12 -0
  52. package/dist/hud/index.d.ts.map +1 -0
  53. package/dist/hud/index.js +107 -0
  54. package/dist/hud/index.js.map +1 -0
  55. package/dist/hud/render.d.ts +9 -0
  56. package/dist/hud/render.d.ts.map +1 -0
  57. package/dist/hud/render.js +192 -0
  58. package/dist/hud/render.js.map +1 -0
  59. package/dist/hud/state.d.ts +21 -0
  60. package/dist/hud/state.d.ts.map +1 -0
  61. package/dist/hud/state.js +101 -0
  62. package/dist/hud/state.js.map +1 -0
  63. package/dist/hud/types.d.ts +87 -0
  64. package/dist/hud/types.d.ts.map +1 -0
  65. package/dist/hud/types.js +8 -0
  66. package/dist/hud/types.js.map +1 -0
  67. package/dist/index.d.ts +18 -0
  68. package/dist/index.d.ts.map +1 -0
  69. package/dist/index.js +18 -0
  70. package/dist/index.js.map +1 -0
  71. package/dist/mcp/code-intel-server.d.ts +7 -0
  72. package/dist/mcp/code-intel-server.d.ts.map +1 -0
  73. package/dist/mcp/code-intel-server.js +567 -0
  74. package/dist/mcp/code-intel-server.js.map +1 -0
  75. package/dist/mcp/memory-server.d.ts +7 -0
  76. package/dist/mcp/memory-server.d.ts.map +1 -0
  77. package/dist/mcp/memory-server.js +359 -0
  78. package/dist/mcp/memory-server.js.map +1 -0
  79. package/dist/mcp/state-server.d.ts +7 -0
  80. package/dist/mcp/state-server.d.ts.map +1 -0
  81. package/dist/mcp/state-server.js +181 -0
  82. package/dist/mcp/state-server.js.map +1 -0
  83. package/dist/mcp/trace-server.d.ts +7 -0
  84. package/dist/mcp/trace-server.d.ts.map +1 -0
  85. package/dist/mcp/trace-server.js +205 -0
  86. package/dist/mcp/trace-server.js.map +1 -0
  87. package/dist/modes/base.d.ts +50 -0
  88. package/dist/modes/base.d.ts.map +1 -0
  89. package/dist/modes/base.js +140 -0
  90. package/dist/modes/base.js.map +1 -0
  91. package/dist/notifications/notifier.d.ts +30 -0
  92. package/dist/notifications/notifier.d.ts.map +1 -0
  93. package/dist/notifications/notifier.js +124 -0
  94. package/dist/notifications/notifier.js.map +1 -0
  95. package/dist/team/orchestrator.d.ts +54 -0
  96. package/dist/team/orchestrator.d.ts.map +1 -0
  97. package/dist/team/orchestrator.js +106 -0
  98. package/dist/team/orchestrator.js.map +1 -0
  99. package/dist/utils/package.d.ts +9 -0
  100. package/dist/utils/package.d.ts.map +1 -0
  101. package/dist/utils/package.js +31 -0
  102. package/dist/utils/package.js.map +1 -0
  103. package/dist/utils/paths.d.ts +27 -0
  104. package/dist/utils/paths.d.ts.map +1 -0
  105. package/dist/utils/paths.js +60 -0
  106. package/dist/utils/paths.js.map +1 -0
  107. package/dist/verification/verifier.d.ts +32 -0
  108. package/dist/verification/verifier.d.ts.map +1 -0
  109. package/dist/verification/verifier.js +81 -0
  110. package/dist/verification/verifier.js.map +1 -0
  111. package/package.json +54 -0
  112. package/prompts/analyst.md +110 -0
  113. package/prompts/api-reviewer.md +98 -0
  114. package/prompts/architect.md +109 -0
  115. package/prompts/build-fixer.md +89 -0
  116. package/prompts/code-reviewer.md +105 -0
  117. package/prompts/critic.md +87 -0
  118. package/prompts/debugger.md +93 -0
  119. package/prompts/deep-executor.md +112 -0
  120. package/prompts/dependency-expert.md +99 -0
  121. package/prompts/designer.md +103 -0
  122. package/prompts/executor.md +99 -0
  123. package/prompts/explore.md +112 -0
  124. package/prompts/git-master.md +92 -0
  125. package/prompts/information-architect.md +267 -0
  126. package/prompts/performance-reviewer.md +94 -0
  127. package/prompts/planner.md +116 -0
  128. package/prompts/product-analyst.md +299 -0
  129. package/prompts/product-manager.md +255 -0
  130. package/prompts/qa-tester.md +98 -0
  131. package/prompts/quality-reviewer.md +105 -0
  132. package/prompts/quality-strategist.md +227 -0
  133. package/prompts/researcher.md +96 -0
  134. package/prompts/scientist.md +92 -0
  135. package/prompts/security-reviewer.md +125 -0
  136. package/prompts/style-reviewer.md +87 -0
  137. package/prompts/test-engineer.md +103 -0
  138. package/prompts/ux-researcher.md +282 -0
  139. package/prompts/verifier.md +95 -0
  140. package/prompts/vision.md +75 -0
  141. package/prompts/writer.md +86 -0
  142. package/scripts/notify-hook.js +237 -0
  143. package/skills/analyze/SKILL.md +93 -0
  144. package/skills/autopilot/SKILL.md +175 -0
  145. package/skills/build-fix/SKILL.md +123 -0
  146. package/skills/cancel/SKILL.md +387 -0
  147. package/skills/code-review/SKILL.md +208 -0
  148. package/skills/configure-discord/SKILL.md +256 -0
  149. package/skills/configure-telegram/SKILL.md +232 -0
  150. package/skills/deepinit/SKILL.md +320 -0
  151. package/skills/deepsearch/SKILL.md +38 -0
  152. package/skills/doctor/SKILL.md +193 -0
  153. package/skills/ecomode/SKILL.md +114 -0
  154. package/skills/frontend-ui-ux/SKILL.md +34 -0
  155. package/skills/git-master/SKILL.md +29 -0
  156. package/skills/help/SKILL.md +192 -0
  157. package/skills/hud/SKILL.md +97 -0
  158. package/skills/learn-about-omx/SKILL.md +37 -0
  159. package/skills/learner/SKILL.md +135 -0
  160. package/skills/note/SKILL.md +62 -0
  161. package/skills/omx-setup/SKILL.md +1147 -0
  162. package/skills/pipeline/SKILL.md +407 -0
  163. package/skills/plan/SKILL.md +223 -0
  164. package/skills/project-session-manager/SKILL.md +560 -0
  165. package/skills/psm/SKILL.md +20 -0
  166. package/skills/ralph/SKILL.md +197 -0
  167. package/skills/ralph-init/SKILL.md +38 -0
  168. package/skills/ralplan/SKILL.md +34 -0
  169. package/skills/release/SKILL.md +83 -0
  170. package/skills/research/SKILL.md +510 -0
  171. package/skills/review/SKILL.md +30 -0
  172. package/skills/security-review/SKILL.md +284 -0
  173. package/skills/skill/SKILL.md +837 -0
  174. package/skills/swarm/SKILL.md +25 -0
  175. package/skills/tdd/SKILL.md +106 -0
  176. package/skills/team/SKILL.md +860 -0
  177. package/skills/trace/SKILL.md +33 -0
  178. package/skills/ultrapilot/SKILL.md +632 -0
  179. package/skills/ultraqa/SKILL.md +130 -0
  180. package/skills/ultrawork/SKILL.md +143 -0
  181. package/skills/writer-memory/SKILL.md +443 -0
  182. package/templates/AGENTS.md +326 -0
@@ -0,0 +1,284 @@
1
+ ---
2
+ name: security-review
3
+ description: Run a comprehensive security review on code
4
+ ---
5
+
6
+ # Security Review Skill
7
+
8
+ Conduct a thorough security audit checking for OWASP Top 10 vulnerabilities, hardcoded secrets, and unsafe patterns.
9
+
10
+ ## When to Use
11
+
12
+ This skill activates when:
13
+ - User requests "security review", "security audit"
14
+ - After writing code that handles user input
15
+ - After adding new API endpoints
16
+ - After modifying authentication/authorization logic
17
+ - Before deploying to production
18
+ - After adding external dependencies
19
+
20
+ ## What It Does
21
+
22
+ Delegates to the `security-reviewer` agent (Opus model) for deep security analysis:
23
+
24
+ 1. **OWASP Top 10 Scan**
25
+ - A01: Broken Access Control
26
+ - A02: Cryptographic Failures
27
+ - A03: Injection (SQL, NoSQL, Command, XSS)
28
+ - A04: Insecure Design
29
+ - A05: Security Misconfiguration
30
+ - A06: Vulnerable and Outdated Components
31
+ - A07: Identification and Authentication Failures
32
+ - A08: Software and Data Integrity Failures
33
+ - A09: Security Logging and Monitoring Failures
34
+ - A10: Server-Side Request Forgery (SSRF)
35
+
36
+ 2. **Secrets Detection**
37
+ - Hardcoded API keys
38
+ - Passwords in source code
39
+ - Private keys in repo
40
+ - Tokens and credentials
41
+ - Connection strings with secrets
42
+
43
+ 3. **Input Validation**
44
+ - All user inputs sanitized
45
+ - SQL/NoSQL injection prevention
46
+ - Command injection prevention
47
+ - XSS prevention (output escaping)
48
+ - Path traversal prevention
49
+
50
+ 4. **Authentication/Authorization**
51
+ - Proper password hashing (bcrypt, argon2)
52
+ - Session management security
53
+ - Access control enforcement
54
+ - JWT implementation security
55
+
56
+ 5. **Dependency Security**
57
+ - Run `npm audit` for known vulnerabilities
58
+ - Check for outdated dependencies
59
+ - Identify high-severity CVEs
60
+
61
+ ## Agent Delegation
62
+
63
+ ```
64
+ spawn_sub_agent(
65
+ subagent_type="oh-my-codex:security-reviewer",
66
+ model="opus",
67
+ prompt="SECURITY REVIEW TASK
68
+
69
+ Conduct comprehensive security audit of codebase.
70
+
71
+ Scope: [specific files or entire codebase]
72
+
73
+ Security Checklist:
74
+ 1. OWASP Top 10 scan
75
+ 2. Hardcoded secrets detection
76
+ 3. Input validation review
77
+ 4. Authentication/authorization review
78
+ 5. Dependency vulnerability scan (npm audit)
79
+
80
+ Output: Security review report with:
81
+ - Summary of findings by severity (CRITICAL, HIGH, MEDIUM, LOW)
82
+ - Specific file:line locations
83
+ - CVE references where applicable
84
+ - Remediation guidance for each issue
85
+ - Overall security posture assessment"
86
+ )
87
+ ```
88
+
89
+ ## External Model Consultation (Preferred)
90
+
91
+ The security-reviewer agent SHOULD consult Codex for cross-validation.
92
+
93
+ ### Protocol
94
+ 1. **Form your OWN security analysis FIRST** - Complete the review independently
95
+ 2. **Consult for validation** - Cross-check findings with Codex
96
+ 3. **Critically evaluate** - Never blindly adopt external findings
97
+ 4. **Graceful fallback** - Never block if tools unavailable
98
+
99
+ ### When to Consult
100
+ - Authentication/authorization code
101
+ - Cryptographic implementations
102
+ - Input validation for untrusted data
103
+ - High-risk vulnerability patterns
104
+ - Production deployment code
105
+
106
+ ### When to Skip
107
+ - Low-risk utility code
108
+ - Well-audited patterns
109
+ - Time-critical security assessments
110
+ - Code with existing security tests
111
+
112
+ ### Tool Usage
113
+ Before first MCP tool use, call `ToolSearch("mcp")` to discover deferred MCP tools.
114
+ Use `mcp__x__ask_codex` with `agent_role: "security-reviewer"`.
115
+ If ToolSearch finds no MCP tools, fall back to the `security-reviewer` Claude agent.
116
+
117
+ **Note:** Security second opinions are high-value. Consider consulting for CRITICAL/HIGH findings.
118
+
119
+ ## Output Format
120
+
121
+ ```
122
+ SECURITY REVIEW REPORT
123
+ ======================
124
+
125
+ Scope: Entire codebase (42 files scanned)
126
+ Scan Date: 2026-01-24T14:30:00Z
127
+
128
+ CRITICAL (2)
129
+ ------------
130
+ 1. src/api/auth.ts:89 - Hardcoded API Key
131
+ Finding: AWS API key hardcoded in source code
132
+ Impact: Credential exposure if code is public or leaked
133
+ Remediation: Move to environment variables, rotate key immediately
134
+ Reference: OWASP A02:2021 – Cryptographic Failures
135
+
136
+ 2. src/db/query.ts:45 - SQL Injection Vulnerability
137
+ Finding: User input concatenated directly into SQL query
138
+ Impact: Attacker can execute arbitrary SQL commands
139
+ Remediation: Use parameterized queries or ORM
140
+ Reference: OWASP A03:2021 – Injection
141
+
142
+ HIGH (5)
143
+ --------
144
+ 3. src/auth/password.ts:22 - Weak Password Hashing
145
+ Finding: Passwords hashed with MD5 (cryptographically broken)
146
+ Impact: Passwords can be reversed via rainbow tables
147
+ Remediation: Use bcrypt or argon2 with appropriate work factor
148
+ Reference: OWASP A02:2021 – Cryptographic Failures
149
+
150
+ 4. src/components/UserInput.tsx:67 - XSS Vulnerability
151
+ Finding: User input rendered with dangerouslySetInnerHTML
152
+ Impact: Cross-site scripting attack vector
153
+ Remediation: Sanitize HTML or use safe rendering
154
+ Reference: OWASP A03:2021 – Injection (XSS)
155
+
156
+ 5. src/api/upload.ts:34 - Path Traversal Vulnerability
157
+ Finding: User-controlled filename used without validation
158
+ Impact: Attacker can read/write arbitrary files
159
+ Remediation: Validate and sanitize filenames, use allowlist
160
+ Reference: OWASP A01:2021 – Broken Access Control
161
+
162
+ ...
163
+
164
+ MEDIUM (8)
165
+ ----------
166
+ ...
167
+
168
+ LOW (12)
169
+ --------
170
+ ...
171
+
172
+ DEPENDENCY VULNERABILITIES
173
+ --------------------------
174
+ Found 3 vulnerabilities via npm audit:
175
+
176
+ CRITICAL: axios@0.21.0 - Server-Side Request Forgery (CVE-2021-3749)
177
+ Installed: axios@0.21.0
178
+ Fix: npm install axios@0.21.2
179
+
180
+ HIGH: lodash@4.17.19 - Prototype Pollution (CVE-2020-8203)
181
+ Installed: lodash@4.17.19
182
+ Fix: npm install lodash@4.17.21
183
+
184
+ ...
185
+
186
+ OVERALL ASSESSMENT
187
+ ------------------
188
+ Security Posture: POOR (2 CRITICAL, 5 HIGH issues)
189
+
190
+ Immediate Actions Required:
191
+ 1. Rotate exposed AWS API key
192
+ 2. Fix SQL injection in db/query.ts
193
+ 3. Upgrade password hashing to bcrypt
194
+ 4. Update vulnerable dependencies
195
+
196
+ Recommendation: DO NOT DEPLOY until CRITICAL and HIGH issues resolved.
197
+ ```
198
+
199
+ ## Security Checklist
200
+
201
+ The security-reviewer agent verifies:
202
+
203
+ ### Authentication & Authorization
204
+ - [ ] Passwords hashed with strong algorithm (bcrypt/argon2)
205
+ - [ ] Session tokens cryptographically random
206
+ - [ ] JWT tokens properly signed and validated
207
+ - [ ] Access control enforced on all protected resources
208
+ - [ ] No authentication bypass vulnerabilities
209
+
210
+ ### Input Validation
211
+ - [ ] All user inputs validated and sanitized
212
+ - [ ] SQL queries use parameterization (no string concatenation)
213
+ - [ ] NoSQL queries prevent injection
214
+ - [ ] File uploads validated (type, size, content)
215
+ - [ ] URLs validated to prevent SSRF
216
+
217
+ ### Output Encoding
218
+ - [ ] HTML output escaped to prevent XSS
219
+ - [ ] JSON responses properly encoded
220
+ - [ ] No user data in error messages
221
+ - [ ] Content-Security-Policy headers set
222
+
223
+ ### Secrets Management
224
+ - [ ] No hardcoded API keys
225
+ - [ ] No passwords in source code
226
+ - [ ] No private keys in repo
227
+ - [ ] Environment variables used for secrets
228
+ - [ ] Secrets not logged or exposed in errors
229
+
230
+ ### Cryptography
231
+ - [ ] Strong algorithms used (AES-256, RSA-2048+)
232
+ - [ ] Proper key management
233
+ - [ ] Random number generation cryptographically secure
234
+ - [ ] TLS/HTTPS enforced for sensitive data
235
+
236
+ ### Dependencies
237
+ - [ ] No known vulnerabilities in dependencies
238
+ - [ ] Dependencies up to date
239
+ - [ ] No CRITICAL or HIGH CVEs
240
+ - [ ] Dependency sources verified
241
+
242
+ ## Severity Definitions
243
+
244
+ **CRITICAL** - Exploitable vulnerability with severe impact (data breach, RCE, credential theft)
245
+ **HIGH** - Vulnerability requiring specific conditions but serious impact
246
+ **MEDIUM** - Security weakness with limited impact or difficult exploitation
247
+ **LOW** - Best practice violation or minor security concern
248
+
249
+ ## Remediation Priority
250
+
251
+ 1. **Rotate exposed secrets** - Immediate (within 1 hour)
252
+ 2. **Fix CRITICAL** - Urgent (within 24 hours)
253
+ 3. **Fix HIGH** - Important (within 1 week)
254
+ 4. **Fix MEDIUM** - Planned (within 1 month)
255
+ 5. **Fix LOW** - Backlog (when convenient)
256
+
257
+ ## Use with Other Skills
258
+
259
+ **With Pipeline:**
260
+ ```
261
+ /pipeline security "review authentication module"
262
+ ```
263
+ Uses: explore → security-reviewer → executor → security-reviewer-low (re-verify)
264
+
265
+ **With Swarm:**
266
+ ```
267
+ /swarm 4:security-reviewer "audit all API endpoints"
268
+ ```
269
+ Parallel security review across multiple endpoints.
270
+
271
+ **With Ralph:**
272
+ ```
273
+ /ralph security-review then fix all issues
274
+ ```
275
+ Review, fix, re-review until all issues resolved.
276
+
277
+ ## Best Practices
278
+
279
+ - **Review early** - Security by design, not afterthought
280
+ - **Review often** - Every major feature or API change
281
+ - **Automate** - Run security scans in CI/CD pipeline
282
+ - **Fix immediately** - Don't accumulate security debt
283
+ - **Educate** - Learn from findings to prevent future issues
284
+ - **Verify fixes** - Re-run security review after remediation