@openhands/extensions 0.21.0 → 0.22.1

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 (267) hide show
  1. package/.claude-plugin/marketplace.json +881 -0
  2. package/.codex-plugin/marketplace.json +881 -0
  3. package/.github/workflows/npm-publish.yml +9 -3
  4. package/.plugin/marketplace.json +881 -0
  5. package/.release-please-manifest.json +1 -1
  6. package/README.md +3 -2
  7. package/automations/bundle-index.js +16 -7
  8. package/automations/catalog/github-delivery-watchdog/manifest.json +79 -0
  9. package/automations/catalog/github-issue-to-pr/manifest.json +23 -15
  10. package/automations/catalog/github-issue-triage/manifest.json +4 -3
  11. package/automations/catalog/github-pr-reviewer/manifest.json +22 -15
  12. package/automations/catalog-index.js +6 -4
  13. package/marketplaces/openhands-extensions.json +6 -0
  14. package/package.json +1 -1
  15. package/plugins/city-weather/.claude-plugin/plugin.json +13 -0
  16. package/plugins/city-weather/.codex-plugin/plugin.json +13 -0
  17. package/plugins/cobol-modernization/.claude-plugin/plugin.json +19 -0
  18. package/plugins/cobol-modernization/.codex-plugin/plugin.json +19 -0
  19. package/plugins/issue-duplicate-checker/.claude-plugin/plugin.json +13 -0
  20. package/plugins/issue-duplicate-checker/.codex-plugin/plugin.json +13 -0
  21. package/plugins/magic-test/.claude-plugin/plugin.json +13 -0
  22. package/plugins/magic-test/.codex-plugin/plugin.json +13 -0
  23. package/plugins/migration-scoring/.claude-plugin/plugin.json +19 -0
  24. package/plugins/migration-scoring/.codex-plugin/plugin.json +19 -0
  25. package/plugins/onboarding/.claude-plugin/plugin.json +20 -0
  26. package/plugins/onboarding/.codex-plugin/plugin.json +20 -0
  27. package/plugins/onboarding/skills/agent-readiness-report/references/criteria.md +144 -0
  28. package/plugins/onboarding/skills/improve-agent-readiness/references/criteria.md +144 -0
  29. package/plugins/openhands/.claude-plugin/plugin.json +13 -0
  30. package/plugins/openhands/.codex-plugin/plugin.json +13 -0
  31. package/plugins/openhands/skills/openhands-api/.claude-plugin/plugin.json +22 -0
  32. package/plugins/openhands/skills/openhands-api/.codex-plugin/plugin.json +22 -0
  33. package/plugins/openhands/skills/openhands-api/.plugin/plugin.json +22 -0
  34. package/plugins/openhands/skills/openhands-api/README.md +52 -0
  35. package/plugins/openhands/skills/openhands-api/SKILL.md +469 -0
  36. package/plugins/openhands/skills/openhands-api/references/README.md +33 -0
  37. package/plugins/openhands/skills/openhands-api/references/TROUBLESHOOTING.md +81 -0
  38. package/plugins/openhands/skills/openhands-api/references/example_prompt.md +12 -0
  39. package/plugins/openhands/skills/openhands-api/references/windows.md +44 -0
  40. package/plugins/openhands/skills/openhands-api/scripts/openhands_api.py +606 -0
  41. package/plugins/openhands/skills/openhands-api/scripts/openhands_api.ts +252 -0
  42. package/plugins/openhands/skills/openhands-automation/.claude-plugin/plugin.json +19 -0
  43. package/plugins/openhands/skills/openhands-automation/.codex-plugin/plugin.json +19 -0
  44. package/plugins/openhands/skills/openhands-automation/.plugin/plugin.json +19 -0
  45. package/plugins/openhands/skills/openhands-automation/README.md +89 -0
  46. package/plugins/openhands/skills/openhands-automation/SKILL.md +899 -0
  47. package/plugins/openhands/skills/openhands-automation/commands/automation-create.md +8 -0
  48. package/plugins/openhands/skills/openhands-automation/references/ab-testing.md +185 -0
  49. package/plugins/openhands/skills/openhands-automation/references/custom-automation.md +832 -0
  50. package/plugins/openhands/skills/openhands-automation/references/security.md +84 -0
  51. package/plugins/openhands/skills/openhands-automation/references/windows.md +57 -0
  52. package/plugins/openhands/skills/openhands-sdk/.claude-plugin/plugin.json +20 -0
  53. package/plugins/openhands/skills/openhands-sdk/.codex-plugin/plugin.json +20 -0
  54. package/plugins/openhands/skills/openhands-sdk/.plugin/plugin.json +20 -0
  55. package/plugins/openhands/skills/openhands-sdk/README.md +22 -0
  56. package/plugins/openhands/skills/openhands-sdk/SKILL.md +245 -0
  57. package/plugins/openhands/skills/openhands-sdk/commands/sdk.md +8 -0
  58. package/plugins/pr-review/.claude-plugin/plugin.json +13 -0
  59. package/plugins/pr-review/.codex-plugin/plugin.json +13 -0
  60. package/plugins/pr-review/skills/code-review/.claude-plugin/plugin.json +19 -0
  61. package/plugins/pr-review/skills/code-review/.codex-plugin/plugin.json +19 -0
  62. package/plugins/pr-review/skills/code-review/.plugin/plugin.json +19 -0
  63. package/plugins/pr-review/skills/code-review/README.md +18 -0
  64. package/plugins/pr-review/skills/code-review/SKILL.md +209 -0
  65. package/plugins/pr-review/skills/code-review/commands/codereview-roasted.md +8 -0
  66. package/plugins/pr-review/skills/code-review/commands/codereview.md +8 -0
  67. package/plugins/pr-review/skills/code-review/references/risk-evaluation.md +41 -0
  68. package/plugins/pr-review/skills/code-review/references/supply-chain-security.md +31 -0
  69. package/plugins/pr-review/skills/github-pr-review/.claude-plugin/plugin.json +18 -0
  70. package/plugins/pr-review/skills/github-pr-review/.codex-plugin/plugin.json +18 -0
  71. package/plugins/pr-review/skills/github-pr-review/.plugin/plugin.json +18 -0
  72. package/plugins/pr-review/skills/github-pr-review/README.md +145 -0
  73. package/plugins/pr-review/skills/github-pr-review/SKILL.md +187 -0
  74. package/plugins/pr-review/skills/github-pr-review/commands/github-pr-review.md +8 -0
  75. package/plugins/pr-review/skills/github-pr-review/references/windows.md +47 -0
  76. package/plugins/qa-changes/.claude-plugin/plugin.json +11 -0
  77. package/plugins/qa-changes/.codex-plugin/plugin.json +11 -0
  78. package/plugins/qa-changes/skills/github-pr-review/.claude-plugin/plugin.json +18 -0
  79. package/plugins/qa-changes/skills/github-pr-review/.codex-plugin/plugin.json +18 -0
  80. package/plugins/qa-changes/skills/github-pr-review/.plugin/plugin.json +18 -0
  81. package/plugins/qa-changes/skills/github-pr-review/README.md +145 -0
  82. package/plugins/qa-changes/skills/github-pr-review/SKILL.md +187 -0
  83. package/plugins/qa-changes/skills/github-pr-review/commands/github-pr-review.md +8 -0
  84. package/plugins/qa-changes/skills/github-pr-review/references/windows.md +47 -0
  85. package/plugins/qa-changes/skills/qa-changes/README.md +18 -0
  86. package/plugins/qa-changes/skills/qa-changes/SKILL.md +229 -0
  87. package/plugins/qa-changes/skills/qa-changes/commands/qa-changes.md +8 -0
  88. package/plugins/release-notes/.claude-plugin/plugin.json +19 -0
  89. package/plugins/release-notes/.codex-plugin/plugin.json +19 -0
  90. package/plugins/release-notes/skills/release-notes/README.md +24 -0
  91. package/plugins/release-notes/skills/release-notes/SKILL.md +19 -0
  92. package/plugins/release-notes/skills/release-notes/commands/release-notes.md +8 -0
  93. package/plugins/vulnerability-remediation/.claude-plugin/plugin.json +19 -0
  94. package/plugins/vulnerability-remediation/.codex-plugin/plugin.json +19 -0
  95. package/plugins/vulnerability-remediation/skills/github/.claude-plugin/plugin.json +19 -0
  96. package/plugins/vulnerability-remediation/skills/github/.codex-plugin/plugin.json +19 -0
  97. package/plugins/vulnerability-remediation/skills/github/.plugin/plugin.json +19 -0
  98. package/plugins/vulnerability-remediation/skills/github/README.md +42 -0
  99. package/plugins/vulnerability-remediation/skills/github/SKILL.md +107 -0
  100. package/plugins/vulnerability-remediation/skills/github/references/windows.md +48 -0
  101. package/plugins/vulnerability-remediation/skills/github/scripts/agent_conversation.py +150 -0
  102. package/plugins/vulnerability-remediation/skills/github/scripts/github_client.py +230 -0
  103. package/plugins/vulnerability-remediation/skills/security/.claude-plugin/plugin.json +18 -0
  104. package/plugins/vulnerability-remediation/skills/security/.codex-plugin/plugin.json +18 -0
  105. package/plugins/vulnerability-remediation/skills/security/.plugin/plugin.json +18 -0
  106. package/plugins/vulnerability-remediation/skills/security/README.md +38 -0
  107. package/plugins/vulnerability-remediation/skills/security/SKILL.md +33 -0
  108. package/pyproject.toml +1 -1
  109. package/python/openhands_extensions/_version.py +1 -1
  110. package/skills/add-javadoc/.claude-plugin/plugin.json +18 -0
  111. package/skills/add-javadoc/.codex-plugin/plugin.json +18 -0
  112. package/skills/add-skill/.claude-plugin/plugin.json +18 -0
  113. package/skills/add-skill/.codex-plugin/plugin.json +18 -0
  114. package/skills/agent-canvas-environment/.claude-plugin/plugin.json +19 -0
  115. package/skills/agent-canvas-environment/.codex-plugin/plugin.json +19 -0
  116. package/skills/agent-creator/.claude-plugin/plugin.json +20 -0
  117. package/skills/agent-creator/.codex-plugin/plugin.json +20 -0
  118. package/skills/agent-memory/.claude-plugin/plugin.json +18 -0
  119. package/skills/agent-memory/.codex-plugin/plugin.json +18 -0
  120. package/skills/agent-sdk-builder/.claude-plugin/plugin.json +18 -0
  121. package/skills/agent-sdk-builder/.codex-plugin/plugin.json +18 -0
  122. package/skills/azure-devops/.claude-plugin/plugin.json +18 -0
  123. package/skills/azure-devops/.codex-plugin/plugin.json +18 -0
  124. package/skills/bitbucket/.claude-plugin/plugin.json +17 -0
  125. package/skills/bitbucket/.codex-plugin/plugin.json +17 -0
  126. package/skills/bitbucket-cloud/.claude-plugin/plugin.json +18 -0
  127. package/skills/bitbucket-cloud/.codex-plugin/plugin.json +18 -0
  128. package/skills/bitbucket-data-center/.claude-plugin/plugin.json +19 -0
  129. package/skills/bitbucket-data-center/.codex-plugin/plugin.json +19 -0
  130. package/skills/code-review/.claude-plugin/plugin.json +19 -0
  131. package/skills/code-review/.codex-plugin/plugin.json +19 -0
  132. package/skills/code-simplifier/.claude-plugin/plugin.json +21 -0
  133. package/skills/code-simplifier/.codex-plugin/plugin.json +21 -0
  134. package/skills/datadog/.claude-plugin/plugin.json +19 -0
  135. package/skills/datadog/.codex-plugin/plugin.json +19 -0
  136. package/skills/deno/.claude-plugin/plugin.json +18 -0
  137. package/skills/deno/.codex-plugin/plugin.json +18 -0
  138. package/skills/discord/.claude-plugin/plugin.json +18 -0
  139. package/skills/discord/.codex-plugin/plugin.json +18 -0
  140. package/skills/docker/.claude-plugin/plugin.json +17 -0
  141. package/skills/docker/.codex-plugin/plugin.json +17 -0
  142. package/skills/evidence-based-citations/.claude-plugin/plugin.json +20 -0
  143. package/skills/evidence-based-citations/.codex-plugin/plugin.json +20 -0
  144. package/skills/flarglebargle/.claude-plugin/plugin.json +16 -0
  145. package/skills/flarglebargle/.codex-plugin/plugin.json +16 -0
  146. package/skills/frontend-design/.claude-plugin/plugin.json +21 -0
  147. package/skills/frontend-design/.codex-plugin/plugin.json +21 -0
  148. package/skills/github/.claude-plugin/plugin.json +19 -0
  149. package/skills/github/.codex-plugin/plugin.json +19 -0
  150. package/skills/github/scripts/agent_conversation.py +150 -0
  151. package/skills/github/scripts/github_client.py +31 -5
  152. package/skills/github-actions/.claude-plugin/plugin.json +19 -0
  153. package/skills/github-actions/.codex-plugin/plugin.json +19 -0
  154. package/skills/github-agents-md-maintainer/.claude-plugin/plugin.json +19 -0
  155. package/skills/github-agents-md-maintainer/.codex-plugin/plugin.json +19 -0
  156. package/skills/github-agents-md-maintainer/scripts/github_client.py +230 -0
  157. package/skills/github-delivery-watchdog/.claude-plugin/plugin.json +9 -0
  158. package/skills/github-delivery-watchdog/.codex-plugin/plugin.json +9 -0
  159. package/skills/github-delivery-watchdog/.plugin/plugin.json +9 -0
  160. package/skills/github-delivery-watchdog/README.md +10 -0
  161. package/skills/github-delivery-watchdog/SKILL.md +35 -0
  162. package/skills/github-delivery-watchdog/commands/github-delivery-watchdog.md +8 -0
  163. package/skills/github-delivery-watchdog/scripts/github_client.py +230 -0
  164. package/skills/github-delivery-watchdog/scripts/worker.py +96 -0
  165. package/skills/github-issue-to-pr/.claude-plugin/plugin.json +19 -0
  166. package/skills/github-issue-to-pr/.codex-plugin/plugin.json +19 -0
  167. package/skills/github-issue-to-pr/SKILL.md +7 -0
  168. package/skills/github-issue-to-pr/scripts/agent_conversation.py +150 -0
  169. package/skills/github-issue-to-pr/scripts/github_client.py +230 -0
  170. package/skills/github-issue-to-pr/scripts/main.py +16 -10
  171. package/skills/github-issue-to-pr/scripts/worker.py +172 -0
  172. package/skills/github-issue-triage/.claude-plugin/plugin.json +9 -0
  173. package/skills/github-issue-triage/.codex-plugin/plugin.json +9 -0
  174. package/skills/github-issue-triage/SKILL.md +15 -18
  175. package/skills/github-issue-triage/scripts/agent_conversation.py +150 -0
  176. package/skills/github-issue-triage/scripts/github_client.py +230 -0
  177. package/skills/github-issue-triage/scripts/worker.py +81 -98
  178. package/skills/github-pr-review/.claude-plugin/plugin.json +18 -0
  179. package/skills/github-pr-review/.codex-plugin/plugin.json +18 -0
  180. package/skills/github-pr-reviewer/.claude-plugin/plugin.json +20 -0
  181. package/skills/github-pr-reviewer/.codex-plugin/plugin.json +20 -0
  182. package/skills/github-pr-reviewer/SKILL.md +7 -0
  183. package/skills/github-pr-reviewer/scripts/agent_conversation.py +150 -0
  184. package/skills/github-pr-reviewer/scripts/github_client.py +230 -0
  185. package/skills/github-pr-reviewer/scripts/main.py +20 -8
  186. package/skills/github-pr-reviewer/scripts/worker.py +94 -0
  187. package/skills/github-repo-monitor/.claude-plugin/plugin.json +22 -0
  188. package/skills/github-repo-monitor/.codex-plugin/plugin.json +22 -0
  189. package/skills/github-repo-monitor/scripts/github_client.py +230 -0
  190. package/skills/gitlab/.claude-plugin/plugin.json +17 -0
  191. package/skills/gitlab/.codex-plugin/plugin.json +17 -0
  192. package/skills/gitlab-issue-to-mr/.claude-plugin/plugin.json +19 -0
  193. package/skills/gitlab-issue-to-mr/.codex-plugin/plugin.json +19 -0
  194. package/skills/incident-retrospective/.claude-plugin/plugin.json +21 -0
  195. package/skills/incident-retrospective/.codex-plugin/plugin.json +21 -0
  196. package/skills/index.js +12 -3
  197. package/skills/iterate/.claude-plugin/plugin.json +13 -0
  198. package/skills/iterate/.codex-plugin/plugin.json +13 -0
  199. package/skills/jira-issue-to-pr/.claude-plugin/plugin.json +19 -0
  200. package/skills/jira-issue-to-pr/.codex-plugin/plugin.json +19 -0
  201. package/skills/jupyter/.claude-plugin/plugin.json +18 -0
  202. package/skills/jupyter/.codex-plugin/plugin.json +18 -0
  203. package/skills/kubernetes/.claude-plugin/plugin.json +18 -0
  204. package/skills/kubernetes/.codex-plugin/plugin.json +18 -0
  205. package/skills/learn-from-code-review/.claude-plugin/plugin.json +19 -0
  206. package/skills/learn-from-code-review/.codex-plugin/plugin.json +19 -0
  207. package/skills/linear/.claude-plugin/plugin.json +19 -0
  208. package/skills/linear/.codex-plugin/plugin.json +19 -0
  209. package/skills/linear-triage/.claude-plugin/plugin.json +21 -0
  210. package/skills/linear-triage/.codex-plugin/plugin.json +21 -0
  211. package/skills/news-digest/.claude-plugin/plugin.json +19 -0
  212. package/skills/news-digest/.codex-plugin/plugin.json +19 -0
  213. package/skills/notion/.claude-plugin/plugin.json +17 -0
  214. package/skills/notion/.codex-plugin/plugin.json +17 -0
  215. package/skills/npm/.claude-plugin/plugin.json +17 -0
  216. package/skills/npm/.codex-plugin/plugin.json +17 -0
  217. package/skills/openhands-api/.claude-plugin/plugin.json +22 -0
  218. package/skills/openhands-api/.codex-plugin/plugin.json +22 -0
  219. package/skills/openhands-automation/.claude-plugin/plugin.json +19 -0
  220. package/skills/openhands-automation/.codex-plugin/plugin.json +19 -0
  221. package/skills/openhands-enterprise-troubleshooting/.claude-plugin/plugin.json +20 -0
  222. package/skills/openhands-enterprise-troubleshooting/.codex-plugin/plugin.json +20 -0
  223. package/skills/openhands-sdk/.claude-plugin/plugin.json +20 -0
  224. package/skills/openhands-sdk/.codex-plugin/plugin.json +20 -0
  225. package/skills/pdflatex/.claude-plugin/plugin.json +18 -0
  226. package/skills/pdflatex/.codex-plugin/plugin.json +18 -0
  227. package/skills/plain-english-content/.claude-plugin/plugin.json +15 -0
  228. package/skills/plain-english-content/.codex-plugin/plugin.json +15 -0
  229. package/skills/prd/.claude-plugin/plugin.json +19 -0
  230. package/skills/prd/.codex-plugin/plugin.json +19 -0
  231. package/skills/research-brief/.claude-plugin/plugin.json +20 -0
  232. package/skills/research-brief/.codex-plugin/plugin.json +20 -0
  233. package/skills/security/.claude-plugin/plugin.json +18 -0
  234. package/skills/security/.codex-plugin/plugin.json +18 -0
  235. package/skills/skill-creator/.claude-plugin/plugin.json +17 -0
  236. package/skills/skill-creator/.codex-plugin/plugin.json +17 -0
  237. package/skills/slack-channel-monitor/.claude-plugin/plugin.json +21 -0
  238. package/skills/slack-channel-monitor/.codex-plugin/plugin.json +21 -0
  239. package/skills/slack-standup-digest/.claude-plugin/plugin.json +21 -0
  240. package/skills/slack-standup-digest/.codex-plugin/plugin.json +21 -0
  241. package/skills/spark-version-upgrade/.claude-plugin/plugin.json +20 -0
  242. package/skills/spark-version-upgrade/.codex-plugin/plugin.json +20 -0
  243. package/skills/ssh/.claude-plugin/plugin.json +18 -0
  244. package/skills/ssh/.codex-plugin/plugin.json +18 -0
  245. package/skills/swift-linux/.claude-plugin/plugin.json +17 -0
  246. package/skills/swift-linux/.codex-plugin/plugin.json +17 -0
  247. package/skills/technical-writing/.claude-plugin/plugin.json +15 -0
  248. package/skills/technical-writing/.codex-plugin/plugin.json +15 -0
  249. package/skills/theme-factory/.claude-plugin/plugin.json +19 -0
  250. package/skills/theme-factory/.codex-plugin/plugin.json +19 -0
  251. package/skills/ticket-to-code-change/.claude-plugin/plugin.json +21 -0
  252. package/skills/ticket-to-code-change/.codex-plugin/plugin.json +21 -0
  253. package/skills/upstream-fork-sync/.claude-plugin/plugin.json +21 -0
  254. package/skills/upstream-fork-sync/.codex-plugin/plugin.json +21 -0
  255. package/skills/uv/.claude-plugin/plugin.json +18 -0
  256. package/skills/uv/.codex-plugin/plugin.json +18 -0
  257. package/skills/vercel/.claude-plugin/plugin.json +18 -0
  258. package/skills/vercel/.codex-plugin/plugin.json +18 -0
  259. package/tests/fixtures/automations/capabilities.json +6 -3
  260. package/tests/fixtures/automations/github-pr-reviewer.json +64 -43
  261. package/tests/github_automation_helpers.py +7 -1
  262. package/tests/test_agent_conversation_dispatch.py +196 -0
  263. package/tests/test_automation_setup.py +3 -3
  264. package/tests/test_github_developer_delivery.py +150 -0
  265. package/tests/test_github_reviewer_delivery.py +110 -0
  266. package/tests/test_github_triage_delivery.py +78 -41
  267. package/tests/test_github_watchdog_delivery.py +233 -0
