@mrciphersmith/keryx 0.2.9

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 (297) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +351 -0
  3. package/dist/cli.js +48427 -0
  4. package/dist/proxy-worker.js +381 -0
  5. package/package.json +63 -0
  6. package/src/gdgraph/affected.test.ts +100 -0
  7. package/src/gdgraph/affected.ts +135 -0
  8. package/src/gdgraph/build-integrity.test.ts +193 -0
  9. package/src/gdgraph/build-lang.test.ts +399 -0
  10. package/src/gdgraph/build.test.ts +120 -0
  11. package/src/gdgraph/build.ts +804 -0
  12. package/src/gdgraph/config.test.ts +47 -0
  13. package/src/gdgraph/config.ts +113 -0
  14. package/src/gdgraph/core-sources.test.ts +99 -0
  15. package/src/gdgraph/core-sources.ts +20 -0
  16. package/src/gdgraph/enrich.ts +79 -0
  17. package/src/gdgraph/fallback.test.ts +153 -0
  18. package/src/gdgraph/find.test.ts +78 -0
  19. package/src/gdgraph/find.ts +107 -0
  20. package/src/gdgraph/pagerank.ts +129 -0
  21. package/src/gdgraph/path.test.ts +56 -0
  22. package/src/gdgraph/path.ts +112 -0
  23. package/src/gdgraph/query.ts +133 -0
  24. package/src/gdgraph/repomap.test.ts +110 -0
  25. package/src/gdgraph/repomap.ts +193 -0
  26. package/src/gdgraph/service.test.ts +59 -0
  27. package/src/gdgraph/service.ts +51 -0
  28. package/src/gdgraph/staleness.ts +20 -0
  29. package/src/gdgraph/symbol.test.ts +89 -0
  30. package/src/gdgraph/symbol.ts +123 -0
  31. package/src/gdgraph/symbols-capability.test.ts +41 -0
  32. package/src/gdgraph/symbols-capability.ts +49 -0
  33. package/src/gdgraph/target.ts +56 -0
  34. package/src/gdgraph/treesitter/adapter.test.ts +249 -0
  35. package/src/gdgraph/treesitter/adapter.ts +213 -0
  36. package/src/gdgraph/treesitter/extract.test.ts +278 -0
  37. package/src/gdgraph/treesitter/extract.ts +389 -0
  38. package/src/gdgraph/treesitter/grammars.ts +110 -0
  39. package/src/gdgraph/treesitter/no-treesitter-import.test.ts +51 -0
  40. package/src/gdgraph/treesitter/resolve-calls.test.ts +38 -0
  41. package/src/gdgraph/types.ts +63 -0
  42. package/src/gdskills/bundled/rules/core/api-contracts.mdc +148 -0
  43. package/src/gdskills/bundled/rules/core/async-patterns.mdc +185 -0
  44. package/src/gdskills/bundled/rules/core/clean-architecture.mdc +163 -0
  45. package/src/gdskills/bundled/rules/core/code-review-ai-assistant.mdc +49 -0
  46. package/src/gdskills/bundled/rules/core/code-review-b091-profile.mdc +48 -0
  47. package/src/gdskills/bundled/rules/core/code-style-patterns.mdc +54 -0
  48. package/src/gdskills/bundled/rules/core/commit-message-formatting.mdc +25 -0
  49. package/src/gdskills/bundled/rules/core/database-patterns.mdc +162 -0
  50. package/src/gdskills/bundled/rules/core/documentation-management.mdc +106 -0
  51. package/src/gdskills/bundled/rules/core/error-handling.mdc +163 -0
  52. package/src/gdskills/bundled/rules/core/execution-metrics.md +99 -0
  53. package/src/gdskills/bundled/rules/core/frontend-assistant.mdc +40 -0
  54. package/src/gdskills/bundled/rules/core/git-rules.mdc +37 -0
  55. package/src/gdskills/bundled/rules/core/gproject-contracts.mdc +198 -0
  56. package/src/gdskills/bundled/rules/core/implementation-doc-mandate.mdc +149 -0
  57. package/src/gdskills/bundled/rules/core/implementation-plans.mdc +58 -0
  58. package/src/gdskills/bundled/rules/core/jobs-documentation.mdc +221 -0
  59. package/src/gdskills/bundled/rules/core/mobx-store-template.mdc +561 -0
  60. package/src/gdskills/bundled/rules/core/model-selection.mdc +53 -0
  61. package/src/gdskills/bundled/rules/core/nestjs-dto.mdc +50 -0
  62. package/src/gdskills/bundled/rules/core/playwright-testing.mdc +321 -0
  63. package/src/gdskills/bundled/rules/core/requirements-management.mdc +35 -0
  64. package/src/gdskills/bundled/rules/core/requirements-package-standard.mdc +103 -0
  65. package/src/gdskills/bundled/rules/core/review-agent-profile.mdc +49 -0
  66. package/src/gdskills/bundled/rules/core/review-strict-profile.mdc +44 -0
  67. package/src/gdskills/bundled/rules/core/rule-management-workflow.mdc +62 -0
  68. package/src/gdskills/bundled/rules/core/security-baseline.mdc +155 -0
  69. package/src/gdskills/bundled/rules/core/shared-definitions.mdc +79 -0
  70. package/src/gdskills/bundled/rules/core/skill-lifecycle.mdc +55 -0
  71. package/src/gdskills/bundled/rules/core/skills-storage-workflow.mdc +88 -0
  72. package/src/gdskills/bundled/rules/core/solid-principles.mdc +149 -0
  73. package/src/gdskills/bundled/rules/core/storybook-guidelines.mdc +36 -0
  74. package/src/gdskills/bundled/rules/core/subagent-context-construction.md +107 -0
  75. package/src/gdskills/bundled/rules/core/subagent-status-protocol.md +169 -0
  76. package/src/gdskills/bundled/rules/core/tdd-workflow.mdc +96 -0
  77. package/src/gdskills/bundled/skills/orchestration/code-verifier/SKILL.codex.md +47 -0
  78. package/src/gdskills/bundled/skills/orchestration/code-verifier/SKILL.cursor.md +55 -0
  79. package/src/gdskills/bundled/skills/orchestration/code-verifier/SKILL.md +352 -0
  80. package/src/gdskills/bundled/skills/orchestration/code-verifier/SKILL.opencode.md +39 -0
  81. package/src/gdskills/bundled/skills/orchestration/code-verifier/SKILL.zed.md +29 -0
  82. package/src/gdskills/bundled/skills/orchestration/context-collector/SKILL.codex.md +567 -0
  83. package/src/gdskills/bundled/skills/orchestration/context-collector/SKILL.cursor.md +567 -0
  84. package/src/gdskills/bundled/skills/orchestration/context-collector/SKILL.md +655 -0
  85. package/src/gdskills/bundled/skills/orchestration/context-collector/SKILL.opencode.md +567 -0
  86. package/src/gdskills/bundled/skills/orchestration/context-collector/SKILL.zed.md +567 -0
  87. package/src/gdskills/bundled/skills/orchestration/context-collector/input-contract.schema.json +134 -0
  88. package/src/gdskills/bundled/skills/orchestration/context-collector/orchestrator-prompt.md +183 -0
  89. package/src/gdskills/bundled/skills/orchestration/context-collector/output-contract.schema.json +208 -0
  90. package/src/gdskills/bundled/skills/orchestration/feature-analyzer/SKILL.codex.md +1412 -0
  91. package/src/gdskills/bundled/skills/orchestration/feature-analyzer/SKILL.cursor.md +1412 -0
  92. package/src/gdskills/bundled/skills/orchestration/feature-analyzer/SKILL.detail.md +735 -0
  93. package/src/gdskills/bundled/skills/orchestration/feature-analyzer/SKILL.md +468 -0
  94. package/src/gdskills/bundled/skills/orchestration/feature-analyzer/SKILL.opencode.md +1412 -0
  95. package/src/gdskills/bundled/skills/orchestration/feature-analyzer/SKILL.zed.md +1412 -0
  96. package/src/gdskills/bundled/skills/orchestration/feature-analyzer/analysis-request.md +62 -0
  97. package/src/gdskills/bundled/skills/orchestration/feature-analyzer/analysis-request.template.md +79 -0
  98. package/src/gdskills/bundled/skills/orchestration/feature-analyzer/input-contract.schema.json +247 -0
  99. package/src/gdskills/bundled/skills/orchestration/feature-analyzer/orchestrator-prompt.md +362 -0
  100. package/src/gdskills/bundled/skills/orchestration/feature-analyzer/output-contract.schema.json +87 -0
  101. package/src/gdskills/bundled/skills/orchestration/feature-dev/SKILL.codex.md +105 -0
  102. package/src/gdskills/bundled/skills/orchestration/feature-dev/SKILL.cursor.md +105 -0
  103. package/src/gdskills/bundled/skills/orchestration/feature-dev/SKILL.md +165 -0
  104. package/src/gdskills/bundled/skills/orchestration/flow-orchestrator/SKILL.md +379 -0
  105. package/src/gdskills/bundled/skills/orchestration/flow-orchestrator/input-contract.schema.json +33 -0
  106. package/src/gdskills/bundled/skills/orchestration/flow-orchestrator/output-contract.schema.json +41 -0
  107. package/src/gdskills/bundled/skills/orchestration/issue-analyzer/SKILL.codex.md +307 -0
  108. package/src/gdskills/bundled/skills/orchestration/issue-analyzer/SKILL.cursor.md +307 -0
  109. package/src/gdskills/bundled/skills/orchestration/issue-analyzer/SKILL.md +373 -0
  110. package/src/gdskills/bundled/skills/orchestration/issue-analyzer/SKILL.opencode.md +307 -0
  111. package/src/gdskills/bundled/skills/orchestration/issue-analyzer/SKILL.zed.md +307 -0
  112. package/src/gdskills/bundled/skills/orchestration/issue-analyzer/input-contract.schema.json +130 -0
  113. package/src/gdskills/bundled/skills/orchestration/issue-analyzer/issue-request.template.md +50 -0
  114. package/src/gdskills/bundled/skills/orchestration/issue-analyzer/orchestrator-prompt.md +155 -0
  115. package/src/gdskills/bundled/skills/orchestration/issue-analyzer/output-contract.schema.json +61 -0
  116. package/src/gdskills/bundled/skills/orchestration/job-documenter/SKILL.codex.md +365 -0
  117. package/src/gdskills/bundled/skills/orchestration/job-documenter/SKILL.cursor.md +365 -0
  118. package/src/gdskills/bundled/skills/orchestration/job-documenter/SKILL.md +373 -0
  119. package/src/gdskills/bundled/skills/orchestration/job-documenter/SKILL.opencode.md +365 -0
  120. package/src/gdskills/bundled/skills/orchestration/job-documenter/SKILL.zed.md +365 -0
  121. package/src/gdskills/bundled/skills/orchestration/job-documenter/input-contract.schema.json +55 -0
  122. package/src/gdskills/bundled/skills/orchestration/job-documenter/output-contract.schema.json +58 -0
  123. package/src/gdskills/bundled/skills/orchestration/job-orchestrator/SKILL.codex.md +1701 -0
  124. package/src/gdskills/bundled/skills/orchestration/job-orchestrator/SKILL.cursor.md +1701 -0
  125. package/src/gdskills/bundled/skills/orchestration/job-orchestrator/SKILL.md +1734 -0
  126. package/src/gdskills/bundled/skills/orchestration/job-orchestrator/SKILL.opencode.md +1701 -0
  127. package/src/gdskills/bundled/skills/orchestration/job-orchestrator/SKILL.zed.md +1701 -0
  128. package/src/gdskills/bundled/skills/orchestration/job-orchestrator/input-contract.schema.json +188 -0
  129. package/src/gdskills/bundled/skills/orchestration/job-orchestrator/orchestrator-prompt.md +179 -0
  130. package/src/gdskills/bundled/skills/orchestration/job-orchestrator/output-contract.schema.json +103 -0
  131. package/src/gdskills/bundled/skills/orchestration/job-orchestrator/state.schema.json +164 -0
  132. package/src/gdskills/bundled/skills/orchestration/task-implementer/SKILL.codex.md +395 -0
  133. package/src/gdskills/bundled/skills/orchestration/task-implementer/SKILL.cursor.md +395 -0
  134. package/src/gdskills/bundled/skills/orchestration/task-implementer/SKILL.md +556 -0
  135. package/src/gdskills/bundled/skills/orchestration/task-implementer/SKILL.opencode.md +395 -0
  136. package/src/gdskills/bundled/skills/orchestration/task-implementer/SKILL.zed.md +395 -0
  137. package/src/gdskills/bundled/skills/orchestration/task-implementer/input-contract.schema.json +204 -0
  138. package/src/gdskills/bundled/skills/orchestration/task-implementer/orchestrator-prompt.md +206 -0
  139. package/src/gdskills/bundled/skills/orchestration/task-implementer/output-contract.schema.json +51 -0
  140. package/src/gdskills/bundled/skills/orchestration/task-implementer/task-request.template.md +111 -0
  141. package/src/gdskills/bundled/skills/planning/autodoc-analyst/SKILL.md +163 -0
  142. package/src/gdskills/bundled/skills/planning/autodoc-architect/SKILL.md +161 -0
  143. package/src/gdskills/bundled/skills/planning/autodoc-assembler/SKILL.md +128 -0
  144. package/src/gdskills/bundled/skills/planning/autodoc-orchestrator/SKILL.md +321 -0
  145. package/src/gdskills/bundled/skills/planning/autodoc-scanner/SKILL.md +166 -0
  146. package/src/gdskills/bundled/skills/planning/autodoc-writer/SKILL.md +253 -0
  147. package/src/gdskills/bundled/skills/planning/brainstorm/SKILL.claude.md +46 -0
  148. package/src/gdskills/bundled/skills/planning/brainstorm/SKILL.codex.md +90 -0
  149. package/src/gdskills/bundled/skills/planning/brainstorm/SKILL.cursor.md +90 -0
  150. package/src/gdskills/bundled/skills/planning/brainstorm/SKILL.md +90 -0
  151. package/src/gdskills/bundled/skills/planning/consistency-checker/SKILL.codex.md +33 -0
  152. package/src/gdskills/bundled/skills/planning/consistency-checker/SKILL.cursor.md +33 -0
  153. package/src/gdskills/bundled/skills/planning/consistency-checker/SKILL.md +190 -0
  154. package/src/gdskills/bundled/skills/planning/docpack-orchestrator/SKILL.md +142 -0
  155. package/src/gdskills/bundled/skills/planning/docpack-orchestrator/input-contract.schema.json +31 -0
  156. package/src/gdskills/bundled/skills/planning/docpack-orchestrator/output-contract.schema.json +31 -0
  157. package/src/gdskills/bundled/skills/planning/docpack-review/SKILL.md +80 -0
  158. package/src/gdskills/bundled/skills/planning/docpack-review/input-contract.schema.json +20 -0
  159. package/src/gdskills/bundled/skills/planning/docpack-review/output-contract.schema.json +36 -0
  160. package/src/gdskills/bundled/skills/planning/interview/SKILL.codex.md +181 -0
  161. package/src/gdskills/bundled/skills/planning/interview/SKILL.cursor.md +181 -0
  162. package/src/gdskills/bundled/skills/planning/interview/SKILL.md +187 -0
  163. package/src/gdskills/bundled/skills/planning/interviewer/SKILL.claude.md +94 -0
  164. package/src/gdskills/bundled/skills/planning/interviewer/SKILL.codex.md +99 -0
  165. package/src/gdskills/bundled/skills/planning/interviewer/SKILL.cursor.md +99 -0
  166. package/src/gdskills/bundled/skills/planning/interviewer/SKILL.md +105 -0
  167. package/src/gdskills/bundled/skills/planning/patterns-researcher/SKILL.codex.md +33 -0
  168. package/src/gdskills/bundled/skills/planning/patterns-researcher/SKILL.cursor.md +33 -0
  169. package/src/gdskills/bundled/skills/planning/patterns-researcher/SKILL.md +237 -0
  170. package/src/gdskills/bundled/skills/planning/planner/SKILL.codex.md +33 -0
  171. package/src/gdskills/bundled/skills/planning/planner/SKILL.cursor.md +33 -0
  172. package/src/gdskills/bundled/skills/planning/planner/SKILL.md +190 -0
  173. package/src/gdskills/bundled/skills/planning/prd-creator/SKILL.codex.md +193 -0
  174. package/src/gdskills/bundled/skills/planning/prd-creator/SKILL.cursor.md +193 -0
  175. package/src/gdskills/bundled/skills/planning/prd-creator/SKILL.md +193 -0
  176. package/src/gdskills/bundled/skills/planning/prd-creator/SKILL.opencode.md +193 -0
  177. package/src/gdskills/bundled/skills/planning/prd-creator/SKILL.zed.md +193 -0
  178. package/src/gdskills/bundled/skills/planning/prd-creator/input-contract.schema.json +63 -0
  179. package/src/gdskills/bundled/skills/planning/prd-creator/output-contract.schema.json +175 -0
  180. package/src/gdskills/bundled/skills/planning/problem-definer/SKILL.codex.md +31 -0
  181. package/src/gdskills/bundled/skills/planning/problem-definer/SKILL.cursor.md +31 -0
  182. package/src/gdskills/bundled/skills/planning/problem-definer/SKILL.md +153 -0
  183. package/src/gdskills/bundled/skills/planning/project-discovery/SKILL.codex.md +32 -0
  184. package/src/gdskills/bundled/skills/planning/project-discovery/SKILL.cursor.md +32 -0
  185. package/src/gdskills/bundled/skills/planning/project-discovery/SKILL.md +166 -0
  186. package/src/gdskills/bundled/skills/planning/spec-writer/SKILL.codex.md +44 -0
  187. package/src/gdskills/bundled/skills/planning/spec-writer/SKILL.cursor.md +44 -0
  188. package/src/gdskills/bundled/skills/planning/spec-writer/SKILL.md +243 -0
  189. package/src/gdskills/bundled/skills/planning/stack-advisor/SKILL.codex.md +43 -0
  190. package/src/gdskills/bundled/skills/planning/stack-advisor/SKILL.cursor.md +43 -0
  191. package/src/gdskills/bundled/skills/planning/stack-advisor/SKILL.md +193 -0
  192. package/src/gdskills/bundled/skills/platform/agent-entrypoint-distiller/SKILL.md +47 -0
  193. package/src/gdskills/bundled/skills/platform/claude-md-management/SKILL.codex.md +87 -0
  194. package/src/gdskills/bundled/skills/platform/claude-md-management/SKILL.cursor.md +87 -0
  195. package/src/gdskills/bundled/skills/platform/claude-md-management/SKILL.md +87 -0
  196. package/src/gdskills/bundled/skills/platform/hookify/SKILL.codex.md +100 -0
  197. package/src/gdskills/bundled/skills/platform/hookify/SKILL.cursor.md +100 -0
  198. package/src/gdskills/bundled/skills/platform/hookify/SKILL.md +100 -0
  199. package/src/gdskills/bundled/skills/quality/changelog/SKILL.claude.md +45 -0
  200. package/src/gdskills/bundled/skills/quality/changelog/SKILL.codex.md +84 -0
  201. package/src/gdskills/bundled/skills/quality/changelog/SKILL.cursor.md +84 -0
  202. package/src/gdskills/bundled/skills/quality/changelog/SKILL.md +84 -0
  203. package/src/gdskills/bundled/skills/quality/commit/SKILL.codex.md +66 -0
  204. package/src/gdskills/bundled/skills/quality/commit/SKILL.cursor.md +66 -0
  205. package/src/gdskills/bundled/skills/quality/commit/SKILL.md +66 -0
  206. package/src/gdskills/bundled/skills/quality/db-migrate/SKILL.claude.md +40 -0
  207. package/src/gdskills/bundled/skills/quality/db-migrate/SKILL.codex.md +66 -0
  208. package/src/gdskills/bundled/skills/quality/db-migrate/SKILL.cursor.md +66 -0
  209. package/src/gdskills/bundled/skills/quality/db-migrate/SKILL.md +66 -0
  210. package/src/gdskills/bundled/skills/quality/dependency-update/SKILL.claude.md +45 -0
  211. package/src/gdskills/bundled/skills/quality/dependency-update/SKILL.codex.md +81 -0
  212. package/src/gdskills/bundled/skills/quality/dependency-update/SKILL.cursor.md +81 -0
  213. package/src/gdskills/bundled/skills/quality/dependency-update/SKILL.md +81 -0
  214. package/src/gdskills/bundled/skills/quality/deploy/SKILL.claude.md +42 -0
  215. package/src/gdskills/bundled/skills/quality/deploy/SKILL.codex.md +70 -0
  216. package/src/gdskills/bundled/skills/quality/deploy/SKILL.cursor.md +70 -0
  217. package/src/gdskills/bundled/skills/quality/deploy/SKILL.md +70 -0
  218. package/src/gdskills/bundled/skills/quality/metaproject-security/SKILL.md +103 -0
  219. package/src/gdskills/bundled/skills/quality/perf-check/SKILL.claude.md +48 -0
  220. package/src/gdskills/bundled/skills/quality/perf-check/SKILL.codex.md +83 -0
  221. package/src/gdskills/bundled/skills/quality/perf-check/SKILL.cursor.md +83 -0
  222. package/src/gdskills/bundled/skills/quality/perf-check/SKILL.md +83 -0
  223. package/src/gdskills/bundled/skills/quality/pr/SKILL.codex.md +75 -0
  224. package/src/gdskills/bundled/skills/quality/pr/SKILL.cursor.md +75 -0
  225. package/src/gdskills/bundled/skills/quality/pr/SKILL.md +75 -0
  226. package/src/gdskills/bundled/skills/quality/pr-issue-documenter/SKILL.codex.md +364 -0
  227. package/src/gdskills/bundled/skills/quality/pr-issue-documenter/SKILL.cursor.md +295 -0
  228. package/src/gdskills/bundled/skills/quality/pr-issue-documenter/SKILL.md +378 -0
  229. package/src/gdskills/bundled/skills/quality/pr-issue-documenter/SKILL.opencode.md +364 -0
  230. package/src/gdskills/bundled/skills/quality/pr-issue-documenter/SKILL.zed.md +38 -0
  231. package/src/gdskills/bundled/skills/quality/pr-issue-documenter/input-contract.schema.json +53 -0
  232. package/src/gdskills/bundled/skills/quality/pr-issue-documenter/output-contract.schema.json +46 -0
  233. package/src/gdskills/bundled/skills/quality/push/SKILL.codex.md +52 -0
  234. package/src/gdskills/bundled/skills/quality/push/SKILL.cursor.md +52 -0
  235. package/src/gdskills/bundled/skills/quality/push/SKILL.md +52 -0
  236. package/src/gdskills/bundled/skills/quality/security-audit/SKILL.claude.md +40 -0
  237. package/src/gdskills/bundled/skills/quality/security-audit/SKILL.codex.md +61 -0
  238. package/src/gdskills/bundled/skills/quality/security-audit/SKILL.cursor.md +61 -0
  239. package/src/gdskills/bundled/skills/quality/security-audit/SKILL.md +61 -0
  240. package/src/gdskills/bundled/skills/quality/test-gen/SKILL.claude.md +30 -0
  241. package/src/gdskills/bundled/skills/quality/test-gen/SKILL.codex.md +75 -0
  242. package/src/gdskills/bundled/skills/quality/test-gen/SKILL.cursor.md +75 -0
  243. package/src/gdskills/bundled/skills/quality/test-gen/SKILL.md +75 -0
  244. package/src/gdskills/bundled/skills/quality/tests-creator/SKILL.codex.md +64 -0
  245. package/src/gdskills/bundled/skills/quality/tests-creator/SKILL.cursor.md +74 -0
  246. package/src/gdskills/bundled/skills/quality/tests-creator/SKILL.md +339 -0
  247. package/src/gdskills/bundled/skills/quality/tests-creator/SKILL.opencode.md +48 -0
  248. package/src/gdskills/bundled/skills/quality/tests-creator/SKILL.zed.md +44 -0
  249. package/src/gdskills/bundled/skills/quality/tests-creator/input-contract.schema.json +121 -0
  250. package/src/gdskills/bundled/skills/quality/tests-creator/output-contract.schema.json +127 -0
  251. package/src/gdskills/bundled/skills/review/code-ai-review/SKILL.codex.md +204 -0
  252. package/src/gdskills/bundled/skills/review/code-ai-review/SKILL.cursor.md +204 -0
  253. package/src/gdskills/bundled/skills/review/code-ai-review/SKILL.md +203 -0
  254. package/src/gdskills/bundled/skills/review/code-ai-review/SKILL.opencode.md +204 -0
  255. package/src/gdskills/bundled/skills/review/code-ai-review/SKILL.zed.md +204 -0
  256. package/src/gdskills/bundled/skills/review/code-b091-review/SKILL.codex.md +209 -0
  257. package/src/gdskills/bundled/skills/review/code-b091-review/SKILL.cursor.md +209 -0
  258. package/src/gdskills/bundled/skills/review/code-b091-review/SKILL.md +208 -0
  259. package/src/gdskills/bundled/skills/review/code-b091-review/SKILL.opencode.md +209 -0
  260. package/src/gdskills/bundled/skills/review/code-b091-review/SKILL.zed.md +209 -0
  261. package/src/gdskills/bundled/skills/review/code-mobx-store-review/SKILL.codex.md +263 -0
  262. package/src/gdskills/bundled/skills/review/code-mobx-store-review/SKILL.cursor.md +263 -0
  263. package/src/gdskills/bundled/skills/review/code-mobx-store-review/SKILL.md +258 -0
  264. package/src/gdskills/bundled/skills/review/code-mobx-store-review/SKILL.opencode.md +263 -0
  265. package/src/gdskills/bundled/skills/review/code-mobx-store-review/SKILL.zed.md +263 -0
  266. package/src/gdskills/bundled/skills/review/code-style-review/SKILL.codex.md +175 -0
  267. package/src/gdskills/bundled/skills/review/code-style-review/SKILL.cursor.md +175 -0
  268. package/src/gdskills/bundled/skills/review/code-style-review/SKILL.md +168 -0
  269. package/src/gdskills/bundled/skills/review/code-style-review/SKILL.opencode.md +175 -0
  270. package/src/gdskills/bundled/skills/review/code-style-review/SKILL.zed.md +175 -0
  271. package/src/gdskills/bundled/skills/review/review-architecture/SKILL.md +360 -0
  272. package/src/gdskills/bundled/skills/review/review-backend/SKILL.md +337 -0
  273. package/src/gdskills/bundled/skills/review/review-clean-code/SKILL.md +477 -0
  274. package/src/gdskills/bundled/skills/review/review-core-boundaries/SKILL.md +93 -0
  275. package/src/gdskills/bundled/skills/review/review-flow-graph/SKILL.md +119 -0
  276. package/src/gdskills/bundled/skills/review/review-frontend/SKILL.md +595 -0
  277. package/src/gdskills/bundled/skills/review/review-frontend-conventions/SKILL.md +144 -0
  278. package/src/gdskills/bundled/skills/review/review-highload/SKILL.md +519 -0
  279. package/src/gdskills/bundled/skills/review/review-logic/SKILL.md +323 -0
  280. package/src/gdskills/bundled/skills/review/review-orchestrator/SKILL.md +927 -0
  281. package/src/gdskills/bundled/skills/review/review-orchestrator/input-contract.schema.json +153 -0
  282. package/src/gdskills/bundled/skills/review/review-orchestrator/output-contract.schema.json +77 -0
  283. package/src/gdskills/bundled/skills/review/review-orchestrator/review-context.schema.json +389 -0
  284. package/src/gdskills/bundled/skills/review/review-orchestrator/reviewer-finding.schema.json +189 -0
  285. package/src/gdskills/bundled/skills/review/review-orchestrator/reviewer-input.schema.json +241 -0
  286. package/src/gdskills/bundled/skills/review/review-performance/SKILL.md +344 -0
  287. package/src/gdskills/bundled/skills/review/review-pr-feedback/SKILL.md +327 -0
  288. package/src/gdskills/bundled/skills/review/review-security-code/SKILL.md +348 -0
  289. package/src/gdskills/bundled/skills/review/review-strict/SKILL.md +328 -0
  290. package/src/gdskills/bundled/skills/review/review-style/SKILL.md +343 -0
  291. package/src/gdskills/bundled/skills/review/review-testing-practices/SKILL.md +134 -0
  292. package/src/gdskills/bundled/skills/shared/git-merge-base.md +33 -0
  293. package/src/gdskills/contracts/agent-event.schema.json +32 -0
  294. package/src/gdskills/contracts/orchestrator-state.schema.json +58 -0
  295. package/src/gdskills/contracts/review-finding.schema.json +59 -0
  296. package/src/gdskills/contracts/subagent-dispatch.schema.json +123 -0
  297. package/src/gdskills/contracts/subagent-result.schema.json +136 -0
