oh-my-opencode 5.1.83 → 5.1.86

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 (442) hide show
  1. package/.agents/command/remove-deadcode.md +1 -1
  2. package/.agents/skills/remove-deadcode/SKILL.md +1 -1
  3. package/.agents/skills/work-with-pr/SKILL.md +2 -2
  4. package/.opencode/command/remove-deadcode.md +1 -1
  5. package/.opencode/skills/work-with-pr/SKILL.md +2 -2
  6. package/THIRD-PARTY-NOTICES.md +9 -3
  7. package/dist/cli/cli-program.d.ts +3 -0
  8. package/dist/cli/index.js +1197 -1008
  9. package/dist/cli/service-auth/devices.d.ts +5 -2
  10. package/dist/cli-node/index.js +1197 -1008
  11. package/dist/config/schema/agent-names.d.ts +1 -0
  12. package/dist/index.js +194 -213
  13. package/dist/skills/browser/SKILL.md +100 -91
  14. package/dist/skills/browser/references/commands.md +92 -27
  15. package/dist/skills/browser/references/desktop.md +22 -0
  16. package/dist/skills/browser/references/install.md +18 -0
  17. package/dist/skills/browser/references/owned-engine/README.md +7 -2
  18. package/dist/skills/browser/references/owned-engine/frames-and-humans.md +9 -2
  19. package/dist/skills/browser/references/owned-engine/network.md +13 -7
  20. package/dist/skills/browser/references/recipes/1password.md +6 -2
  21. package/dist/skills/browser/runtime/omowright/index.js +15 -15
  22. package/dist/skills/browser/runtime/omowright/manifest.json +4 -4
  23. package/dist/skills/debugging/SKILL.md +1 -1
  24. package/dist/skills/debugging/references/tools/browser-qa.md +1 -1
  25. package/dist/skills/git/SKILL.md +62 -0
  26. package/dist/skills/git/agents/openai.yaml +13 -0
  27. package/dist/skills/github/SKILL.md +94 -0
  28. package/dist/skills/github/references/branch-rules.md +129 -0
  29. package/dist/skills/github/references/evidence-attachments.md +16 -0
  30. package/dist/skills/github/references/repo-setup.md +152 -0
  31. package/dist/skills/github/references/waiting.md +52 -0
  32. package/dist/skills/github/references/workflows.md +161 -0
  33. package/dist/skills/github/scripts/cli.ts +8 -0
  34. package/dist/skills/github/scripts/package.json +12 -0
  35. package/dist/skills/github/scripts/sdk.ts +11 -0
  36. package/dist/skills/github/scripts/src/account.ts +243 -0
  37. package/dist/skills/github/scripts/src/actions-write.ts +86 -0
  38. package/dist/skills/github/scripts/src/actions.ts +210 -0
  39. package/dist/skills/github/scripts/src/attestations.ts +136 -0
  40. package/dist/skills/github/scripts/src/blake2b.ts +102 -0
  41. package/dist/skills/github/scripts/src/branch-protection.ts +192 -0
  42. package/dist/skills/github/scripts/src/caches.ts +105 -0
  43. package/dist/skills/github/scripts/src/checks.ts +107 -0
  44. package/dist/skills/github/scripts/src/codespaces.ts +230 -0
  45. package/dist/skills/github/scripts/src/conversation-lock.ts +50 -0
  46. package/dist/skills/github/scripts/src/discussion-list.ts +126 -0
  47. package/dist/skills/github/scripts/src/discussion-lookup.ts +127 -0
  48. package/dist/skills/github/scripts/src/discussions.ts +234 -0
  49. package/dist/skills/github/scripts/src/env.ts +100 -0
  50. package/dist/skills/github/scripts/src/errors.ts +79 -0
  51. package/dist/skills/github/scripts/src/fields.ts +27 -0
  52. package/dist/skills/github/scripts/src/gist-shape.ts +58 -0
  53. package/dist/skills/github/scripts/src/gists-write.ts +130 -0
  54. package/dist/skills/github/scripts/src/gists.ts +118 -0
  55. package/dist/skills/github/scripts/src/git-auth.ts +46 -0
  56. package/dist/skills/github/scripts/src/http.ts +159 -0
  57. package/dist/skills/github/scripts/src/issue-develop.ts +118 -0
  58. package/dist/skills/github/scripts/src/issues-extra.ts +135 -0
  59. package/dist/skills/github/scripts/src/issues-write.ts +174 -0
  60. package/dist/skills/github/scripts/src/issues.ts +156 -0
  61. package/dist/skills/github/scripts/src/keys.ts +176 -0
  62. package/dist/skills/github/scripts/src/labels.ts +209 -0
  63. package/dist/skills/github/scripts/src/merge.ts +115 -0
  64. package/dist/skills/github/scripts/src/poly1305.ts +22 -0
  65. package/dist/skills/github/scripts/src/pr-checkout.ts +92 -0
  66. package/dist/skills/github/scripts/src/pr-view.ts +106 -0
  67. package/dist/skills/github/scripts/src/project-fields.ts +144 -0
  68. package/dist/skills/github/scripts/src/project-item-edit.ts +153 -0
  69. package/dist/skills/github/scripts/src/project-items.ts +191 -0
  70. package/dist/skills/github/scripts/src/project-links.ts +104 -0
  71. package/dist/skills/github/scripts/src/project-ref.ts +145 -0
  72. package/dist/skills/github/scripts/src/project-state.ts +99 -0
  73. package/dist/skills/github/scripts/src/projects.ts +158 -0
  74. package/dist/skills/github/scripts/src/pulls-extra.ts +165 -0
  75. package/dist/skills/github/scripts/src/pulls-read.ts +176 -0
  76. package/dist/skills/github/scripts/src/pulls-review.ts +206 -0
  77. package/dist/skills/github/scripts/src/pulls-write.ts +187 -0
  78. package/dist/skills/github/scripts/src/raw.ts +78 -0
  79. package/dist/skills/github/scripts/src/read.ts +77 -0
  80. package/dist/skills/github/scripts/src/release-assets.ts +111 -0
  81. package/dist/skills/github/scripts/src/release-download.ts +151 -0
  82. package/dist/skills/github/scripts/src/release-write.ts +197 -0
  83. package/dist/skills/github/scripts/src/repo-admin.ts +112 -0
  84. package/dist/skills/github/scripts/src/repo-content.ts +187 -0
  85. package/dist/skills/github/scripts/src/repo-create.ts +139 -0
  86. package/dist/skills/github/scripts/src/repo-extras.ts +217 -0
  87. package/dist/skills/github/scripts/src/repo-list.ts +143 -0
  88. package/dist/skills/github/scripts/src/repo-settings.ts +176 -0
  89. package/dist/skills/github/scripts/src/repo-sync.ts +81 -0
  90. package/dist/skills/github/scripts/src/repo-url.ts +104 -0
  91. package/dist/skills/github/scripts/src/repos.ts +87 -0
  92. package/dist/skills/github/scripts/src/ruleset-shape.ts +96 -0
  93. package/dist/skills/github/scripts/src/rulesets-write.ts +124 -0
  94. package/dist/skills/github/scripts/src/rulesets.ts +80 -0
  95. package/dist/skills/github/scripts/src/run-download.ts +88 -0
  96. package/dist/skills/github/scripts/src/salsa20.ts +97 -0
  97. package/dist/skills/github/scripts/src/scopes.ts +165 -0
  98. package/dist/skills/github/scripts/src/sealed-box.ts +75 -0
  99. package/dist/skills/github/scripts/src/search-commits.ts +114 -0
  100. package/dist/skills/github/scripts/src/search.ts +116 -0
  101. package/dist/skills/github/scripts/src/secrets.ts +131 -0
  102. package/dist/skills/github/scripts/src/snappy.ts +57 -0
  103. package/dist/skills/github/scripts/src/status-search.ts +55 -0
  104. package/dist/skills/github/scripts/src/transfer.ts +97 -0
  105. package/dist/skills/github/scripts/src/types.ts +75 -0
  106. package/dist/skills/github/scripts/src/variables.ts +86 -0
  107. package/dist/skills/github/scripts/src/wait.ts +164 -0
  108. package/dist/skills/github/scripts/src/wire.ts +159 -0
  109. package/dist/skills/github/scripts/src/workflows.ts +144 -0
  110. package/dist/skills/github/scripts/src/zip.ts +104 -0
  111. package/dist/skills/github/scripts/surface.ts +106 -0
  112. package/dist/skills/github/scripts/vendor/surface/SOURCE.json +15 -0
  113. package/dist/skills/github/scripts/vendor/surface/cli.ts +203 -0
  114. package/dist/skills/github/scripts/vendor/surface/flags.ts +195 -0
  115. package/dist/skills/github/scripts/vendor/surface/help.ts +89 -0
  116. package/dist/skills/github/scripts/vendor/surface/http.ts +180 -0
  117. package/dist/skills/github/scripts/vendor/surface/index.ts +44 -0
  118. package/dist/skills/github/scripts/vendor/surface/mcp.ts +241 -0
  119. package/dist/skills/github/scripts/vendor/surface/schema.ts +200 -0
  120. package/dist/skills/github/scripts/vendor/surface/stdio.ts +54 -0
  121. package/dist/skills/github/scripts/vendor/surface/surface.ts +250 -0
  122. package/dist/skills/github/scripts/vendor/surface/tools.ts +80 -0
  123. package/dist/skills/programming/SKILL.md +51 -320
  124. package/dist/skills/programming/references/go/README.md +1 -0
  125. package/dist/skills/programming/references/python/README.md +21 -3
  126. package/dist/skills/programming/references/python/error-handling.md +14 -0
  127. package/dist/skills/programming/references/rust/README.md +5 -1
  128. package/dist/skills/programming/references/typescript/README.md +9 -3
  129. package/dist/skills/programming/references/typescript/error-handling.md +18 -0
  130. package/dist/skills/ultimate-browsing/SKILL.md +1 -1
  131. package/dist/skills/ulw-execute/SKILL.md +1 -1
  132. package/dist/skills/visual-qa/references/browser-setup.md +5 -5
  133. package/dist/tui.js +32 -29
  134. package/package.json +28 -26
  135. package/packages/omo-codex/plugin/.codex-plugin/plugin.json +1 -1
  136. package/packages/omo-codex/plugin/components/bootstrap/dist/cli.js +2 -2
  137. package/packages/omo-codex/plugin/components/bootstrap/hooks/hooks.json +1 -1
  138. package/packages/omo-codex/plugin/components/bootstrap/package.json +1 -1
  139. package/packages/omo-codex/plugin/components/comment-checker/hooks/hooks.json +1 -1
  140. package/packages/omo-codex/plugin/components/comment-checker/package.json +1 -1
  141. package/packages/omo-codex/plugin/components/git-bash/hooks/hooks.json +2 -2
  142. package/packages/omo-codex/plugin/components/git-bash/package.json +1 -1
  143. package/packages/omo-codex/plugin/components/lazycodex-executor-verify/hooks/hooks.json +1 -1
  144. package/packages/omo-codex/plugin/components/lazycodex-executor-verify/package.json +1 -1
  145. package/packages/omo-codex/plugin/components/lsp/dist/.omo-runtime-manifest.json +2 -2
  146. package/packages/omo-codex/plugin/components/lsp/hooks/hooks.json +2 -2
  147. package/packages/omo-codex/plugin/components/lsp/package.json +1 -1
  148. package/packages/omo-codex/plugin/components/rules/hooks/hooks.json +4 -4
  149. package/packages/omo-codex/plugin/components/rules/package.json +1 -1
  150. package/packages/omo-codex/plugin/components/teammode/hooks/hooks.json +1 -1
  151. package/packages/omo-codex/plugin/components/teammode/package.json +1 -1
  152. package/packages/omo-codex/plugin/components/telemetry/dist/cli.js +8711 -172
  153. package/packages/omo-codex/plugin/components/telemetry/dist/posthog.js +8660 -121
  154. package/packages/omo-codex/plugin/components/telemetry/hooks/hooks.json +1 -1
  155. package/packages/omo-codex/plugin/components/telemetry/package.json +1 -1
  156. package/packages/omo-codex/plugin/components/telemetry/src/posthog.ts +5 -0
  157. package/packages/omo-codex/plugin/components/telemetry/tsconfig.json +2 -2
  158. package/packages/omo-codex/plugin/components/ultrawork/hooks/hooks.json +1 -1
  159. package/packages/omo-codex/plugin/components/ultrawork/package.json +1 -1
  160. package/packages/omo-codex/plugin/components/ulw-execute-continuation/hooks/hooks.json +1 -1
  161. package/packages/omo-codex/plugin/components/ulw-execute-continuation/package.json +1 -1
  162. package/packages/omo-codex/plugin/components/ulw-loop/hooks/hooks.json +5 -5
  163. package/packages/omo-codex/plugin/components/ulw-loop/package.json +1 -1
  164. package/packages/omo-codex/plugin/components/ulw-loop/skills/ulw-loop/SKILL.md +1 -1
  165. package/packages/omo-codex/plugin/components/ulw-loop/skills/ulw-loop/references/full-workflow.md +3 -3
  166. package/packages/omo-codex/plugin/hooks/post-compact-resetting-git-bash-mcp-reminder.json +1 -1
  167. package/packages/omo-codex/plugin/hooks/post-compact-resetting-lsp-diagnostics-cache.json +1 -1
  168. package/packages/omo-codex/plugin/hooks/post-compact-resetting-project-rule-cache.json +1 -1
  169. package/packages/omo-codex/plugin/hooks/post-tool-use-checking-comments.json +1 -1
  170. package/packages/omo-codex/plugin/hooks/post-tool-use-checking-lsp-diagnostics.json +1 -1
  171. package/packages/omo-codex/plugin/hooks/post-tool-use-checking-thread-title-hygiene.json +1 -1
  172. package/packages/omo-codex/plugin/hooks/post-tool-use-matching-project-rules.json +1 -1
  173. package/packages/omo-codex/plugin/hooks/post-tool-use-recording-spawn-admission.json +1 -1
  174. package/packages/omo-codex/plugin/hooks/pre-tool-use-enforcing-unlimited-goal-budget.json +1 -1
  175. package/packages/omo-codex/plugin/hooks/pre-tool-use-guarding-ulw-loop-spawns.json +1 -1
  176. package/packages/omo-codex/plugin/hooks/pre-tool-use-recommending-git-bash-mcp.json +1 -1
  177. package/packages/omo-codex/plugin/hooks/session-start-checking-auto-update.json +1 -1
  178. package/packages/omo-codex/plugin/hooks/session-start-checking-bootstrap-provisioning.json +1 -1
  179. package/packages/omo-codex/plugin/hooks/session-start-loading-project-rules.json +1 -1
  180. package/packages/omo-codex/plugin/hooks/session-start-recording-session-telemetry.json +1 -1
  181. package/packages/omo-codex/plugin/hooks/stop-checking-ulw-execute-continuation.json +1 -1
  182. package/packages/omo-codex/plugin/hooks/stop-checking-ulw-loop-resume.json +1 -1
  183. package/packages/omo-codex/plugin/hooks/subagent-stop-verifying-lazycodex-executor-evidence.json +1 -1
  184. package/packages/omo-codex/plugin/hooks/user-prompt-submit-checking-ultrawork-trigger.json +1 -1
  185. package/packages/omo-codex/plugin/hooks/user-prompt-submit-checking-ulw-loop-steering.json +1 -1
  186. package/packages/omo-codex/plugin/hooks/user-prompt-submit-loading-project-rules.json +1 -1
  187. package/packages/omo-codex/plugin/package-lock.json +12 -12
  188. package/packages/omo-codex/plugin/package.json +1 -1
  189. package/packages/omo-codex/plugin/shared/src/config-loader.ts +15 -1
  190. package/packages/omo-codex/plugin/skills/browser/SKILL.md +100 -91
  191. package/packages/omo-codex/plugin/skills/browser/references/commands.md +92 -27
  192. package/packages/omo-codex/plugin/skills/browser/references/desktop.md +22 -0
  193. package/packages/omo-codex/plugin/skills/browser/references/install.md +18 -0
  194. package/packages/omo-codex/plugin/skills/browser/references/owned-engine/README.md +7 -2
  195. package/packages/omo-codex/plugin/skills/browser/references/owned-engine/frames-and-humans.md +9 -2
  196. package/packages/omo-codex/plugin/skills/browser/references/owned-engine/network.md +13 -7
  197. package/packages/omo-codex/plugin/skills/browser/references/recipes/1password.md +6 -2
  198. package/packages/omo-codex/plugin/skills/browser/runtime/omowright/index.js +15 -15
  199. package/packages/omo-codex/plugin/skills/browser/runtime/omowright/manifest.json +4 -4
  200. package/packages/omo-codex/plugin/skills/debugging/SKILL.md +1 -1
  201. package/packages/omo-codex/plugin/skills/debugging/references/tools/browser-qa.md +1 -1
  202. package/packages/omo-codex/plugin/skills/git/SKILL.md +62 -0
  203. package/packages/omo-codex/plugin/skills/git/agents/openai.yaml +13 -0
  204. package/packages/omo-codex/plugin/skills/github/SKILL.md +94 -0
  205. package/packages/omo-codex/plugin/skills/github/agents/openai.yaml +2 -0
  206. package/packages/omo-codex/plugin/skills/github/references/branch-rules.md +129 -0
  207. package/packages/omo-codex/plugin/skills/github/references/evidence-attachments.md +16 -0
  208. package/packages/omo-codex/plugin/skills/github/references/repo-setup.md +152 -0
  209. package/packages/omo-codex/plugin/skills/github/references/waiting.md +52 -0
  210. package/packages/omo-codex/plugin/skills/github/references/workflows.md +161 -0
  211. package/packages/omo-codex/plugin/skills/github/scripts/cli.ts +8 -0
  212. package/packages/omo-codex/plugin/skills/github/scripts/package.json +12 -0
  213. package/packages/omo-codex/plugin/skills/github/scripts/sdk.ts +11 -0
  214. package/packages/omo-codex/plugin/skills/github/scripts/src/account.ts +243 -0
  215. package/packages/omo-codex/plugin/skills/github/scripts/src/actions-write.ts +86 -0
  216. package/packages/omo-codex/plugin/skills/github/scripts/src/actions.ts +210 -0
  217. package/packages/omo-codex/plugin/skills/github/scripts/src/attestations.ts +136 -0
  218. package/packages/omo-codex/plugin/skills/github/scripts/src/blake2b.ts +102 -0
  219. package/packages/omo-codex/plugin/skills/github/scripts/src/branch-protection.ts +192 -0
  220. package/packages/omo-codex/plugin/skills/github/scripts/src/caches.ts +105 -0
  221. package/packages/omo-codex/plugin/skills/github/scripts/src/checks.ts +107 -0
  222. package/packages/omo-codex/plugin/skills/github/scripts/src/codespaces.ts +230 -0
  223. package/packages/omo-codex/plugin/skills/github/scripts/src/conversation-lock.ts +50 -0
  224. package/packages/omo-codex/plugin/skills/github/scripts/src/discussion-list.ts +126 -0
  225. package/packages/omo-codex/plugin/skills/github/scripts/src/discussion-lookup.ts +127 -0
  226. package/packages/omo-codex/plugin/skills/github/scripts/src/discussions.ts +234 -0
  227. package/packages/omo-codex/plugin/skills/github/scripts/src/env.ts +100 -0
  228. package/packages/omo-codex/plugin/skills/github/scripts/src/errors.ts +79 -0
  229. package/packages/omo-codex/plugin/skills/github/scripts/src/fields.ts +27 -0
  230. package/packages/omo-codex/plugin/skills/github/scripts/src/gist-shape.ts +58 -0
  231. package/packages/omo-codex/plugin/skills/github/scripts/src/gists-write.ts +130 -0
  232. package/packages/omo-codex/plugin/skills/github/scripts/src/gists.ts +118 -0
  233. package/packages/omo-codex/plugin/skills/github/scripts/src/git-auth.ts +46 -0
  234. package/packages/omo-codex/plugin/skills/github/scripts/src/http.ts +159 -0
  235. package/packages/omo-codex/plugin/skills/github/scripts/src/issue-develop.ts +118 -0
  236. package/packages/omo-codex/plugin/skills/github/scripts/src/issues-extra.ts +135 -0
  237. package/packages/omo-codex/plugin/skills/github/scripts/src/issues-write.ts +174 -0
  238. package/packages/omo-codex/plugin/skills/github/scripts/src/issues.ts +156 -0
  239. package/packages/omo-codex/plugin/skills/github/scripts/src/keys.ts +176 -0
  240. package/packages/omo-codex/plugin/skills/github/scripts/src/labels.ts +209 -0
  241. package/packages/omo-codex/plugin/skills/github/scripts/src/merge.ts +115 -0
  242. package/packages/omo-codex/plugin/skills/github/scripts/src/poly1305.ts +22 -0
  243. package/packages/omo-codex/plugin/skills/github/scripts/src/pr-checkout.ts +92 -0
  244. package/packages/omo-codex/plugin/skills/github/scripts/src/pr-view.ts +106 -0
  245. package/packages/omo-codex/plugin/skills/github/scripts/src/project-fields.ts +144 -0
  246. package/packages/omo-codex/plugin/skills/github/scripts/src/project-item-edit.ts +153 -0
  247. package/packages/omo-codex/plugin/skills/github/scripts/src/project-items.ts +191 -0
  248. package/packages/omo-codex/plugin/skills/github/scripts/src/project-links.ts +104 -0
  249. package/packages/omo-codex/plugin/skills/github/scripts/src/project-ref.ts +145 -0
  250. package/packages/omo-codex/plugin/skills/github/scripts/src/project-state.ts +99 -0
  251. package/packages/omo-codex/plugin/skills/github/scripts/src/projects.ts +158 -0
  252. package/packages/omo-codex/plugin/skills/github/scripts/src/pulls-extra.ts +165 -0
  253. package/packages/omo-codex/plugin/skills/github/scripts/src/pulls-read.ts +176 -0
  254. package/packages/omo-codex/plugin/skills/github/scripts/src/pulls-review.ts +206 -0
  255. package/packages/omo-codex/plugin/skills/github/scripts/src/pulls-write.ts +187 -0
  256. package/packages/omo-codex/plugin/skills/github/scripts/src/raw.ts +78 -0
  257. package/packages/omo-codex/plugin/skills/github/scripts/src/read.ts +77 -0
  258. package/packages/omo-codex/plugin/skills/github/scripts/src/release-assets.ts +111 -0
  259. package/packages/omo-codex/plugin/skills/github/scripts/src/release-download.ts +151 -0
  260. package/packages/omo-codex/plugin/skills/github/scripts/src/release-write.ts +197 -0
  261. package/packages/omo-codex/plugin/skills/github/scripts/src/repo-admin.ts +112 -0
  262. package/packages/omo-codex/plugin/skills/github/scripts/src/repo-content.ts +187 -0
  263. package/packages/omo-codex/plugin/skills/github/scripts/src/repo-create.ts +139 -0
  264. package/packages/omo-codex/plugin/skills/github/scripts/src/repo-extras.ts +217 -0
  265. package/packages/omo-codex/plugin/skills/github/scripts/src/repo-list.ts +143 -0
  266. package/packages/omo-codex/plugin/skills/github/scripts/src/repo-settings.ts +176 -0
  267. package/packages/omo-codex/plugin/skills/github/scripts/src/repo-sync.ts +81 -0
  268. package/packages/omo-codex/plugin/skills/github/scripts/src/repo-url.ts +104 -0
  269. package/packages/omo-codex/plugin/skills/github/scripts/src/repos.ts +87 -0
  270. package/packages/omo-codex/plugin/skills/github/scripts/src/ruleset-shape.ts +96 -0
  271. package/packages/omo-codex/plugin/skills/github/scripts/src/rulesets-write.ts +124 -0
  272. package/packages/omo-codex/plugin/skills/github/scripts/src/rulesets.ts +80 -0
  273. package/packages/omo-codex/plugin/skills/github/scripts/src/run-download.ts +88 -0
  274. package/packages/omo-codex/plugin/skills/github/scripts/src/salsa20.ts +97 -0
  275. package/packages/omo-codex/plugin/skills/github/scripts/src/scopes.ts +165 -0
  276. package/packages/omo-codex/plugin/skills/github/scripts/src/sealed-box.ts +75 -0
  277. package/packages/omo-codex/plugin/skills/github/scripts/src/search-commits.ts +114 -0
  278. package/packages/omo-codex/plugin/skills/github/scripts/src/search.ts +116 -0
  279. package/packages/omo-codex/plugin/skills/github/scripts/src/secrets.ts +131 -0
  280. package/packages/omo-codex/plugin/skills/github/scripts/src/snappy.ts +57 -0
  281. package/packages/omo-codex/plugin/skills/github/scripts/src/status-search.ts +55 -0
  282. package/packages/omo-codex/plugin/skills/github/scripts/src/transfer.ts +97 -0
  283. package/packages/omo-codex/plugin/skills/github/scripts/src/types.ts +75 -0
  284. package/packages/omo-codex/plugin/skills/github/scripts/src/variables.ts +86 -0
  285. package/packages/omo-codex/plugin/skills/github/scripts/src/wait.ts +164 -0
  286. package/packages/omo-codex/plugin/skills/github/scripts/src/wire.ts +159 -0
  287. package/packages/omo-codex/plugin/skills/github/scripts/src/workflows.ts +144 -0
  288. package/packages/omo-codex/plugin/skills/github/scripts/src/zip.ts +104 -0
  289. package/packages/omo-codex/plugin/skills/github/scripts/surface.ts +106 -0
  290. package/packages/omo-codex/plugin/skills/github/scripts/vendor/surface/SOURCE.json +15 -0
  291. package/packages/omo-codex/plugin/skills/github/scripts/vendor/surface/cli.ts +203 -0
  292. package/packages/omo-codex/plugin/skills/github/scripts/vendor/surface/flags.ts +195 -0
  293. package/packages/omo-codex/plugin/skills/github/scripts/vendor/surface/help.ts +89 -0
  294. package/packages/omo-codex/plugin/skills/github/scripts/vendor/surface/http.ts +180 -0
  295. package/packages/omo-codex/plugin/skills/github/scripts/vendor/surface/index.ts +44 -0
  296. package/packages/omo-codex/plugin/skills/github/scripts/vendor/surface/mcp.ts +241 -0
  297. package/packages/omo-codex/plugin/skills/github/scripts/vendor/surface/schema.ts +200 -0
  298. package/packages/omo-codex/plugin/skills/github/scripts/vendor/surface/stdio.ts +54 -0
  299. package/packages/omo-codex/plugin/skills/github/scripts/vendor/surface/surface.ts +250 -0
  300. package/packages/omo-codex/plugin/skills/github/scripts/vendor/surface/tools.ts +80 -0
  301. package/packages/omo-codex/plugin/skills/programming/SKILL.md +51 -320
  302. package/packages/omo-codex/plugin/skills/programming/references/go/README.md +1 -0
  303. package/packages/omo-codex/plugin/skills/programming/references/python/README.md +21 -3
  304. package/packages/omo-codex/plugin/skills/programming/references/python/error-handling.md +14 -0
  305. package/packages/omo-codex/plugin/skills/programming/references/rust/README.md +5 -1
  306. package/packages/omo-codex/plugin/skills/programming/references/typescript/README.md +9 -3
  307. package/packages/omo-codex/plugin/skills/programming/references/typescript/error-handling.md +18 -0
  308. package/packages/omo-codex/plugin/skills/ultimate-browsing/SKILL.md +1 -1
  309. package/packages/omo-codex/plugin/skills/ulw-execute/SKILL.md +1 -1
  310. package/packages/omo-codex/plugin/skills/ulw-loop/SKILL.md +1 -1
  311. package/packages/omo-codex/plugin/skills/ulw-loop/references/full-workflow.md +3 -3
  312. package/packages/omo-codex/plugin/skills/visual-qa/references/browser-setup.md +5 -5
  313. package/packages/omo-codex/plugin/test/sync-skills-codex-compatibility.test.mjs +1 -1
  314. package/packages/omo-codex/plugin/test/sync-skills-test-support.mjs +2 -1
  315. package/packages/omo-codex/plugin/test/sync-skills.test.mjs +5 -5
  316. package/packages/omo-codex/scripts/install-dist/install-local.mjs +21279 -20738
  317. package/packages/shared-skills/skills/browser/SKILL.md +100 -91
  318. package/packages/shared-skills/skills/browser/references/commands.md +92 -27
  319. package/packages/shared-skills/skills/browser/references/desktop.md +22 -0
  320. package/packages/shared-skills/skills/browser/references/install.md +18 -0
  321. package/packages/shared-skills/skills/browser/references/owned-engine/README.md +7 -2
  322. package/packages/shared-skills/skills/browser/references/owned-engine/frames-and-humans.md +9 -2
  323. package/packages/shared-skills/skills/browser/references/owned-engine/network.md +13 -7
  324. package/packages/shared-skills/skills/browser/references/recipes/1password.md +6 -2
  325. package/packages/shared-skills/skills/browser/runtime/omowright/index.js +15 -15
  326. package/packages/shared-skills/skills/browser/runtime/omowright/manifest.json +4 -4
  327. package/packages/shared-skills/skills/debugging/SKILL.md +1 -1
  328. package/packages/shared-skills/skills/debugging/references/tools/browser-qa.md +1 -1
  329. package/packages/shared-skills/skills/git/SKILL.md +62 -0
  330. package/packages/shared-skills/skills/git/agents/openai.yaml +13 -0
  331. package/packages/shared-skills/skills/github/SKILL.md +94 -0
  332. package/packages/shared-skills/skills/github/references/branch-rules.md +129 -0
  333. package/packages/shared-skills/skills/github/references/evidence-attachments.md +16 -0
  334. package/packages/shared-skills/skills/github/references/repo-setup.md +152 -0
  335. package/packages/shared-skills/skills/github/references/waiting.md +52 -0
  336. package/packages/shared-skills/skills/github/references/workflows.md +161 -0
  337. package/packages/shared-skills/skills/github/scripts/cli.ts +8 -0
  338. package/packages/shared-skills/skills/github/scripts/package.json +12 -0
  339. package/packages/shared-skills/skills/github/scripts/sdk.ts +11 -0
  340. package/packages/shared-skills/skills/github/scripts/src/account.ts +243 -0
  341. package/packages/shared-skills/skills/github/scripts/src/actions-write.ts +86 -0
  342. package/packages/shared-skills/skills/github/scripts/src/actions.ts +210 -0
  343. package/packages/shared-skills/skills/github/scripts/src/attestations.ts +136 -0
  344. package/packages/shared-skills/skills/github/scripts/src/blake2b.ts +102 -0
  345. package/packages/shared-skills/skills/github/scripts/src/branch-protection.ts +192 -0
  346. package/packages/shared-skills/skills/github/scripts/src/caches.ts +105 -0
  347. package/packages/shared-skills/skills/github/scripts/src/checks.ts +107 -0
  348. package/packages/shared-skills/skills/github/scripts/src/codespaces.ts +230 -0
  349. package/packages/shared-skills/skills/github/scripts/src/conversation-lock.ts +50 -0
  350. package/packages/shared-skills/skills/github/scripts/src/discussion-list.ts +126 -0
  351. package/packages/shared-skills/skills/github/scripts/src/discussion-lookup.ts +127 -0
  352. package/packages/shared-skills/skills/github/scripts/src/discussions.ts +234 -0
  353. package/packages/shared-skills/skills/github/scripts/src/env.ts +100 -0
  354. package/packages/shared-skills/skills/github/scripts/src/errors.ts +79 -0
  355. package/packages/shared-skills/skills/github/scripts/src/fields.ts +27 -0
  356. package/packages/shared-skills/skills/github/scripts/src/gist-shape.ts +58 -0
  357. package/packages/shared-skills/skills/github/scripts/src/gists-write.ts +130 -0
  358. package/packages/shared-skills/skills/github/scripts/src/gists.ts +118 -0
  359. package/packages/shared-skills/skills/github/scripts/src/git-auth.ts +46 -0
  360. package/packages/shared-skills/skills/github/scripts/src/http.ts +159 -0
  361. package/packages/shared-skills/skills/github/scripts/src/issue-develop.ts +118 -0
  362. package/packages/shared-skills/skills/github/scripts/src/issues-extra.ts +135 -0
  363. package/packages/shared-skills/skills/github/scripts/src/issues-write.ts +174 -0
  364. package/packages/shared-skills/skills/github/scripts/src/issues.ts +156 -0
  365. package/packages/shared-skills/skills/github/scripts/src/keys.ts +176 -0
  366. package/packages/shared-skills/skills/github/scripts/src/labels.ts +209 -0
  367. package/packages/shared-skills/skills/github/scripts/src/merge.ts +115 -0
  368. package/packages/shared-skills/skills/github/scripts/src/poly1305.ts +22 -0
  369. package/packages/shared-skills/skills/github/scripts/src/pr-checkout.ts +92 -0
  370. package/packages/shared-skills/skills/github/scripts/src/pr-view.ts +106 -0
  371. package/packages/shared-skills/skills/github/scripts/src/project-fields.ts +144 -0
  372. package/packages/shared-skills/skills/github/scripts/src/project-item-edit.ts +153 -0
  373. package/packages/shared-skills/skills/github/scripts/src/project-items.ts +191 -0
  374. package/packages/shared-skills/skills/github/scripts/src/project-links.ts +104 -0
  375. package/packages/shared-skills/skills/github/scripts/src/project-ref.ts +145 -0
  376. package/packages/shared-skills/skills/github/scripts/src/project-state.ts +99 -0
  377. package/packages/shared-skills/skills/github/scripts/src/projects.ts +158 -0
  378. package/packages/shared-skills/skills/github/scripts/src/pulls-extra.ts +165 -0
  379. package/packages/shared-skills/skills/github/scripts/src/pulls-read.ts +176 -0
  380. package/packages/shared-skills/skills/github/scripts/src/pulls-review.ts +206 -0
  381. package/packages/shared-skills/skills/github/scripts/src/pulls-write.ts +187 -0
  382. package/packages/shared-skills/skills/github/scripts/src/raw.ts +78 -0
  383. package/packages/shared-skills/skills/github/scripts/src/read.ts +77 -0
  384. package/packages/shared-skills/skills/github/scripts/src/release-assets.ts +111 -0
  385. package/packages/shared-skills/skills/github/scripts/src/release-download.ts +151 -0
  386. package/packages/shared-skills/skills/github/scripts/src/release-write.ts +197 -0
  387. package/packages/shared-skills/skills/github/scripts/src/repo-admin.ts +112 -0
  388. package/packages/shared-skills/skills/github/scripts/src/repo-content.ts +187 -0
  389. package/packages/shared-skills/skills/github/scripts/src/repo-create.ts +139 -0
  390. package/packages/shared-skills/skills/github/scripts/src/repo-extras.ts +217 -0
  391. package/packages/shared-skills/skills/github/scripts/src/repo-list.ts +143 -0
  392. package/packages/shared-skills/skills/github/scripts/src/repo-settings.ts +176 -0
  393. package/packages/shared-skills/skills/github/scripts/src/repo-sync.ts +81 -0
  394. package/packages/shared-skills/skills/github/scripts/src/repo-url.ts +104 -0
  395. package/packages/shared-skills/skills/github/scripts/src/repos.ts +87 -0
  396. package/packages/shared-skills/skills/github/scripts/src/ruleset-shape.ts +96 -0
  397. package/packages/shared-skills/skills/github/scripts/src/rulesets-write.ts +124 -0
  398. package/packages/shared-skills/skills/github/scripts/src/rulesets.ts +80 -0
  399. package/packages/shared-skills/skills/github/scripts/src/run-download.ts +88 -0
  400. package/packages/shared-skills/skills/github/scripts/src/salsa20.ts +97 -0
  401. package/packages/shared-skills/skills/github/scripts/src/scopes.ts +165 -0
  402. package/packages/shared-skills/skills/github/scripts/src/sealed-box.ts +75 -0
  403. package/packages/shared-skills/skills/github/scripts/src/search-commits.ts +114 -0
  404. package/packages/shared-skills/skills/github/scripts/src/search.ts +116 -0
  405. package/packages/shared-skills/skills/github/scripts/src/secrets.ts +131 -0
  406. package/packages/shared-skills/skills/github/scripts/src/snappy.ts +57 -0
  407. package/packages/shared-skills/skills/github/scripts/src/status-search.ts +55 -0
  408. package/packages/shared-skills/skills/github/scripts/src/transfer.ts +97 -0
  409. package/packages/shared-skills/skills/github/scripts/src/types.ts +75 -0
  410. package/packages/shared-skills/skills/github/scripts/src/variables.ts +86 -0
  411. package/packages/shared-skills/skills/github/scripts/src/wait.ts +164 -0
  412. package/packages/shared-skills/skills/github/scripts/src/wire.ts +159 -0
  413. package/packages/shared-skills/skills/github/scripts/src/workflows.ts +144 -0
  414. package/packages/shared-skills/skills/github/scripts/src/zip.ts +104 -0
  415. package/packages/shared-skills/skills/github/scripts/surface.ts +106 -0
  416. package/packages/shared-skills/skills/github/scripts/vendor/surface/SOURCE.json +15 -0
  417. package/packages/shared-skills/skills/github/scripts/vendor/surface/cli.ts +203 -0
  418. package/packages/shared-skills/skills/github/scripts/vendor/surface/flags.ts +195 -0
  419. package/packages/shared-skills/skills/github/scripts/vendor/surface/help.ts +89 -0
  420. package/packages/shared-skills/skills/github/scripts/vendor/surface/http.ts +180 -0
  421. package/packages/shared-skills/skills/github/scripts/vendor/surface/index.ts +44 -0
  422. package/packages/shared-skills/skills/github/scripts/vendor/surface/mcp.ts +241 -0
  423. package/packages/shared-skills/skills/github/scripts/vendor/surface/schema.ts +200 -0
  424. package/packages/shared-skills/skills/github/scripts/vendor/surface/stdio.ts +54 -0
  425. package/packages/shared-skills/skills/github/scripts/vendor/surface/surface.ts +250 -0
  426. package/packages/shared-skills/skills/github/scripts/vendor/surface/tools.ts +80 -0
  427. package/packages/shared-skills/skills/programming/SKILL.md +51 -320
  428. package/packages/shared-skills/skills/programming/references/go/README.md +1 -0
  429. package/packages/shared-skills/skills/programming/references/python/README.md +21 -3
  430. package/packages/shared-skills/skills/programming/references/python/error-handling.md +14 -0
  431. package/packages/shared-skills/skills/programming/references/rust/README.md +5 -1
  432. package/packages/shared-skills/skills/programming/references/typescript/README.md +9 -3
  433. package/packages/shared-skills/skills/programming/references/typescript/error-handling.md +18 -0
  434. package/packages/shared-skills/skills/ultimate-browsing/SKILL.md +1 -1
  435. package/packages/shared-skills/skills/ulw-execute/SKILL.md +1 -1
  436. package/packages/shared-skills/skills/visual-qa/references/browser-setup.md +5 -5
  437. package/dist/skills/git-master/SKILL.md +0 -114
  438. package/dist/skills/git-master/agents/openai.yaml +0 -13
  439. package/packages/omo-codex/plugin/skills/git-master/SKILL.md +0 -114
  440. package/packages/omo-codex/plugin/skills/git-master/agents/openai.yaml +0 -13
  441. package/packages/shared-skills/skills/git-master/SKILL.md +0 -114
  442. package/packages/shared-skills/skills/git-master/agents/openai.yaml +0 -13
