oh-my-codex-cli 0.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 (292) hide show
  1. package/.agent/skills/agent-kb/HOW_TO_USE.md +428 -0
  2. package/.agent/skills/agent-kb/README.md +46 -0
  3. package/.agent/skills/agent-kb/SKILL.md +128 -0
  4. package/.agent/skills/agent-kb/references/intelligent-analysis-explained.md +333 -0
  5. package/.agent/skills/agent-kb/references/query-optimization.md +225 -0
  6. package/.agent/skills/aireview/SKILL.md +704 -0
  7. package/.agent/skills/analyze/SKILL.md +81 -0
  8. package/.agent/skills/architect-planner/HOW_TO_USE.md +238 -0
  9. package/.agent/skills/architect-planner/README.md +41 -0
  10. package/.agent/skills/architect-planner/SKILL.md +539 -0
  11. package/.agent/skills/auto-mbti/SKILL.md +291 -0
  12. package/.agent/skills/autopilot/SKILL.md +222 -0
  13. package/.agent/skills/backend-patterns/SKILL.md +602 -0
  14. package/.agent/skills/bdd-generator/README.md +78 -0
  15. package/.agent/skills/bdd-generator/SKILL.md +436 -0
  16. package/.agent/skills/brainstorming/HOW_TO_USE.md +289 -0
  17. package/.agent/skills/brainstorming/README.md +41 -0
  18. package/.agent/skills/brainstorming/SKILL.md +165 -0
  19. package/.agent/skills/build-fix/SKILL.md +190 -0
  20. package/.agent/skills/cancel/SKILL.md +658 -0
  21. package/.agent/skills/checkpoint/SKILL.md +94 -0
  22. package/.agent/skills/code-review/SKILL.md +273 -0
  23. package/.agent/skills/coding-standards/SKILL.md +535 -0
  24. package/.agent/skills/conductor/SKILL.md +128 -0
  25. package/.agent/skills/conductor/commands/conductor/implement.toml +358 -0
  26. package/.agent/skills/conductor/commands/conductor/newTrack.toml +142 -0
  27. package/.agent/skills/conductor/commands/conductor/revert.toml +123 -0
  28. package/.agent/skills/conductor/commands/conductor/setup.toml +429 -0
  29. package/.agent/skills/conductor/commands/conductor/status.toml +57 -0
  30. package/.agent/skills/conductor/scripts/install.sh +89 -0
  31. package/.agent/skills/conductor/templates/code_styleguides/csharp.md +115 -0
  32. package/.agent/skills/conductor/templates/code_styleguides/dart.md +238 -0
  33. package/.agent/skills/conductor/templates/code_styleguides/general.md +23 -0
  34. package/.agent/skills/conductor/templates/code_styleguides/go.md +48 -0
  35. package/.agent/skills/conductor/templates/code_styleguides/html-css.md +49 -0
  36. package/.agent/skills/conductor/templates/code_styleguides/javascript.md +51 -0
  37. package/.agent/skills/conductor/templates/code_styleguides/python.md +37 -0
  38. package/.agent/skills/conductor/templates/code_styleguides/typescript.md +43 -0
  39. package/.agent/skills/conductor/templates/rules/README.md +23 -0
  40. package/.agent/skills/conductor/templates/rules/agents.md +49 -0
  41. package/.agent/skills/conductor/templates/rules/coding-style.md +70 -0
  42. package/.agent/skills/conductor/templates/rules/dev.md +20 -0
  43. package/.agent/skills/conductor/templates/rules/git-workflow.md +45 -0
  44. package/.agent/skills/conductor/templates/rules/hooks.md +6 -0
  45. package/.agent/skills/conductor/templates/rules/patterns.md +55 -0
  46. package/.agent/skills/conductor/templates/rules/performance.md +47 -0
  47. package/.agent/skills/conductor/templates/rules/research.md +26 -0
  48. package/.agent/skills/conductor/templates/rules/review.md +22 -0
  49. package/.agent/skills/conductor/templates/rules/security.md +36 -0
  50. package/.agent/skills/conductor/templates/rules/testing.md +30 -0
  51. package/.agent/skills/conductor/templates/workflow.md +333 -0
  52. package/.agent/skills/consensus/HOW_TO_USE.md +191 -0
  53. package/.agent/skills/consensus/README.md +41 -0
  54. package/.agent/skills/consensus/SKILL.md +317 -0
  55. package/.agent/skills/content-research-writer/SKILL.md +537 -0
  56. package/.agent/skills/debug-analysis/SKILL.md +331 -0
  57. package/.agent/skills/deepinit/SKILL.md +347 -0
  58. package/.agent/skills/deepsearch/SKILL.md +56 -0
  59. package/.agent/skills/doctor/SKILL.md +158 -0
  60. package/.agent/skills/drawio/EXAMPLES.md +382 -0
  61. package/.agent/skills/drawio/QUICK_START.md +237 -0
  62. package/.agent/skills/drawio/README.md +315 -0
  63. package/.agent/skills/drawio/SETUP_GUIDE.md +254 -0
  64. package/.agent/skills/drawio/SKILL.md +1176 -0
  65. package/.agent/skills/e2e/SKILL.md +396 -0
  66. package/.agent/skills/ecomode/SKILL.md +160 -0
  67. package/.agent/skills/electron-driver/SKILL.md +144 -0
  68. package/.agent/skills/electron-driver/scripts/driver-template.js +71 -0
  69. package/.agent/skills/eval/SKILL.md +140 -0
  70. package/.agent/skills/eval-harness/SKILL.md +242 -0
  71. package/.agent/skills/evolve/SKILL.md +213 -0
  72. package/.agent/skills/frontend-design/SKILL.md +42 -0
  73. package/.agent/skills/frontend-patterns/SKILL.md +646 -0
  74. package/.agent/skills/frontend-ui-ux/SKILL.md +70 -0
  75. package/.agent/skills/git-master/SKILL.md +75 -0
  76. package/.agent/skills/help/SKILL.md +89 -0
  77. package/.agent/skills/iterative-retrieval/SKILL.md +217 -0
  78. package/.agent/skills/local-skills-setup/SKILL.md +483 -0
  79. package/.agent/skills/log-analyzer/SKILL.md +187 -0
  80. package/.agent/skills/mcp-setup/SKILL.md +226 -0
  81. package/.agent/skills/multi-model-research/HOW_TO_USE.md +614 -0
  82. package/.agent/skills/multi-model-research/README.md +233 -0
  83. package/.agent/skills/multi-model-research/SKILL.md +541 -0
  84. package/.agent/skills/multi-model-research/references/troubleshooting.md +415 -0
  85. package/.agent/skills/note/SKILL.md +80 -0
  86. package/.agent/skills/omc-setup/SKILL.md +219 -0
  87. package/.agent/skills/orchestrate/SKILL.md +620 -0
  88. package/.agent/skills/patent-workflow/IMPLEMENTATION_SUMMARY.md +500 -0
  89. package/.agent/skills/patent-workflow/README.md +455 -0
  90. package/.agent/skills/patent-workflow/SKILL.md +1036 -0
  91. package/.agent/skills/patent-workflow/tools/irr_checker.py +260 -0
  92. package/.agent/skills/patent-workflow/tools/sample_terminology.json +49 -0
  93. package/.agent/skills/patent-workflow/tools/term_checker.py +355 -0
  94. package/.agent/skills/pattern-recognition/SKILL.md +792 -0
  95. package/.agent/skills/pipeline/SKILL.md +448 -0
  96. package/.agent/skills/plan/SKILL.md +309 -0
  97. package/.agent/skills/planning-methodology/SKILL.md +370 -0
  98. package/.agent/skills/planning-with-files/SKILL.md +210 -0
  99. package/.agent/skills/planning-with-files/examples.md +202 -0
  100. package/.agent/skills/planning-with-files/reference.md +218 -0
  101. package/.agent/skills/planning-with-files/scripts/check-complete.ps1 +42 -0
  102. package/.agent/skills/planning-with-files/scripts/check-complete.sh +44 -0
  103. package/.agent/skills/planning-with-files/scripts/init-session.ps1 +120 -0
  104. package/.agent/skills/planning-with-files/scripts/init-session.sh +120 -0
  105. package/.agent/skills/planning-with-files/scripts/session-catchup.py +208 -0
  106. package/.agent/skills/planning-with-files/templates/findings.md +95 -0
  107. package/.agent/skills/planning-with-files/templates/progress.md +114 -0
  108. package/.agent/skills/planning-with-files/templates/task_plan.md +132 -0
  109. package/.agent/skills/project-analyze/CLAUDE.md +18 -0
  110. package/.agent/skills/project-analyze/HOW_TO_USE.md +145 -0
  111. package/.agent/skills/project-analyze/README.md +42 -0
  112. package/.agent/skills/project-analyze/SKILL.md +289 -0
  113. package/.agent/skills/project-analyze/SKILL.md.backup +287 -0
  114. package/.agent/skills/project-analyze/SKILL.md.backup_20260105_093646 +287 -0
  115. package/.agent/skills/project-analyze/assets/analysis-report-template.md +433 -0
  116. package/.agent/skills/project-analyze/references/analysis-patterns.md +422 -0
  117. package/.agent/skills/project-analyze/references/projectmind-explained.md +535 -0
  118. package/.agent/skills/project-session-manager/SKILL.md +428 -0
  119. package/.agent/skills/project-session-manager/lib/config.sh +86 -0
  120. package/.agent/skills/project-session-manager/lib/parse.sh +121 -0
  121. package/.agent/skills/project-session-manager/lib/session.sh +132 -0
  122. package/.agent/skills/project-session-manager/lib/tmux.sh +103 -0
  123. package/.agent/skills/project-session-manager/lib/worktree.sh +171 -0
  124. package/.agent/skills/project-session-manager/psm.sh +629 -0
  125. package/.agent/skills/project-session-manager/templates/feature.md +56 -0
  126. package/.agent/skills/project-session-manager/templates/issue-fix.md +57 -0
  127. package/.agent/skills/project-session-manager/templates/pr-review.md +65 -0
  128. package/.agent/skills/project-session-manager/templates/projects.json +19 -0
  129. package/.agent/skills/quality-check/HOW_TO_USE.md +171 -0
  130. package/.agent/skills/quality-check/README.md +50 -0
  131. package/.agent/skills/quality-check/SKILL.md +240 -0
  132. package/.agent/skills/quality-check/SKILL.md.backup +238 -0
  133. package/.agent/skills/quality-check/SKILL.md.backup_20260105_093646 +238 -0
  134. package/.agent/skills/quality-check/assets/quality-report-template.md +437 -0
  135. package/.agent/skills/quality-check/references/refactoring-patterns.md +550 -0
  136. package/.agent/skills/quality-check/references/scoring-criteria.md +454 -0
  137. package/.agent/skills/quality-validation/SKILL.md +519 -0
  138. package/.agent/skills/quality-validation/SKILL.md.backup +573 -0
  139. package/.agent/skills/quality-validation/SKILL.md.backup_20260105_093646 +573 -0
  140. package/.agent/skills/ralph/SKILL.md +236 -0
  141. package/.agent/skills/ralph-init/SKILL.md +78 -0
  142. package/.agent/skills/ralplan/SKILL.md +58 -0
  143. package/.agent/skills/refactor-clean/SKILL.md +49 -0
  144. package/.agent/skills/release/SKILL.md +84 -0
  145. package/.agent/skills/research/SKILL.md +526 -0
  146. package/.agent/skills/research-methodology/SKILL.md +268 -0
  147. package/.agent/skills/review/SKILL.md +53 -0
  148. package/.agent/skills/security-review/SKILL.md +509 -0
  149. package/.agent/skills/security-review/cloud-infrastructure-security.md +361 -0
  150. package/.agent/skills/setup-pm/SKILL.md +102 -0
  151. package/.agent/skills/skill/SKILL.md +424 -0
  152. package/.agent/skills/skill-create/SKILL.md +209 -0
  153. package/.agent/skills/skill-debugger/HOW_TO_USE.md +244 -0
  154. package/.agent/skills/skill-debugger/README.md +44 -0
  155. package/.agent/skills/skill-debugger/SKILL.md +326 -0
  156. package/.agent/skills/skill-debugger/diagnostic_checklist.md +115 -0
  157. package/.agent/skills/skill-development/SKILL.md +661 -0
  158. package/.agent/skills/skill-development/references/skill-creator-original.md +209 -0
  159. package/.agent/skills/skill-doc-generator/README.md +37 -0
  160. package/.agent/skills/skill-doc-generator/SKILL.md +331 -0
  161. package/.agent/skills/skill-quality-analyzer/HOW_TO_USE.md +243 -0
  162. package/.agent/skills/skill-quality-analyzer/README.md +61 -0
  163. package/.agent/skills/skill-quality-analyzer/SKILL.md +247 -0
  164. package/.agent/skills/skill-quality-analyzer/analyzer.py +209 -0
  165. package/.agent/skills/skill-quality-analyzer/expected_output.json +81 -0
  166. package/.agent/skills/skill-quality-analyzer/sample_input.json +9 -0
  167. package/.agent/skills/skill-tester/README.md +46 -0
  168. package/.agent/skills/skill-tester/SKILL.md +345 -0
  169. package/.agent/skills/start-dev/SKILL.md +701 -0
  170. package/.agent/skills/swarm/SKILL.md +691 -0
  171. package/.agent/skills/task-kb-lookup/SKILL.md +211 -0
  172. package/.agent/skills/task-kb-record/SKILL.md +417 -0
  173. package/.agent/skills/tdd/SKILL.md +446 -0
  174. package/.agent/skills/tdd-generator/DEMO.md +516 -0
  175. package/.agent/skills/tdd-generator/README.md +89 -0
  176. package/.agent/skills/tdd-generator/SKILL.md +278 -0
  177. package/.agent/skills/tdd-workflow/SKILL.md +424 -0
  178. package/.agent/skills/test-coverage/SKILL.md +48 -0
  179. package/.agent/skills/thinkdeep/HOW_TO_USE.md +183 -0
  180. package/.agent/skills/thinkdeep/README.md +41 -0
  181. package/.agent/skills/thinkdeep/SKILL.md +343 -0
  182. package/.agent/skills/ui-ux-pro-max/SKILL.md +228 -0
  183. package/.agent/skills/ui-ux-pro-max/data/charts.csv +26 -0
  184. package/.agent/skills/ui-ux-pro-max/data/colors.csv +97 -0
  185. package/.agent/skills/ui-ux-pro-max/data/landing.csv +31 -0
  186. package/.agent/skills/ui-ux-pro-max/data/products.csv +97 -0
  187. package/.agent/skills/ui-ux-pro-max/data/prompts.csv +24 -0
  188. package/.agent/skills/ui-ux-pro-max/data/stacks/flutter.csv +53 -0
  189. package/.agent/skills/ui-ux-pro-max/data/stacks/html-tailwind.csv +56 -0
  190. package/.agent/skills/ui-ux-pro-max/data/stacks/nextjs.csv +53 -0
  191. package/.agent/skills/ui-ux-pro-max/data/stacks/react-native.csv +52 -0
  192. package/.agent/skills/ui-ux-pro-max/data/stacks/react.csv +54 -0
  193. package/.agent/skills/ui-ux-pro-max/data/stacks/svelte.csv +54 -0
  194. package/.agent/skills/ui-ux-pro-max/data/stacks/swiftui.csv +51 -0
  195. package/.agent/skills/ui-ux-pro-max/data/stacks/vue.csv +50 -0
  196. package/.agent/skills/ui-ux-pro-max/data/styles.csv +59 -0
  197. package/.agent/skills/ui-ux-pro-max/data/typography.csv +58 -0
  198. package/.agent/skills/ui-ux-pro-max/data/ux-guidelines.csv +100 -0
  199. package/.agent/skills/ui-ux-pro-max/scripts/core.py +236 -0
  200. package/.agent/skills/ui-ux-pro-max/scripts/search.py +61 -0
  201. package/.agent/skills/ultrapilot/SKILL.md +647 -0
  202. package/.agent/skills/ultraqa/SKILL.md +152 -0
  203. package/.agent/skills/ultrawork/SKILL.md +123 -0
  204. package/.agent/skills/update-codemaps/SKILL.md +38 -0
  205. package/.agent/skills/update-docs/SKILL.md +52 -0
  206. package/.agent/skills/verification-loop/SKILL.md +140 -0
  207. package/.agent/skills/verify/SKILL.md +80 -0
  208. package/.agent/skills/writer-memory/SKILL.md +459 -0
  209. package/.agent/skills/writer-memory/lib/character-tracker.ts +338 -0
  210. package/.agent/skills/writer-memory/lib/memory-manager.ts +804 -0
  211. package/.agent/skills/writer-memory/lib/relationship-graph.ts +400 -0
  212. package/.agent/skills/writer-memory/lib/scene-organizer.ts +544 -0
  213. package/.agent/skills/writer-memory/lib/synopsis-builder.ts +339 -0
  214. package/.agent/skills/writer-memory/templates/synopsis-template.md +46 -0
  215. package/.governance/skill-lint.allowlist +4 -0
  216. package/.governance/skill-llm.allowlist +4 -0
  217. package/AGENTS.md +59 -0
  218. package/LICENSE +21 -0
  219. package/README.md +169 -0
  220. package/README.zh.md +145 -0
  221. package/bin/omcodex.js +8 -0
  222. package/commands/conductor/implement.toml +358 -0
  223. package/commands/conductor/newTrack.toml +142 -0
  224. package/commands/conductor/revert.toml +123 -0
  225. package/commands/conductor/setup.toml +429 -0
  226. package/commands/conductor/status.toml +57 -0
  227. package/docs/ALIGNMENT.md +40 -0
  228. package/docs/CODEX.md +133 -0
  229. package/docs/NOTIFY.md +81 -0
  230. package/docs/SKILL_GOVERNANCE.md +72 -0
  231. package/docs/SKILL_GOVERNANCE_FRAMEWORK.md +182 -0
  232. package/docs/SKILL_GOVERNANCE_FRAMEWORK.zh.md +170 -0
  233. package/package.json +50 -0
  234. package/prompts/architect.md +105 -0
  235. package/prompts/executor.md +134 -0
  236. package/prompts/planner.md +113 -0
  237. package/scripts/check-skill-governance.sh +84 -0
  238. package/scripts/check-skill-llm-governance.js +302 -0
  239. package/scripts/eval-skills.js +217 -0
  240. package/scripts/generate-catalog-docs.js +95 -0
  241. package/scripts/generate-codex-mcp-config.sh +22 -0
  242. package/scripts/install-codex-force.sh +5 -0
  243. package/scripts/install-codex-incremental.sh +5 -0
  244. package/scripts/install-codex.sh +79 -0
  245. package/scripts/notify-dispatch.js +15 -0
  246. package/scripts/setup-package-manager.js +137 -0
  247. package/src/catalog/generated/public-catalog.json +547 -0
  248. package/src/catalog/manifest.json +542 -0
  249. package/src/catalog/reader.js +43 -0
  250. package/src/catalog/schema.js +79 -0
  251. package/src/cli/doctor.js +62 -0
  252. package/src/cli/index.js +85 -0
  253. package/src/cli/notify.js +127 -0
  254. package/src/cli/route.js +43 -0
  255. package/src/cli/setup.js +155 -0
  256. package/src/cli/team.js +125 -0
  257. package/src/config/generator.js +119 -0
  258. package/src/mcp/memory-server.js +241 -0
  259. package/src/mcp/state-server.js +112 -0
  260. package/src/mcp/trace-server.js +168 -0
  261. package/src/notify/dispatch.js +74 -0
  262. package/src/notify/extensibility/dispatcher.js +113 -0
  263. package/src/notify/extensibility/events.js +15 -0
  264. package/src/notify/extensibility/loader.js +54 -0
  265. package/src/router/skill-router.js +90 -0
  266. package/src/team/auto-advance.js +72 -0
  267. package/src/team/orchestrator.js +82 -0
  268. package/src/team/state-store.js +33 -0
  269. package/src/utils/paths.js +33 -0
  270. package/templates/AGENTS.md +15 -0
  271. package/templates/catalog-manifest.json +542 -0
  272. package/templates/code_styleguides/csharp.md +115 -0
  273. package/templates/code_styleguides/dart.md +238 -0
  274. package/templates/code_styleguides/general.md +23 -0
  275. package/templates/code_styleguides/go.md +48 -0
  276. package/templates/code_styleguides/html-css.md +49 -0
  277. package/templates/code_styleguides/javascript.md +51 -0
  278. package/templates/code_styleguides/python.md +37 -0
  279. package/templates/code_styleguides/typescript.md +43 -0
  280. package/templates/rules/README.md +23 -0
  281. package/templates/rules/agents.md +49 -0
  282. package/templates/rules/coding-style.md +70 -0
  283. package/templates/rules/dev.md +20 -0
  284. package/templates/rules/git-workflow.md +45 -0
  285. package/templates/rules/notify.md +6 -0
  286. package/templates/rules/patterns.md +55 -0
  287. package/templates/rules/performance.md +47 -0
  288. package/templates/rules/research.md +26 -0
  289. package/templates/rules/review.md +22 -0
  290. package/templates/rules/security.md +36 -0
  291. package/templates/rules/testing.md +30 -0
  292. package/templates/workflow.md +333 -0