@@ -0,0 +1,468 @@
1
+ ---
2
+ name: feature-analyzer
3
+ description: "Use when analyzing feature branch changes across repos, planning implementation, or understanding backend→frontend contracts. NEVER start without explicit user confirmation of source, target, and branch."
4
+ triggers:
5
+ - "Analyze branch"
6
+ - "Analyze changes"
7
+ - "Analyze commit"
8
+ - "Study changes"
9
+ - "Cross-repo analysis"
10
+ - "Backend to frontend analysis"
11
+ - "Feature analyzer"
12
+ metadata:
13
+ author: "MrCipherSmith"
14
+ version: "2.4.0"
15
+ category: "analysis"
16
+ license: "MIT"
17
+ compatibility: "cursor,codex,zed,opencode"
18
+ ---
19
+
20
+ <SUBAGENT-STOP>
21
+ If you were dispatched as a subagent to execute a specific task, skip this skill entirely.
22
+ This skill is for orchestrators and interactive session-level routing only.
23
+ Proceed directly with your assigned task.
24
+ </SUBAGENT-STOP>
25
+
26
+ # Feature Analyzer
27
+
28
+ ## ⚠️ MANDATORY: DO NOT PROCEED WITHOUT CONTEXT
29
+
30
+ **CRITICAL RULE: You CANNOT start analysis until user explicitly provides:**
31
+ 1. ✅ Source repository (local path)
32
+ 2. ✅ Target repository (local path)
33
+ 3. ✅ Branch to analyze
34
+ 4. ✅ Confirmation of analysis scope
35
+
36
+ **DO NOT assume defaults. DO NOT use current directory. DO NOT proceed without asking.**
37
+
38
+ **If user says:** "Analyze everything related to variables in pipelines"
39
+
40
+ **You MUST respond:**
41
+ ```
42
+ I'll help you analyze variables in pipelines. First, I need to clarify the context:
43
+
44
+ **SOURCE Repository** (where the changes exist):
45
+ - Local path: [user must provide, e.g., /Users/.../<PROJECT>]
46
+ - GitHub repo: [owner/repo]
47
+ - Branch to analyze: [branch-name]
48
+
49
+ **TARGET Repository** (where implementation will happen):
50
+ - Local path: [user must provide, e.g., /Users/.../<PROJECT>]
51
+ - GitHub repo: [owner/repo]
52
+ - Current branch: [branch-name]
53
+
54
+ **FOCUS** (from your request): "variables in pipelines"
55
+ - Keywords: variable, pipeline, param
56
+
57
+ Once you provide these details, I'll begin the focused analysis.
58
+ ```
59
+
60
+ **If user doesn't provide all required info → STOP and ask again.**
61
+
62
+ ---
63
+
64
+ ## Purpose
65
+
66
+ Performs deep cross-repository analysis to understand business logic, architecture, API contracts, and implementation requirements. Generates structured documentation for both human developers and AI agents.
67
+
68
+ **Two Analysis Modes:**
69
+
70
+ **Mode A — Changes Analysis** (when base-branch provided):
71
+ - Analyze what changed FROM base-branch TO current branch
72
+ - Shows: additions, modifications, deletions
73
+ - Use for: reviewing PRs, understanding feature implementation
74
+
75
+ **Mode B — Current State Analysis** (when NO base-branch provided):
76
+ - Analyze ENTIRE codebase as it exists NOW
77
+ - Shows: existing functionality, architecture, patterns
78
+ - Use for: understanding system, formalizing features, exploring codebase
79
+
80
+ ## Input
81
+
82
+ **Required context (ask before starting):**
83
+ - Source repository path + GitHub repo + branch to analyze
84
+ - Target repository path + current branch
85
+ - Analysis mode (A: changes from base-branch, or B: current state)
86
+ - Optional: GitHub Issue/PR URL, analysis focus keyword
87
+
88
+ **Prepared input:** Use `.metaproject/skills/gdskills/orchestration/feature-analyzer/analysis-request.template.md` to prepare structured input.
89
+ **Example:** See `.metaproject/skills/gdskills/orchestration/feature-analyzer/analysis-request.md` for a filled example.
90
+
91
+ ---
92
+
93
+ ## When to Use
94
+
95
+ **Mode A — Changes Analysis:**
96
+ - "Analyze feature branch changes from main"
97
+ - "Review what changed in this PR"
98
+ - "Compare feature-x with develop branch"
99
+
100
+ **Mode B — Current State Analysis:**
101
+ - "Analyze everything related to variables in pipelines"
102
+ - "How does authentication work in this codebase?"
103
+ - "Document the pipeline execution flow"
104
+ - "Formalize the user management feature"
105
+
106
+ ---
107
+
108
+ ## User-Specified Analysis Focus
109
+
110
+ When user specifies a focus area (e.g., "variables in pipelines"):
111
+
112
+ **Priority Boost Rules:**
113
+ - Files matching focus keywords → **Boost to P0** (even if normally P1/P2)
114
+ - Files referencing focus entities → **+1 priority level**
115
+ - Files in relevant directories → **+1 priority level**
116
+
117
+ **Keyword extraction:** parse main concept ("variables") + context ("pipelines") from user request.
118
+
119
+ > For detailed focus algorithm, bash search commands, and relationship mapping examples, see `SKILL.detail.md`.
120
+
121
+ ---
122
+
123
+ ## Workflow
124
+
125
+ Copy this checklist and track progress based on your Analysis Mode:
126
+
127
+ ### Mode A: Changes Analysis (with base-branch)
128
+
129
+ ```
130
+ Analysis Progress - Mode A (Changes):
131
+ 🚫 PRE-STEP: VALIDATE CONTEXT
132
+ □ Source repository path: _____________
133
+ □ Target repository path: _____________
134
+ □ Branch to analyze: _____________
135
+ □ Base branch provided: _____________ (e.g., "main")
136
+ □ Analysis Mode: A (Changes)
137
+ □ User explicitly confirmed: _____________
138
+ □ Step 0.1: Check for existing analysis (cache lookup)
139
+ □ Step 0: Gather context (source, target, branch, base-branch, focus)
140
+ □ Step 1: GitHub MCP availability check
141
+ □ Step 2: Analyze GitHub issue/PR (if provided)
142
+ □ Step 3: Calculate BASE_SHA from merge-base (last branching point)
143
+ □ Step 4: Collect git changes (git diff BASE_SHA..HEAD)
144
+ □ Step 5: Categorize changed files: P0/P1/P2; apply focus boost
145
+ □ Step 6: Select 3-7 key files; Deep Dive — read selected files
146
+ □ Step 7: Analyze related tests
147
+ □ Step 8: Cross-repo dependency analysis
148
+ □ Step 9: Intermediate review (show user, wait for confirmation)
149
+ □ Step 10: Generate documentation
150
+ □ Step 11: Final validation and delivery
151
+ □ Step 12: Post-analysis (update doc registry)
152
+ ```
153
+
154
+ ### Mode B: Current State Analysis (without base-branch)
155
+
156
+ ```
157
+ Analysis Progress - Mode B (Current State):
158
+ 🚫 PRE-STEP: VALIDATE CONTEXT
159
+ □ Source repository path: _____________
160
+ □ Target repository path: _____________
161
+ □ Branch to analyze: _____________
162
+ □ Base branch: NOT PROVIDED (Mode B)
163
+ □ Analysis Mode: B (Current State)
164
+ □ User explicitly confirmed: _____________
165
+ □ Step 0.1: Check for existing analysis (cache lookup)
166
+ □ Step 0: Gather context (source, target, branch, focus)
167
+ □ Step 1: GitHub MCP availability check
168
+ □ Step 2: Analyze GitHub issue/PR (if provided)
169
+ □ Step 3: SKIP (no base-branch comparison)
170
+ □ Step 4: Search ENTIRE codebase for focus-related files
171
+ □ Step 5: Discover and categorize ALL relevant files: P0/P1/P2; apply focus boost
172
+ □ Step 6: Select 3-10 key files; Deep Dive — read to understand functionality
173
+ □ Step 6.5: FORMALIZE functionality (business logic, API contracts, state, data flow)
174
+ □ Step 7: Analyze tests (understand coverage)
175
+ □ Step 8: Cross-repo dependency analysis (find usages)
176
+ □ Step 9: Intermediate review with formalization
177
+ □ Step 10: Generate documentation (Feature Specification)
178
+ □ Step 11: Final validation and delivery
179
+ □ Step 12: Post-analysis
180
+ ```
181
+
182
+ ---
183
+
184
+ ## Step 0: Context Gathering (MANDATORY)
185
+
186
+ **CRITICAL**: User MUST specify both Source and Target repositories.
187
+
188
+ **Ask all questions in one message:**
189
+
190
+ ```
191
+ For cross-repository analysis, I need:
192
+
193
+ 1. **SOURCE Repository** (where to analyze):
194
+ - Local path: ?
195
+ - GitHub repo (owner/repo): ?
196
+ - Branch to analyze: ?
197
+
198
+ 2. **TARGET Repository** (where implementation will happen, if applicable):
199
+ - Local path: ?
200
+ - GitHub repo (owner/repo): ?
201
+ - Current branch: ?
202
+ - (Can be same as source for single-repo analysis)
203
+
204
+ 3. **Analysis Mode**:
205
+ A. Changes Analysis — compare against base-branch (what changed)
206
+ - Base branch: ? (e.g., "main", "develop")
207
+ B. Current State Analysis — analyze codebase as-is (no base branch needed)
208
+
209
+ 4. **Ticket/Reference** (GitHub Issue/PR URL, optional): ?
210
+
211
+ 5. **Analysis Focus** (optional): specific area, e.g., "variables in pipelines", "auth changes"
212
+ ```
213
+
214
+ **No default paths** — user must provide all locations explicitly.
215
+
216
+ **Before Step 1, verify context is complete:**
217
+
218
+ ```
219
+ CONTEXT VALIDATION:
220
+ IF Source, Target, or Branch is missing → STOP, ask for missing info
221
+ IF Analysis mode not specified → ASK: Mode A (changes from base) or Mode B (current state)?
222
+ IF Mode A and no base branch → ASK: "What is the base branch?"
223
+ IF user says "just use current directory" → EXPLICITLY CONFIRM the path before proceeding
224
+ ```
225
+
226
+ > For detailed decision tree and conversation example, see `SKILL.detail.md`.
227
+
228
+ ---
229
+
230
+ ## Step 1: GitHub MCP Availability Check
231
+
232
+ Before starting analysis:
233
+ - Try to fetch simple repo info via GitHub MCP
234
+ - If unavailable: notify user, offer Option A (restart MCP) or Option B (git-only, limited context)
235
+
236
+ ---
237
+
238
+ ## Step 2: GitHub Issue/PR Analysis (if provided)
239
+
240
+ - Fetch Issue/PR and all comments via GitHub MCP
241
+ - Understand business goal — what problem does the feature solve?
242
+ - Extract acceptance criteria and requirements
243
+
244
+ ---
245
+
246
+ ## Step 3: Git Changes Collection
247
+
248
+ **CRITICAL**: Find the last branching point (merge-base), NOT the current HEAD of the parent branch.
249
+ This ensures you analyze only feature branch changes, not unrelated changes from other merged PRs.
250
+
251
+ ```bash
252
+ # Find branching point
253
+ BASE_SHA="$(git merge-base HEAD <parent_branch>)"
254
+
255
+ # Collect changes
256
+ git log --oneline "${BASE_SHA}..HEAD"
257
+ git diff --stat "${BASE_SHA}..HEAD"
258
+ git diff --name-status "${BASE_SHA}..HEAD"
259
+ git diff "${BASE_SHA}..HEAD"
260
+ ```
261
+
262
+ > For the full BASE_SHA detection algorithm (with fallback logic for main/master/upstream), see `SKILL.detail.md`.
263
+
264
+ ---
265
+
266
+ ## Step 4: File Categorization and Prioritization
267
+
268
+ ### Priority Levels
269
+
270
+ **P0 — MUST ANALYZE (Critical)**:
271
+ - API contracts: DTOs, interfaces, type definitions
272
+ - Public API endpoints (controllers, routes)
273
+ - Database schema changes, auth changes, config changes
274
+
275
+ **P1 — SHOULD ANALYZE (Important)**:
276
+ - Business logic (services, use cases)
277
+ - State management (stores, contexts)
278
+ - Error handling, validation logic
279
+
280
+ **P2 — NICE TO HAVE (Optional)**:
281
+ - Pure UI components, refactoring, tests, docs, package updates
282
+
283
+ ### Standard File Selection
284
+
285
+ From P0: select up to 5 most important (sort by API contracts → business logic → infrastructure).
286
+ From P1: select up to 3 if P0 < 3. Skip P2 unless P0+P1 < 3.
287
+
288
+ When focus specified: boost files matching focus keywords to P0; select ALL focus-matching P0 files.
289
+
290
+ > For the full focus-based selection algorithm with examples, see `SKILL.detail.md`.
291
+
292
+ ---
293
+
294
+ ## Step 5: Deep Dive Protocol
295
+
296
+ **You CANNOT make conclusions from git diff alone. You MUST:**
297
+
298
+ 1. **Read selected files**:
299
+ - Small/medium files: read completely
300
+ - Large files (> 500 lines): use outline/grep to locate relevant sections, then read only those ranges
301
+ 2. **Understand context**: architecture role, dependencies, what depends on it
302
+ 3. **Find and analyze tests**: look for matching test files, understand coverage
303
+ 4. **Check rules compliance**: verify against `code-style-patterns.mdc`
304
+
305
+ ---
306
+
307
+ ## Step 6: Cross-Repository Analysis (Source → Target)
308
+
309
+ 1. **Dependency search**: find all target files importing changed DTOs/APIs from source
310
+ 2. **Contract divergence**: compare new source contracts with current target implementation
311
+ 3. **Target deep dive**: read 2-3 key components that will need changes
312
+ 4. **Target rules compliance**: check `.cursor/rules/core/*.mdc` in target repo
313
+
314
+ ---
315
+
316
+ ## Step 7: UI Analysis (if applicable)
317
+
318
+ Check `AGENTS.md` for available tools (`playwright-testing.mdc`, `storybook-guidelines.mdc`). Analyze visual regression requirements, component behavior changes, accessibility impact.
319
+
320
+ ---
321
+
322
+ ## Step 8: Integration with Other Skills
323
+
324
+ Before finalizing, consider running:
325
+ - `skills/code-style-review` — if architecture changes detected
326
+ - `skills/code-ai-review` — for self-validation of findings
327
+ - `skills/code-mobx-store-review` — if store changes found
328
+
329
+ ---
330
+
331
+ ## Step 9: Intermediate Review (CRITICAL)
332
+
333
+ After completing analysis, **show user** before generating full report:
334
+
335
+ ```
336
+ ═══════════════════════════════════════════════
337
+ INTERMEDIATE ANALYSIS SUMMARY
338
+ ═══════════════════════════════════════════════
339
+
340
+ Scope:
341
+ - Source: [repo] @ [branch]
342
+ - Target: [repo] @ [branch]
343
+ - Files analyzed: [N] (P0: [N], P1: [N])
344
+ - BASE_SHA: [sha]
345
+
346
+ Key Findings:
347
+ 1. [Brief finding 1]
348
+ 2. [Brief finding 2]
349
+
350
+ Cross-Repo Impact:
351
+ - [ ] Breaking API changes detected
352
+ - [ ] New endpoints to implement
353
+ - [ ] DTO changes affecting frontend
354
+
355
+ Estimated Complexity: [Low/Medium/High]
356
+
357
+ Continue to full documentation? [Y/n]
358
+ ═══════════════════════════════════════════════
359
+ ```
360
+
361
+ Wait for user confirmation before generating full report.
362
+
363
+ ---
364
+
365
+ ## Step 10: Documentation Generation
366
+
367
+ ### Output Structure
368
+
369
+ ```
370
+ <DOCS_ROOT>/analysis/<feature-name>-<YYYY-MM-DD>/
371
+ ├── README.md # Index and navigation
372
+ ├── report/
373
+ │ ├── en/report.md # English for humans
374
+ │ ├── ru/report.md # Russian for humans
375
+ │ └── ai/report.md # Structured for AI agents (EN)
376
+ ├── plans/
377
+ │ ├── en/implementation-plan.md
378
+ │ ├── ru/implementation-plan.md
379
+ │ └── ai/implementation-plan.md
380
+ ├── contracts/
381
+ │ ├── api-changes.md # API contract diff
382
+ │ └── dto-comparison.md # Before/after DTOs
383
+ └── metrics/
384
+ └── analysis-metrics.md # Analysis metadata
385
+ ```
386
+
387
+ The AI-readable format (`report/ai/`, `plans/ai/`) uses Gherkin-style scenarios.
388
+ > For full Gherkin output format and syntax rules, see `SKILL.detail.md`.
389
+
390
+ ---
391
+
392
+ ## Step 11: Content Requirements
393
+
394
+ - Every claim MUST reference specific code: `[filename.ts:L123](file:///absolute/path#L123)`
395
+ - Minimum 3 code examples per report
396
+ - Mermaid diagrams for architecture, tables for DTO changes, flowcharts for data flow
397
+ - Multi-language: `en/` for humans, `ru/` for humans, `ai/` for AI agents
398
+
399
+ ---
400
+
401
+ ## Step 12: Error Handling
402
+
403
+ | Situation | Fallback |
404
+ |-----------|----------|
405
+ | GitHub MCP unavailable | Use git history only; notify user |
406
+ | No tests found | Note risk, recommend coverage |
407
+ | Cannot determine BASE_SHA | Ask user for parent branch, or use `--first-parent` estimate |
408
+ | Empty diff | Check staged (`--cached`), untracked (`git status`), wrong branch |
409
+ | Cross-repo access denied | Ask for manual path, or do source-only analysis |
410
+
411
+ ---
412
+
413
+ ## Step 13: Analysis Metrics
414
+
415
+ Track and include in `metrics/analysis-metrics.md`:
416
+ - Duration, files analyzed (P0/P1/P2), lines changed
417
+ - Cross-repo dependencies, API endpoints changed, DTOs modified
418
+ - Breaking changes count, test coverage %, risk level
419
+ - Complexity score: `(P0×3) + (P1×2) + (P2×1) + (breaking_changes×5)` — 0-10 low, 11-25 medium, 26+ high
420
+
421
+ ---
422
+
423
+ ## Step 14: Validation Checklist
424
+
425
+ Before finalizing:
426
+ - [ ] All P0 files analyzed completely
427
+ - [ ] Target repository analyzed (if cross-repo)
428
+ - [ ] Minimum 3 code examples included
429
+ - [ ] All file references include line numbers
430
+ - [ ] API contracts documented
431
+ - [ ] Breaking changes clearly identified
432
+ - [ ] Implementation plan provided
433
+ - [ ] Metrics calculated
434
+ - [ ] User approved intermediate review
435
+
436
+ ---
437
+
438
+ ## Step 15: Post-Analysis
439
+
440
+ Follow `documentation-management.mdc`: update `<DOCS_ROOT>/readme.md`, add entry to analysis index, tag with keywords.
441
+
442
+ ---
443
+
444
+ ## Rules and Guidelines
445
+
446
+ 1. **Always follow** `documentation-management.mdc` for doc structure
447
+ 2. **Always check** `code-style-patterns.mdc` for compliance
448
+ 3. **Always use** AGENTS.md to discover available skills and tools
449
+ 4. **Never assume** — ask user when unclear
450
+ 5. **Never skip** intermediate review for complex analyses (P0 files > 3)
451
+ 6. **Always provide** concrete, actionable recommendations
452
+ 7. **Always include** both human-readable and AI-readable formats
453
+
454
+ ---
455
+
456
+ ## Success Criteria
457
+
458
+ Analysis is successful when:
459
+ - Business logic is fully understood and documented
460
+ - API contracts are clearly specified
461
+ - Breaking changes are identified
462
+ - Implementation plan is actionable
463
+ - User confirms understanding via intermediate review
464
+ - All P0 files analyzed completely
465
+
466
+ ---
467
+
468
+ > **Extended documentation**: detailed analysis mode descriptions, file selection algorithms, Gherkin output format, cache/existing-report handling, and full examples are in `SKILL.detail.md`.