@@ -1,10 +1,10 @@
1
1
  {
2
- "version": "0.3.2",
3
- "sourceDigest": "c723f2a6dc33c2adb3e74ad9e31ca92653fa5ac3aa342df6c606ffc6b20e82f0",
2
+ "version": "0.3.10",
3
+ "sourceDigest": "5532c63c76dac972e34692fb224ee7105653e89a1bbfbcfbd36269d8fb8f9447",
4
4
  "files": {
5
- "index.js": "d955f8a811637fad81f1d1219ffe8e474f1b8767f865589bf230957edd20bc10",
5
+ "index.js": "f4096cf288f52979a1a2e918dc1add6229e7c33cafa0e76ab2682043bf98e3be",
6
6
  "page-bundle.js": "c517fa11a62a1b83dc79f72b288159a420831426418b1d4d9d492fc6c414f78c",
7
7
  "LICENSE": "b083425948376611de9b92b0aeb7377e604505756ea427e541a34d9b030d4dc1"
8
8
  },
9
- "stagedAtUtc": "2026-11-24T02:36:08.390Z"
9
+ "stagedAtUtc": "2026-11-28T21:18:01.797Z"
10
10
  }
@@ -101,7 +101,7 @@ These are not phases — read them when the situation calls for them:
101
101
  4. **Never declare done on type-check/compile alone.** Types catch declaration bugs. Only running the actual user scenario catches the actual user bug.
