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