@@ -0,0 +1,483 @@
1
+ ---
2
+ name: local-skills-setup
3
+ description: Set up and manage local skills for automatic matching and invocation
4
+ argument-hint: "[list|add|scan]"
5
+ ---
6
+
7
+ # Local Skills Setup
8
+
9
+
10
+ ## Native Subagent Protocol (Codex)
11
+
12
+ Codex supports native subagents. Delegate with `spawn_agent`, coordinate with `send_input`, collect via `wait`, and clean up with `close_agent`.
13
+
14
+ Execution preference:
15
+ 1. Use native subagents first for independent workstreams (parallel when possible).
16
+ 2. Merge results in main thread and run final verification.
17
+ 3. Fallback only when delegation is blocked: use the `[ANALYST]`/`[ARCHITECT]`/`[EXECUTOR]`/`[REVIEWER]` structure in a single response.
18
+
19
+ Minimal orchestration pattern:
20
+ ```text
21
+ spawn_agent -> send_input (optional) -> wait -> close_agent
22
+ ```
23
+
24
+ > Codex invocation: use `$local-skills-setup ...` or `local-skills-setup: ...`
25
+
26
+
27
+ This skill provides a guided wizard for setting up and managing your local learned skills. Skills are reusable problem-solving patterns that Codex automatically applies when it detects matching triggers.
28
+
29
+ ## Why Local Skills?
30
+
31
+ Local skills allow you to capture hard-won insights and solutions that are specific to your codebase or workflow:
32
+ - **Project-level skills** (.omc/skills/) - Version-controlled with your repo
33
+ - **User-level skills** (~/.codex/skills/omc-learned/) - Portable across all your projects
34
+
35
+ When you solve a tricky bug or discover a non-obvious workaround, you can extract it as a skill. Codex will automatically detect and apply these skills in future conversations when it sees matching triggers.
36
+
37
+ ## Interactive Workflow
38
+
39
+ ### Step 1: Directory Check and Setup
40
+
41
+ First, check if skill directories exist and create them if needed:
42
+
43
+ ```bash
44
+ # Check and create user-level skills directory
45
+ USER_SKILLS_DIR="$HOME/.codex/skills/omc-learned"
46
+ if [ -d "$USER_SKILLS_DIR" ]; then
47
+ echo "User skills directory exists: $USER_SKILLS_DIR"
48
+ else
49
+ mkdir -p "$USER_SKILLS_DIR"
50
+ echo "Created user skills directory: $USER_SKILLS_DIR"
51
+ fi
52
+
53
+ # Check and create project-level skills directory
54
+ PROJECT_SKILLS_DIR=".omc/skills"
55
+ if [ -d "$PROJECT_SKILLS_DIR" ]; then
56
+ echo "Project skills directory exists: $PROJECT_SKILLS_DIR"
57
+ else
58
+ mkdir -p "$PROJECT_SKILLS_DIR"
59
+ echo "Created project skills directory: $PROJECT_SKILLS_DIR"
60
+ fi
61
+ ```
62
+
63
+ ### Step 2: Skill Scan and Inventory
64
+
65
+ Scan both directories and show a comprehensive inventory:
66
+
67
+ ```bash
68
+ # Scan user-level skills
69
+ echo "=== USER-LEVEL SKILLS (~/.codex/skills/omc-learned/) ==="
70
+ if [ -d "$HOME/.codex/skills/omc-learned" ]; then
71
+ USER_COUNT=$(find "$HOME/.codex/skills/omc-learned" -name "*.md" 2>/dev/null | wc -l)
72
+ echo "Total skills: $USER_COUNT"
73
+
74
+ if [ $USER_COUNT -gt 0 ]; then
75
+ echo ""
76
+ echo "Skills found:"
77
+ find "$HOME/.codex/skills/omc-learned" -name "*.md" -type f -exec sh -c '
78
+ FILE="$1"
79
+ NAME=$(grep -m1 "^name:" "$FILE" 2>/dev/null | sed "s/name: //")
80
+ DESC=$(grep -m1 "^description:" "$FILE" 2>/dev/null | sed "s/description: //")
81
+ MODIFIED=$(stat -c "%y" "$FILE" 2>/dev/null || stat -f "%Sm" "$FILE" 2>/dev/null)
82
+ echo " - $NAME"
83
+ [ -n "$DESC" ] && echo " Description: $DESC"
84
+ echo " Modified: $MODIFIED"
85
+ echo ""
86
+ ' sh {} \;
87
+ fi
88
+ else
89
+ echo "Directory not found"
90
+ fi
91
+
92
+ echo ""
93
+ echo "=== PROJECT-LEVEL SKILLS (.omc/skills/) ==="
94
+ if [ -d ".omc/skills" ]; then
95
+ PROJECT_COUNT=$(find ".omc/skills" -name "*.md" 2>/dev/null | wc -l)
96
+ echo "Total skills: $PROJECT_COUNT"
97
+
98
+ if [ $PROJECT_COUNT -gt 0 ]; then
99
+ echo ""
100
+ echo "Skills found:"
101
+ find ".omc/skills" -name "*.md" -type f -exec sh -c '
102
+ FILE="$1"
103
+ NAME=$(grep -m1 "^name:" "$FILE" 2>/dev/null | sed "s/name: //")
104
+ DESC=$(grep -m1 "^description:" "$FILE" 2>/dev/null | sed "s/description: //")
105
+ MODIFIED=$(stat -c "%y" "$FILE" 2>/dev/null || stat -f "%Sm" "$FILE" 2>/dev/null)
106
+ echo " - $NAME"
107
+ [ -n "$DESC" ] && echo " Description: $DESC"
108
+ echo " Modified: $MODIFIED"
109
+ echo ""
110
+ ' sh {} \;
111
+ fi
112
+ else
113
+ echo "Directory not found"
114
+ fi
115
+
116
+ # Summary
117
+ TOTAL=$((USER_COUNT + PROJECT_COUNT))
118
+ echo "=== SUMMARY ==="
119
+ echo "Total skills across all directories: $TOTAL"
120
+ ```
121
+
122
+ ### Step 3: Quick Actions Menu
123
+
124
+ After scanning, offer these options in plain text with numbered choices:
125
+
126
+ **Question:** "What would you like to do with your local skills?"
127
+
128
+ **Options:**
129
+ 1. **Add new skill** - Start the skill creation wizard
130
+ 2. **List all skills with details** - Show comprehensive skill inventory with triggers
131
+ 3. **Scan conversation for patterns** - Analyze current conversation for skill-worthy patterns
132
+ 4. **Import skill** - Import a skill from URL or paste content
133
+ 5. **Done** - Exit the wizard
134
+
135
+ #### Option 1: Add New Skill
136
+
137
+ If user chooses "Add new skill", invoke the learner skill:
138
+
139
+ ```
140
+ Use the Skill tool to invoke: learner
141
+ ```
142
+
143
+ This will guide them through the extraction process with quality validation.
144
+
145
+ #### Option 2: List All Skills with Details
146
+
147
+ Show detailed information including trigger keywords:
148
+
149
+ ```bash
150
+ echo "=== DETAILED SKILL INVENTORY ==="
151
+ echo ""
152
+
153
+ # Function to show skill details
154
+ show_skill_details() {
155
+ FILE="$1"
156
+ LOCATION="$2"
157
+
158
+ echo "---"
159
+ echo "Location: $LOCATION"
160
+ echo "File: $(basename "$FILE")"
161
+
162
+ # Extract frontmatter
163
+ NAME=$(grep -m1 "^name:" "$FILE" 2>/dev/null | sed "s/name: //")
164
+ DESC=$(grep -m1 "^description:" "$FILE" 2>/dev/null | sed "s/description: //")
165
+ TRIGGERS=$(grep -m1 "^triggers:" "$FILE" 2>/dev/null | sed "s/triggers: //")
166
+ QUALITY=$(grep -m1 "^quality:" "$FILE" 2>/dev/null | sed "s/quality: //")
167
+
168
+ [ -n "$NAME" ] && echo "Name: $NAME"
169
+ [ -n "$DESC" ] && echo "Description: $DESC"
170
+ [ -n "$TRIGGERS" ] && echo "Triggers: $TRIGGERS"
171
+ [ -n "$QUALITY" ] && echo "Quality: $QUALITY"
172
+
173
+ # Last modified
174
+ MODIFIED=$(stat -c "%y" "$FILE" 2>/dev/null | cut -d. -f1 || stat -f "%Sm" "$FILE" 2>/dev/null)
175
+ echo "Last modified: $MODIFIED"
176
+ echo ""
177
+ }
178
+
179
+ # Export function for subshell
180
+ export -f show_skill_details
181
+
182
+ # Show user-level skills
183
+ if [ -d "$HOME/.codex/skills/omc-learned" ]; then
184
+ echo "USER-LEVEL SKILLS:"
185
+ find "$HOME/.codex/skills/omc-learned" -name "*.md" -type f -exec bash -c 'show_skill_details "$0" "user-level"' {} \;
186
+ fi
187
+
188
+ # Show project-level skills
189
+ if [ -d ".omc/skills" ]; then
190
+ echo "PROJECT-LEVEL SKILLS:"
191
+ find ".omc/skills" -name "*.md" -type f -exec bash -c 'show_skill_details "$0" "project-level"' {} \;
192
+ fi
193
+ ```
194
+
195
+ #### Option 3: Scan Conversation for Patterns
196
+
197
+ Analyze the current conversation context to identify potential skill-worthy patterns. Look for:
198
+ - Recent debugging sessions with non-obvious solutions
199
+ - Tricky bugs that required investigation
200
+ - Codebase-specific workarounds discovered
201
+ - Error patterns that took time to resolve
202
+
203
+ Report findings and ask if user wants to extract any as skills.
204
+
205
+ #### Option 4: Import Skill
206
+
207
+ Ask user to provide either:
208
+ - **URL**: Download skill from a URL (e.g., GitHub gist)
209
+ - **Paste content**: Paste skill markdown content directly
210
+
211
+ Then ask for scope:
212
+ - **User-level** (~/.codex/skills/omc-learned/) - Available across all projects
213
+ - **Project-level** (.omc/skills/) - Only for this project
214
+
215
+ Validate the skill format and save to the chosen location.
216
+
217
+ ### Step 4: Skill Templates
218
+
219
+ Provide quick templates for common skill types. When user wants to create a skill, offer these starting points:
220
+
221
+ #### Error Solution Template
222
+
223
+ ```markdown
224
+ ---
225
+ id: error-[unique-id]
226
+ name: [Error Name]
227
+ description: Solution for [specific error in specific context]
228
+ source: conversation
229
+ triggers: ["error message fragment", "file path", "symptom"]
230
+ quality: high
231
+ ---
232
+
233
+ # [Error Name]
234
+
235
+ ## The Insight
236
+ What is the underlying cause of this error? What principle did you discover?
237
+
238
+ ## Why This Matters
239
+ What goes wrong if you don't know this? What symptom led here?
240
+
241
+ ## Recognition Pattern
242
+ How do you know when this applies? What are the signs?
243
+ - Error message: "[exact error]"
244
+ - File: [specific file path]
245
+ - Context: [when does this occur]
246
+
247
+ ## The Approach
248
+ Step-by-step solution:
249
+ 1. [Specific action with file/line reference]
250
+ 2. [Specific action with file/line reference]
251
+ 3. [Verification step]
252
+
253
+ ## Example
254
+ \`\`\`typescript
255
+ // Before (broken)
256
+ [problematic code]
257
+
258
+ // After (fixed)
259
+ [corrected code]
260
+ \`\`\`
261
+ ```
262
+
263
+ #### Workflow Skill Template
264
+
265
+ ```markdown
266
+ ---
267
+ id: workflow-[unique-id]
268
+ name: [Workflow Name]
269
+ description: Process for [specific task in this codebase]
270
+ source: conversation
271
+ triggers: ["task description", "file pattern", "goal keyword"]
272
+ quality: high
273
+ ---
274
+
275
+ # [Workflow Name]
276
+
277
+ ## The Insight
278
+ What makes this workflow different from the obvious approach?
279
+
280
+ ## Why This Matters
281
+ What fails if you don't follow this process?
282
+
283
+ ## Recognition Pattern
284
+ When should you use this workflow?
285
+ - Task type: [specific task]
286
+ - Files involved: [specific patterns]
287
+ - Indicators: [how to recognize]
288
+
289
+ ## The Approach
290
+ 1. [Step with specific commands/files]
291
+ 2. [Step with specific commands/files]
292
+ 3. [Verification]
293
+
294
+ ## Gotchas
295
+ - [Common mistake and how to avoid it]
296
+ - [Edge case and how to handle it]
297
+ ```
298
+
299
+ #### Code Pattern Template
300
+
301
+ ```markdown
302
+ ---
303
+ id: pattern-[unique-id]
304
+ name: [Pattern Name]
305
+ description: Pattern for [specific use case in this codebase]
306
+ source: conversation
307
+ triggers: ["code pattern", "file type", "problem domain"]
308
+ quality: high
309
+ ---
310
+
311
+ # [Pattern Name]
312
+
313
+ ## The Insight
314
+ What's the key principle behind this pattern?
315
+
316
+ ## Why This Matters
317
+ What problems does this pattern solve in THIS codebase?
318
+
319
+ ## Recognition Pattern
320
+ When do you apply this pattern?
321
+ - File types: [specific files]
322
+ - Problem: [specific problem]
323
+ - Context: [codebase-specific context]
324
+
325
+ ## The Approach
326
+ Decision-making heuristic, not just code:
327
+ 1. [Principle-based step]
328
+ 2. [Principle-based step]
329
+
330
+ ## Example
331
+ \`\`\`typescript
332
+ [Illustrative example showing the principle]
333
+ \`\`\`
334
+
335
+ ## Anti-Pattern
336
+ What NOT to do and why:
337
+ \`\`\`typescript
338
+ [Common mistake to avoid]
339
+ \`\`\`
340
+ ```
341
+
342
+ #### Integration Skill Template
343
+
344
+ ```markdown
345
+ ---
346
+ id: integration-[unique-id]
347
+ name: [Integration Name]
348
+ description: How [system A] integrates with [system B] in this codebase
349
+ source: conversation
350
+ triggers: ["system name", "integration point", "config file"]
351
+ quality: high
352
+ ---
353
+
354
+ # [Integration Name]
355
+
356
+ ## The Insight
357
+ What's non-obvious about how these systems connect?
358
+
359
+ ## Why This Matters
360
+ What breaks if you don't understand this integration?
361
+
362
+ ## Recognition Pattern
363
+ When are you working with this integration?
364
+ - Files: [specific integration files]
365
+ - Config: [specific config locations]
366
+ - Symptoms: [what indicates integration issues]
367
+
368
+ ## The Approach
369
+ How to work with this integration correctly:
370
+ 1. [Configuration step with file paths]
371
+ 2. [Setup step with specific details]
372
+ 3. [Verification step]
373
+
374
+ ## Gotchas
375
+ - [Integration-specific pitfall #1]
376
+ - [Integration-specific pitfall #2]
377
+ ```
378
+
379
+ ## Usage Modes
380
+
381
+ ### Direct Command Mode
382
+
383
+ When invoked with an argument, skip the interactive wizard:
384
+
385
+ - `$local-skills-setup list` - Show detailed skill inventory
386
+ - `$local-skills-setup add` - Start skill creation (invoke learner)
387
+ - `$local-skills-setup scan` - Scan both skill directories
388
+
389
+ ### Interactive Mode
390
+
391
+ When invoked without arguments, run the full guided wizard (Steps 1-4).
392
+
393
+ ## Skill Quality Guidelines
394
+
395
+ Remind users that good skills are:
396
+
397
+ 1. **Non-Googleable** - Can't easily find via search
398
+ - BAD: "How to read files in TypeScript" ❌
399
+ - GOOD: "This codebase uses custom path resolution requiring fileURLToPath" ✓
400
+
401
+ 2. **Context-Specific** - References actual files/errors from THIS codebase
402
+ - BAD: "Use try/catch for error handling" ❌
403
+ - GOOD: "The aiohttp proxy in server.py:42 crashes on ClientDisconnectedError" ✓
404
+
405
+ 3. **Actionable with Precision** - Tells exactly WHAT to do and WHERE
406
+ - BAD: "Handle edge cases" ❌
407
+ - GOOD: "When seeing 'Cannot find module' in dist/, check tsconfig.json moduleResolution" ✓
408
+
409
+ 4. **Hard-Won** - Required significant debugging effort
410
+ - BAD: Generic programming patterns ❌
411
+ - GOOD: "Race condition in worker.ts - Promise.all at line 89 needs await" ✓
412
+
413
+ ## Benefits of Local Skills
414
+
415
+ When introducing the skill system, explain these benefits:
416
+
417
+ **Automatic Application**: Codex detects triggers and applies skills automatically - no need to remember or search for solutions.
418
+
419
+ **Version Control**: Project-level skills (.omc/skills/) are committed with your code, so the whole team benefits.
420
+
421
+ **Evolving Knowledge**: Skills improve over time as you discover better approaches and refine triggers.
422
+
423
+ **Reduced Token Usage**: Instead of re-solving the same problems, Codex applies known patterns efficiently.
424
+
425
+ **Codebase Memory**: Preserves institutional knowledge that would otherwise be lost in conversation history.
426
+
427
+ ## Related Skills
428
+
429
+ - `$learner` - Extract a skill from current conversation
430
+ - `$note` - Save quick notes (less formal than skills)
431
+ - `$deepinit` - Generate AGENTS.md codebase hierarchy
432
+
433
+ ## Example Session
434
+
435
+ Show users what a typical session looks like:
436
+
437
+ ```
438
+ > $local-skills-setup
439
+
440
+ Checking skill directories...
441
+ ✓ User skills directory exists: ~/.codex/skills/omc-learned/
442
+ ✓ Project skills directory exists: .omc/skills/
443
+
444
+ Scanning for skills...
445
+
446
+ === USER-LEVEL SKILLS ===
447
+ Total skills: 3
448
+ - async-network-error-handling
449
+ Description: Pattern for handling independent I/O failures in async network code
450
+ Modified: 2026-01-20 14:32:15
451
+
452
+ - esm-path-resolution
453
+ Description: Custom path resolution in ESM requiring fileURLToPath
454
+ Modified: 2026-01-19 09:15:42
455
+
456
+ === PROJECT-LEVEL SKILLS ===
457
+ Total skills: 5
458
+ - session-timeout-fix
459
+ Description: Fix for sessionId undefined after restart in session.ts
460
+ Modified: 2026-01-22 16:45:23
461
+
462
+ - build-cache-invalidation
463
+ Description: When to clear TypeScript build cache to fix phantom errors
464
+ Modified: 2026-01-21 11:28:37
465
+
466
+ === SUMMARY ===
467
+ Total skills: 8
468
+
469
+ What would you like to do?
470
+ 1. Add new skill
471
+ 2. List all skills with details
472
+ 3. Scan conversation for patterns
473
+ 4. Import skill
474
+ 5. Done
475
+ ```
476
+
477
+ ## Tips for Users
478
+
479
+ - Run `$local-skills-setup scan` periodically to review your skill library
480
+ - After solving a tricky bug, immediately run learner to capture it
481
+ - Use project-level skills for codebase-specific knowledge
482
+ - Use user-level skills for general patterns that apply everywhere
483
+ - Review and refine triggers over time to improve matching accuracy
@@ -0,0 +1,187 @@
1
+ ---
2
+ name: Intelligent Log Analysis
3
+ description: Analyze browser console logs with 90% noise filtering. Debug web apps, check console errors, analyze JavaScript issues efficiently.
4
+ ---
5
+
6
+ # Intelligent Log Analysis Skill
7
+
8
+ ## When to Use This Skill
9
+
10
+ Automatically invoke this Skill when:
11
+ - User mentions "check logs", "console errors", "debug logs"
12
+ - User reports JavaScript errors or runtime issues
13
+ - User wants to analyze a running web application
14
+ - User needs to monitor browser console output
15
+ - Keywords: "logs", "console", "errors", "debugging", "Chrome DevTools"
16
+
17
+ ## What This Skill Does
18
+
19
+ **Intelligent Log Analyzer** provides:
20
+ 1. **90% Noise Filtering** - Removes repetitive framework logs
21
+ 2. **Smart Deduplication** - Collapses identical logs into summaries
22
+ 3. **Priority Detection** - Highlights [CLAUDE-*] markers
23
+ 4. **Context Optimization** - Saves 10K-25K tokens vs raw logs
24
+
25
+ ## Instructions
26
+
27
+ When this Skill is invoked:
28
+
29
+ ### Step 1: Determine the Mode
30
+
31
+ Ask yourself what level of analysis is needed:
32
+ - **Quick Mode** (10s) - Fast error detection
33
+ - **Deep Mode** (60s) - Comprehensive analysis
34
+ - **Pure Mode** - Maximum context optimization
35
+ - **Claude-Priority** - Focus on [CLAUDE-*] markers
36
+ - **Errors-Only** - Critical issues only
37
+
38
+ ### Step 2: Execute the Analysis
39
+
40
+ **IMPORTANT**: You MUST execute this bash command:
41
+
42
+ **Quick Mode (Default)**:
43
+ ```bash
44
+ ~/claude-log-system/claude_console_v2.sh [target] --quick
45
+ ```
46
+
47
+ **Deep Mode**:
48
+ ```bash
49
+ ~/claude-log-system/claude_console_v2.sh [target] --deep
50
+ ```
51
+
52
+ **Pure Mode**:
53
+ ```bash
54
+ ~/claude-log-system/claude_console_v2.sh [target] --pure
55
+ ```
56
+
57
+ **Claude-Priority Mode**:
58
+ ```bash
59
+ ~/claude-log-system/claude_console_v2.sh [target] --claude-priority
60
+ ```
61
+
62
+ **Errors-Only Mode**:
63
+ ```bash
64
+ ~/claude-log-system/claude_console_v2.sh [target] --errors-only
65
+ ```
66
+
67
+ Where `[target]` is usually `localhost:PORT` (e.g., `localhost:3001`)
68
+
69
+ ### Step 3: Analyze and Present
70
+
71
+ Organize the log output into:
72
+
73
+ ```markdown
74
+ ## 📊 Log Analysis Results
75
+
76
+ **Target**: [Application URL]
77
+ **Analysis Mode**: [Quick/Deep/Pure/Errors-Only]
78
+ **Duration**: [Time analyzed]
79
+
80
+ ### 🔴 Critical Issues
81
+ [Errors and exceptions that need immediate attention]
82
+
83
+ ### 🟡 Warnings & Important Patterns
84
+ [Repeated warnings, performance issues, degraded functionality]
85
+
86
+ ### 🟢 System Health Indicators
87
+ [Successful operations, normal metrics]
88
+
89
+ ### 💡 Recommendations
90
+ 1. [Specific action to fix issue #1]
91
+ 2. [Specific action to fix issue #2]
92
+ ...
93
+
94
+ ### 📈 Log Statistics
95
+ - Total logs captured: [number]
96
+ - After filtering: [number] (XX% reduction)
97
+ - Critical errors: [number]
98
+ - Warnings: [number]
99
+ ```
100
+
101
+ ### Step 4: Provide Context
102
+
103
+ Explain:
104
+ - What the errors mean
105
+ - Likely root causes
106
+ - Specific code locations if identifiable
107
+ - Next debugging steps
108
+
109
+ ## Examples
110
+
111
+ ### Example 1: Quick Error Check
112
+ **User**: "Check if there are any console errors on localhost:3001"
113
+
114
+ **You execute**:
115
+ ```bash
116
+ ~/claude-log-system/claude_console_v2.sh localhost:3001 --errors-only
117
+ ```
118
+
119
+ **You present**: Filtered list of errors with explanations and fixes.
120
+
121
+ ### Example 2: Deep Analysis
122
+ **User**: "Analyze all logs from my app, it's running slow"
123
+
124
+ **You execute**:
125
+ ```bash
126
+ ~/claude-log-system/claude_console_v2.sh localhost:3001 --deep
127
+ ```
128
+
129
+ **You present**: Comprehensive analysis including performance warnings, network issues, and optimization suggestions.
130
+
131
+ ## Intelligent Filtering Features
132
+
133
+ The system automatically:
134
+ - ✅ Collapses `[repeated 10x]` identical logs
135
+ - ✅ Aggregates progress bars and loading streams
136
+ - ✅ Prioritizes developer-marked `[CLAUDE-*]` logs
137
+ - ✅ Filters React/Vue/Angular framework noise
138
+ - ✅ Groups related error sequences
139
+
140
+ ## Claude-Specific Log Markers
141
+
142
+ Developers can add markers for your attention:
143
+ - `[CLAUDE-CRITICAL]` - Immediate attention required
144
+ - `[CLAUDE-FOCUS]` - Important for analysis
145
+ - `[CLAUDE-INFO]` - Useful context
146
+ - `[CLAUDE-DEBUG]` - Debug information
147
+
148
+ Use `--claude-priority` mode to focus on these.
149
+
150
+ ## Performance Characteristics
151
+
152
+ - **Log Reduction**: 80-95% fewer logs
153
+ - **Token Savings**: 10K-25K tokens saved
154
+ - **Analysis Time**: 10-60 seconds
155
+ - **Memory Usage**: Optimized with auto-cleanup
156
+
157
+ ## Prerequisites
158
+
159
+ **Before executing**:
160
+ 1. Chrome browser must be running
161
+ 2. Target web page must be open
162
+ 3. Script automatically sets debugging port (9222)
163
+
164
+ ## Fallback Strategy
165
+
166
+ If the command fails:
167
+ 1. Verify Chrome is running with the target page
168
+ 2. Try extending timeout: `--timeout 60`
169
+ 3. Check if page URL is correct
170
+ 4. Manual Chrome DevTools as last resort
171
+
172
+ ## Important Notes
173
+
174
+ - **Always execute** the bash command, don't simulate results
175
+ - **Analyze patterns**, not just list errors
176
+ - **Provide actionable fixes**, not just descriptions
177
+ - **Group related issues** for clarity
178
+ - **Suggest next steps** for debugging
179
+
180
+ ## Common Use Cases
181
+
182
+ - Frontend debugging (React, Vue, Angular)
183
+ - API error investigation
184
+ - Performance bottleneck identification
185
+ - Memory leak detection
186
+ - Network request analysis
187
+ - Runtime error tracking