@@ -0,0 +1,47 @@
1
+ # Windows Notes for GitHub PR Review Commands
2
+
3
+ Use these PowerShell forms for the JSON-file, line-check, and fallback API snippets.
4
+
5
+ ## Create the Review JSON File
6
+
7
+ ```powershell
8
+ $reviewJson = Join-Path $env:TEMP "review.json"
9
+ @'
10
+ {
11
+ "commit_id": "{commit_sha}",
12
+ "event": "COMMENT",
13
+ "body": "Brief 1-3 sentence summary.",
14
+ "comments": []
15
+ }
16
+ '@ | Set-Content -LiteralPath $reviewJson -Encoding utf8
17
+ ```
18
+
19
+ Then pass the file to `gh`:
20
+
21
+ ```powershell
22
+ gh api -X POST repos/{owner}/{repo}/pulls/{pr_number}/reviews --input $reviewJson
23
+ ```
24
+
25
+ ## Verify File Lines
26
+
27
+ Use `Select-String` for pattern lookup and `Get-Content` for exact ranges.
28
+
29
+ ```powershell
30
+ Select-String -Path filename -Pattern "pattern"
31
+
32
+ $lines = Get-Content -LiteralPath filename
33
+ $lines[41] # line 42, because arrays are zero-based
34
+ $lines[($start - 1)..($end - 1)]
35
+ ```
36
+
37
+ ## Fallback Curl
38
+
39
+ Use `curl.exe` so PowerShell does not resolve `curl` to its alias.
40
+
41
+ ```powershell
42
+ curl.exe -X POST `
43
+ -H "Authorization: token $env:GITHUB_TOKEN" `
44
+ -H "Accept: application/vnd.github+json" `
45
+ "https://api.github.com/repos/{owner}/{repo}/pulls/{pr_number}/reviews" `
46
+ --data-binary "@$reviewJson"
47
+ ```
@@ -0,0 +1,18 @@
1
+ # qa-changes
2
+
3
+ Skill that provides a structured QA methodology for validating pull request changes. The agent actually runs the software — setting up the environment and exercising changed behavior as a real user would — rather than running the test suite (CI's job) or analyzing code (code review's job).
4
+
5
+ See the [qa-changes plugin](../../plugins/qa-changes/) for the GitHub Actions integration that automates this on every PR.
6
+
7
+ ## Usage
8
+
9
+ Trigger the skill with `/qa-changes` in a conversation, or use it via the `qa-changes` plugin in a GitHub Actions workflow.
10
+
11
+ ## Methodology
12
+
13
+ The skill guides the agent through four phases:
14
+
15
+ 1. **Understand** — Classify changes and identify entry points
16
+ 2. **Setup** — Install dependencies, build, check CI status
17
+ 3. **Exercise** — Run the actual code as a user would (browser, CLI, API requests)
18
+ 4. **Report** — Post a structured QA report with evidence and a verdict
@@ -0,0 +1,229 @@
1
+ ---
2
+ name: qa-changes
3
+ description: This skill should be used when the user asks to "QA a pull request", "test PR changes", "verify a PR works", "functionally test changes", or when an automated workflow triggers QA validation of code changes. Provides a structured methodology for setting up the environment, exercising changed behavior, and reporting results.
4
+ triggers:
5
+ - /qa-changes
6
+ ---
7
+
8
+ # QA Changes
9
+
10
+ Validate pull request changes by actually running the code — not just reading it. The goal is to verify that new behavior works as the PR claims, existing behavior is not broken, and the repository remains healthy after the change.
11
+
12
+ The bar is high: test the way a thorough human QA engineer would. If the PR changes a web UI, spin up the server and verify it in a real browser. If it changes a CLI, run the CLI with real inputs. Do not settle for "the tests pass" — actually use the software.
13
+
14
+ ## Core Methodology
15
+
16
+ QA proceeds in four phases. Complete each phase in order. If a phase fails, report the failure and stop.
17
+
18
+ ### Phase 1: Understand the Change
19
+
20
+ Read the PR diff, title, and description. **Identify the goal of this PR** — this is the single most important thing to understand before proceeding. A PR might fix a bug, add a feature, refactor code, improve performance, update documentation, or something else entirely. Check:
21
+
22
+ 1. **The PR description "Why" / "Summary" section** — what is the author trying to accomplish?
23
+ 2. **Linked issues** — if the PR references an issue, read it. But note: the PR may address the issue differently than expected, or only partially. The PR description is the real specification for what *this PR* intends to deliver.
24
+ 3. **The PR title** — often summarizes the intent (e.g., "fix: X not working when Y", "feat: add Z capability", "refactor: consolidate duplicated X logic").
25
+
26
+ Then classify every changed file:
27
+
28
+ - **New feature**: User-visible behavior that did not exist before.
29
+ - **Bug fix**: Corrects existing behavior to match intended behavior.
30
+ - **Refactor**: Restructuring that should not change external behavior.
31
+ - **Configuration / CI / docs**: Non-functional changes.
32
+
33
+ For each change, identify the *entry point* — the concrete way a user would interact with it (CLI command, API endpoint, UI page, function call). This drives what to exercise in Phase 3.
34
+
35
+ Finally, form a clear hypothesis: "This PR should [achieve stated goal] by [approach taken in the diff]." Phase 3 will test that hypothesis.
36
+
37
+ ### Phase 2: Set Up the Environment
38
+
39
+ Bootstrap the repository so the project builds and runs successfully.
40
+
41
+ 1. **Read the repo's bootstrap instructions.** Check `AGENTS.md`, `README.md`, `Makefile`, `package.json`, `pyproject.toml`, `Cargo.toml`, or equivalent. Always prefer the project's own documented setup commands.
42
+ 2. **Install dependencies.** Use the project's dependency manager (`uv sync`, `npm install`, `pip install -r requirements.txt`, `bundle install`, `cargo build`, etc.).
43
+ 3. **Build the project** if a build step is required (compile, transpile, bundle).
44
+ 4. **Note CI status.** Glance at the PR's CI checks and note whether they pass or fail. Do NOT re-run the test suite yourself — that is CI's job, not yours. Your job starts in Phase 3.
45
+
46
+ If setup fails, report the failure with the exact error output and stop.
47
+
48
+ ### Phase 3: Exercise the Changed Behavior
49
+
50
+ This is the most important phase. **Actually use the software** the way a real user would to verify the change works as the PR claims. This is what distinguishes QA from CI (which runs tests) and code review (which reads code).
51
+
52
+ **Do NOT:**
53
+ - Run the test suite (`pytest`, `npm test`, `cargo test`, etc.) — that is CI's job.
54
+ - Analyze code by reading files and commenting on style, structure, or logic — that is code review's job.
55
+ - Run linters, formatters, type checkers, or pre-commit hooks — that is CI's job.
56
+
57
+ **DO:**
58
+ - Run the actual application, CLI, or server and interact with it as a user would.
59
+ - Make real HTTP requests, run real commands, open real browser pages.
60
+ - Always attempt real execution first. Running `--help`, `--dry-run`, or `--version` is NOT functional verification — it only proves argument parsing works. If real execution fails due to missing credentials, external services, or environment constraints, report what you tried and what could not be verified. Do not substitute `--help` output for evidence the software works.
61
+ - Reproduce bugs and verify fixes end-to-end.
62
+ - Test user-facing behavior that automated tests cannot or do not cover.
63
+
64
+ **Start by verifying the PR achieves its stated goal.** Use the hypothesis from Phase 1. For example:
65
+ - If the PR claims to "fix crash when X is empty", reproduce the crash scenario and confirm it no longer occurs.
66
+ - If the PR claims to "add support for Y", actually use Y end-to-end and confirm it works.
67
+ - If the PR claims to "add a new dashboard page", navigate to the page and verify it renders and functions correctly.
68
+ - If the PR claims to "add a new CLI flag", run the CLI with that flag and verify the output.
69
+
70
+ "Tests pass" is not a QA finding. The question is: does the software actually do what the PR says it does?
71
+
72
+ **For frontend / UI changes:**
73
+ - Start the development server.
74
+ - Use a real browser (via Playwright, browser automation tools, or the built-in browser) to navigate to the affected pages.
75
+ - Verify the visual change renders correctly. Take screenshots as evidence.
76
+ - Test user interactions (clicks, form submissions, navigation).
77
+ - Try at least one edge case (empty state, long text, missing data).
78
+
79
+ **For CLI changes:**
80
+ - Run the CLI command with realistic arguments. Capture stdout and stderr.
81
+ - Verify the output matches the PR's claimed behavior.
82
+ - Try at least one edge case (invalid input, missing flags, empty input).
83
+
84
+ **For API / backend changes:**
85
+ - Start the server.
86
+ - Make actual HTTP requests (`curl`, `httpie`, or a test client) to affected endpoints.
87
+ - Verify response status codes, response bodies, and side effects (database writes, file creation).
88
+ - Test error cases (bad input, missing auth, not found).
89
+
90
+ **For bug fixes — use a before/after comparison:**
91
+ 1. **Reproduce the bug without the fix.** Check out the base branch (or revert the PR's changes) and run a concrete command or code path that triggers the reported failure. Show the exact command and its output.
92
+ 2. **Interpret the baseline result.** Explain what the output means — e.g., "This confirms the bug exists: the resolver cannot find the package because the lockfile's cutoff date is too old."
93
+ 3. **Apply the PR's changes.** Check out the PR branch, apply the patch, or set the environment variable — whatever the fix entails.
94
+ 4. **Re-run the same verification.** Run the same command or exercise the same code path with the fix in place. Show the exact command and its output.
95
+ 5. **Interpret the result.** Explain what the new output means — e.g., "The resolver now finds the package, confirming the fix works."
96
+ 6. **Check for side effects.** Confirm the fix does not break related functionality.
97
+
98
+ **For library / SDK changes:**
99
+ - Write a short script that imports and calls the changed functions.
100
+ - Verify the return values and behavior match the PR's claims.
101
+ - Test edge cases the PR author may have missed.
102
+
103
+ **For refactors:**
104
+ - If the refactor touches a critical or user-facing path, manually exercise that path to confirm behavior is unchanged.
105
+ - For pure internal refactors where CI passes and no user-facing path is affected, Phase 2's CI check is sufficient.
106
+
107
+ **For configuration / CI / docs:**
108
+ - Validate syntax (YAML lint, JSON parse, markdown render).
109
+ - If it is a build change, confirm the build still succeeds.
110
+ - For doc changes, confirm the documentation renders correctly if a preview is available.
111
+
112
+ **Always show your work with a before/after narrative.** For every verification, the report must include: (a) the exact command you ran, (b) the actual output you observed, and (c) your interpretation of that output. For bug fixes and behavioral changes, demonstrate BOTH the broken/old state AND the fixed/new state so the reviewer can see the delta. Present this evidence inside collapsible `<details>` blocks — the core deliverable is the verdict and summary, not raw logs.
113
+
114
+ ### Knowing When to Give Up
115
+
116
+ Some verification approaches will fail due to environment constraints, missing system dependencies, or tooling limitations. That is expected.
117
+
118
+ **The rule: if the same general approach fails after three materially different attempts, stop trying that approach.** For example, if three different Playwright configurations all fail to connect to the dev server, do not try a fourth Playwright variation. Switch to a fundamentally different approach (e.g., `curl` + manual HTML inspection instead of browser automation). If two fundamentally different approaches both fail, give up on that specific verification and say so in the report.
119
+
120
+ When giving up on a verification:
121
+ - State clearly what was attempted and why it failed.
122
+ - State what *could not* be verified as a result.
123
+ - Suggest the human add guidance to `AGENTS.md` (or a custom `/qa-changes` skill) that would help future QA runs succeed — for example: which port the dev server runs on, what system packages are required, how to configure browser automation, or what the expected test output looks like.
124
+
125
+ Do not silently skip verification. An honest "I could not verify X because Y" is far more valuable than a false "everything works."
126
+
127
+ ### Phase 4: Report Results
128
+
129
+ Post a structured report as a PR review using the GitHub API. **Keep the report scannable.** A reviewer should grasp the verdict and key results in under 10 seconds. Put lengthy evidence (logs, code snippets, full command output) inside collapsible `<details>` blocks so the top-level report stays compact.
130
+
131
+ #### Report format
132
+
133
+ ```markdown
134
+ ## {verdict_emoji} QA Report: {VERDICT}
135
+
136
+ {One-sentence summary of what was verified and the outcome.}
137
+
138
+ ### Does this PR achieve its stated goal?
139
+
140
+ {Direct answer: Yes / Partially / No.}
141
+ {2-3 sentences explaining WHY, referencing specific evidence from
142
+ exercising the software. For bug fixes: is the bug actually fixed?
143
+ For features: does the new capability work end-to-end? For refactors:
144
+ is the restructuring achieved without changing behavior? Be specific
145
+ about what the goal was and whether the changes deliver on it.}
146
+
147
+ | Phase | Result |
148
+ |-------|--------|
149
+ | Environment Setup | {emoji} {one-line status} |
150
+ | CI Status | {emoji} {one-line note from CI checks, e.g. "all green" or "2 checks failing"} |
151
+ | Functional Verification | {emoji} {one-line status} |
152
+
153
+ <details><summary>Functional Verification</summary>
154
+
155
+ {Structure each verification as a before/after narrative:
156
+
157
+ ### Test N: {Description}
158
+
159
+ **Step 1 — Reproduce / establish baseline (without the fix):**
160
+ Ran `{exact command}`:
161
+ ```
162
+ {actual output}
163
+ ```
164
+ This shows {interpretation — what the output means, e.g. "the bug
165
+ exists because..."}.
166
+
167
+ **Step 2 — Apply the PR's changes:**
168
+ {What was done — e.g. checked out the PR branch, set env var, etc.}
169
+
170
+ **Step 3 — Re-run with the fix in place:**
171
+ Ran `{same or equivalent command}`:
172
+ ```
173
+ {actual output}
174
+ ```
175
+ This shows {interpretation — e.g. "the fix works because the error
176
+ is gone and the expected result appears"}.
177
+
178
+ Repeat for each changed behavior. For non-bug-fix changes
179
+ (features, refactors), the baseline step may simply describe the
180
+ prior state rather than reproducing a failure.}
181
+
182
+ </details>
183
+
184
+ <details><summary>Unable to Verify</summary>
185
+
186
+ {What could not be verified, what was attempted, and suggested
187
+ AGENTS.md guidance. Omit this section entirely if everything
188
+ was verified.}
189
+
190
+ </details>
191
+
192
+ ### Issues Found
193
+
194
+ {List concrete problems, or "None." if clean.}
195
+
196
+ - 🔴 **Blocker**: ...
197
+ - 🟠 **Issue**: ...
198
+ - 🟡 **Minor**: ...
199
+ ```
200
+
201
+ #### Formatting rules
202
+
203
+ - **Verdict line + summary** come first. One emoji, one sentence. No preamble.
204
+ - **Status table** gives the at-a-glance overview. One row per phase, one-line status.
205
+ - **Evidence goes in `<details>` blocks.** Any code block, log excerpt, or command output longer than ~4 lines belongs inside a collapsible. Reviewers who want proof can expand; others can skip.
206
+ - **Do not repeat information.** The summary, table, and details should each add new information — not restate the same facts in different formats.
207
+ - **Issues Found** is always visible (not collapsible). If there are no issues, write "None."
208
+ - **Omit empty sections.** If there is nothing unable to verify, drop that `<details>` block entirely.
209
+
210
+ #### Verdict values
211
+
212
+ - ✅ **PASS**: Change works as described, no regressions.
213
+ - ⚠️ **PASS WITH ISSUES**: Change mostly works, but issues were found (list them).
214
+ - ❌ **FAIL**: Change does not work as described, or introduces regressions.
215
+ - 🟡 **PARTIAL**: Some behavior verified, some could not be (list what was and was not verified).
216
+
217
+ ## Key Principles
218
+
219
+ - **Answer the core question first: does this PR achieve its stated goal?** This is the primary deliverable. Explicitly state whether the changes deliver on what the PR description promises — whether that is a bug fix, a new feature, a refactor, or anything else.
220
+ - **Fail fast.** If setup fails, stop and report. Do not spend tokens on later phases with a broken environment.
221
+ - **Run the code, not the tests.** Execute the actual software — start servers, run CLI commands, make HTTP requests, open browsers. Do not run `pytest`, `npm test`, or equivalent test suites. That is CI's job.
222
+ - **Do not analyze code.** Reading files and commenting on style, structure, or logic is code review's job. Your job is to exercise behavior, not read source files.
223
+ - **Set a high bar.** If the change affects a UI, open it in a real browser. If it affects a CLI, run the actual CLI with real inputs. If it affects an API, make real HTTP requests.
224
+ - **Test what the PR claims.** The PR description is the specification. Verify the claim, not hypothetical scenarios.
225
+ - **Leave CI to CI.** Do not re-run tests, linters, formatters, or type checkers. Note CI status, then focus entirely on functional verification that CI cannot do.
226
+ - **Report evidence, not opinions.** Include exact commands, outputs, and error messages — inside collapsible blocks.
227
+ - **Keep it scannable.** The report is for busy reviewers. Verdict and summary up top, evidence collapsed below. Do not repeat information across sections.
228
+ - **Give up gracefully.** If a verification approach does not work after three materially different attempts, switch approaches. If two different approaches fail, give up and report honestly. Suggest `AGENTS.md` improvements.
229
+ - **Respect the project's conventions.** Use the project's own tools and build commands for setup.
@@ -0,0 +1,8 @@
1
+ ---
2
+ # auto-generated by sync_extensions.py
3
+ description: This skill should be used when the user asks to "QA a pull request", "test PR changes", "verify a PR works", "functionally test changes", or when an automated workflow triggers QA validation of code changes. Provides a structured methodology for setting up the environment, exercising changed behavior, and reporting results.
4
+ ---
5
+
6
+ Read and follow the complete instructions in the SKILL.md file located in this skill's directory.
7
+
8
+ $ARGUMENTS
@@ -0,0 +1,19 @@
1
+ {
2
+ "name": "release-notes",
3
+ "version": "1.0.0",
4
+ "description": "Generate consistent, well-structured release notes from git history with categorized changelog, contributor attribution, and semver tag support.",
5
+ "author": {
6
+ "name": "OpenHands",
7
+ "email": "contact@all-hands.dev"
8
+ },
9
+ "homepage": "https://github.com/OpenHands/extensions",
10
+ "repository": "https://github.com/OpenHands/extensions",
11
+ "license": "MIT",
12
+ "keywords": [
13
+ "release-notes",
14
+ "changelog",
15
+ "git",
16
+ "semver",
17
+ "versioning"
18
+ ]
19
+ }
@@ -0,0 +1,19 @@
1
+ {
2
+ "name": "release-notes",
3
+ "version": "1.0.0",
4
+ "description": "Generate consistent, well-structured release notes from git history with categorized changelog, contributor attribution, and semver tag support.",
5
+ "author": {
6
+ "name": "OpenHands",
7
+ "email": "contact@all-hands.dev"
8
+ },
9
+ "homepage": "https://github.com/OpenHands/extensions",
10
+ "repository": "https://github.com/OpenHands/extensions",
11
+ "license": "MIT",
12
+ "keywords": [
13
+ "release-notes",
14
+ "changelog",
15
+ "git",
16
+ "semver",
17
+ "versioning"
18
+ ]
19
+ }
@@ -0,0 +1,24 @@
1
+ # Releasenotes
2
+
3
+ Generate formatted changelogs from git history since the last release tag. Use when preparing release notes that categorize changes into breaking changes, features, fixes, and other sections.
4
+
5
+ ## Triggers
6
+
7
+ This skill is activated by the following keywords:
8
+
9
+ - `/releasenotes`
10
+
11
+ ## Details
12
+
13
+ Generate a changelog for all changes from the most recent release until now.
14
+
15
+ ## Steps
16
+ 1. Find the most recent release tag using `git tag --sort=-creatordate`
17
+ 2. Get commits and merged PRs since that tag
18
+ 3. Look at previous releases in this repo to match their format and style
19
+ 4. Categorize changes into sections: Breaking Changes, Added, Changed, Fixed, Notes
20
+ 5. Focus on user-facing changes (features, important bug fixes, breaking changes)
21
+ 6. Include PR links and contributor attribution
22
+
23
+ ## Output
24
+ Present the changelog in a markdown code block, ready to copy-paste into a GitHub release.
@@ -0,0 +1,19 @@
1
+ ---
2
+ name: release-notes
3
+ description: Generate formatted changelogs from git history since the last release tag. Use when preparing release notes that categorize changes into breaking changes, features, fixes, and other sections.
4
+ triggers:
5
+ - /release-notes
6
+ ---
7
+
8
+ Generate a changelog for all changes from the most recent release until now.
9
+
10
+ ## Steps
11
+ 1. Find the most recent release tag using `git tag --sort=-creatordate`
12
+ 2. Get commits and merged PRs since that tag
13
+ 3. Look at previous releases in this repo to match their format and style
14
+ 4. Categorize changes into sections: Breaking Changes, Added, Changed, Fixed, Notes
15
+ 5. Focus on user-facing changes (features, important bug fixes, breaking changes)
16
+ 6. Include PR links and contributor attribution
17
+
18
+ ## Output
19
+ Present the changelog in a markdown code block, ready to copy-paste into a GitHub release.
@@ -0,0 +1,8 @@
1
+ ---
2
+ # auto-generated by sync_extensions.py
3
+ description: Generate formatted changelogs from git history since the last release tag. Use when preparing release notes that categorize changes into breaking changes, features, fixes, and other sections.
4
+ ---
5
+
6
+ Read and follow the complete instructions in the SKILL.md file located in this skill's directory.
7
+
8
+ $ARGUMENTS
@@ -0,0 +1,19 @@
1
+ {
2
+ "name": "vulnerability-remediation",
3
+ "version": "1.0.0",
4
+ "description": "Automated security vulnerability scanning and AI-powered remediation. Scans repositories, skips when no issues found, and creates PRs with fixes.",
5
+ "author": {
6
+ "name": "OpenHands",
7
+ "email": "contact@all-hands.dev"
8
+ },
9
+ "homepage": "https://github.com/OpenHands/extensions",
10
+ "repository": "https://github.com/OpenHands/extensions",
11
+ "license": "MIT",
12
+ "keywords": [
13
+ "security",
14
+ "vulnerability",
15
+ "remediation",
16
+ "scanning",
17
+ "automation"
18
+ ]
19
+ }
@@ -0,0 +1,19 @@
1
+ {
2
+ "name": "vulnerability-remediation",
3
+ "version": "1.0.0",
4
+ "description": "Automated security vulnerability scanning and AI-powered remediation. Scans repositories, skips when no issues found, and creates PRs with fixes.",
5
+ "author": {
6
+ "name": "OpenHands",
7
+ "email": "contact@all-hands.dev"
8
+ },
9
+ "homepage": "https://github.com/OpenHands/extensions",
10
+ "repository": "https://github.com/OpenHands/extensions",
11
+ "license": "MIT",
12
+ "keywords": [
13
+ "security",
14
+ "vulnerability",
15
+ "remediation",
16
+ "scanning",
17
+ "automation"
18
+ ]
19
+ }
@@ -0,0 +1,19 @@
1
+ {
2
+ "name": "github",
3
+ "version": "1.0.0",
4
+ "description": "Interact with GitHub repositories, pull requests, issues, and workflows using the GITHUB_TOKEN environment variable and GitHub CLI. Use when working with code hosted on GitHub or managing GitHub re...",
5
+ "author": {
6
+ "name": "OpenHands",
7
+ "email": "contact@all-hands.dev"
8
+ },
9
+ "homepage": "https://github.com/OpenHands/extensions",
10
+ "repository": "https://github.com/OpenHands/extensions",
11
+ "license": "MIT",
12
+ "keywords": [
13
+ "github",
14
+ "git",
15
+ "pull-request",
16
+ "issues",
17
+ "workflows"
18
+ ]
19
+ }
@@ -0,0 +1,19 @@
1
+ {
2
+ "name": "github",
3
+ "version": "1.0.0",
4
+ "description": "Interact with GitHub repositories, pull requests, issues, and workflows using the GITHUB_TOKEN environment variable and GitHub CLI. Use when working with code hosted on GitHub or managing GitHub re...",
5
+ "author": {
6
+ "name": "OpenHands",
7
+ "email": "contact@all-hands.dev"
8
+ },
9
+ "homepage": "https://github.com/OpenHands/extensions",
10
+ "repository": "https://github.com/OpenHands/extensions",
11
+ "license": "MIT",
12
+ "keywords": [
13
+ "github",
14
+ "git",
15
+ "pull-request",
16
+ "issues",
17
+ "workflows"
18
+ ]
19
+ }
@@ -0,0 +1,19 @@
1
+ {
2
+ "name": "github",
3
+ "version": "1.0.0",
4
+ "description": "Interact with GitHub repositories, pull requests, issues, and workflows using the GITHUB_TOKEN environment variable and GitHub CLI. Use when working with code hosted on GitHub or managing GitHub re...",
5
+ "author": {
6
+ "name": "OpenHands",
7
+ "email": "contact@all-hands.dev"
8
+ },
9
+ "homepage": "https://github.com/OpenHands/extensions",
10
+ "repository": "https://github.com/OpenHands/extensions",
11
+ "license": "MIT",
12
+ "keywords": [
13
+ "github",
14
+ "git",
15
+ "pull-request",
16
+ "issues",
17
+ "workflows"
18
+ ]
19
+ }
@@ -0,0 +1,42 @@
1
+ # Github
2
+
3
+ Interact with GitHub repositories, pull requests, issues, and workflows using the GITHUB_TOKEN environment variable and GitHub CLI. Use when working with code hosted on GitHub or managing GitHub resources.
4
+
5
+ ## Triggers
6
+
7
+ This skill is activated by the following keywords:
8
+
9
+ - `github`
10
+ - `git`
11
+
12
+ ## Details
13
+
14
+ You have access to an environment variable, `GITHUB_TOKEN`, which allows you to interact with
15
+ the GitHub API.
16
+
17
+ <IMPORTANT>
18
+ You can use `curl` with the `GITHUB_TOKEN` to interact with GitHub's API.
19
+ ALWAYS use the GitHub API for operations instead of a web browser.
20
+ ALWAYS use the `create_pr` tool to open a pull request
21
+ If the user asks you to check GitHub Actions status, first try to use `gh` to work with workflows, and only fallback to basic API calls if that fails.
22
+ Examples:
23
+ - `gh run watch` (https://cli.github.com/manual/gh_run_watch) to monitor workflow runs
24
+ - `gh pr checks 200 --watch --interval 10` to check until completed.
25
+ </IMPORTANT>
26
+
27
+ If you encounter authentication issues when pushing to GitHub (such as password prompts or permission errors), the old token may have expired. In such case, update the remote URL to include the current token: `git remote set-url origin https://${GITHUB_TOKEN}@github.com/username/repo.git`
28
+
29
+ Here are some instructions for pushing, but ONLY do this if the user asks you to:
30
+ * NEVER push directly to the `main` or `master` branch
31
+ * Git config (username and email) is pre-set. Do not modify.
32
+ * You may already be on a branch starting with `openhands-workspace`. Create a new branch with a better name before pushing.
33
+ * Use the `create_pr` tool to create a pull request, if you haven't already
34
+ * Once you've created your own branch or a pull request, continue to update it. Do NOT create a new one unless you are explicitly asked to. Update the PR title and description as necessary, but don't change the branch name.
35
+ * Use the main branch as the base branch, unless the user requests otherwise
36
+ * After opening or updating a pull request, send the user a short message with a link to the pull request.
37
+ * Do NOT mark a pull request as ready to review unless the user explicitly says so
38
+ * Do all of the above in as few steps as possible. E.g. you could push changes with one step by running the following bash commands:
39
+ ```bash
40
+ git remote -v && git branch # to find the current org, repo and branch
41
+ git checkout -b create-widget && git add . && git commit -m "Create widget" && git push -u origin create-widget
42
+ ```
@@ -0,0 +1,107 @@
1
+ ---
2
+ name: github
3
+ description: Interact with GitHub repositories, pull requests, issues, and workflows using the GITHUB_TOKEN environment variable and GitHub CLI. Use when working with code hosted on GitHub or managing GitHub resources.
4
+ triggers:
5
+ - github
6
+ ---
7
+
8
+ You have access to an environment variable, `GITHUB_TOKEN`, which allows you to interact with
9
+ the GitHub API.
10
+
11
+ <IMPORTANT>
12
+ You can use `curl` with the `GITHUB_TOKEN` to interact with GitHub's API.
13
+ ALWAYS use the GitHub API for operations instead of a web browser.
14
+ ALWAYS use the `create_pr` tool to open a pull request
15
+ If the user asks you to check GitHub Actions status, first try to use `gh` to work with workflows, and only fallback to basic API calls if that fails.
16
+ Examples:
17
+ - `gh run watch` (https://cli.github.com/manual/gh_run_watch) to monitor workflow runs
18
+ - `gh pr checks 200 --watch --interval 10` to check until completed.
19
+ </IMPORTANT>
20
+
21
+ Windows PowerShell equivalents for the multi-line shell snippets below are in `references/windows.md`.
22
+
23
+ If you encounter authentication issues when pushing to GitHub (such as password prompts or permission errors), the old token may have expired. In such case, update the remote URL to include the current token: `git remote set-url origin https://${GITHUB_TOKEN}@github.com/username/repo.git`
24
+
25
+ Here are some instructions for pushing, but ONLY do this if the user asks you to:
26
+ * NEVER push directly to the `main` or `master` branch
27
+ * Git config (username and email) is pre-set. Do not modify.
28
+ * You may already be on a branch starting with `openhands-workspace`. Create a new branch with a better name before pushing.
29
+ * Use the `create_pr` tool to create a pull request, if you haven't already
30
+ * Once you've created your own branch or a pull request, continue to update it. Do NOT create a new one unless you are explicitly asked to. Update the PR title and description as necessary, but don't change the branch name.
31
+ * Use the main branch as the base branch, unless the user requests otherwise
32
+ * After opening or updating a pull request, send the user a short message with a link to the pull request.
33
+ * Do NOT mark a pull request as ready to review unless the user explicitly says so
34
+ * Do all of the above in as few steps as possible. E.g. you could push changes with one step by running the following bash commands:
35
+ ```bash
36
+ git remote -v && git branch # to find the current org, repo and branch
37
+ git checkout -b create-widget && git add . && git commit -m "Create widget" && git push -u origin create-widget
38
+ ```
39
+
40
+ ## Handling Review Comments
41
+
42
+ - Critically evaluate each review comment before acting on it. Not all feedback is worth implementing:
43
+ - Does it fix a real bug or improve clarity significantly?
44
+ - Does it align with the project's engineering principles (simplicity, maintainability)?
45
+ - Is the suggested change proportional to the benefit, or does it add unnecessary complexity?
46
+ - It's acceptable to respectfully decline suggestions that add verbosity without clear benefit, over-engineer for hypothetical edge cases, or contradict the project's pragmatic approach.
47
+ - After addressing (or deciding not to address) inline review comments, mark the corresponding review threads as resolved.
48
+ - Before resolving a thread, leave a reply comment that either explains the reason for dismissing the feedback or references the specific commit (e.g., commit SHA) that addressed the issue.
49
+ - Prefer resolving threads only once fixes are pushed or a clear decision is documented.
50
+ - Use the GitHub GraphQL API to reply to and resolve review threads (see below).
51
+ - After making changes to a PR, verify the title and description still match the content. Update them if the scope, features, or intent changed.
52
+
53
+ ## Resolving Review Threads via GraphQL
54
+
55
+ To resolve existing review threads programmatically:
56
+
57
+ 1. Get the thread IDs (replace `<OWNER>`, `<REPO>`, `<PR_NUMBER>`):
58
+ ```bash
59
+ gh api graphql -f query='
60
+ {
61
+ repository(owner: "<OWNER>", name: "<REPO>") {
62
+ pullRequest(number: <PR_NUMBER>) {
63
+ reviewThreads(first: 20) {
64
+ nodes {
65
+ id
66
+ isResolved
67
+ comments(first: 1) {
68
+ nodes { body }
69
+ }
70
+ }
71
+ }
72
+ }
73
+ }
74
+ }'
75
+ ```
76
+
77
+ 2. Reply to the thread explaining how the feedback was addressed:
78
+ ```bash
79
+ gh api graphql -f query='
80
+ mutation {
81
+ addPullRequestReviewThreadReply(input: {
82
+ pullRequestReviewThreadId: "<THREAD_ID>"
83
+ body: "Fixed in <COMMIT_SHA>"
84
+ }) {
85
+ comment { id }
86
+ }
87
+ }'
88
+ ```
89
+
90
+ 3. Resolve the thread:
91
+ ```bash
92
+ gh api graphql -f query='
93
+ mutation {
94
+ resolveReviewThread(input: {threadId: "<THREAD_ID>"}) {
95
+ thread { isResolved }
96
+ }
97
+ }'
98
+ ```
99
+
100
+ 4. Get the failed workflow run ID and rerun it:
101
+ ```bash
102
+ # Find the run ID from the failed check URL, or use:
103
+ gh run list --repo <OWNER>/<REPO> --branch <BRANCH> --limit 5
104
+
105
+ # Rerun failed jobs
106
+ gh run rerun <RUN_ID> --repo <OWNER>/<REPO> --failed
107
+ ```