@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,364 @@
1
+ ---
2
+ name: pr-issue-documenter
3
+ description: "Analyzes PR commits/diff and generates structured descriptions for PRs and linked GitHub issues. Creates sub-issues, checks for contradictions with existing descriptions, updates parent issues. Use when: documenting PR changes, adding PR description, creating issue for PR, updating issue body."
4
+ triggers:
5
+ - "Add PR description"
6
+ - "Document PR changes"
7
+ - "Describe what was done in PR"
8
+ - "Create issue for PR"
9
+ - "Update PR and issue"
10
+ - "Add description to PR"
11
+ - "Write PR summary"
12
+ metadata:
13
+ author: "MrCipherSmith"
14
+ version: "1.0.0"
15
+ category: "documentation"
16
+ license: "MIT"
17
+ compatibility: "cursor,codex,zed,opencode"
18
+ ---
19
+
20
+ # PR & Issue Documenter
21
+
22
+ ## Purpose
23
+
24
+ Analyzes PR commits and diffs to generate structured, accurate descriptions for GitHub PRs and linked issues. Handles the full lifecycle: PR description, sub-issue creation, parent issue updates, and contradiction detection with existing descriptions.
25
+
26
+ **Input**: PR URL, issue URL, and/or commit SHAs
27
+ **Output**: Updated PR body, created/updated issue body, parent issue link
28
+
29
+ ## When to Use
30
+
31
+ - User provides PR link and asks for a description
32
+ - User asks to document changes in a PR
33
+ - User wants to create an issue for a PR
34
+ - User wants to update an existing issue with PR changes
35
+ - User provides commit SHAs and wants documentation
36
+
37
+ ## Architecture
38
+
39
+ ```
40
+ Step 1: Parse Input
41
+ |
42
+ Step 2: Collect Context (commits, diff, existing descriptions)
43
+ |
44
+ Step 3: Analyze Changes (categorize, group, identify patterns)
45
+ |
46
+ Step 4: Generate PR Description
47
+ |
48
+ Step 5: Handle Issue (create / update / skip)
49
+ |
50
+ Step 6: Apply Changes (gh pr edit, gh issue edit/create)
51
+ |
52
+ Step 7: Verify & Report
53
+ ```
54
+
55
+ ## Workflow
56
+
57
+ Copy this checklist and track progress:
58
+
59
+ ```
60
+ Task Progress:
61
+ - [ ] Step 1: Parse input — extract PR URL, issue URL, commit SHAs
62
+ - [ ] Step 2: Collect context — fetch commits, diff, existing descriptions
63
+ - [ ] Step 3: Analyze changes — categorize, group, build key files table
64
+ - [ ] Step 4: Generate PR description
65
+ - [ ] Step 5: Handle issue — create, update, or skip
66
+ - [ ] Step 6: Apply changes via gh CLI
67
+ - [ ] Step 7: Verify and report results to user
68
+ ```
69
+
70
+ ### Step 1: Parse Input
71
+
72
+ Extract from user message:
73
+ - **PR URL**: `https://github.com/owner/repo/pull/123` or `#123`
74
+ - **Issue URL**: `https://github.com/owner/repo/issues/456` or `#456`
75
+ - **Commit SHAs**: full or short SHA hashes
76
+
77
+ **Decision tree:**
78
+
79
+ ```
80
+ IF PR URL provided:
81
+ → Continue to Step 2
82
+
83
+ IF only commit SHAs provided (no PR):
84
+ → ASK user: "Should I also create/update an issue, or just analyze the commits?"
85
+ → If user provides issue link → continue with both
86
+ → If user says skip → analyze commits only and present summary
87
+
88
+ IF only issue URL provided (no PR):
89
+ → ASK user: "Please provide a PR URL or commit SHAs to analyze changes"
90
+
91
+ IF nothing provided:
92
+ → ASK user: "Please provide a PR URL, issue URL, or commit SHAs"
93
+ ```
94
+
95
+ ### Step 2: Collect Context
96
+
97
+ Gather all necessary data:
98
+
99
+ **For PR:**
100
+ ```bash
101
+ gh pr view {number} --json title,body,state,baseRefName,headRefName,commits
102
+ gh pr diff {number}
103
+ ```
104
+
105
+ **For specific commits:**
106
+ ```bash
107
+ git show {sha} --stat # files changed
108
+ git show {sha} --format="" # full diff
109
+ git log {sha} -1 --format="%H %s%n%b" # commit message
110
+ ```
111
+
112
+ **For existing issue (if provided):**
113
+ ```bash
114
+ gh issue view {number} --json title,body,state
115
+ ```
116
+
117
+ **For parent issue detection:**
118
+ - Check PR body for `Closes #N`, `Fixes #N`, `Parent issue: #N`
119
+ - Check issue body for `Parent issue: #N`
120
+ - If parent issue found, fetch its body too:
121
+ ```bash
122
+ gh issue view {parent_number} --json title,body
123
+ ```
124
+
125
+ ### Step 3: Analyze Changes
126
+
127
+ Systematically analyze the collected diffs:
128
+
129
+ **3.1. Categorize each change:**
130
+ - `refactor` — restructuring without behavior change
131
+ - `feature` — new functionality
132
+ - `bugfix` — fixing broken behavior
133
+ - `cleanup` — removing dead code, unused imports
134
+ - `i18n` — translations, localization
135
+ - `test` — test additions/modifications
136
+ - `docs` — documentation changes
137
+ - `style` — formatting, naming, import ordering
138
+
139
+ **3.2. Group by logical area:**
140
+ - Identify related changes across files
141
+ - Group into named sections (e.g., "StepStore — Input/Output Consolidation")
142
+ - Each section should have a clear purpose statement
143
+
144
+ **3.3. Identify key patterns:**
145
+ - Deleted files (important to highlight)
146
+ - Renamed fields/methods (before → after)
147
+ - New APIs/interfaces
148
+ - Breaking changes
149
+ - Temporary/hardcoded values (mark for follow-up)
150
+
151
+ **3.4. Build Key Files table:**
152
+
153
+ | File | Change |
154
+ |------|--------|
155
+ | `path/to/file.ts` | Brief description |
156
+ | `path/to/deleted.ts` | **Deleted** |
157
+
158
+ ### Step 4: Generate PR Description
159
+
160
+ Use this structure:
161
+
162
+ ```markdown
163
+ ## Summary
164
+
165
+ [2-3 sentences: WHAT was done, WHY it was done. Focus on the purpose, not individual changes.]
166
+
167
+ Closes #N
168
+
169
+ ## Changes
170
+
171
+ ### [Section Name 1]
172
+ - Bullet point describing specific change
173
+ - Another bullet point
174
+ - Use `code formatting` for identifiers
175
+
176
+ ### [Section Name 2]
177
+ ...
178
+
179
+ ### Other
180
+ - Minor changes that don't warrant their own section
181
+
182
+ ## Key Files
183
+
184
+ | File | Change |
185
+ |------|--------|
186
+ | `path/file.ts` | Brief description |
187
+ ```
188
+
189
+ **PR description rules:**
190
+ - Summary: concise, 2-3 sentences max
191
+ - Changes: grouped by logical area, not by file
192
+ - Use backticks for code identifiers (`ClassName`, `methodName`, `fileName.ts`)
193
+ - Highlight deleted files with **Deleted** in bold
194
+ - Include `Closes #N` if issue is linked
195
+ - Key Files table: sorted by importance, not alphabetically
196
+
197
+ ### Step 5: Handle Issue
198
+
199
+ **5.1. If issue URL was provided by user:**
200
+
201
+ Fetch existing issue body and compare with PR changes:
202
+
203
+ ```
204
+ IF existing body is empty:
205
+ → Generate full issue body and apply
206
+
207
+ IF existing body has content:
208
+ → Check for contradictions:
209
+ - Does the existing description claim something different from what the diff shows?
210
+ - Are there sections that describe changes not present in the diff?
211
+ - Are there changes in the diff not covered by existing sections?
212
+
213
+ IF contradictions found:
214
+ → Present contradictions to user
215
+ → ASK: "I found contradictions in the existing issue description. Should I:
216
+ 1. Update the contradicting sections and add missing ones
217
+ 2. Replace the entire description
218
+ 3. Only append new sections"
219
+ → Apply user's choice
220
+
221
+ IF no contradictions (only missing sections):
222
+ → Add new sections to existing body
223
+ → Inform user what was added
224
+ ```
225
+
226
+ **5.2. If no issue URL provided but PR is linked to a parent issue:**
227
+
228
+ ```
229
+ ASK user: "PR is linked to parent issue #N. Should I:
230
+ 1. Create a sub-issue under #N with detailed description
231
+ 2. Link to an existing issue (provide number)
232
+ 3. Skip issue documentation"
233
+
234
+ IF user chooses to create sub-issue:
235
+ → Generate issue title from changes
236
+ → Generate detailed issue body (numbered sections, more detail than PR)
237
+ → gh issue create
238
+ → Update parent issue body with new sub-issue link
239
+ → Update PR body with "Closes #NEW_ISSUE"
240
+ ```
241
+
242
+ **5.3. If no issue URL and no parent issue detected:**
243
+
244
+ ```
245
+ ASK user: "No linked issue found. Should I:
246
+ 1. Create a new issue for this PR
247
+ 2. Create a sub-issue under an existing parent (provide parent issue number)
248
+ 3. Skip issue documentation"
249
+ ```
250
+
251
+ **Issue body format** (more detailed than PR):
252
+
253
+ ```markdown
254
+ ## Summary
255
+
256
+ [Same as PR summary but expanded with more context]
257
+
258
+ **PR**: #N
259
+ Parent issue: #M (if applicable)
260
+
261
+ ---
262
+
263
+ ## Changes
264
+
265
+ ### 1. [Section Name]
266
+
267
+ [Detailed paragraph explaining what was changed and why]
268
+
269
+ - Specific bullet points with technical details
270
+ - Before → after descriptions for renames/refactors
271
+ - Code examples if helpful
272
+
273
+ ### 2. [Section Name]
274
+ ...
275
+
276
+ ---
277
+
278
+ ## Key Files
279
+
280
+ | File | Change |
281
+ |------|--------|
282
+ | `path/file.ts` | Description |
283
+ ```
284
+
285
+ ### Step 6: Apply Changes
286
+
287
+ Execute the changes via gh CLI:
288
+
289
+ ```bash
290
+ # Update PR description
291
+ gh pr edit {number} --body "..."
292
+
293
+ # Update existing issue
294
+ gh issue edit {number} --body "..."
295
+
296
+ # Create new issue
297
+ gh issue create --title "..." --body "..."
298
+
299
+ # Update parent issue (append sub-issue link)
300
+ gh issue edit {parent_number} --body "..."
301
+ ```
302
+
303
+ **Important:**
304
+ - Use heredoc (`cat <<'EOF'`) for body content to preserve formatting
305
+ - Always verify the result after each operation
306
+
307
+ ### Step 7: Verify & Report
308
+
309
+ After all operations, report to the user:
310
+
311
+ ```
312
+ Done. Here's what was created/updated:
313
+
314
+ - PR #N description updated: {url}
315
+ - Issue #M created/updated: {url}
316
+ - Parent issue #P updated with sub-issue link: {url}
317
+ ```
318
+
319
+ ## Contradiction Detection Rules
320
+
321
+ When comparing existing issue description with PR diff:
322
+
323
+ 1. **Scope contradiction**: Description says change affects only X types, but diff shows it affects all types
324
+ 2. **Field name contradiction**: Description uses old field name, diff shows it was renamed
325
+ 3. **Missing sections**: Diff contains changes not described in any section
326
+ 4. **Stale sections**: Description contains sections about changes not in the diff
327
+ 5. **Required/optional contradiction**: Description says field is optional, diff shows it's required
328
+
329
+ Always present contradictions to user before making changes.
330
+
331
+ ## Quality Standards
332
+
333
+ - PR description: concise, scannable, well-structured
334
+ - Issue description: detailed, comprehensive, with numbered sections
335
+ - Always use English for code documentation
336
+ - Never invent changes not present in the diff
337
+ - Always verify diff content before writing descriptions
338
+ - Group related changes logically, not by file
339
+ - Highlight breaking changes and deleted files prominently
340
+ - Mark temporary/hardcoded values for follow-up
341
+
342
+ ## Error Handling
343
+
344
+ | Error | Action |
345
+ |-------|--------|
346
+ | PR not found | Ask user to verify PR number/URL |
347
+ | Issue not found | Ask user to verify issue number/URL |
348
+ | Commit SHA not found | Ask user to verify SHA |
349
+ | `gh` CLI not authenticated | Instruct user to run `gh auth login` |
350
+ | Empty diff | Inform user that PR has no file changes |
351
+ | Permission denied | Inform user they may not have write access |
352
+
353
+ ## Rules of Engagement
354
+
355
+ 1. **DO** analyze ALL commits in the PR, not just the latest one
356
+ 2. **DO** check for contradictions before updating existing descriptions
357
+ 3. **DO** ask user before overwriting existing issue content
358
+ 4. **DO** update parent issue when creating sub-issues
359
+ 5. **DO** include `Closes #N` in PR body when issue is linked
360
+ 6. **DO NOT** invent or assume changes not visible in the diff
361
+ 7. **DO NOT** silently overwrite existing issue descriptions
362
+ 8. **DO NOT** create issues without user confirmation
363
+ 9. **DO NOT** modify PR title unless explicitly asked
364
+ 10. **DO NOT** write comments on GitHub PRs/issues (only edit body)
@@ -0,0 +1,38 @@
1
+ ---
2
+ name: pr-issue-documenter
3
+ description: "Analyzes PR commits/diff and generates structured descriptions for PRs and linked GitHub issues. Creates sub-issues, checks for contradictions with existing descriptions, updates parent issues."
4
+ triggers:
5
+ - "Add PR description"
6
+ - "Document PR changes"
7
+ - "Create issue for PR"
8
+ metadata:
9
+ author: "MrCipherSmith"
10
+ version: "1.0.0"
11
+ category: "documentation"
12
+ license: "MIT"
13
+ compatibility: "cursor,codex,zed,opencode"
14
+ ---
15
+
16
+ # PR & Issue Documenter
17
+
18
+ Analyzes PR commits/diff to generate structured descriptions for PRs and linked issues.
19
+
20
+ ## Workflow
21
+
22
+ 1. Parse input: extract PR URL, issue URL, commit SHAs. Ask if missing.
23
+ 2. Collect context: `gh pr view`, `gh pr diff`, `git show`, `gh issue view`.
24
+ 3. Analyze changes: categorize (refactor/feature/bugfix/cleanup/i18n/test), group by logical area, build key files table.
25
+ 4. Generate PR description: Summary (2-3 sentences) + Changes (grouped sections) + Key Files table. Always English.
26
+ 5. Handle issue: if provided, check contradictions and ask before overwriting; if not provided, ask whether to create sub-issue or skip.
27
+ 6. Apply via `gh pr edit`, `gh issue edit/create`. Update parent issue if sub-issue created.
28
+ 7. Report results with links.
29
+
30
+ ## Key Rules
31
+
32
+ - Analyze ALL commits, not just the latest
33
+ - Check contradictions before updating existing issue descriptions
34
+ - Ask user before overwriting issue content
35
+ - PR description: concise. Issue description: detailed with numbered sections.
36
+ - Output language: English
37
+ - Never invent changes not in diff
38
+ - Never write comments on GitHub (only edit body)
@@ -0,0 +1,53 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://keryx.local/schemas/pr-issue-documenter/input-contract.schema.json",
4
+ "title": "PR & Issue Documenter Input Contract",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "properties": {
8
+ "pr": {
9
+ "type": "object",
10
+ "description": "GitHub PR to document",
11
+ "additionalProperties": false,
12
+ "properties": {
13
+ "owner": { "type": "string" },
14
+ "repo": { "type": "string" },
15
+ "number": { "type": "integer", "minimum": 1 },
16
+ "url": { "type": "string", "format": "uri" }
17
+ }
18
+ },
19
+ "issue": {
20
+ "type": "object",
21
+ "description": "Linked GitHub issue (optional)",
22
+ "additionalProperties": false,
23
+ "properties": {
24
+ "owner": { "type": "string" },
25
+ "repo": { "type": "string" },
26
+ "number": { "type": "integer", "minimum": 1 },
27
+ "url": { "type": "string", "format": "uri" }
28
+ }
29
+ },
30
+ "commits": {
31
+ "type": "array",
32
+ "description": "Specific commit SHAs to analyze (alternative to PR)",
33
+ "items": { "type": "string" }
34
+ },
35
+ "action": {
36
+ "type": "string",
37
+ "enum": ["generate-pr-description", "create-issue", "update-issue", "auto"],
38
+ "default": "auto",
39
+ "description": "What to do: auto = determine from context"
40
+ },
41
+ "job_context": {
42
+ "type": "object",
43
+ "additionalProperties": false,
44
+ "properties": {
45
+ "job_name": { "type": "string" },
46
+ "context_path": { "type": "string" },
47
+ "branch": { "type": "string" },
48
+ "base_branch": { "type": "string" },
49
+ "issue_number": { "type": "integer" }
50
+ }
51
+ }
52
+ }
53
+ }
@@ -0,0 +1,46 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://keryx.local/schemas/pr-issue-documenter/output-contract.schema.json",
4
+ "title": "PR & Issue Documenter Output Contract",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": ["status", "actions_taken"],
8
+ "properties": {
9
+ "status": {
10
+ "type": "string",
11
+ "enum": ["success", "partial", "error"]
12
+ },
13
+ "actions_taken": {
14
+ "type": "array",
15
+ "items": {
16
+ "type": "object",
17
+ "required": ["action", "target", "url"],
18
+ "properties": {
19
+ "action": {
20
+ "type": "string",
21
+ "enum": ["pr-description-updated", "issue-created", "issue-updated", "parent-issue-updated"]
22
+ },
23
+ "target": { "type": "string", "description": "e.g. PR #123, Issue #456" },
24
+ "url": { "type": "string", "format": "uri" }
25
+ }
26
+ }
27
+ },
28
+ "pr_description": {
29
+ "type": "string",
30
+ "description": "Generated PR description markdown"
31
+ },
32
+ "issue_body": {
33
+ "type": "string",
34
+ "description": "Generated issue body markdown"
35
+ },
36
+ "contradictions_found": {
37
+ "type": "array",
38
+ "description": "List of contradictions detected in existing descriptions",
39
+ "items": { "type": "string" }
40
+ },
41
+ "errors": {
42
+ "type": "array",
43
+ "items": { "type": "string" }
44
+ }
45
+ }
46
+ }
@@ -0,0 +1,52 @@
1
+ ---
2
+ name: push
3
+ description: "Smart git push with safety checks: verifies branch status, sets upstream if needed, protects main/master from force push. Handles common push issues automatically."
4
+ triggers:
5
+ - "/push"
6
+ - "Push changes"
7
+ - "Push to remote"
8
+ - "Push branch"
9
+ metadata:
10
+ author: "MrCipherSmith"
11
+ version: "1.0.0"
12
+ category: "workflow"
13
+ license: "MIT"
14
+ compatibility: "cursor,codex,zed,opencode,claude"
15
+ ---
16
+
17
+ # Smart Push
18
+
19
+ Push current branch to remote with safety checks.
20
+
21
+ ## Workflow
22
+
23
+ ### Phase 1: Pre-flight
24
+ Run in parallel where possible:
25
+ 1. `git status` — check for uncommitted changes
26
+ 2. `git branch -vv` — check current branch and tracking info
27
+ 3. `git log @{upstream}..HEAD --oneline 2>/dev/null` — commits to push
28
+
29
+ ### Phase 2: Safety Checks
30
+ - If there are uncommitted changes → warn and ask if they want to commit first
31
+ - If on `main` or `master` → warn and ask for confirmation
32
+ - If branch has no upstream → use `git push -u origin <branch>`
33
+
34
+ ### Phase 3: Push
35
+ - Normal case: `git push`
36
+ - No upstream: `git push -u origin $(git branch --show-current)`
37
+ - NEVER use `--force` unless the user explicitly says "force push"
38
+
39
+ ### Phase 4: Confirm
40
+ Show result: confirm push success with commit count.
41
+
42
+ ## Arguments
43
+
44
+ - `/push` — standard push
45
+ - `/push --force` — force push (only when explicitly requested, warn if main/master)
46
+ - `/push origin <branch>` — push to specific remote/branch
47
+
48
+ ## Rules
49
+
50
+ - NEVER force push to main/master without double confirmation
51
+ - NEVER use `--no-verify`
52
+ - If push is rejected (non-fast-forward), suggest `git pull --rebase` first
@@ -0,0 +1,52 @@
1
+ ---
2
+ name: push
3
+ description: "Smart git push with safety checks: verifies branch status, sets upstream if needed, protects main/master from force push. Handles common push issues automatically."
4
+ triggers:
5
+ - "/push"
6
+ - "Push changes"
7
+ - "Push to remote"
8
+ - "Push branch"
9
+ metadata:
10
+ author: "MrCipherSmith"
11
+ version: "1.0.0"
12
+ category: "workflow"
13
+ license: "MIT"
14
+ compatibility: "cursor,codex,zed,opencode,claude"
15
+ ---
16
+
17
+ # Smart Push
18
+
19
+ Push current branch to remote with safety checks.
20
+
21
+ ## Workflow
22
+
23
+ ### Phase 1: Pre-flight
24
+ Run in parallel where possible:
25
+ 1. `git status` — check for uncommitted changes
26
+ 2. `git branch -vv` — check current branch and tracking info
27
+ 3. `git log @{upstream}..HEAD --oneline 2>/dev/null` — commits to push
28
+
29
+ ### Phase 2: Safety Checks
30
+ - If there are uncommitted changes → warn and ask if they want to commit first
31
+ - If on `main` or `master` → warn and ask for confirmation
32
+ - If branch has no upstream → use `git push -u origin <branch>`
33
+
34
+ ### Phase 3: Push
35
+ - Normal case: `git push`
36
+ - No upstream: `git push -u origin $(git branch --show-current)`
37
+ - NEVER use `--force` unless the user explicitly says "force push"
38
+
39
+ ### Phase 4: Confirm
40
+ Show result: confirm push success with commit count.
41
+
42
+ ## Arguments
43
+
44
+ - `/push` — standard push
45
+ - `/push --force` — force push (only when explicitly requested, warn if main/master)
46
+ - `/push origin <branch>` — push to specific remote/branch
47
+
48
+ ## Rules
49
+
50
+ - NEVER force push to main/master without double confirmation
51
+ - NEVER use `--no-verify`
52
+ - If push is rejected (non-fast-forward), suggest `git pull --rebase` first
@@ -0,0 +1,52 @@
1
+ ---
2
+ name: push
3
+ description: "Use when pushing the current branch to the remote, especially when upstream tracking or safety checks are needed."
4
+ triggers:
5
+ - "/push"
6
+ - "Push changes"
7
+ - "Push to remote"
8
+ - "Push branch"
9
+ metadata:
10
+ author: "MrCipherSmith"
11
+ version: "1.0.0"
12
+ category: "workflow"
13
+ license: "MIT"
14
+ compatibility: "cursor,codex,zed,opencode,claude"
15
+ ---
16
+
17
+ # Smart Push
18
+
19
+ Push current branch to remote with safety checks.
20
+
21
+ ## Workflow
22
+
23
+ ### Phase 1: Pre-flight
24
+ Run in parallel where possible:
25
+ 1. `git status` — check for uncommitted changes
26
+ 2. `git branch -vv` — check current branch and tracking info
27
+ 3. `git log @{upstream}..HEAD --oneline 2>/dev/null` — commits to push
28
+
29
+ ### Phase 2: Safety Checks
30
+ - If there are uncommitted changes → warn and ask if they want to commit first
31
+ - If on `main` or `master` → warn and ask for confirmation
32
+ - If branch has no upstream → use `git push -u origin <branch>`
33
+
34
+ ### Phase 3: Push
35
+ - Normal case: `git push`
36
+ - No upstream: `git push -u origin $(git branch --show-current)`
37
+ - NEVER use `--force` unless the user explicitly says "force push"
38
+
39
+ ### Phase 4: Confirm
40
+ Show result: confirm push success with commit count.
41
+
42
+ ## Arguments
43
+
44
+ - `/push` — standard push
45
+ - `/push --force` — force push (only when explicitly requested, warn if main/master)
46
+ - `/push origin <branch>` — push to specific remote/branch
47
+
48
+ ## Rules
49
+
50
+ - NEVER force push to main/master without double confirmation
51
+ - NEVER use `--no-verify`
52
+ - If push is rejected (non-fast-forward), suggest `git pull --rebase` first