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,57 @@
1
+ # Issue Fix Context
2
+
3
+ You are fixing Issue #{{ISSUE_NUMBER}}: **{{ISSUE_TITLE}}**
4
+
5
+ ## Issue Details
6
+
7
+ - **URL**: {{ISSUE_URL}}
8
+ - **Labels**: {{ISSUE_LABELS}}
9
+ - **Branch**: `{{BRANCH_NAME}}`
10
+
11
+ ## Description
12
+
13
+ {{ISSUE_BODY}}
14
+
15
+ ## Approach
16
+
17
+ 1. **Understand the Issue**
18
+ - Reproduce the problem if applicable
19
+ - Identify root cause
20
+ - Consider edge cases
21
+
22
+ 2. **Plan the Fix**
23
+ - Minimal changes to fix the issue
24
+ - Don't introduce regressions
25
+ - Consider backwards compatibility
26
+
27
+ 3. **Implement**
28
+ - Write the fix
29
+ - Add/update tests
30
+ - Update documentation if needed
31
+
32
+ 4. **Verify**
33
+ - Run existing tests
34
+ - Test the specific fix
35
+ - Check for regressions
36
+
37
+ ## Commands
38
+
39
+ ```bash
40
+ # Run tests
41
+ npm test # or appropriate test command
42
+
43
+ # Check build
44
+ npm run build # or appropriate build command
45
+
46
+ # Create PR when done
47
+ gh pr create --title "Fix #{{ISSUE_NUMBER}}: <description>" --body "Fixes #{{ISSUE_NUMBER}}"
48
+ ```
49
+
50
+ ## Fix Checklist
51
+
52
+ - [ ] Root cause identified
53
+ - [ ] Fix implemented
54
+ - [ ] Tests added/updated
55
+ - [ ] All tests pass
56
+ - [ ] No regressions introduced
57
+ - [ ] Ready for PR
@@ -0,0 +1,65 @@
1
+ # PR Review Context
2
+
3
+ You are reviewing PR #{{PR_NUMBER}}: **{{PR_TITLE}}**
4
+
5
+ ## PR Details
6
+
7
+ - **Author**: @{{PR_AUTHOR}}
8
+ - **Branch**: `{{HEAD_BRANCH}}` → `{{BASE_BRANCH}}`
9
+ - **URL**: {{PR_URL}}
10
+
11
+ ## Description
12
+
13
+ {{PR_BODY}}
14
+
15
+ ## Changed Files
16
+
17
+ {{CHANGED_FILES}}
18
+
19
+ ## Review Focus
20
+
21
+ 1. **Code Quality**
22
+ - Follow existing patterns and conventions
23
+ - Clean, readable, maintainable code
24
+ - Appropriate abstractions
25
+
26
+ 2. **Correctness**
27
+ - Does it do what it claims?
28
+ - Edge cases handled?
29
+ - Error handling appropriate?
30
+
31
+ 3. **Security**
32
+ - Input validation
33
+ - No hardcoded secrets
34
+ - Safe dependencies
35
+
36
+ 4. **Testing**
37
+ - Adequate test coverage
38
+ - Tests are meaningful
39
+ - Edge cases tested
40
+
41
+ 5. **Documentation**
42
+ - Code is self-documenting
43
+ - Complex logic explained
44
+ - API changes documented
45
+
46
+ ## Commands
47
+
48
+ ```bash
49
+ # View diff
50
+ git diff {{BASE_BRANCH}}...HEAD
51
+
52
+ # Run tests
53
+ npm test # or appropriate test command
54
+
55
+ # Check build
56
+ npm run build # or appropriate build command
57
+ ```
58
+
59
+ ## Review Checklist
60
+
61
+ - [ ] Code follows project style
62
+ - [ ] No obvious bugs or logic errors
63
+ - [ ] Security concerns addressed
64
+ - [ ] Tests pass and cover changes
65
+ - [ ] Documentation updated if needed
@@ -0,0 +1,19 @@
1
+ {
2
+ "aliases": {
3
+ "omc": {
4
+ "repo": "Yeachan-Heo/oh-my-codex",
5
+ "local": "~/Workspace/oh-my-codex",
6
+ "default_base": "main"
7
+ },
8
+ "cc": {
9
+ "repo": "anthropics/claude-code",
10
+ "local": "~/Workspace/claude-code",
11
+ "default_base": "main"
12
+ }
13
+ },
14
+ "defaults": {
15
+ "worktree_root": "~/.psm/worktrees",
16
+ "cleanup_after_days": 14,
17
+ "auto_cleanup_merged": true
18
+ }
19
+ }
@@ -0,0 +1,171 @@
1
+ # Quality Check - Detailed Usage Guide
2
+
3
+ ## Overview
4
+
5
+ Analyze code quality using CodeDNA-inspired 6-dimension intelligent scoring system with ROI-optimized refactoring recommendations.
6
+
7
+ ## Six Quality Dimensions
8
+
9
+ ### 1. Clarity (20%)
10
+ **What it measures**: Code readability and intent clarity
11
+
12
+ **Scoring criteria**:
13
+ - Variable/function naming (10%)
14
+ - Comments and documentation (5%)
15
+ - Code organization (5%)
16
+
17
+ **Score range**:
18
+ - 90-100: Self-documenting code
19
+ - 70-89: Clear with minor issues
20
+ - 50-69: Needs improvement
21
+ - <50: Confusing
22
+
23
+ ### 2. Structure (20%)
24
+ **What it measures**: Code organization and modularity
25
+
26
+ **Scoring criteria**:
27
+ - Module boundaries (7%)
28
+ - Function size and complexity (7%)
29
+ - Dependency management (6%)
30
+
31
+ **Score range**:
32
+ - 90-100: Excellent separation of concerns
33
+ - 70-89: Well-structured
34
+ - 50-69: Some coupling issues
35
+ - <50: Monolithic or tangled
36
+
37
+ ### 3. Examples (15%)
38
+ **What it measures**: Usage examples and documentation quality
39
+
40
+ **Scoring criteria**:
41
+ - README completeness (5%)
42
+ - Usage examples (5%)
43
+ - API documentation (5%)
44
+
45
+ ### 4. Trigger Detection (15%)
46
+ **What it measures**: API discoverability and intuitiveness
47
+
48
+ **Scoring criteria**:
49
+ - Function naming (7%)
50
+ - API surface clarity (5%)
51
+ - Error messages (3%)
52
+
53
+ ### 5. Best Practices (15%)
54
+ **What it measures**: Standards and conventions compliance
55
+
56
+ **Scoring criteria**:
57
+ - Style guide adherence (7%)
58
+ - Security best practices (5%)
59
+ - Performance patterns (3%)
60
+
61
+ ### 6. Maintainability (15%)
62
+ **What it measures**: Long-term code sustainability
63
+
64
+ **Scoring criteria**:
65
+ - Test coverage (7%)
66
+ - Technical debt (5%)
67
+ - Change risk (3%)
68
+
69
+ ## Usage Scenarios
70
+
71
+ ### Scenario 1: File Quality Check
72
+
73
+ ```
74
+ "Analyze code quality for src/services/payment.ts"
75
+ ```
76
+
77
+ **Output**:
78
+ ```markdown
79
+ ## 📊 Code Quality Report
80
+
81
+ **File**: src/services/payment.ts
82
+ **Overall Score**: 78/100 (Good)
83
+
84
+ ### Dimension Scores
85
+ 1. Clarity: 85/100 ✅
86
+ 2. Structure: 75/100 ✅
87
+ 3. Examples: 60/100 ⚠️
88
+ 4. Trigger Detection: 80/100 ✅
89
+ 5. Best Practices: 70/100 ⚠️
90
+ 6. Maintainability: 75/100 ✅
91
+
92
+ ### ROI-Optimized Recommendations
93
+ **High ROI** (10 min → 80% improvement):
94
+ 1. Add JSDoc comments to public methods
95
+ 2. Extract 120-line processPayment into smaller functions
96
+
97
+ **Medium ROI** (30 min → 60% improvement):
98
+ 3. Add integration tests for edge cases
99
+ 4. Refactor error handling into middleware
100
+
101
+ **Low ROI** (2 hrs → 20% improvement):
102
+ 5. Migrate to TypeScript strict mode
103
+ 6. Comprehensive input validation
104
+ ```
105
+
106
+ ### Scenario 2: Project-Wide Analysis
107
+
108
+ ```
109
+ "Generate quality report for entire project"
110
+ ```
111
+
112
+ Analyzes all files and provides aggregated scores.
113
+
114
+ ### Scenario 3: Trend Analysis
115
+
116
+ ```
117
+ "Compare quality with last month"
118
+ ```
119
+
120
+ Shows quality improvement/degradation over time.
121
+
122
+ ## ROI-Optimized Refactoring
123
+
124
+ **High ROI** (<30 min, 50%+ impact):
125
+ - Rename unclear variables
126
+ - Add missing documentation
127
+ - Extract magic numbers
128
+ - Fix obvious bugs
129
+
130
+ **Medium ROI** (30 min-2 hrs, 30% impact):
131
+ - Reduce function complexity
132
+ - Add test coverage
133
+ - Refactor duplicated code
134
+
135
+ **Low ROI** (>2 hrs, <20% impact):
136
+ - Large-scale refactoring
137
+ - Migration to new patterns
138
+ - Complete test rewrites
139
+
140
+ ## Real-World Examples
141
+
142
+ ### Example 1: Pre-Commit Check
143
+
144
+ ```bash
145
+ git add .
146
+ "Run quality check before commit"
147
+ ```
148
+
149
+ Ensures minimum quality threshold before committing.
150
+
151
+ ### Example 2: Technical Debt Assessment
152
+
153
+ ```
154
+ "Identify technical debt hotspots"
155
+ ```
156
+
157
+ Finds areas with lowest quality scores requiring urgent attention.
158
+
159
+ ### Example 3: Refactoring Prioritization
160
+
161
+ ```
162
+ "Prioritize refactoring by ROI"
163
+ ```
164
+
165
+ Orders improvements by effort/impact ratio.
166
+
167
+ ## Related Skills
168
+
169
+ - **code-review**: Combines with quality analysis
170
+ - **project-analyze**: Project-wide quality assessment
171
+ - **agent-kb**: Historical quality patterns
@@ -0,0 +1,50 @@
1
+ # Code Quality Check
2
+
3
+ Analyze code quality using CodeDNA 6-dimension intelligent scoring system with ROI-optimized refactoring recommendations.
4
+
5
+ ## Quick Install
6
+
7
+ ```bash
8
+ # Already installed at:
9
+ ~/.claude/skills/quality-check/
10
+ ```
11
+
12
+ ## Usage
13
+
14
+ ```
15
+ "Check code quality"
16
+ "Analyze this file for refactoring opportunities"
17
+ "Generate quality report"
18
+ ```
19
+
20
+ ## What It Does
21
+
22
+ - ✅ 6-dimension quality scoring (like CodeDNA)
23
+ - ✅ ROI-optimized refactoring recommendations
24
+ - ✅ Technical debt assessment
25
+ - ✅ Maintainability analysis
26
+ - ✅ Actionable improvement suggestions
27
+
28
+ ## Six Dimensions
29
+
30
+ 1. **Clarity** (20%) - Code readability and intent
31
+ 2. **Structure** (20%) - Organization and modularity
32
+ 3. **Examples** (15%) - Documentation and usage
33
+ 4. **Trigger Detection** (15%) - API discoverability
34
+ 5. **Best Practices** (15%) - Standards compliance
35
+ 6. **Maintainability** (15%) - Long-term sustainability
36
+
37
+ ## Files
38
+
39
+ - `SKILL.md` - Complete quality methodology
40
+ - `README.md` - This quick start guide
41
+ - `HOW_TO_USE.md` - Detailed scoring guide
42
+ - `references/` - Scoring criteria details (Phase 2)
43
+ - `assets/` - Report templates (Phase 2)
44
+
45
+ ## When to Use
46
+
47
+ - Pre-commit quality checks
48
+ - Refactoring prioritization
49
+ - Code review preparation
50
+ - Technical debt audits
@@ -0,0 +1,240 @@
1
+ ---
2
+ name: quality-check
3
+ description: CodeDNA 6-dimension intelligent scoring for code quality. Provides ROI-optimized refactoring recommendations when analyzing code.
4
+ ---
5
+
6
+ > Codex CLI: Manual invocation only (`$quality-check`). No hooks or auto-run.
7
+
8
+ # Code Quality Check Skill
9
+
10
+ ## When to Use This Skill
11
+
12
+ Automatically invoke this Skill when:
13
+ - User asks to "check code quality", "review this code"
14
+ - User mentions refactoring or code improvements
15
+ - User wants quality scores or metrics
16
+ - Before major refactoring efforts
17
+ - During code review processes
18
+ - Keywords: "quality", "refactor", "review", "improve code", "code smell"
19
+
20
+ ## What This Skill Does
21
+
22
+ **CodeDNA Quality Analyzer** provides:
23
+ 1. **6-Dimension Scoring** - Comprehensive quality assessment
24
+ 2. **Issue Identification** - Specific problems with severity levels
25
+ 3. **ROI-Optimized Suggestions** - High-value refactoring priorities
26
+ 4. **PageRank Analysis** - Quality hotspot identification
27
+
28
+ ## The 6 Quality Dimensions
29
+
30
+ 1. **Complexity** - Cyclomatic complexity, nesting depth
31
+ 2. **Maintainability** - Code readability, documentation quality
32
+ 3. **Modularity** - Coupling, cohesion, dependency structure
33
+ 4. **Test Coverage** - Test quality and coverage metrics
34
+ 5. **Documentation** - Comment ratio, API docs completeness
35
+ 6. **Best Practices** - Style guide adherence, pattern usage
36
+
37
+ ## Instructions
38
+
39
+ When this Skill is invoked:
40
+
41
+ ### Step 1: Determine Analysis Mode
42
+
43
+ Ask yourself:
44
+ - Is it a **single file**? → Use `test_quality_simple.py`
45
+ - Is it a **project directory**? → Use `project_quality_analyzer.py --mode overview`
46
+ - Need **impact analysis**? → Use `project_quality_analyzer.py --mode impact-analysis`
47
+
48
+ ### Step 2: Execute the Analysis
49
+
50
+ **IMPORTANT**: You MUST execute one of these Python commands:
51
+
52
+ **Single File Analysis**:
53
+ ```bash
54
+ python /Users/WangQiao/claude-enhanced-quality/test_quality_simple.py [file_path]
55
+ ```
56
+
57
+ **Project Overview**:
58
+ ```bash
59
+ python /Users/WangQiao/claude-enhanced-quality/project_quality_analyzer.py --project [directory_path] --mode overview
60
+ ```
61
+
62
+ **Impact Analysis**:
63
+ ```bash
64
+ python /Users/WangQiao/claude-enhanced-quality/project_quality_analyzer.py --file [file_path] --mode impact-analysis
65
+ ```
66
+
67
+ ### Step 3: Present Results
68
+
69
+ Format the output as:
70
+
71
+ ```markdown
72
+ ## 🔬 Code Quality Analysis
73
+
74
+ **Target**: [File/Project Path]
75
+ **Overall Score**: XX/100 [🟢/🟡/🔴]
76
+
77
+ ### 6-Dimension Breakdown
78
+
79
+ | Dimension | Score | Status | Key Insights |
80
+ |-----------|-------|--------|--------------|
81
+ | Complexity | XX/100 | 🟢/🟡/🔴 | [Main issue] |
82
+ | Maintainability | XX/100 | 🟢/🟡/🔴 | [Main issue] |
83
+ | Modularity | XX/100 | 🟢/🟡/🔴 | [Main issue] |
84
+ | Test Coverage | XX/100 | 🟢/🟡/🔴 | [Main issue] |
85
+ | Documentation | XX/100 | 🟢/🟡/🔴 | [Main issue] |
86
+ | Best Practices | XX/100 | 🟢/🟡/🔴 | [Main issue] |
87
+
88
+ ### 🔴 Critical Issues (Fix Immediately)
89
+ 1. **[Issue Name]** - [File:Line]
90
+ - Impact: [High/Medium/Low]
91
+ - Explanation: [What's wrong]
92
+ - Fix: [Specific solution]
93
+
94
+ ### 🟡 Important Issues (Fix This Sprint)
95
+ 1. **[Issue Name]** - [File:Line]
96
+ - Impact: [explanation]
97
+ - Suggested approach: [how to fix]
98
+
99
+ ### 💡 Refactoring Priorities (ROI-Optimized)
100
+
101
+ Based on PageRank and quality analysis:
102
+
103
+ 1. **[Module/File Name]** (ROI: High)
104
+ - Current Score: XX/100
105
+ - Effort: [X hours]
106
+ - Benefit: [Specific improvements]
107
+ - Priority: P0/P1/P2
108
+
109
+ 2. **[Module/File Name]** (ROI: Medium)
110
+ - [Details...]
111
+
112
+ ### 📊 Quality Hotspots
113
+
114
+ Files that would benefit most from refactoring:
115
+ - [File 1]: Score XX, high dependency count
116
+ - [File 2]: Score XX, complex and frequently changed
117
+ - [File 3]: Score XX, critical business logic
118
+
119
+ ### 🎯 Recommended Actions
120
+
121
+ **Immediate (This Week)**:
122
+ - [ ] [Specific action with file:line]
123
+ - [ ] [Specific action with file:line]
124
+
125
+ **Short-term (This Sprint)**:
126
+ - [ ] [Refactoring task]
127
+ - [ ] [Testing improvement]
128
+
129
+ **Long-term (Next Quarter)**:
130
+ - [ ] [Architecture improvement]
131
+ - [ ] [Technical debt reduction]
132
+ ```
133
+
134
+ ### Step 4: Provide Context
135
+
136
+ Explain:
137
+ - Why these scores matter
138
+ - Business impact of the issues
139
+ - Risk of not fixing critical problems
140
+ - Expected improvement from suggested changes
141
+
142
+ ## Examples
143
+
144
+ ### Example 1: Single File Review
145
+ **User**: "Check the quality of src/auth/login.ts"
146
+
147
+ **You execute**:
148
+ ```bash
149
+ python ~/claude-enhanced-quality/test_quality_simple.py src/auth/login.ts
150
+ ```
151
+
152
+ **You present**: 6-dimension scores, specific issues, and refactoring suggestions.
153
+
154
+ ### Example 2: Project Overview
155
+ **User**: "How's the code quality of my payment module?"
156
+
157
+ **You execute**:
158
+ ```bash
159
+ python ~/claude-enhanced-quality/project_quality_analyzer.py --project src/payment --mode overview
160
+ ```
161
+
162
+ **You present**: Project-wide quality assessment, hotspots, and priority fixes.
163
+
164
+ ### Example 3: Impact Analysis
165
+ **User**: "I want to refactor the database layer, what's the impact?"
166
+
167
+ **You execute**:
168
+ ```bash
169
+ python ~/claude-enhanced-quality/project_quality_analyzer.py --file src/core/database.ts --mode impact-analysis
170
+ ```
171
+
172
+ **You present**: Dependency analysis, affected files, risk assessment, and refactoring plan.
173
+
174
+ ## Quality Thresholds
175
+
176
+ Scoring system:
177
+ - **🟢 80-100**: Good quality, minor improvements only
178
+ - **🟡 60-79**: Acceptable, needs improvement
179
+ - **🔴 <60**: Poor quality, refactoring required
180
+
181
+ ## ROI Calculation
182
+
183
+ Refactoring priority is based on:
184
+ - **Quality Score** (lower = higher priority)
185
+ - **PageRank** (higher = more important)
186
+ - **Dependency Count** (higher = more impact)
187
+ - **Change Frequency** (higher = more value)
188
+
189
+ ## Integration with ProjectMind
190
+
191
+ For project-level analysis, the system uses:
192
+ - **Knowledge Graph** - Deep project understanding
193
+ - **Dependency Mapping** - Complete relationship analysis
194
+ - **Historical Data** - Evolution patterns and trends
195
+
196
+ ## Important Notes
197
+
198
+ - **Always execute** the Python command, don't guess scores
199
+ - **Explain the "why"** behind each issue
200
+ - **Prioritize by ROI**, not just severity
201
+ - **Provide specific fixes**, not generic advice
202
+ - **Consider business context** in recommendations
203
+
204
+ ## Common Quality Issues
205
+
206
+ ### Complexity Issues
207
+ - High cyclomatic complexity (>10)
208
+ - Deep nesting (>4 levels)
209
+ - Long functions (>50 lines)
210
+ - God classes/objects
211
+
212
+ ### Maintainability Issues
213
+ - Poor naming conventions
214
+ - Missing documentation
215
+ - Magic numbers/strings
216
+ - Code duplication
217
+
218
+ ### Modularity Issues
219
+ - High coupling
220
+ - Low cohesion
221
+ - Circular dependencies
222
+ - Tight integration
223
+
224
+ ### Testing Issues
225
+ - Low coverage (<80%)
226
+ - Missing edge cases
227
+ - Flaky tests
228
+ - No integration tests
229
+
230
+ ## Prerequisites
231
+
232
+ - Python environment with CodeDNA installed
233
+ - Access to project files
234
+ - ProjectMind system for project-level analysis
235
+
236
+ ## Performance
237
+
238
+ - **Single File**: <5 seconds
239
+ - **Project Overview**: 10-30 seconds
240
+ - **Impact Analysis**: 15-45 seconds