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,519 @@
1
+ ---
2
+ name: quality-validation
3
+ description: Validate ResearchPacks and Implementation Plans with scoring rubrics and quality gates. Prevents garbage-in-garbage-out scenarios.
4
+ auto_invoke: false
5
+ tags: [validation, quality, verification, gates]
6
+ ---
7
+
8
+ # Quality Validation Skill
9
+
10
+ This skill provides systematic validation methodology to ensure ResearchPacks and Implementation Plans meet quality standards before proceeding to implementation.
11
+
12
+ > Codex CLI: Manual invocation only (`$quality-validation`). No hooks or auto-run.
13
+
14
+ ## When to Use This Skill (Manual)
15
+
16
+ Use this skill manually when:
17
+ - ResearchPack completed and needs validation before planning
18
+ - Implementation Plan completed and needs validation before coding
19
+ - User explicitly requests quality check ("validate this", "is this complete?")
20
+ - About to proceed to next workflow phase (quality gate trigger)
21
+
22
+ ## Core Principles (BRAHMA Constitution)
23
+
24
+ 1. **Verification over speculation** - Validate with objective criteria
25
+ 2. **Quality gates** - Don't proceed with bad inputs
26
+ 3. **Reproducibility** - Same input quality = same score
27
+ 4. **Explicit defects** - List specific problems, not vague "could be better"
28
+
29
+ ## Validation Targets
30
+
31
+ ### Research Type Detection
32
+
33
+ Before scoring, detect research type to apply appropriate rubric:
34
+
35
+ #### Type 1: API/Library Research
36
+ **Indicators**:
37
+ - Contains API endpoints, function signatures, method calls
38
+ - Code examples with specific library imports
39
+ - Configuration/setup steps for external dependencies
40
+ - Version numbers for libraries/frameworks
41
+
42
+ **Scoring**: Use API Research Rubric (80+ pass threshold)
43
+
44
+ #### Type 2: Philosophy Research
45
+ **Indicators**:
46
+ - Contains themes, principles, patterns, methodologies
47
+ - Thematic organization (Theme 1, Theme 2, etc.)
48
+ - Cross-source synthesis
49
+ - Engineering philosophy or best practices analysis
50
+ - Pattern extraction from multiple sources
51
+
52
+ **Scoring**: Use Philosophy Research Rubric (70+ pass threshold)
53
+
54
+ **Examples**: Engineering philosophy, architectural patterns, best practices, methodology research
55
+
56
+ #### Type 3: Pattern Research
57
+ **Indicators**:
58
+ - Contains code patterns, design patterns, anti-patterns
59
+ - Architectural decisions and tradeoffs
60
+ - Implementation strategies
61
+ - Performance optimization patterns
62
+
63
+ **Scoring**: Use Pattern Research Rubric (70+ pass threshold)
64
+
65
+ **Why Different Thresholds?**
66
+ - API research is more objective (APIs exist or don't, versions are correct or wrong)
67
+ - Philosophy research is more subjective (thematic organization, synthesis quality)
68
+ - Philosophy research provides strategic value even if not as "complete" as API docs
69
+
70
+ ### 1. ResearchPack Validation - API/Library Type
71
+
72
+ **Purpose**: Ensure research is complete, accurate, and actionable before planning
73
+
74
+ **Validation Rubric for API/Library Research** (100 points total, 80+ pass threshold):
75
+
76
+ #### Completeness (40 points)
77
+ - ✓ Library/API identified with version (10 pts)
78
+ - ✓ At least 3 key APIs documented (10 pts)
79
+ - ✓ Setup/configuration steps provided (10 pts)
80
+ - ✓ At least 1 complete code example (10 pts)
81
+
82
+ #### Accuracy (30 points)
83
+ - ✓ All API signatures match official docs exactly (15 pts)
84
+ - Check: No paraphrasing, exact parameter types, correct returns
85
+ - ✓ Version numbers correct and consistent (5 pts)
86
+ - ✓ URLs all valid and point to official sources (10 pts)
87
+ - Test: Each URL should be from official domain
88
+
89
+ #### Citation (20 points)
90
+ - ✓ Every API has source URL (10 pts)
91
+ - ✓ Sources include version and section references (5 pts)
92
+ - ✓ Confidence level stated and justified (5 pts)
93
+
94
+ #### Actionability (10 points)
95
+ - ✓ Implementation checklist provided (5 pts)
96
+ - ✓ Open questions identify real decisions (5 pts)
97
+
98
+ **Passing Score**: 80/100 or higher
99
+
100
+ **Validation Process**:
101
+
102
+ ```python
103
+ # Pseudo-code for validation logic
104
+ def validate_research_pack(research_pack):
105
+ score = 0
106
+ defects = []
107
+
108
+ # Completeness checks
109
+ if has_library_with_version(research_pack):
110
+ score += 10
111
+ else:
112
+ defects.append("CRITICAL: Library/version not identified")
113
+
114
+ api_count = count_documented_apis(research_pack)
115
+ if api_count >= 3:
116
+ score += 10
117
+ elif api_count > 0:
118
+ score += (api_count / 3) * 10
119
+ defects.append(f"MINOR: Only {api_count} APIs documented, need 3+")
120
+ else:
121
+ defects.append("CRITICAL: No APIs documented")
122
+
123
+ # ... (continue for all criteria)
124
+
125
+ return {
126
+ "score": score,
127
+ "grade": "PASS" if score >= 80 else "FAIL",
128
+ "defects": defects,
129
+ "recommendations": generate_recommendations(defects)
130
+ }
131
+ ```
132
+
133
+ **Output Format**:
134
+
135
+ ```markdown
136
+ ## 📊 ResearchPack Validation Report
137
+
138
+ **Overall Score**: [X]/100
139
+ **Grade**: [PASS ✅ / FAIL ❌]
140
+
141
+ ### Breakdown
142
+ - Completeness: [X]/40
143
+ - Accuracy: [X]/30
144
+ - Citation: [X]/20
145
+ - Actionability: [X]/10
146
+
147
+ ### Defects Found ([N])
148
+
149
+ #### CRITICAL (blocks implementation)
150
+ 1. [Specific defect with example]
151
+ 2. [Another defect]
152
+
153
+ #### MAJOR (should fix before proceeding)
154
+ 1. [Defect]
155
+
156
+ #### MINOR (nice to have)
157
+ 1. [Defect]
158
+
159
+ ### Recommendations
160
+
161
+ **To reach passing score**:
162
+ 1. [Specific action to take]
163
+ 2. [Another action]
164
+
165
+ **If score >= 80**: ✅ **APPROVED** - Proceed to implementation-planner
166
+
167
+ **If score < 80**: ❌ **BLOCKED** - Fix critical/major defects and re-validate
168
+ ```
169
+
170
+ ### 1b. ResearchPack Validation - Philosophy Research Type
171
+
172
+ **Purpose**: Ensure philosophy/pattern research is well-organized, sourced, and actionable
173
+
174
+ **Validation Rubric for Philosophy Research** (100 points total, 70+ pass threshold):
175
+
176
+ #### Thematic Organization (30 points)
177
+ - ✓ Clear themes/patterns identified with descriptive names (10 pts)
178
+ - Check: Each theme has a clear title and scope
179
+ - Examples: "Agent Architecture", "Context Engineering", "Multi-Agent Patterns"
180
+ - ✓ Each theme well-documented with examples and evidence (10 pts)
181
+ - Check: Themes have sub-sections, not just bullet points
182
+ - Check: Examples or quotes support each theme
183
+ - ✓ Cross-theme synthesis and relationships explained (10 pts)
184
+ - Check: "How patterns connect" or "Synthesis" section present
185
+ - Check: Explains how themes relate or build on each other
186
+
187
+ #### Source Quality (20 points)
188
+ - ✓ Official/authoritative sources cited (10 pts)
189
+ - Check: URLs from official domains (anthropic.com, docs.*, official repos)
190
+ - Examples: Anthropic blog, official documentation, framework guides
191
+ - ✓ Multiple sources per theme (5 pts)
192
+ - Check: Each major theme cites 2+ sources
193
+ - No single-source themes (indicates narrow research)
194
+ - ✓ Date/version information when applicable (5 pts)
195
+ - Check: Article dates, release versions, "as of [date]" present
196
+ - Helps determine if research is current
197
+
198
+ #### Actionable Insights (30 points)
199
+ - ✓ Implementation checklist provided (15 pts)
200
+ - Check: Concrete next steps for applying research
201
+ - Format: "Enhancement 1.1:", "Step 1:", "Action Items"
202
+ - Examples: "Add think protocol to agents", "Create context-engineering skill"
203
+ - ✓ Specific patterns extracted and documented (10 pts)
204
+ - Check: Patterns section with clear pattern names
205
+ - Check: Each pattern has description and when to use
206
+ - Examples: "Pattern 1: Minimal Scaffolding", "Pattern 2: Think Before Act"
207
+ - ✓ Open questions identified for planning phase (5 pts)
208
+ - Check: Research acknowledges what's unknown or needs deciding
209
+ - Examples: "Which agents need think tool?", "When to use multi-agent?"
210
+
211
+ #### Depth & Coverage (20 points)
212
+ - ✓ Comprehensive coverage of topic (10 pts)
213
+ - Check: Multiple aspects of topic covered
214
+ - Check: Not surface-level (goes beyond basic definitions)
215
+ - Examples: 7+ themes, 10+ sources for major topics
216
+ - ✓ Sufficient detail for implementation (10 pts)
217
+ - Check: Enough context to make decisions
218
+ - Check: Includes performance metrics, tradeoffs, examples
219
+ - Examples: "39% improvement", "15x cost", specific numbers
220
+
221
+ **Passing Score**: 70/100 or higher
222
+
223
+ **Why Lower Threshold Than API Research?**
224
+
225
+ Philosophy research is inherently more subjective and thematic. A well-organized thematic analysis with 7 patterns from 11 sources (like the Anthropic ResearchPack) deserves to pass even if it doesn't have "3+ API endpoints with exact signatures."
226
+
227
+ Philosophy research provides **strategic value**:
228
+ - Informs how to build, not just what APIs to call
229
+ - Establishes principles that apply across implementations
230
+ - Captures institutional knowledge and best practices
231
+ - Enables better decision-making during planning
232
+
233
+ **Example: Anthropic Engineering Philosophy ResearchPack**
234
+
235
+ Would score:
236
+ - **Thematic Organization**: 30/30 (7 clear themes, cross-synthesis section)
237
+ - **Source Quality**: 20/20 (11 official Anthropic articles, all dated)
238
+ - **Actionable Insights**: 28/30 (Implementation checklist present, 7 patterns extracted, open questions listed)
239
+ - **Depth & Coverage**: 18/20 (Comprehensive, but more examples would help)
240
+ - **Total**: 96/100 ✅ **PASS** (well above 70 threshold)
241
+
242
+ **Output Format**:
243
+
244
+ ```markdown
245
+ ## 📊 ResearchPack Validation Report (Philosophy Research)
246
+
247
+ **Overall Score**: [X]/100
248
+ **Grade**: [PASS ✅ / FAIL ❌]
249
+ **Research Type**: Philosophy/Pattern Research
250
+
251
+ ### Breakdown
252
+
253
+ **Thematic Organization** ([X]/30):
254
+ - Clear themes: [Y/10] [✓/✗]
255
+ - Theme documentation: [Y/10] [✓/✗]
256
+ - Cross-synthesis: [Y/10] [✓/✗]
257
+
258
+ **Source Quality** ([X]/20):
259
+ - Official sources: [Y/10] [✓/✗]
260
+ - Multiple sources per theme: [Y/5] [✓/✗]
261
+ - Date/version info: [Y/5] [✓/✗]
262
+
263
+ **Actionable Insights** ([X]/30):
264
+ - Implementation checklist: [Y/15] [✓/✗]
265
+ - Patterns extracted: [Y/10] [✓/✗]
266
+ - Open questions: [Y/5] [✓/✗]
267
+
268
+ **Depth & Coverage** ([X]/20):
269
+ - Comprehensive coverage: [Y/10] [✓/✗]
270
+ - Sufficient detail: [Y/10] [✓/✗]
271
+
272
+ ### Defects Found ([N])
273
+
274
+ #### CRITICAL (blocks implementation)
275
+ 1. [Defect - if no themes identified, no patterns extracted, etc.]
276
+
277
+ #### MAJOR (should fix before proceeding)
278
+ 1. [Defect - if only 1 source per theme, missing implementation checklist, etc.]
279
+
280
+ #### MINOR (nice to have)
281
+ 1. [Defect - if some themes lack examples, could use more sources, etc.]
282
+
283
+ ### Recommendations
284
+
285
+ **To reach passing score** (if < 70):
286
+ 1. [Specific action to take]
287
+ 2. [Another action]
288
+
289
+ **If score >= 70**: ✅ **APPROVED** - Proceed to implementation-planner
290
+
291
+ **If score < 70**: ❌ **BLOCKED** - Fix critical/major defects and re-validate
292
+
293
+ **Philosophy Research Note**: This research provides strategic guidance for implementation. Even if specific API details are needed later, the principles and patterns documented here are valuable for decision-making.
294
+ ```
295
+
296
+ ### 2. Implementation Plan Validation
297
+
298
+ **Purpose**: Ensure plan is complete, safe, and executable before coding
299
+
300
+ **Validation Rubric** (100 points total):
301
+
302
+ #### Completeness (35 points)
303
+ - ✓ All file changes listed with purposes (10 pts)
304
+ - ✓ Step-by-step implementation sequence (10 pts)
305
+ - ✓ Each step has verification method (10 pts)
306
+ - ✓ Test plan included (5 pts)
307
+
308
+ #### Safety (30 points)
309
+ - ✓ Rollback plan complete and specific (15 pts)
310
+ - Must include: exact commands, verification steps, triggers
311
+ - ✓ Risk assessment done (10 pts)
312
+ - At least 3 risks identified with mitigations
313
+ - ✓ Changes are minimal (fewest files possible) (5 pts)
314
+
315
+ #### Clarity (20 points)
316
+ - ✓ Steps are actionable (no ambiguity) (10 pts)
317
+ - ✓ Success criteria defined (5 pts)
318
+ - ✓ Time estimates provided (5 pts)
319
+
320
+ #### Alignment (15 points)
321
+ - ✓ Plan matches ResearchPack APIs (10 pts)
322
+ - ✓ Plan addresses all requirements from user (5 pts)
323
+
324
+ **Passing Score**: 85/100 or higher (higher bar than research)
325
+
326
+ **Validation Process**:
327
+
328
+ ```python
329
+ def validate_implementation_plan(plan, research_pack):
330
+ score = 0
331
+ defects = []
332
+
333
+ # Completeness checks
334
+ if has_file_changes_list(plan):
335
+ score += 10
336
+ else:
337
+ defects.append("CRITICAL: No file changes specified")
338
+
339
+ steps = extract_steps(plan)
340
+ if all(step_has_verification(s) for s in steps):
341
+ score += 10
342
+ else:
343
+ missing = [s for s in steps if not step_has_verification(s)]
344
+ score += (len(steps) - len(missing)) / len(steps) * 10
345
+ defects.append(f"MAJOR: Steps {missing} lack verification")
346
+
347
+ # Safety checks
348
+ rollback = extract_rollback_plan(plan)
349
+ if has_exact_commands(rollback) and has_triggers(rollback):
350
+ score += 15
351
+ elif has_rollback_section(plan):
352
+ score += 8
353
+ defects.append("MAJOR: Rollback plan incomplete (missing commands or triggers)")
354
+ else:
355
+ defects.append("CRITICAL: No rollback plan")
356
+
357
+ # Alignment checks
358
+ apis_used = extract_apis_from_plan(plan)
359
+ research_apis = extract_apis_from_research(research_pack)
360
+ if all(api_matches_research(a, research_apis) for a in apis_used):
361
+ score += 10
362
+ else:
363
+ mismatches = find_api_mismatches(apis_used, research_apis)
364
+ defects.append(f"CRITICAL: APIs don't match ResearchPack: {mismatches}")
365
+
366
+ # ... (continue for all criteria)
367
+
368
+ return {
369
+ "score": score,
370
+ "grade": "PASS" if score >= 85 else "FAIL",
371
+ "defects": defects,
372
+ "recommendations": generate_recommendations(defects)
373
+ }
374
+ ```
375
+
376
+ **Output Format**:
377
+
378
+ ```markdown
379
+ ## 📊 Implementation Plan Validation Report
380
+
381
+ **Overall Score**: [X]/100
382
+ **Grade**: [PASS ✅ / FAIL ❌]
383
+
384
+ ### Breakdown
385
+ - Completeness: [X]/35
386
+ - Safety: [X]/30
387
+ - Clarity: [X]/20
388
+ - Alignment: [X]/15
389
+
390
+ ### Defects Found ([N])
391
+
392
+ #### CRITICAL (blocks implementation)
393
+ 1. [Specific defect]
394
+
395
+ #### MAJOR (should fix)
396
+ 1. [Defect]
397
+
398
+ #### MINOR (nice to have)
399
+ 1. [Defect]
400
+
401
+ ### API Alignment Check
402
+ ✅ All APIs match ResearchPack
403
+ OR
404
+ ❌ Mismatches found:
405
+ - Plan uses `foo(x, y)` but ResearchPack shows `foo(x: string, y?: number)`
406
+
407
+ ### Recommendations
408
+
409
+ **To reach passing score**:
410
+ 1. [Action]
411
+
412
+ **If score >= 85**: ✅ **APPROVED** - Proceed to code-implementer
413
+
414
+ **If score < 85**: ❌ **BLOCKED** - Fix defects and re-validate
415
+ ```
416
+
417
+ ## Quality Gate Protocol
418
+
419
+ **Gates are MANDATORY checkpoints** - cannot proceed to next phase without passing validation.
420
+
421
+ ### Gate 1: Research → Planning
422
+
423
+ ```
424
+ Trigger: @docs-researcher completes ResearchPack
425
+ Action: Validate ResearchPack
426
+ Decision:
427
+ - Score >= 80: ✅ Allow @implementation-planner to proceed
428
+ - Score < 80: ❌ Block, return to @docs-researcher with defect list
429
+ ```
430
+
431
+ ### Gate 2: Planning → Implementation
432
+
433
+ ```
434
+ Trigger: @implementation-planner completes Implementation Plan
435
+ Action: Validate Implementation Plan + check alignment with ResearchPack
436
+ Decision:
437
+ - Score >= 85 AND APIs match: ✅ Allow @code-implementer to proceed
438
+ - Score < 85 OR APIs mismatch: ❌ Block, return to @implementation-planner with defect list
439
+ ```
440
+
441
+ ### Gate 3: Implementation → Completion
442
+
443
+ ```
444
+ Trigger: @code-implementer reports completion
445
+ Action: Validate tests passed, build succeeded, no regressions
446
+ Decision:
447
+ - All checks pass: ✅ Mark complete
448
+ - Any check fails: ❌ Trigger self-correction loop (up to 3 attempts)
449
+ ```
450
+
451
+ ## Manual Gate (Codex)
452
+
453
+ Codex CLI does not support hooks. Run this skill manually at each gate:
454
+ 1. Run `$quality-validation` after ResearchPack completion.
455
+ 2. Run `$quality-validation` after Implementation Plan completion.
456
+ 3. Run `$quality-validation` after implementation to confirm tests/build/regressions.
457
+
458
+ ## Common Validation Failures
459
+
460
+ ### ResearchPack Failures
461
+
462
+ **Hallucinated APIs**:
463
+ ```
464
+ ❌ CRITICAL: API `redis.client.fetch()` not found in official docs
465
+ ResearchPack cites: redis.io/docs/clients/nodejs
466
+ Actual API: `client.get()` (verified at redis.io/docs/clients/nodejs#get)
467
+ FIX: Replace all instances of `fetch` with correct `get` API
468
+ ```
469
+
470
+ **Version mismatch**:
471
+ ```
472
+ ❌ MAJOR: ResearchPack uses v3.x docs but project has v4.6.0
473
+ Example: v3 uses callbacks, v4 uses promises
474
+ FIX: Re-fetch docs for v4.6.0 specifically
475
+ ```
476
+
477
+ **Missing citations**:
478
+ ```
479
+ ❌ MAJOR: 5 APIs listed without source URLs
480
+ APIs: set(), del(), ttl(), exists(), keys()
481
+ FIX: Add source URL for each (format: docs.com/path#section)
482
+ ```
483
+
484
+ ### Implementation Plan Failures
485
+
486
+ **No rollback plan**:
487
+ ```
488
+ ❌ CRITICAL: Rollback plan missing
489
+ FIX: Add section "## 🔄 Rollback Plan" with:
490
+ - Exact git commands to revert
491
+ - Configuration restoration steps
492
+ - Verification after rollback
493
+ - Triggers for when to rollback
494
+ ```
495
+
496
+ **Ambiguous steps**:
497
+ ```
498
+ ❌ MAJOR: Step 3 says "Update the service" (too vague)
499
+ FIX: Specify:
500
+ - Which service? (path/to/ServiceName.ts)
501
+ - What update? (Add method X, modify method Y)
502
+ - How to verify? (run `npm test path/to/test.ts`)
503
+ ```
504
+
505
+ **API misalignment**:
506
+ ```
507
+ ❌ CRITICAL: Plan uses `client.fetch(key)` but ResearchPack shows `client.get(key)`
508
+ FIX: Update plan to use correct API signature from ResearchPack
509
+ ```
510
+
511
+ ## Performance Targets
512
+
513
+ - **Validation time**: < 15 seconds per validation
514
+ - **Defect detection rate**: 95%+ of major issues caught
515
+ - **False positive rate**: < 5% (don't block good work)
516
+
517
+ ---
518
+
519
+ **This skill enforces objective quality gates for the Research → Plan → Implement workflow.**