102
102
  5. **Never ask the user a question that runtime evidence can already answer.** Escalation is for genuine ambiguity.
103
103
  6. **Never silently swallow errors while debugging.** If the system swallows errors, that is often the bug itself. Make them loud temporarily; restore at cleanup.
104
- 7. **Never `git commit` from inside this skill.** Commits belong to `/git-master` after the user confirms the fix.
104
+ 7. **Never `git commit` from inside this skill.** Commits belong to `/git` after the user confirms the fix.
105
105
  8. **Never attach without having read the runtime reference.** The gate rule.
106
106
  </safety>
107
107
 
@@ -22,7 +22,7 @@ downloading a managed browser.
22
22
 
23
23
  ```js
24
24
  const profile = mkdtempSync(join(tmpdir(), "debug-repro-"))
25
- const browser = await omowright.connectPipe({ browserPath, browserArgs: ["--headless", `--user-data-dir=${profile}`], storageRoot: profile })
25
+ const browser = await omowright.connectPipe({ browserPath: omowright.detectBrowsers().find((b) => b.installed)?.binary, browserArgs: ["--headless", `--user-data-dir=${profile}`], storageRoot: profile })
26
26
  const page = await browser.newTab("about:blank")
27
27
  const trace = omowright.createTrace(page, { dir: traceDir }) // trace.jsonl + trace.har + before/after screenshots
28
28
  try {
@@ -0,0 +1,62 @@
1
+ ---
2
+ name: git
3
+ description: "Local git: commit, push, worktree, base sync, rebase/squash/fixup, and history search (blame, bisect, log -S, reflog). Load before a task's first commit, push or worktree, or pass load_skills=['git'] to the task that commits. GitHub PRs, checks and merges: `github` skill. Triggers: 'commit', 'push', 'rebase', 'worktree', 'who wrote', 'when was X added'."
4
+ ---
5
+
6
+ # Git
7
+
8
+ Load this skill with the read tool, `tool.read({ path })` inside a cell, or `load_skills`, because those paths apply the user's git settings and the bare prelude `read(path)` does not.
9
+
10
+ Local git: state, commits, worktrees, base sync, history rewrite, push, history questions. Anything on GitHub itself (pull requests, checks, issues, merging) is the `github` skill; hand it the head SHA you pushed.
11
+
12
+ Commit, push, rebase, reset, stash or delete only when the user asked for it or a workflow they started requires it (ulw-loop commits each verified unit; a PR workflow pushes its branch). An investigative ask ends with findings.
13
+
14
+ ## Running git from an eval cell
15
+
16
+ git stays the CLI you already know. The cell adds what a shell line lacks: a failure that stops the cell, reads that run together, and values that reach the next call. On a harness without a js cell the same rules hold for plain shell lines: `git -C <repo>` on every call, `set -e` or `&&` between dependent steps.
17
+
18
+ ```js
19
+ const git = (repo, ...args) => Bun.$`git -C ${repo} ${args}`.quiet().text() // repo is an absolute path; a non-zero exit throws
20
+ const [state, head] = await Promise.all([git(R, "status", "--short", "--branch"), git(R, "rev-parse", "HEAD")])
21
+ ```
22
+
23
+ - **One cell answers one question.** Every read it needs goes into one `Promise.all`, and the results stay in variables for the step that uses them. Never spend a turn per `git status`.
24
+ - **A failed step must stop what depends on it.** `git()` throws. In a `tool.bash` script that is `set -e` or `&&`; `;` is for independent reads, because after a failed `fetch` or `checkout` it runs the rest on the wrong commit and the cell still looks green.
25
+ - `tool.bash` is for shell syntax (pipes, globs, loops) and for a command that can run for minutes, such as a clone or a push whose hooks run tests. Give it the repo too: `git -C <abs-path>` or `cwd`; a `cd` does not carry to the next call.
26
+ - **A ref is usable only after this clone has it.** Fetch the exact ref (`git fetch origin <branch>`, `refs/pull/<n>/head`), then `git rev-parse --verify '<ref>^{commit}'` before it is checked out, diffed or merged. A SHA from a message or another machine is not here until fetched.
27
+ - Two git commands that write to one worktree never run at the same time: the second dies on `index.lock`.
28
+ - Keep output small: `--stat` or `--name-only` first, then the one file.
29
+
30
+ ## Reading state
31
+
32
+ `status --short --branch` gives the upstream and ahead/behind. `symbolic-ref --short refs/remotes/origin/HEAD` names the default branch, so never guess `main` or `master`. `log -15 --format='%h %s'` shows the message style. `git diff A..B` compares the two tips, including what A gained since they split; `git diff A...B` shows only B's side since the merge base.
33
+
34
+ ## Commits
35
+
36
+ 1. Message style comes from the log: language, casing, prefix. Conventional Commits only where the log uses them.
37
+ 2. One commit per behavior that could be reverted alone, with its tests. Generated files travel with the source that produced them.
38
+ 3. **Stage the paths you name.** `git add -A`, `git add .` and `commit -a` are for a worktree you created in which every change is yours; anywhere else they sweep in someone else's work.
39
+ 4. Hooks run. `--no-verify` needs the user's word.
40
+ 5. Commit under the repository's configured identity. If none is configured, report it; never invent one with `-c user.name=`.
41
+ 6. Report hashes, subjects and what is still uncommitted.
42
+
43
+ ## Worktrees
44
+
45
+ - One task, one worktree on its own branch: fetch, then `git worktree add -b <branch> <path> origin/<base>`. Read `git worktree list` first; a branch checked out elsewhere cannot be checked out or force-moved here.
46
+ - **No `git stash` where worktrees share a repository.** The stash belongs to all of them, and a `stash pop` in the wrong one drops foreign changes into your tree. Park work as a commit on your branch.
47
+ - Remove what you added (`git worktree remove <path>`, then the branch) once its work is merged or abandoned.
48
+
49
+ ## Syncing with the base, rewriting, pushing
50
+
51
+ - Follow the repository's rule for merge versus rebase. Without one, merge the base into a branch that is already pushed and rebase only unpushed work.
52
+ - Preview first: `git merge-tree --write-tree --name-only HEAD origin/<base>` exits 1 and lists the conflicted paths without touching the tree.
53
+ - A merge that stops on a conflict exits 1, so `git()` throws: catch that error alone, list the paths with `git diff --name-only --diff-filter=U`, and resolve each by reading both sides. A generated file, bundle or lockfile is regenerated from the resolved sources, never picked with `--ours` or `--theirs`.
54
+ - **Never push while a merge or rebase is in progress.** Before every push, `git status` shows no operation in progress and no unmerged paths, and the checks that passed ran on this exact HEAD.
55
+ - Never rewrite `main`, `master`, `dev` or a release branch. On your own pushed branch use `--force-with-lease`, never `--force`.
56
+ - Fixups: `git commit --fixup=<hash>`, then `GIT_SEQUENCE_EDITOR=: git rebase -i --autosquash <base>`. A rebase gone wrong: `git rebase --abort` first, reflog after.
57
+ - `reset --hard` and `clean` destroy uncommitted work: run them only in a tree whose `status` you just read.
58
+ - After a push, read the head back and hand it on in the same cell: `const sha = (await git(R, "ls-remote", "origin", `refs/heads/${branch}`)).slice(0, 40)`, then the `github` skill's `pr.wait({ repo, number, headSha: sha })` and `pr.merge({ matchHeadSha: sha })`. Never poll with `sleep`.
59
+
60
+ ## History questions
61
+
62
+ `log -S` (a string's count changed), `log -G` (a diff line matches), `blame -L a,b -- file`, `log --follow -- file`, `bisect` with a deterministic test and known good and bad commits, `reflog` for local movement. Answer with the commit hash, subject and path that prove it, and say what stays unproven.
@@ -0,0 +1,13 @@
1
+ interface:
2
+ display_name: "(OmO) git"
3
+ short_description: "Local git: commits, worktrees, base sync, push, history"
4
+ search_terms:
5
+ - "git"
6
+ - "git-master"
7
+ - "git commit"
8
+ - "git push"
9
+ - "worktree"
10
+ - "rebase"
11
+ - "git blame"
12
+ - "history search"
13
+ default_prompt: "Use $git to read the repository state, commit only the requested paths, keep worktrees and base syncs safe, and hand the pushed head SHA to the github skill."
@@ -0,0 +1,94 @@
1
+ ---
2
+ name: github
3
+ description: "MUST USE for ANY GitHub work - instead of the gh CLI, gh api, curl to api.github.com, or a browser. Pull requests (view, create, edit, review, comment, merge, checks, diff, files), waiting for CI, issues, Actions runs and failed-job logs, workflow dispatch, releases, search, raw REST/GraphQL, and repository setup (create a repo, description, topics, README, labels, secrets, rulesets and branch protection, workflow files), through a typed Bun SDK for eval cells plus a CLI and MCP. Local commits, rebases and history belong to the `git` skill. Triggers: GitHub, PR, pull request, issue, CI, checks, Actions, workflow run, release, gh, gh pr, gh api, gh run watch, gh repo create, gh secret set, 'is CI green', 'wait for CI', 'open a PR', 'merge the PR', 'why did the workflow fail', 'comment on the issue', 'make a new repo', 'protect the branch', 'set the topics'."
4
+ ---
5
+
6
+ # GitHub
7
+
8
+ Typed GitHub operations that replace `gh` subprocesses: trimmed JSON, pagination followed, failures carry a `kind`.
9
+
10
+ Replace `<skill-root>` with this skill's own directory.
11
+
12
+ ```js
13
+ const { client, surface } = await import("<skill-root>/scripts/sdk.ts")
14
+ const pr = await client.pr.view({ repo: "owner/name", number: 123 })
15
+ ```
16
+
17
+ ## Rules
18
+
19
+ 1. **PASS `repo: "owner/name"` IN EVERY EVAL-CELL CALL.** When omitted it falls back to the git origin of the process cwd, and an eval kernel's cwd is rarely the repo you mean.
20
+ 2. **NEVER READ `scripts/src` TO LEARN AN OPERATION.** Its inputs are one expression away: `surface.ops.issue.list.input.json` (JSON Schema) and `.description`. Results are plain JSON, and most lists come wrapped (`{ repo, items }`, `{ repo, runs }`), so print one before indexing it.
21
+ 3. **NEVER MERGE WITHOUT `matchHeadSha`.** Read `pr.view` (`mergeState`, `reviewDecision`, `headSha`) and `pr.checks`, then call `pr.merge({ matchHeadSha })`. A head that moved after you verified it then refuses with kind `conflict` instead of landing commits nobody checked.
22
+ 4. **NEVER POLL CHECKS OR SLEEP FOR CI.** Use `await client.pr.wait(...)` or `run.wait(...)` for waits under about 4 minutes. A longer wait runs as a `tool.monitor` command: **READ [references/waiting.md](references/waiting.md) BEFORE ARMING ONE.**
23
+ 5. **A WRITE THAT FAILS WITH `server` OR `network` MAY HAVE LANDED.** Writes are never retried for you. Read the target back (`issue.view({ comments: 3 })`, `pr.view`) before sending it again, or you post it twice.
24
+ 6. **BEFORE CREATING OR CONFIGURING A REPO, READ THE REFERENCE FOR THAT STEP.** Creating one, description, topics, README, merge options, labels, secrets: [references/repo-setup.md](references/repo-setup.md). Rulesets and branch protection: [references/branch-rules.md](references/branch-rules.md). Workflow files and action pins: [references/workflows.md](references/workflows.md).
25
+ 7. **CHANGE REPO SETTINGS ONLY WHERE THE TASK OWNS THE REPO.** Visibility, rulesets, secrets, Actions and merge options on a shared repo are the owner's call: read and report, write on their word.
26
+ 8. **PR BODY SCREENSHOTS GO THROUGH GITHUB USER ATTACHMENTS ONLY.** Never commit temporary images, never use Releases or an external host: [references/evidence-attachments.md](references/evidence-attachments.md).
27
+
28
+ ## Pull requests, issues, runs
29
+
30
+ | gh habit | Operation | What to know |
31
+ |---|---|---|
32
+ | `gh pr view` | `pr.view` | `state`, `draft`, `merged`, `mergeable`, `mergeState`, `reviewDecision`, `headSha`, `checks` (rollup), `closes`; `comments: N` adds the latest N; `body: false` trims |
33
+ | `gh pr checks` | `pr.checks` | each check has `bucket` (pass, fail, pending, skipping, cancel), `required`, `runId`; plus `counts`; `only: ["fail"]` filters |
34
+ | `gh pr checks --watch` | `pr.wait` | returns `verdict` pass, fail, timeout, no_checks or head_moved |
35
+ | `gh pr list`, `gh pr status` | `pr.list`, `pr.status` | `state: "merged"`, `author`, `label` and `search` go through search; those items have no head/base |
36
+ | `gh pr diff` | `pr.files`, `pr.diff` | read `files` first; `diff` is capped by `maxBytes` |
37
+ | `gh pr create / edit / comment / ready / close / reopen` | `pr.create` `pr.edit` `pr.comment` `pr.ready` `pr.close` | `comment.editId` replaces a comment; `ready.undo` turns it back into a draft; reopen is `edit({ state: "open" })` |
38
+ | `gh pr review / update-branch / revert / lock / unlock` | `pr.review` `pr.updateBranch` `pr.revert` `pr.lock` `pr.unlock` | `review.comments` puts comments on lines of the diff; `updateBranch.expectedHeadSha` refuses a moved head with kind `conflict` |
39
+ | review feedback (gh has no command) | `pr.reviews` `pr.replyToThread` `pr.resolveThread` `pr.dismissReview` | `reviews` returns review bodies and line threads with `resolved` and `outdated`; `unresolvedOnly: true` is the list still to handle; reply first, then resolve |
40
+ | `gh pr checkout` | `pr.checkout` | runs git in the `dir` you pass |
41
+ | `gh pr merge` | `pr.merge` | rule 3; default `method: "merge"`; `auto: true` enables auto-merge |
42
+ | `gh issue view / list / status / create / edit / comment / close / reopen` | `issue.view` `issue.list` `issue.status` `issue.create` `issue.edit` `issue.comment` `issue.close` | `list` excludes PRs and sorts by update; `close` takes `reason` and a `comment`; reopen is `edit({ state: "open" })` |
43
+ | `gh issue pin / unpin / lock / unlock / transfer / develop / delete` | `issue.pin` `issue.unpin` `issue.lock` `issue.unlock` `issue.transfer` `issue.develop` `issue.delete` | `develop` lists or creates a linked branch; `delete` cannot be undone |
44
+ | `gh run list / view` | `run.list` `run.view` | filter by `workflow`, `branch`, `sha`, `status`; `view` names the failed steps |
45
+ | `gh run view --log-failed` | `run.logs` | failed jobs only; the raw tail is runner cleanup, so pass `grep: "##\\[error\\]"` to get the cause |
46
+ | `gh run watch` | `run.wait` | returns the conclusion with failed jobs and steps |
47
+ | `gh run rerun / cancel / delete / download` | `run.rerun` `run.cancel` `run.delete` `run.download` | cancel only runs you started; `download` unpacks artifacts into `dir` |
48
+ | `gh workflow run / list / view / enable / disable` | `run.dispatch` `workflow.list` `workflow.view` `workflow.enable` `workflow.disable` | |
49
+ | `gh cache list / delete` | `cache.list` `cache.delete` | |
50
+
51
+ ## Repositories and everything else
52
+
53
+ | gh habit | Operation | What to know |
54
+ |---|---|---|
55
+ | `gh repo view / list` | `repo.view` `repo.list` | |
56
+ | `gh repo create / edit / rename / archive / unarchive / fork / sync` | `repo.create` `repo.edit` `repo.rename` `repo.archive` `repo.unarchive` `repo.fork` `repo.sync` | rules 6 and 7; `create` and `fork` are API-only, with no clone or push; `edit` takes `addTopics` / `removeTopics` |
57
+ | `gh repo delete` | `repo.delete` | cannot be undone; `confirm` must equal `owner/name`; needs the `delete_repo` scope |
58
+ | `gh repo read-file / read-dir`, `gh browse -n`, `gh repo clone` | `repo.readFile` `repo.readDir` `repo.url` `repo.clone` | `clone` runs git into the `dir` you pass |
59
+ | `gh repo autolink / deploy-key / gitignore / license` | `repo.autolink.*` `repo.deployKey.*` `repo.gitignore.*` `repo.license.*` | |
60
+ | `gh ruleset list / view / check` | `ruleset.list` `ruleset.view` `ruleset.check` | plus `ruleset.create` `ruleset.edit` `ruleset.delete` and `branchProtection.view` `.set` `.delete`, which gh lacks |
61
+ | `gh release list / view` | `release.list` `release.view` | no `tag` means the latest |
62
+ | `gh release create / edit / upload / download / delete / delete-asset` | `release.create` `release.edit` `release.upload` `release.download` `release.delete` `release.deleteAsset` | `files` is a list of `{ path }` for local files |
63
+ | `gh label list / create / edit / delete / clone` | `label.*` | |
64
+ | `gh secret list / set / delete` | `secret.*` | `env`, `org` or `user` scope; the value is sealed on this machine and never returned; never type it into cell code, and on the CLI it is taken only through `--input <file|->`, never as a flag |
65
+ | `gh variable list / get / set / delete` | `variable.*` | |
66
+ | `gh gist *` | `gist.list` `gist.view` `gist.create` `gist.edit` `gist.rename` `gist.delete` `gist.clone` | |
67
+ | `gh project *` | `project.*` | addressed by `owner` and `number`; needs the `project` scope |
68
+ | `gh discussion *` | `discussion.*` | |
69
+ | `gh codespace list / view / create / edit / stop / delete` | `codespace.*` | needs the `codespace` scope |
70
+ | `gh ssh-key *`, `gh gpg-key *` | `sshKey.*` `gpgKey.*` | writes need `admin:public_key` / `admin:gpg_key` |
71
+ | `gh attestation download` | `attestation.list` | fetches attestations; it does not verify them |
72
+ | `gh search issues / prs / code / repos / commits` | `search.issues` `search.code` `search.repos` `search.commits` | `search.issues` takes `type: "pr"` or `"issue"` |
73
+ | `gh status`, `gh org list`, `gh auth status` | `status` `org.list` `auth.status` | `auth.status` shows the login, the token's scopes and where the token came from, never the token |
74
+ | `gh api`, `gh api graphql`, `gh api rate_limit` | `api.rest` `api.graphql` `api.rate` | only when no typed operation fits; `api.rest` takes `paginate` and `key` for wrapped lists |
75
+
76
+ **No operation, by design:** `gh auth login/logout/refresh/switch/setup-git/token`, `alias`, `completion`, `config`, `extension`, `repo set-default`, `skill`, `copilot`, `agent-task`, the interactive `codespace ssh/cp/code/jupyter/ports/logs/rebuild`, and the Sigstore checks (`attestation verify`, `release verify`, `release verify-asset`). Those run on the gh CLI itself.
77
+
78
+ ## Errors
79
+
80
+ Every failure is a `SurfaceError` with a `kind` and a `hint`. Branch on `kind`, never on message text.
81
+
82
+ - `conflict`: not mergeable, or the head moved. Re-read `pr.view`; **DO NOT RETRY**.
83
+ - `not_found`: also what a private repo answers when the token cannot see it.
84
+ - `forbidden`: the token lacks a scope (`auth.status` lists them), or the plan does not offer the feature.
85
+ - `rate_limited`: the hint gives the reset time. Waits of 60 s or less already happen for you.
86
+ - `usage`: the input failed its schema and nothing was sent.
87
+ - `git`: a local git command that an operation ran (`pr.checkout`, `repo.clone`) exited non-zero.
88
+
89
+ ## Other surfaces
90
+
91
+ - Auth needs no setup: `GH_TOKEN`, then `GITHUB_TOKEN`, then the existing gh login. With one of the two variables set, nothing here needs the gh CLI installed: `repo.clone`, `pr.checkout` and `gist.clone` hand the same token to git through the child's environment, never through argv, the remote URL or `.git/config`.
92
+ - A token kept elsewhere (a vault, a secret manager): `createClient({ token: () => Promise.resolve(value) })` from `sdk.ts` uses that provider instead, with no gh and no token variable needed, and `auth.status` reports it as `injected`. The transport calls the provider on every request, so memoize it rather than reading the vault each time.
93
+ - Shell: `bun <skill-root>/scripts/cli.ts pr checks --repo o/n --number 123`, with `--help` at any level.
94
+ - MCP: `cli.ts mcp` (stdio); `--read-only` drops every writer. `--http` serves loopback only and needs `--token-env NAME`: every request must carry that bearer token.
@@ -0,0 +1,2 @@
1
+ interface:
2
+ display_name: "(OmO) github"
@@ -0,0 +1,129 @@
1
+ # Branch rules
2
+
3
+ Rulesets and classic branch protection: the setups in use across a set of working repositories, how to read and set them, and what goes wrong. Measured on 2026-11-26; read the live state before copying a value.
4
+
5
+ ## Rules
6
+
7
+ 1. **SET RULES AFTER THE WORKFLOWS HAVE RUN ONCE.** A required check that no workflow reports blocks every merge with `base branch policy prohibits the merge`. Take the names from a real `pr.checks` result, never from the YAML by eye.
8
+ 2. **READ BEFORE YOU WRITE.** `ruleset.list`, `ruleset.check` and `branchProtection.view` show what already applies, including rules inherited from the organization.
9
+ 3. **ONE MECHANISM PER BRANCH.** A branch under classic protection keeps it; a branch with none gets a ruleset. Both at once means two places to update and two answers to "why is this blocked".
10
+ 4. **A 403 THAT SAYS `Upgrade to GitHub Pro or make this repository public` IS THE PLAN, NOT A BUG.** Private repos in an organization on the free plan cannot have rulesets or protection. Say so, and keep the gate in CI and in the merge process.
11
+ 5. **TURN A RULE OFF BEFORE DELETING IT.** `ruleset.edit({ id, enforcement: "disabled" })` is undone in one call; a deleted ruleset has to be rebuilt.
12
+
13
+ ## Setups in use
14
+
15
+ | Kind of repo | Mechanism | Rules |
16
+ |---|---|---|
17
+ | A public two-branch product (integration `dev`, release `master`) | two rulesets | `master`: no deletion, no force push. `dev`: 13 required status checks, not strict. Admins and one GitHub App bypass. |
18
+ | A public product on one branch (`dev`) | classic protection | Checks `Check`, `API e2e`, `Web e2e`, strict. Pull request required with 0 approvals, stale reviews dismissed. Linear history, conversations resolved, no force push, no deletion. Admins not enforced. |
19
+ | A private personal service | classic protection | Pull request required with 0 approvals, linear history, no required checks. |
20
+ | Small tools, libraries and skills | none | The merge process is the gate. |
21
+ | Private repos in a free-plan organization | not available | 403: rule 4. |
22
+
23
+ ## Read
24
+
25
+ ```js
26
+ await client.ruleset.list({ repo, parents: true })
27
+ await client.ruleset.view({ repo, id })
28
+ await client.ruleset.check({ repo, branch: "dev" }) // every rule that applies to this branch
29
+ await client.branchProtection.view({ repo, branch: "dev" }) // { protected: false } when there is none
30
+ ```
31
+
32
+ ## Set: a ruleset
33
+
34
+ Trunk repo, default branch only:
35
+
36
+ ```js
37
+ await client.ruleset.create({
38
+ repo,
39
+ name: "Protect the default branch",
40
+ target: "branch",
41
+ enforcement: "active",
42
+ include: ["~DEFAULT_BRANCH"],
43
+ rules: [
44
+ { type: "deletion" },
45
+ { type: "non_fast_forward" },
46
+ { type: "pull_request", parameters: {
47
+ required_approving_review_count: 0,
48
+ dismiss_stale_reviews_on_push: true,
49
+ require_code_owner_review: false,
50
+ require_last_push_approval: false,
51
+ required_review_thread_resolution: true,
52
+ } },
53
+ { type: "required_status_checks", parameters: {
54
+ strict_required_status_checks_policy: false,
55
+ required_status_checks: [{ context: "Check", integration_id: 15368 }],
56
+ } },
57
+ ],
58
+ })
59
+ ```
60
+
61
+ Two-branch repo: one ruleset per job.
62
+
63
+ ```js
64
+ await client.ruleset.create({
65
+ repo, name: "Protect the release branch", target: "branch", enforcement: "active",
66
+ include: ["refs/heads/master"],
67
+ rules: [{ type: "deletion" }, { type: "non_fast_forward" }],
68
+ })
69
+ await client.ruleset.create({
70
+ repo, name: "Require passing CI on dev", target: "branch", enforcement: "active",
71
+ include: ["refs/heads/dev"],
72
+ bypassActors: [{ actorId: 5, actorType: "RepositoryRole", bypassMode: "always" }],
73
+ rules: [{ type: "required_status_checks", parameters: {
74
+ strict_required_status_checks_policy: false,
75
+ required_status_checks: [{ context: "typecheck" }, { context: "build" }, { context: "test (ubuntu-latest, 1/2)", integration_id: 15368 }],
76
+ } }],
77
+ })
78
+ ```
79
+
80
+ - `rules` are GitHub's own rule objects, passed through as written. `include` takes `~DEFAULT_BRANCH`, `~ALL` or `refs/heads/<pattern>`.
81
+ - `integration_id: 15368` is GitHub Actions. With it, only a check reported by Actions satisfies the rule.
82
+ - `actorId: 5` with `RepositoryRole` is the repo admin role.
83
+ - **The Actions token cannot be a bypass actor.** A release workflow that pushes a version bump to a protected branch pushes with a write deploy key listed as `{ actorType: "DeployKey", bypassMode: "always" }`, or as a GitHub App listed as `Integration`.
84
+
85
+ ## Set: classic protection
86
+
87
+ Only for a branch that is already on it. A strict setup on `dev`:
88
+
89
+ ```js
90
+ await client.branchProtection.set({
91
+ repo, branch: "dev",
92
+ requiredChecks: {
93
+ strict: true,
94
+ checks: ["Check", "API e2e", "Web e2e"].map((context) => ({ context, appId: 15368 })),
95
+ },
96
+ requiredApprovingReviewCount: 0,
97
+ dismissStaleReviews: true,
98
+ requiredLinearHistory: true,
99
+ requiredConversationResolution: true,
100
+ enforceAdmins: false,
101
+ allowForcePushes: false,
102
+ allowDeletions: false,
103
+ })
104
+ ```
105
+
106
+ The call replaces the whole protection: a setting you leave out is turned off, so start from `branchProtection.view` and change one field.
107
+
108
+ ## Required checks: where it breaks
109
+
110
+ - **The context is the job's name.** A job `name:` becomes the context; a matrix adds its values (`test (ubuntu-latest, 1/2)`). Renaming a job or changing the matrix makes the old context never report, and every pull request waits forever. Change the rule in the same pull request, or require one aggregate job that depends on the rest.
111
+ - **A workflow that does not trigger leaves its contexts missing.** Branch filters, `paths:` filters and event `types:` all do this. A stacked pull request retargeted to the base branch fires `edited`, which a workflow listening for `opened, synchronize, reopened` ignores: 12 of 13 required contexts were missing on one such pull request until a new push. Workflows that feed required checks run on every pull request.
112
+ - **Strict means every merge stales the others.** With `strict: true` a merge to the base makes every other open pull request `BEHIND` until it merges the base in. Take it only when the repo's merge rate can afford that.
113
+ - **Linear history and merge commits exclude each other.** Check the repo's merge options ([repo-setup.md](repo-setup.md)) before requiring linear history.
114
+ - **Admins pass unless enforced.** With admins not enforced, an admin token merges a blocked pull request. That is a property of the token, not evidence the checks passed: read `pr.checks` before merging.
115
+
116
+ ## Verify
117
+
118
+ ```js
119
+ await client.ruleset.check({ repo, branch: "main" })
120
+ const pr = await client.pr.view({ repo, number }) // mergeState BLOCKED until the checks pass
121
+ const checks = await client.pr.checks({ repo, number }) // required: true on the contexts the rule names
122
+ ```
123
+
124
+ Open a real pull request and read those two. A rule counts as working only after a pull request showed `BLOCKED` under it.
125
+
126
+ ## Next to the rules
127
+
128
+ - **What a rule cannot express lives in CI.** A two-branch repo can close pull requests that target the release branch with a workflow job that comments and fails.
129
+ - **Deployment environments have their own branch policy.** A `production` environment can accept deployments from one branch only. There is no typed operation for environments; use `api.rest` on `repos/<owner>/<name>/environments/<env>` and its `deployment-branch-policies`.
@@ -0,0 +1,16 @@
1
+ # PR body evidence attachments
2
+
3
+ When a PR body needs screenshots or terminal PNGs, host them as GitHub user attachments. Never commit temporary images, never use GitHub Releases for PR evidence, and never use external image hosts.
4
+
5
+ Uploading needs an authenticated GitHub web session (drive it with the `browser` skill); an API token alone is not enough. No token, cookie, form field or upload header may reach tool output, so the whole upload runs inside ONE in-page script that returns only the final asset URL:
6
+
7
+ 1. Open the target PR or issue page in the signed-in session.
8
+ 2. Run one page-context script that takes the image bytes (base64) plus file name and content type, and inside the page:
9
+ - reads the page's file-attachment CSRF token and repository id from the DOM,
10
+ - `POST https://github.com/upload/policies/assets` (`repository_id`, `name`, `size`, `content_type`, the token as `authenticity_token`),
11
+ - uploads the bytes to the returned S3 URL with the returned form fields exactly as given,
12
+ - `PUT https://github.com/upload/assets/:id` with the returned `asset_upload_authenticity_token`,
13
+ - returns only the `https://github.com/user-attachments/assets/<uuid>` URL (or an error string without any header, token or form value).
14
+ 3. Put that URL in the PR body through `pr.edit` (read the body back with `pr.view` first so the edit keeps everything else).
15
+
16
+ Never split these steps across calls, never print an intermediate response, and never log the script's inputs beyond the file name. If no authenticated browser session is available, leave the local evidence paths in the PR body and state the blocker.
@@ -0,0 +1,152 @@
1
+ # Setting up a repository
2
+
3
+ Creating a repo, then its description, topics, README, settings, labels and secrets. Workflows are in [workflows.md](workflows.md) and branch rules in [branch-rules.md](branch-rules.md). The tables record conventions measured across a set of working repositories on 2026-11-26; read the live state before copying a value.
4
+
5
+ ## Rules
6
+
7
+ 1. **CHANGE SETTINGS ONLY ON A REPO THE TASK OWNS.** On a shared repo, visibility, Actions permissions, rulesets, secrets and merge options are the owner's decision. Read them and report; change them on the owner's word.
8
+ 2. **READ, APPLY, READ BACK.** `repo.view` before, the write, `repo.view` after. Report the fields that changed.
9
+ 3. **NEW REPOS ARE PRIVATE.** Making one public needs the owner's word: forks and caches keep what was pushed.
10
+ 4. **BRANCH RULES GO LAST.** A rule names the checks the workflows report, so the workflows run once first.
11
+ 5. **A SECRET VALUE NEVER APPEARS IN CELL CODE, ARGV OR OUTPUT.** Read it from the secret store in-process and hand it straight to `secret.set`.
12
+
13
+ ## Order
14
+
15
+ | Step | Operation |
16
+ |---|---|
17
+ | 1. Create | `repo.create` |
18
+ | 2. First push | git: `git remote add origin https://github.com/<owner>/<name>.git`, `git push -u origin <branch>` |
19
+ | 3. Description, homepage, topics | `repo.edit` |
20
+ | 4. README and community files | committed to the repo |
21
+ | 5. Merge options and features | `repo.edit` |
22
+ | 6. Labels | `label.clone` or `label.create` |
23
+ | 7. Secrets and variables | `secret.set`, `variable.set` |
24
+ | 8. Workflows | [workflows.md](workflows.md) |
25
+ | 9. Branch rules | [branch-rules.md](branch-rules.md) |
26
+
27
+ ## Create
28
+
29
+ ```js
30
+ const made = await client.repo.create({
31
+ name: "my-tool",
32
+ owner: "acme-labs", // omit for the authenticated user
33
+ visibility: "private",
34
+ description: "One sentence that says what this is",
35
+ })
36
+ ```
37
+
38
+ - `repo.create` only calls the API. Cloning, adding a remote and the first push are git's job.
39
+ - A repo with no commit has no default branch. The first branch pushed becomes the default.
40
+ - `addReadme: true` makes the first commit on the account's default branch name, which is `master` on some accounts. Read `defaultBranch` from the result; never assume `main`.
41
+ - A two-branch repo (integration on `dev`, releases on `master` or `main`) points the default at the integration branch once both exist: `repo.edit({ repo, defaultBranch: "dev" })`.
42
+ - From a template: `template: "owner/name"`.
43
+ - A throwaway repo says so where the next reader looks: a dated name and a description like `Throwaway probe for a CLA workflow change. Safe to delete.` Archive it when done (`repo.archive`). `repo.delete` needs the `delete_repo` scope, which the default token does not carry.
44
+
45
+ ## Description, homepage, topics
46
+
47
+ ```js
48
+ await client.repo.edit({
49
+ repo,
50
+ description: "Tidepool: one terminal for all your machines.",
51
+ homepage: "https://tidepool.example",
52
+ addTopics: ["terminal", "bun", "typescript"],
53
+ removeTopics: ["old-name"],
54
+ })
55
+ ```
56
+
57
+ | Kind of repo | Description shape | Homepage | Topics |
58
+ |---|---|---|---|
59
+ | A small public tool with its own site | a bare tagline: `Encrypted notes for your agents` | the site | none |
60
+ | A public library | name, colon, tagline: `corekit: process supervision for agents` | a docs page | none |
61
+ | A public product | name, colon, tagline, then one sentence of what it does: `Tidepool: one terminal for all your machines. Every machine you own, linked through ...` | the product site | 15: `ai-agents` `coding-agents` `terminal` `e2ee` `relay` `pwa` `bun` `typescript` `react` `electron` `hono` `cloudflare-workers` ... |
62
+ | A skill or plugin | what it runs and as what, then who it is for: `Run <tool> as a background subagent of <host>: ...` | none | 8: the host's name, the tool's name, `bun` `subagent` `typescript` ... |
63
+ | A private service | what it is and where it runs: `Messages API gateway on Cloudflare Workers: ...` | none | 7: `api-gateway` `bun` `cloudflare-workers` `hono` `load-balancer` `typescript` ... |
64
+
65
+ | Field | Convention |
66
+ |---|---|
67
+ | Description | One sentence a stranger understands. Lead with the name and a colon when the name does not explain itself. GitHub cuts it at 350 characters, and cards and search show far less, so the first clause carries the meaning. A mirror or copy says what it mirrors (`Private mirror of owner/name`). |
68
+ | Homepage | The product's own site when it has one. Otherwise empty. |
69
+ | Topics | Lowercase with hyphens, at most 20, 50 characters each. They mix three kinds: what it is for (`terminal`, `ai-agents`), what it is built on (`bun`, `hono`, `cloudflare-workers`) and the product family it belongs to. Public repos carry 7 to 15. Most private repos carry none. |
70
+
71
+ **The social preview image has no API.** Commit a 1280x640 PNG (for example at `.github/assets/social-preview.png`); a person uploads it in Settings. Call it set only after the repo page's `og:image` shows it.
72
+
73
+ ## README and community files
74
+
75
+ Read one without cloning: `repo.readFile({ repo, path: "README.md" })`.
76
+
77
+ **A library, SDK or skill repo:**
78
+
79
+ 1. `# name`, then one paragraph: what it does and for whom.
80
+ 2. Badges only for facts a reader checks: npm version, license.
81
+ 3. `## Install`: requirements, then the exact commands.
82
+ 4. `## Example` or `## Quickstart`: a snippet that runs as written.
83
+ 5. `## Documentation`: links into `docs/` or `references/`.
84
+
85
+ **A product repo:**
86
+
87
+ 1. A centered mark in a `<picture>` with dark and light sources, the name, a one-line tagline.
88
+ 2. A row of links: site, install, the main sections, CONTRIBUTING.
89
+ 3. Badges: the CI workflow on the default branch, latest release, license.
90
+ 4. One screenshot of the real product, dark and light, with alt text that describes what is on screen.
91
+ 5. Translations as `README.<lang>.md`, linked in one row under the title.
92
+
93
+ Every command in a README is one that was run. Images are committed and linked by relative path.
94
+
95
+ | File | Which repos carry it |
96
+ |---|---|
97
+ | `AGENTS.md` | nearly all: the rules an agent follows in this repo |
98
+ | `LICENSE` | every public repo |
99
+ | `CONTRIBUTING.md`, `SECURITY.md` | public product repos |
100
+ | `CLA.md` with a CLA workflow | repos that take outside pull requests |
101
+ | `CHANGELOG.md` or `changes/` fragments with a changelog check | repos that ship releases |
102
+ | `.github/PULL_REQUEST_TEMPLATE.md`, `.github/CODEOWNERS` | repos with more than one contributor |
103
+
104
+ ## Merge options and features
105
+
106
+ A new repo allows all three merge methods and keeps merged branches. Decide once and set it:
107
+
108
+ ```js
109
+ await client.repo.edit({
110
+ repo,
111
+ allowMergeCommit: true,
112
+ allowSquashMerge: false,
113
+ allowRebaseMerge: false,
114
+ deleteBranchOnMerge: true,
115
+ enableAutoMerge: true,
116
+ enableWiki: false,
117
+ })
118
+ ```
119
+
120
+ | Kind of repo | Merge commit | Squash | Rebase | Auto-merge | Delete branch on merge |
121
+ |---|---|---|---|---|---|
122
+ | Merge-commit repos (a two-branch product, a backend service) | yes | no | no | yes | yes |
123
+ | A linear-history product repo | no | yes | yes | yes | yes |
124
+ | A rebase-only service repo | no | no | yes | no | yes |
125
+ | Repos left at defaults (small tools, libraries, skills) | yes | yes | yes | no | no |
126
+
127
+ - The merge method and the branch rule must agree: required linear history refuses every merge commit, so a merge-commit repo never sets it.
128
+ - **Delete-branch-on-merge can close stacked pull requests.** Merging a parent deletes its branch, and an open child that targets it may be closed instead of retargeted. Retarget the children first (`pr.edit({ base })`).
129
+ - Wikis and Projects are off where the docs live in the repo. Discussions are on only where a community asks questions in the repo.
130
+ - Secret scanning and push protection are on for every public repo.
131
+
132
+ ## Labels
133
+
134
+ ```js
135
+ await client.label.clone({ repo, source: "acme-labs/tidepool" })
136
+ await client.label.create({ repo, name: "no-changelog", color: "ededed", description: "Tooling-only change" })
137
+ ```
138
+
139
+ A full set for a product repo: `area:<part>`, `priority:p0` to `priority:p2`, `needs-repro`, `needs owner`, `no-changelog`, on top of GitHub's defaults. Create a label a workflow reads (`no-changelog`, `deploy-staging`) before the workflow that reads it.
140
+
141
+ ## Secrets and variables
142
+
143
+ ```js
144
+ const value = await readSecret("cloudflare/api-token") // your secret store, read in this process
145
+ await client.secret.set({ repo, name: "CLOUDFLARE_API_TOKEN", value })
146
+ await client.variable.set({ repo, name: "DEPLOY_ENV", value: "staging" })
147
+ ```
148
+
149
+ - `secret.set` seals the value on this machine with the repo's public key; GitHub never returns it. `secret.list` shows names and update times only.
150
+ - Pass `env: "production"` to scope a secret or variable to a deployment environment. **An environment secret wins over a repo secret of the same name**, so a green deploy does not prove which one was read until the repo-level one is deleted.
151
+ - Publishing to npm needs no stored token: use OIDC trusted publishing ([workflows.md](workflows.md)).
152
+ - Prefer a variable for anything that is not secret; its value stays readable.
@@ -0,0 +1,52 @@
1
+ # Waiting for CI and workflow runs
2
+
3
+ **SUBSCRIBE TO THE END STATE AND KEEP WORKING.** Never use `gh pr checks --watch`, `gh run watch`, a `while sleep` loop, one fixed sleep followed by a single check, or repeated `pr.checks` calls. Each of those either holds a foreground tool call or guesses when CI ends.
4
+
5
+ ## Pick the shape by how long the wait can run
6
+
7
+ **Under about 4 minutes: await it in the eval cell.**
8
+
9
+ ```js
10
+ const res = await client.pr.wait({ repo: "o/n", number: 42, headSha, timeoutMinutes: 4 })
11
+ ```
12
+
13
+ A cell is killed at 300 s of its own execution, so keep `timeoutMinutes` at 4 or less. Past about 30 s the cell detaches and its result arrives as a notification.
14
+
15
+ **Longer (full CI, release workflows): a command monitor.** The command writes the JSON to a file and prints one sentinel line. That line is the event that wakes you. Replace `<skill-root>` with this skill's own directory, as in SKILL.md; the result file goes in a fresh temp directory.
16
+
17
+ ```js
18
+ const { mkdtemp } = await import("node:fs/promises")
19
+ const { tmpdir } = await import("node:os")
20
+ const out = `${await mkdtemp(`${tmpdir()}/pr-42-wait-`)}/result.json`
21
+ await tool.monitor({
22
+ description: "PR 42 checks settle",
23
+ command: `bun "<skill-root>/scripts/cli.ts" pr wait --repo o/n --number 42 --head-sha ${headSha} --timeout-minutes 90 > "${out}"; ` +
24
+ `printf 'CI_SETTLED %s\\n' "$(bun -e 'console.log((await Bun.file(process.argv.at(-1)).json()).verdict)' "${out}")"`,
25
+ filter: "^CI_SETTLED ",
26
+ timeout_ms: 100 * 60_000,
27
+ })
28
+ ```
29
+
30
+ - **SET `timeout_ms` ABOVE `--timeout-minutes`.** The monitor's deadline kills the command, and a killed wait reports nothing. A wait that times out by itself still writes its evidence.
31
+ - Keep working on whatever does not depend on the result. When `CI_SETTLED <verdict>` arrives, read the file for `failing` (name, state, `runId`, url), `pending` and `headSha`.
32
+ - For a run id, use `cli.ts run wait --repo o/n --run-id <id>` with the same sentinel. It returns `verdict`, `run` and `failedJobs` with their failed steps.
33
+ - A wait that must survive a session restart takes `persistent: true`.
34
+
35
+ **From an MCP client:** `pr_wait` and `run_wait` block for the whole wait, so give the call a timeout above `timeoutMinutes`.
36
+
37
+ ## Inputs that decide the result
38
+
39
+ - **PASS `headSha` WHENEVER THE WAIT GUARDS A MERGE.** Take it from the `pr.view` you verified, or from `git rev-parse HEAD` right after your own push. A fresh push takes a few seconds to show on the PR, so a mismatch counts as still starting for `graceSeconds` (default 120). A head that still differs after that returns `head_moved`, instead of green checks for a commit you never looked at.
40
+ - **RUN ONE WAIT PER PR AT A TIME.** Each `pr.wait` poll is one GraphQL call against a shared budget.
41
+ - Defaults: poll every 30 s (minimum 10), `timeoutMinutes` 60, and `failFast` true because one red check already decides a merge. Zero checks count as still starting for `graceSeconds`, then return `no_checks`.
42
+ - `run.wait` needs a run id. Get it from `pr.checks[].runId`, or from `run.list` after a `run.dispatch`.
43
+
44
+ ## After the verdict
45
+
46
+ | Verdict | Next step |
47
+ |---|---|
48
+ | `pass` | `pr.merge({ matchHeadSha: res.headSha })`. A head that moved since then refuses with kind `conflict`. |
49
+ | `fail` | `run.logs({ runId: res.failing[i].runId, grep: "##\\[error\\]" })` shows the cause. Fix it at the root, push, then arm a new wait on the new head. |
50
+ | `head_moved` | Someone pushed. Re-read `pr.view`, verify again, and wait on the new `headSha`. |
51
+ | `no_checks` | **DO NOT MERGE ON AN EMPTY ROLLUP.** Check that the workflows trigger for this branch or event with `run.list({ sha })`. |
52
+ | `timeout` | Read `pending` to see which checks hang, then `run.view` them. **DO NOT RE-TRIGGER CI** to make it move: no label toggles, no close/reopen, no empty commits. |