@olegkoval/agent-skills 1.24.0 → 1.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/plugin.json +9 -2
- package/.cursor-plugin/index.json +35 -0
- package/.grok-plugin/index.json +35 -0
- package/.kiro/steering/codexloop.md +254 -0
- package/.kiro/steering/geminiloop.md +230 -0
- package/.kiro/steering/pr-finalize-complete.md +187 -0
- package/.kiro/steering/pr-finalize.md +140 -0
- package/.windsurf/rules/codexloop.md +253 -0
- package/.windsurf/rules/geminiloop.md +229 -0
- package/.windsurf/rules/pr-finalize-complete.md +186 -0
- package/.windsurf/rules/pr-finalize.md +139 -0
- package/README.md +10 -3
- package/catalog/skills.json +176 -6
- package/package.json +1 -1
- package/packages/software-development/codexloop/SKILL.md +261 -0
- package/packages/software-development/codexloop/adapters/claude/plugin.json +5 -0
- package/packages/software-development/codexloop/adapters/claude/skills/codexloop/SKILL.md +262 -0
- package/packages/software-development/codexloop/adapters/codex/README.md +26 -0
- package/packages/software-development/codexloop/adapters/cursor/plugin.json +6 -0
- package/packages/software-development/codexloop/adapters/cursor/skills/codexloop/SKILL.md +263 -0
- package/packages/software-development/codexloop/adapters/grok/plugin.json +6 -0
- package/packages/software-development/codexloop/adapters/grok/skills/codexloop/SKILL.md +262 -0
- package/packages/software-development/codexloop/adapters/kiro/steering/codexloop.md +254 -0
- package/packages/software-development/codexloop/adapters/windsurf/rules/codexloop.md +253 -0
- package/packages/software-development/dependabot-triage/SKILL.md +150 -0
- package/packages/software-development/dependabot-triage/adapters/claude/plugin.json +5 -0
- package/packages/software-development/dependabot-triage/adapters/claude/skills/dependabot-triage/SKILL.md +151 -0
- package/packages/software-development/dependabot-triage/adapters/codex/README.md +19 -0
- package/packages/software-development/dependabot-triage/adapters/cursor/plugin.json +6 -0
- package/packages/software-development/dependabot-triage/adapters/cursor/skills/dependabot-triage/SKILL.md +151 -0
- package/packages/software-development/dependabot-triage/adapters/grok/plugin.json +6 -0
- package/packages/software-development/dependabot-triage/adapters/grok/skills/dependabot-triage/SKILL.md +151 -0
- package/packages/software-development/geminiloop/SKILL.md +237 -0
- package/packages/software-development/geminiloop/adapters/claude/plugin.json +5 -0
- package/packages/software-development/geminiloop/adapters/claude/skills/geminiloop/SKILL.md +238 -0
- package/packages/software-development/geminiloop/adapters/codex/README.md +25 -0
- package/packages/software-development/geminiloop/adapters/cursor/plugin.json +6 -0
- package/packages/software-development/geminiloop/adapters/cursor/skills/geminiloop/SKILL.md +239 -0
- package/packages/software-development/geminiloop/adapters/grok/plugin.json +6 -0
- package/packages/software-development/geminiloop/adapters/grok/skills/geminiloop/SKILL.md +238 -0
- package/packages/software-development/geminiloop/adapters/kiro/steering/geminiloop.md +230 -0
- package/packages/software-development/geminiloop/adapters/windsurf/rules/geminiloop.md +229 -0
- package/packages/software-development/pr-finalize/SKILL.md +149 -0
- package/packages/software-development/pr-finalize/adapters/claude/plugin.json +5 -0
- package/packages/software-development/pr-finalize/adapters/claude/skills/pr-finalize/SKILL.md +150 -0
- package/packages/software-development/pr-finalize/adapters/codex/README.md +26 -0
- package/packages/software-development/pr-finalize/adapters/cursor/plugin.json +6 -0
- package/packages/software-development/pr-finalize/adapters/cursor/skills/pr-finalize/SKILL.md +151 -0
- package/packages/software-development/pr-finalize/adapters/grok/plugin.json +6 -0
- package/packages/software-development/pr-finalize/adapters/grok/skills/pr-finalize/SKILL.md +150 -0
- package/packages/software-development/pr-finalize/adapters/kiro/steering/pr-finalize.md +140 -0
- package/packages/software-development/pr-finalize/adapters/windsurf/rules/pr-finalize.md +139 -0
- package/packages/software-development/pr-finalize-complete/SKILL.md +195 -0
- package/packages/software-development/pr-finalize-complete/adapters/claude/plugin.json +5 -0
- package/packages/software-development/pr-finalize-complete/adapters/claude/skills/pr-finalize-complete/SKILL.md +196 -0
- package/packages/software-development/pr-finalize-complete/adapters/codex/README.md +24 -0
- package/packages/software-development/pr-finalize-complete/adapters/cursor/plugin.json +6 -0
- package/packages/software-development/pr-finalize-complete/adapters/cursor/skills/pr-finalize-complete/SKILL.md +197 -0
- package/packages/software-development/pr-finalize-complete/adapters/grok/plugin.json +6 -0
- package/packages/software-development/pr-finalize-complete/adapters/grok/skills/pr-finalize-complete/SKILL.md +196 -0
- package/packages/software-development/pr-finalize-complete/adapters/kiro/steering/pr-finalize-complete.md +187 -0
- package/packages/software-development/pr-finalize-complete/adapters/windsurf/rules/pr-finalize-complete.md +186 -0
- package/packages/software-development/pr-to-green/SKILL.md +165 -0
- package/packages/software-development/pr-to-green/adapters/claude/plugin.json +5 -0
- package/packages/software-development/pr-to-green/adapters/claude/skills/pr-to-green/SKILL.md +166 -0
- package/packages/software-development/pr-to-green/adapters/codex/README.md +19 -0
- package/packages/software-development/pr-to-green/adapters/cursor/plugin.json +6 -0
- package/packages/software-development/pr-to-green/adapters/cursor/skills/pr-to-green/SKILL.md +166 -0
- package/packages/software-development/pr-to-green/adapters/grok/plugin.json +6 -0
- package/packages/software-development/pr-to-green/adapters/grok/skills/pr-to-green/SKILL.md +166 -0
- package/packages/software-development/store-listing-copy/SKILL.md +215 -0
- package/packages/software-development/store-listing-copy/adapters/claude/plugin.json +5 -0
- package/packages/software-development/store-listing-copy/adapters/claude/skills/store-listing-copy/SKILL.md +216 -0
- package/packages/software-development/store-listing-copy/adapters/codex/README.md +20 -0
- package/packages/software-development/store-listing-copy/adapters/cursor/plugin.json +6 -0
- package/packages/software-development/store-listing-copy/adapters/cursor/skills/store-listing-copy/SKILL.md +216 -0
- package/packages/software-development/store-listing-copy/adapters/grok/plugin.json +6 -0
- package/packages/software-development/store-listing-copy/adapters/grok/skills/store-listing-copy/SKILL.md +216 -0
|
@@ -0,0 +1,253 @@
|
|
|
1
|
+
<!-- Generated by scripts/build-adapters.sh. Do not edit directly. -->
|
|
2
|
+
|
|
3
|
+
---
|
|
4
|
+
description: "Iteratively drives a GitHub PR to zero unresolved OpenAI Codex review comments — but verifies every finding against the real code first, fixes only the correct ones, and rebuts false positives without changing correct code."
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Codexloop
|
|
8
|
+
|
|
9
|
+
Drive a GitHub PR until Codex has no unresolved review comments — **but do not cargo-cult its
|
|
10
|
+
suggestions.** Every comment is a *claim to verify*, not an instruction to obey. A wrong
|
|
11
|
+
suggestion applied is worse than the comment itself.
|
|
12
|
+
|
|
13
|
+
## How Codex differs from Greptile / Gemini
|
|
14
|
+
|
|
15
|
+
- **No check-run, no score.** Codex does not publish an `X/5` confidence or a named check. It posts
|
|
16
|
+
a **PR review** (state `COMMENTED`) plus inline review comments. Detection is by polling the
|
|
17
|
+
*reviews* endpoint. "Satisfied" = zero unresolved comments (each either fixed or rebutted).
|
|
18
|
+
- **Trigger phrase is `@codex review`.** Codex reviews automatically when a PR opens or gets new
|
|
19
|
+
commits if auto-review is enabled on the repo; the mention forces a fresh pass. Other useful
|
|
20
|
+
mentions: `@codex review focus on <area>` for a scoped re-review.
|
|
21
|
+
- **Priority, not confidence.** Codex findings usually lead with a severity/priority word (`P1`,
|
|
22
|
+
`P2`, `P3` or `critical`/`major`/`minor`) or a short titled heading. Weight the top tier
|
|
23
|
+
seriously; treat the bottom tier as usually-skippable nits unless clearly correct.
|
|
24
|
+
- **Codex is terse and often reasons from the diff alone.** Its characteristic failure is
|
|
25
|
+
confidently asserting a bug based only on the changed hunk, without the surrounding file or the
|
|
26
|
+
call sites. That makes "read the whole file before believing it" the single highest-value check.
|
|
27
|
+
|
|
28
|
+
## Not for
|
|
29
|
+
|
|
30
|
+
- GitLab / Perforce (Codex code review is a GitHub app). For other review bots this catalog ships
|
|
31
|
+
`geminiloop`, `coderabbitloop`, and `qodoloop`; for CI failures rather than review comments, use
|
|
32
|
+
`ci-fix-loop`.
|
|
33
|
+
|
|
34
|
+
## 0. Resolve the Codex bot login (do this first, do not hardcode)
|
|
35
|
+
|
|
36
|
+
The connector's bot login varies by installation, so discover it from the PR rather than
|
|
37
|
+
assuming it:
|
|
38
|
+
|
|
39
|
+
```bash
|
|
40
|
+
gh api repos/{owner}/{repo}/pulls/<PR>/reviews --paginate --jq '.[].user.login' | sort -u
|
|
41
|
+
gh api repos/{owner}/{repo}/pulls/<PR>/comments --paginate --jq '.[].user.login' | sort -u
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
Pick the login matching `*codex*` (commonly `chatgpt-codex-connector[bot]`, sometimes
|
|
45
|
+
`codex[bot]`) and export it as `BOT`.
|
|
46
|
+
|
|
47
|
+
**Finding nothing here is NOT a stop condition.** On a PR Codex has never reviewed there is no bot
|
|
48
|
+
login to find yet — that is the normal starting state, not a missing app. When the probe comes back
|
|
49
|
+
empty, fall through to step 2A, post `@codex review`, and re-run this probe once a review lands;
|
|
50
|
+
until then match any login containing `codex` when polling. Only conclude the app is absent after
|
|
51
|
+
step 2A's bounded wait has expired with no review and no codex-like login anywhere on the PR — and
|
|
52
|
+
then say so and stop, rather than looping against nothing.
|
|
53
|
+
|
|
54
|
+
## 1. Identify the PR
|
|
55
|
+
|
|
56
|
+
```bash
|
|
57
|
+
gh pr view --json number,headRefName,headRefOid -q '{number,branch:.headRefName,head:.headRefOid}'
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
Switch to the PR branch if not already on it. Capture `OWNER`/`REPO` (`gh repo view --json owner,name`).
|
|
61
|
+
|
|
62
|
+
## 2. The loop (max 5 iterations)
|
|
63
|
+
|
|
64
|
+
Keep an explicit iteration counter and stop at 5 — the cap is a real bound to enforce, not a
|
|
65
|
+
figure of speech. Each pass through A–G is one iteration; on hitting the cap, go straight to the
|
|
66
|
+
report and list what is still unresolved rather than starting a sixth.
|
|
67
|
+
|
|
68
|
+
### A. Ensure a fresh Codex review on the current head
|
|
69
|
+
|
|
70
|
+
```bash
|
|
71
|
+
HEAD_SHA=$(gh pr view <PR> --json headRefOid -q .headRefOid)
|
|
72
|
+
# Only trigger if no Codex review already exists for this exact SHA:
|
|
73
|
+
HAVE=$(gh api repos/{owner}/{repo}/pulls/<PR>/reviews --paginate \
|
|
74
|
+
--jq "[.[] | select(.user.login==\"$BOT\" and .commit_id==\"$HEAD_SHA\")] | length")
|
|
75
|
+
if [ "$HAVE" = "0" ]; then gh pr comment <PR> --body "@codex review"; fi
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
Poll for the review of THIS head to land. No check-run exists, so poll the reviews endpoint — and
|
|
79
|
+
poll it on a **deadline**, never `while true`: a review that never arrives must end the skill with
|
|
80
|
+
an honest timeout, not hang it.
|
|
81
|
+
|
|
82
|
+
```bash
|
|
83
|
+
# 10-minute deadline, one retry, then give up. DEADLINE/RETRIES are the
|
|
84
|
+
# enforcement of the bounds this skill claims — do not drop them.
|
|
85
|
+
wait_for_review() { # $1 = attempt label
|
|
86
|
+
local deadline=$(( SECONDS + 600 ))
|
|
87
|
+
while [ "$SECONDS" -lt "$deadline" ]; do
|
|
88
|
+
R=$(gh api repos/{owner}/{repo}/pulls/<PR>/reviews --paginate \
|
|
89
|
+
--jq "[.[] | select(.user.login==\"$BOT\" and .commit_id==\"$HEAD_SHA\")] | last")
|
|
90
|
+
if [ -n "$R" ] && [ "$R" != "null" ]; then return 0; fi
|
|
91
|
+
echo "waiting for Codex review of $HEAD_SHA ($1)..."; sleep 15
|
|
92
|
+
done
|
|
93
|
+
return 1
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
if ! wait_for_review "first wait"; then
|
|
97
|
+
echo "no Codex review after 10m — retrying once" # say the retry out loud
|
|
98
|
+
gh pr comment <PR> --body "@codex review"
|
|
99
|
+
if ! wait_for_review "after retry"; then
|
|
100
|
+
echo "Codex did not review $HEAD_SHA after a retry; stopping and reporting."
|
|
101
|
+
exit 1 # honest timeout, never a success claim
|
|
102
|
+
fi
|
|
103
|
+
fi
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
Codex can take several minutes on a large diff, which is why the deadline is generous. Report the
|
|
107
|
+
retry in the final summary; two silent timeouts are the failure mode this guard exists to prevent.
|
|
108
|
+
|
|
109
|
+
### B. Fetch the findings
|
|
110
|
+
|
|
111
|
+
- **Summary**: the review `.body` from the object above — read the overall take and the priority
|
|
112
|
+
spread.
|
|
113
|
+
- **Unresolved inline comments** on the current head:
|
|
114
|
+
|
|
115
|
+
```bash
|
|
116
|
+
gh api repos/{owner}/{repo}/pulls/<PR>/comments --paginate \
|
|
117
|
+
--jq ".[] | select(.user.login==\"$BOT\") | {id, path, line, body}"
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
Also pull the review threads + their resolved state via GraphQL (see step F) so you only act on
|
|
121
|
+
unresolved ones.
|
|
122
|
+
|
|
123
|
+
### C. Critically evaluate EACH comment (the core of this skill)
|
|
124
|
+
|
|
125
|
+
For every comment, **verify the claim against the actual code and repo conventions before touching
|
|
126
|
+
anything.** Read the whole file — not just the diff hunk Codex saw — plus the types and the call
|
|
127
|
+
sites. Then classify:
|
|
128
|
+
|
|
129
|
+
1. **CORRECT + actionable** — the finding is real and the fix improves the code. → fix it (step D).
|
|
130
|
+
2. **FALSE POSITIVE / technically wrong** — the claim doesn't hold. → do **NOT** change code; write a
|
|
131
|
+
specific, evidence-based reply (cite the exact code/line/behavior that disproves it), then resolve.
|
|
132
|
+
3. **Valid but out-of-scope / stylistic nit** that conflicts with repo convention or the PR's intent
|
|
133
|
+
→ briefly decline with a reason, then resolve. Do not expand the PR's scope to satisfy a nit.
|
|
134
|
+
|
|
135
|
+
**Hard rules:**
|
|
136
|
+
- **Never modify correct code just to silence Codex.** Prefer a reasoned rebuttal.
|
|
137
|
+
- When uncertain whether a claim holds, **investigate** (read more code, run the type-checker / tests)
|
|
138
|
+
rather than assume Codex is right. Default to skepticism.
|
|
139
|
+
- If a suggested change would break other call sites, alter public behavior, or contradict a verified
|
|
140
|
+
repo convention, it is a category-2 rebuttal, not a fix.
|
|
141
|
+
- Never fabricate identifiers to satisfy a comment (e.g. a Linear/ticket prefix). If Codex asks for a
|
|
142
|
+
ticket reference and none exists, say so; do not invent one.
|
|
143
|
+
|
|
144
|
+
**Codex's common failure modes to watch for (default these to category 2):**
|
|
145
|
+
- Diff-local reasoning: asserts a bug that the unchanged surrounding code already handles.
|
|
146
|
+
- "This can be null/undefined here" where the type or an earlier guard already rules it out.
|
|
147
|
+
- Invented race conditions or error paths with no actual trigger.
|
|
148
|
+
- Suggestions that compile-break or break other callers.
|
|
149
|
+
- Security/perf warnings with no exploit path or measurable cost.
|
|
150
|
+
- Restating library/framework semantics incorrectly.
|
|
151
|
+
- Style demands that contradict the repo's existing, consistent pattern.
|
|
152
|
+
|
|
153
|
+
### D. Apply fixes — category 1 only
|
|
154
|
+
|
|
155
|
+
Make the minimal correct change. Re-run the local gate if the repo has one (typecheck/tests) before
|
|
156
|
+
moving on.
|
|
157
|
+
|
|
158
|
+
### E. Commit and push FIRST, before resolving anything
|
|
159
|
+
|
|
160
|
+
Order matters. A resolved thread is a claim that the fix is on the branch, so the push has to
|
|
161
|
+
succeed before the claim is made — otherwise a failed commit or push leaves the PR unfixed with the
|
|
162
|
+
finding marked resolved, and nobody looks at it again.
|
|
163
|
+
|
|
164
|
+
If step D changed code:
|
|
165
|
+
|
|
166
|
+
```bash
|
|
167
|
+
# Stage ONLY the files your fixes touched — never `git add -A`, which sweeps up
|
|
168
|
+
# unrelated work and untracked secrets sitting in the worktree.
|
|
169
|
+
git status --short # look before you stage
|
|
170
|
+
git add <path> [<path>...] # the files named in the findings you fixed
|
|
171
|
+
git commit -m "address codex review feedback (codexloop iteration N)"
|
|
172
|
+
git push
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
Author the commit per the repo's norms (e.g. the user's identity; no AI attribution if that is the
|
|
176
|
+
convention). Confirm the push actually landed before continuing:
|
|
177
|
+
|
|
178
|
+
```bash
|
|
179
|
+
git rev-parse HEAD
|
|
180
|
+
gh pr view <PR> --json headRefOid -q .headRefOid # must match
|
|
181
|
+
```
|
|
182
|
+
|
|
183
|
+
If they differ, stop: the fix is not on the PR, so nothing may be resolved yet.
|
|
184
|
+
|
|
185
|
+
### F. Reply to and resolve every addressed thread
|
|
186
|
+
|
|
187
|
+
Only now, with the fixes pushed, reply and resolve. Fetch unresolved threads, **following
|
|
188
|
+
pagination** — a PR with more than 100 threads will otherwise look clean while unresolved findings
|
|
189
|
+
sit on page two:
|
|
190
|
+
|
|
191
|
+
```bash
|
|
192
|
+
# Loop until hasNextPage is false, passing endCursor back in as $cursor.
|
|
193
|
+
CURSOR=null
|
|
194
|
+
while : ; do
|
|
195
|
+
PAGE=$(gh api graphql -F cursor="$CURSOR" -f query='
|
|
196
|
+
query($cursor: String) {
|
|
197
|
+
repository(owner: "OWNER", name: "REPO") {
|
|
198
|
+
pullRequest(number: PR_NUMBER) {
|
|
199
|
+
reviewThreads(first: 100, after: $cursor) {
|
|
200
|
+
pageInfo { hasNextPage endCursor }
|
|
201
|
+
nodes { id isResolved comments(first: 1) { nodes { databaseId author { login } path body } } }
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
}')
|
|
206
|
+
echo "$PAGE" # collect nodes from every page before deciding the PR is clean
|
|
207
|
+
PI='.data.repository.pullRequest.reviewThreads.pageInfo'
|
|
208
|
+
[ "$(echo "$PAGE" | jq -r "$PI.hasNextPage")" = "true" ] || break
|
|
209
|
+
CURSOR=$(echo "$PAGE" | jq -r "$PI.endCursor")
|
|
210
|
+
done
|
|
211
|
+
```
|
|
212
|
+
|
|
213
|
+
Reply on a thread's comment via `gh api repos/{owner}/{repo}/pulls/<PR>/comments -f body="..." -F in_reply_to=<comment_id>`,
|
|
214
|
+
then resolve:
|
|
215
|
+
|
|
216
|
+
```bash
|
|
217
|
+
gh api graphql -f query='mutation { resolveReviewThread(input: {threadId: "THREAD_ID"}) { thread { isResolved } } }'
|
|
218
|
+
```
|
|
219
|
+
|
|
220
|
+
Resolve a thread only for comments authored by `$BOT` that you have fixed or rebutted — never
|
|
221
|
+
blanket-resolve, and never resolve a human reviewer's thread.
|
|
222
|
+
|
|
223
|
+
Threads you are **rebutting** need no push, so they may be replied to and resolved regardless of
|
|
224
|
+
whether step D changed code.
|
|
225
|
+
|
|
226
|
+
### G. Re-review
|
|
227
|
+
|
|
228
|
+
Pushing re-triggers Codex when auto-review is on; otherwise post `@codex review`. Go back to **A**
|
|
229
|
+
with the new head SHA. If step D changed nothing (all comments were rebutted), skip the push,
|
|
230
|
+
ensure all threads are resolved, and exit.
|
|
231
|
+
|
|
232
|
+
## 3. Exit conditions
|
|
233
|
+
|
|
234
|
+
Stop when **any** is true:
|
|
235
|
+
- Zero unresolved `$BOT` comments remain, and every comment this round was fixed or
|
|
236
|
+
rebutted+resolved. (There is no score to hit — this is "done".)
|
|
237
|
+
- Max iterations (5) reached — report what remains.
|
|
238
|
+
- Codex never responded after one retry — report the timeout honestly; do not claim success.
|
|
239
|
+
|
|
240
|
+
## 4. Report
|
|
241
|
+
|
|
242
|
+
```text
|
|
243
|
+
Codexloop complete.
|
|
244
|
+
PR: #<n>
|
|
245
|
+
Bot login: <resolved $BOT>
|
|
246
|
+
Iterations: N
|
|
247
|
+
Comments fixed: N (genuinely-correct findings)
|
|
248
|
+
Comments rebutted: N (false positives / nits, resolved with rationale)
|
|
249
|
+
Remaining: 0
|
|
250
|
+
```
|
|
251
|
+
|
|
252
|
+
If it stopped at max iterations, list the remaining threads with your current assessment
|
|
253
|
+
(fix-pending vs disputed) so a human can arbitrate.
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: dependabot-triage
|
|
3
|
+
description: >
|
|
4
|
+
Triage all open Dependabot and Renovate PRs in bulk: classify each by risk tier (patch / minor /
|
|
5
|
+
major / security), auto-approve and merge safe patch-only bumps, flag breaking major upgrades with
|
|
6
|
+
a summary of what changed, and post a digest of what was done. Use when dependency PRs are piling
|
|
7
|
+
up, when the user says "deal with Dependabot", "triage dependency updates", or "merge the safe
|
|
8
|
+
ones", or at the start of a maintenance window.
|
|
9
|
+
license: MIT
|
|
10
|
+
allowed-tools: Bash, Read, Write
|
|
11
|
+
compatibility: Codex, Claude Code, Cursor, GitHub Copilot, Windsurf, Kiro, and other Agent Skills compatible tools. Requires git and gh (GitHub CLI) authenticated.
|
|
12
|
+
metadata:
|
|
13
|
+
targets: [_source-only]
|
|
14
|
+
author: Oleg Koval
|
|
15
|
+
tags:
|
|
16
|
+
- dependabot
|
|
17
|
+
- renovate
|
|
18
|
+
- dependencies
|
|
19
|
+
- security
|
|
20
|
+
- automation
|
|
21
|
+
- triage
|
|
22
|
+
- github
|
|
23
|
+
source: weekly-pattern-learner
|
|
24
|
+
source_reason: "obsidian-pr-sync explicitly filters out dependabot/renovate PRs — the user handles them separately, but no skill existed to batch-triage them"
|
|
25
|
+
source_date: "2026-07-31"
|
|
26
|
+
---
|
|
27
|
+
|
|
28
|
+
> 🤖 *Auto-generated by **weekly-pattern-learner** · obsidian-pr-sync explicitly filters out dependabot/renovate PRs — the user handles them separately, but no skill existed to batch-triage them*
|
|
29
|
+
|
|
30
|
+
# Dependabot Triage
|
|
31
|
+
|
|
32
|
+
Bulk-process open Dependabot and Renovate PRs: approve and merge what is safe,
|
|
33
|
+
flag what needs a human decision, and report what was done.
|
|
34
|
+
|
|
35
|
+
## Inputs
|
|
36
|
+
|
|
37
|
+
- **Repository** (optional): default to the current repo.
|
|
38
|
+
- **Auto-merge policy** (optional, default: `patch-only`): `none`, `patch-only`, or `patch-and-minor`.
|
|
39
|
+
- **Require CI** (optional, default: on): only merge PRs whose checks are green.
|
|
40
|
+
|
|
41
|
+
## Step 1 — Fetch all open dependency PRs
|
|
42
|
+
|
|
43
|
+
```bash
|
|
44
|
+
# Dependabot PRs
|
|
45
|
+
gh pr list --state open --label "dependencies" \
|
|
46
|
+
--json number,title,author,labels,headRefName,url,isDraft \
|
|
47
|
+
--jq '.[] | select(.author.login | test("dependabot|renovate"; "i"))'
|
|
48
|
+
|
|
49
|
+
# Also catch Renovate PRs not labelled "dependencies"
|
|
50
|
+
gh pr list --state open \
|
|
51
|
+
--json number,title,author,labels,headRefName,url,isDraft \
|
|
52
|
+
--jq '.[] | select(.author.login == "renovate[bot]" or .author.login == "dependabot[bot]")'
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
Merge both result sets, deduplicate by number, skip drafts.
|
|
56
|
+
|
|
57
|
+
## Step 2 — Classify each PR
|
|
58
|
+
|
|
59
|
+
Parse the PR title to extract package name and version change.
|
|
60
|
+
|
|
61
|
+
Dependabot title format: `Bump <package> from <old> to <new>`
|
|
62
|
+
Renovate title format: `Update dependency <package> to v<new>` or `chore(deps): update <package>`
|
|
63
|
+
|
|
64
|
+
For each PR:
|
|
65
|
+
|
|
66
|
+
```bash
|
|
67
|
+
gh pr view <NUMBER> --json title,body,labels,reviews \
|
|
68
|
+
--jq '{title, body: (.body | .[0:500]), labels: [.labels[].name], reviews: [.reviews[].state]}'
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
Classify:
|
|
72
|
+
|
|
73
|
+
| Tier | Condition | Default action |
|
|
74
|
+
|------|-----------|----------------|
|
|
75
|
+
| **patch** | semver patch bump (`X.Y.Z → X.Y.Z+1`), no security label | auto-approve and merge (if CI green) |
|
|
76
|
+
| **minor** | semver minor bump (`X.Y.Z → X.Y+1.0`), no security label | approve and merge when `patch-and-minor` policy |
|
|
77
|
+
| **major** | semver major bump (`X.Y.Z → X+1.0.0`) | flag for human: summarize breaking changes |
|
|
78
|
+
| **security** | has `security` label, or title contains "CVE" or "vulnerability" | escalate: approve if CI green AND patch/minor; human if major |
|
|
79
|
+
|
|
80
|
+
When in doubt about the bump type (e.g. non-semver packages), treat as `minor`.
|
|
81
|
+
|
|
82
|
+
## Step 3 — Check CI for merge candidates
|
|
83
|
+
|
|
84
|
+
For each PR classified as auto-approvable:
|
|
85
|
+
|
|
86
|
+
```bash
|
|
87
|
+
gh pr checks <NUMBER> --json name,state,conclusion \
|
|
88
|
+
--jq '[.[] | select(.conclusion != "success" and .conclusion != "skipped")] | length'
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
If CI is still running, wait up to 10 minutes (polling every 30s). If CI fails, demote
|
|
92
|
+
to `blocked` — do not merge a PR with failing checks regardless of policy.
|
|
93
|
+
|
|
94
|
+
If CI is disabled for dependency PRs in this repo (no checks at all), note it and proceed
|
|
95
|
+
only when the user has passed `--skip-ci-check` explicitly.
|
|
96
|
+
|
|
97
|
+
## Step 4 — Approve and merge safe PRs
|
|
98
|
+
|
|
99
|
+
For each auto-approvable PR with green CI:
|
|
100
|
+
|
|
101
|
+
```bash
|
|
102
|
+
# Approve
|
|
103
|
+
gh pr review <NUMBER> --approve --body "Auto-approved by dependabot-triage: patch bump, CI green."
|
|
104
|
+
|
|
105
|
+
# Merge (squash is the default; use the repo's configured merge strategy if known)
|
|
106
|
+
gh pr merge <NUMBER> --squash --delete-branch \
|
|
107
|
+
--subject "$(gh pr view <NUMBER> --json title --jq .title)"
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
If the merge fails (conflict, branch protection, etc.), fall back to `blocked` and note it.
|
|
111
|
+
|
|
112
|
+
## Step 5 — Comment on flagged PRs
|
|
113
|
+
|
|
114
|
+
For each `major` or `blocked` PR, post one comment summarizing why it needs a human:
|
|
115
|
+
|
|
116
|
+
```bash
|
|
117
|
+
gh pr comment <NUMBER> --body "**dependabot-triage:** This is a major version bump. \
|
|
118
|
+
Review the changelog before merging: $(gh pr view <NUMBER> --json body --jq '.body | split("\n") | map(select(test("changelog|release|BREAKING"; "i"))) | .[0]').
|
|
119
|
+
|
|
120
|
+
No action was taken."
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
## Step 6 — Report
|
|
124
|
+
|
|
125
|
+
Print a digest, then stop. Do not merge anything not listed as approved in this report.
|
|
126
|
+
|
|
127
|
+
```
|
|
128
|
+
Dependabot triage complete.
|
|
129
|
+
Merged (patch, CI green): 7 PRs → lodash 4.17.20→4.17.21, eslint 8.56.0→8.57.0, ...
|
|
130
|
+
Merged (security, CI green): 1 PR → axios 1.6.2→1.7.9 (CVE-2024-39338)
|
|
131
|
+
Flagged for human review: 2 PRs → next.js 14→15 (major), @types/node 20→22 (major)
|
|
132
|
+
Blocked (CI failing): 1 PR → typescript 5.4→5.5 (lint errors)
|
|
133
|
+
Skipped (draft): 1 PR
|
|
134
|
+
|
|
135
|
+
Open a flagged PR and run /pr-to-green after reviewing the changelog.
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
## Safety guardrails
|
|
139
|
+
|
|
140
|
+
- Never merge a PR whose author is not `dependabot[bot]` or `renovate[bot]`, even if found by the label query.
|
|
141
|
+
- Never merge a major bump automatically, even if `patch-and-minor` policy is set.
|
|
142
|
+
- Never approve a PR if `gh pr checks` shows any failure — a quiet pass is not the same as no checks.
|
|
143
|
+
- Always post a comment on flagged PRs so the record is visible in the thread.
|
|
144
|
+
|
|
145
|
+
## Chaining
|
|
146
|
+
|
|
147
|
+
| Before this skill | After this skill |
|
|
148
|
+
|---|---|
|
|
149
|
+
| morning routine / maintenance window | `olko:pr-to-green` on flagged PRs after human review |
|
|
150
|
+
| `olko:obsidian-pr-sync` (which filters these out) | back to obsidian-pr-sync for remaining human PRs |
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: dependabot-triage
|
|
3
|
+
description: >
|
|
4
|
+
Triage all open Dependabot and Renovate PRs in bulk: classify each by risk tier (patch / minor /
|
|
5
|
+
major / security), auto-approve and merge safe patch-only bumps, flag breaking major upgrades with
|
|
6
|
+
a summary of what changed, and post a digest of what was done. Use when dependency PRs are piling
|
|
7
|
+
up, when the user says "deal with Dependabot", "triage dependency updates", or "merge the safe
|
|
8
|
+
ones", or at the start of a maintenance window.
|
|
9
|
+
license: MIT
|
|
10
|
+
allowed-tools: Bash, Read, Write
|
|
11
|
+
compatibility: Codex, Claude Code, Cursor, GitHub Copilot, Windsurf, Kiro, and other Agent Skills compatible tools. Requires git and gh (GitHub CLI) authenticated.
|
|
12
|
+
metadata:
|
|
13
|
+
targets: [_source-only]
|
|
14
|
+
author: Oleg Koval
|
|
15
|
+
tags:
|
|
16
|
+
- dependabot
|
|
17
|
+
- renovate
|
|
18
|
+
- dependencies
|
|
19
|
+
- security
|
|
20
|
+
- automation
|
|
21
|
+
- triage
|
|
22
|
+
- github
|
|
23
|
+
source: weekly-pattern-learner
|
|
24
|
+
source_reason: "obsidian-pr-sync explicitly filters out dependabot/renovate PRs — the user handles them separately, but no skill existed to batch-triage them"
|
|
25
|
+
source_date: "2026-07-31"
|
|
26
|
+
---
|
|
27
|
+
<!-- Generated by scripts/build-adapters.sh. Do not edit directly. -->
|
|
28
|
+
|
|
29
|
+
> 🤖 *Auto-generated by **weekly-pattern-learner** · obsidian-pr-sync explicitly filters out dependabot/renovate PRs — the user handles them separately, but no skill existed to batch-triage them*
|
|
30
|
+
|
|
31
|
+
# Dependabot Triage
|
|
32
|
+
|
|
33
|
+
Bulk-process open Dependabot and Renovate PRs: approve and merge what is safe,
|
|
34
|
+
flag what needs a human decision, and report what was done.
|
|
35
|
+
|
|
36
|
+
## Inputs
|
|
37
|
+
|
|
38
|
+
- **Repository** (optional): default to the current repo.
|
|
39
|
+
- **Auto-merge policy** (optional, default: `patch-only`): `none`, `patch-only`, or `patch-and-minor`.
|
|
40
|
+
- **Require CI** (optional, default: on): only merge PRs whose checks are green.
|
|
41
|
+
|
|
42
|
+
## Step 1 — Fetch all open dependency PRs
|
|
43
|
+
|
|
44
|
+
```bash
|
|
45
|
+
# Dependabot PRs
|
|
46
|
+
gh pr list --state open --label "dependencies" \
|
|
47
|
+
--json number,title,author,labels,headRefName,url,isDraft \
|
|
48
|
+
--jq '.[] | select(.author.login | test("dependabot|renovate"; "i"))'
|
|
49
|
+
|
|
50
|
+
# Also catch Renovate PRs not labelled "dependencies"
|
|
51
|
+
gh pr list --state open \
|
|
52
|
+
--json number,title,author,labels,headRefName,url,isDraft \
|
|
53
|
+
--jq '.[] | select(.author.login == "renovate[bot]" or .author.login == "dependabot[bot]")'
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
Merge both result sets, deduplicate by number, skip drafts.
|
|
57
|
+
|
|
58
|
+
## Step 2 — Classify each PR
|
|
59
|
+
|
|
60
|
+
Parse the PR title to extract package name and version change.
|
|
61
|
+
|
|
62
|
+
Dependabot title format: `Bump <package> from <old> to <new>`
|
|
63
|
+
Renovate title format: `Update dependency <package> to v<new>` or `chore(deps): update <package>`
|
|
64
|
+
|
|
65
|
+
For each PR:
|
|
66
|
+
|
|
67
|
+
```bash
|
|
68
|
+
gh pr view <NUMBER> --json title,body,labels,reviews \
|
|
69
|
+
--jq '{title, body: (.body | .[0:500]), labels: [.labels[].name], reviews: [.reviews[].state]}'
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
Classify:
|
|
73
|
+
|
|
74
|
+
| Tier | Condition | Default action |
|
|
75
|
+
|------|-----------|----------------|
|
|
76
|
+
| **patch** | semver patch bump (`X.Y.Z → X.Y.Z+1`), no security label | auto-approve and merge (if CI green) |
|
|
77
|
+
| **minor** | semver minor bump (`X.Y.Z → X.Y+1.0`), no security label | approve and merge when `patch-and-minor` policy |
|
|
78
|
+
| **major** | semver major bump (`X.Y.Z → X+1.0.0`) | flag for human: summarize breaking changes |
|
|
79
|
+
| **security** | has `security` label, or title contains "CVE" or "vulnerability" | escalate: approve if CI green AND patch/minor; human if major |
|
|
80
|
+
|
|
81
|
+
When in doubt about the bump type (e.g. non-semver packages), treat as `minor`.
|
|
82
|
+
|
|
83
|
+
## Step 3 — Check CI for merge candidates
|
|
84
|
+
|
|
85
|
+
For each PR classified as auto-approvable:
|
|
86
|
+
|
|
87
|
+
```bash
|
|
88
|
+
gh pr checks <NUMBER> --json name,state,conclusion \
|
|
89
|
+
--jq '[.[] | select(.conclusion != "success" and .conclusion != "skipped")] | length'
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
If CI is still running, wait up to 10 minutes (polling every 30s). If CI fails, demote
|
|
93
|
+
to `blocked` — do not merge a PR with failing checks regardless of policy.
|
|
94
|
+
|
|
95
|
+
If CI is disabled for dependency PRs in this repo (no checks at all), note it and proceed
|
|
96
|
+
only when the user has passed `--skip-ci-check` explicitly.
|
|
97
|
+
|
|
98
|
+
## Step 4 — Approve and merge safe PRs
|
|
99
|
+
|
|
100
|
+
For each auto-approvable PR with green CI:
|
|
101
|
+
|
|
102
|
+
```bash
|
|
103
|
+
# Approve
|
|
104
|
+
gh pr review <NUMBER> --approve --body "Auto-approved by dependabot-triage: patch bump, CI green."
|
|
105
|
+
|
|
106
|
+
# Merge (squash is the default; use the repo's configured merge strategy if known)
|
|
107
|
+
gh pr merge <NUMBER> --squash --delete-branch \
|
|
108
|
+
--subject "$(gh pr view <NUMBER> --json title --jq .title)"
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
If the merge fails (conflict, branch protection, etc.), fall back to `blocked` and note it.
|
|
112
|
+
|
|
113
|
+
## Step 5 — Comment on flagged PRs
|
|
114
|
+
|
|
115
|
+
For each `major` or `blocked` PR, post one comment summarizing why it needs a human:
|
|
116
|
+
|
|
117
|
+
```bash
|
|
118
|
+
gh pr comment <NUMBER> --body "**dependabot-triage:** This is a major version bump. \
|
|
119
|
+
Review the changelog before merging: $(gh pr view <NUMBER> --json body --jq '.body | split("\n") | map(select(test("changelog|release|BREAKING"; "i"))) | .[0]').
|
|
120
|
+
|
|
121
|
+
No action was taken."
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
## Step 6 — Report
|
|
125
|
+
|
|
126
|
+
Print a digest, then stop. Do not merge anything not listed as approved in this report.
|
|
127
|
+
|
|
128
|
+
```
|
|
129
|
+
Dependabot triage complete.
|
|
130
|
+
Merged (patch, CI green): 7 PRs → lodash 4.17.20→4.17.21, eslint 8.56.0→8.57.0, ...
|
|
131
|
+
Merged (security, CI green): 1 PR → axios 1.6.2→1.7.9 (CVE-2024-39338)
|
|
132
|
+
Flagged for human review: 2 PRs → next.js 14→15 (major), @types/node 20→22 (major)
|
|
133
|
+
Blocked (CI failing): 1 PR → typescript 5.4→5.5 (lint errors)
|
|
134
|
+
Skipped (draft): 1 PR
|
|
135
|
+
|
|
136
|
+
Open a flagged PR and run /pr-to-green after reviewing the changelog.
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
## Safety guardrails
|
|
140
|
+
|
|
141
|
+
- Never merge a PR whose author is not `dependabot[bot]` or `renovate[bot]`, even if found by the label query.
|
|
142
|
+
- Never merge a major bump automatically, even if `patch-and-minor` policy is set.
|
|
143
|
+
- Never approve a PR if `gh pr checks` shows any failure — a quiet pass is not the same as no checks.
|
|
144
|
+
- Always post a comment on flagged PRs so the record is visible in the thread.
|
|
145
|
+
|
|
146
|
+
## Chaining
|
|
147
|
+
|
|
148
|
+
| Before this skill | After this skill |
|
|
149
|
+
|---|---|
|
|
150
|
+
| morning routine / maintenance window | `olko:pr-to-green` on flagged PRs after human review |
|
|
151
|
+
| `olko:obsidian-pr-sync` (which filters these out) | back to obsidian-pr-sync for remaining human PRs |
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# Codex Adapter for dependabot-triage
|
|
2
|
+
|
|
3
|
+
This is a Codex-specific adapter for the `olko:dependabot-triage` skill.
|
|
4
|
+
The canonical skill definition is in `../../SKILL.md`.
|
|
5
|
+
|
|
6
|
+
## Usage
|
|
7
|
+
|
|
8
|
+
Invoke in a Codex session:
|
|
9
|
+
|
|
10
|
+
```text
|
|
11
|
+
Use the olko:dependabot-triage skill to triage the open Dependabot PRs in this repo.
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
## Workflow
|
|
15
|
+
|
|
16
|
+
See `../../SKILL.md` for the full workflow: fetch all open Dependabot and Renovate PRs,
|
|
17
|
+
classify each by risk tier (patch/minor/major/security), auto-approve and merge safe
|
|
18
|
+
patch bumps whose CI is green, flag major upgrades with a comment for human review, and
|
|
19
|
+
post a digest of what was done. The procedure is plain `gh` and is agent-agnostic.
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "olko:dependabot-triage",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Triage open Dependabot and Renovate PRs in bulk: classify by risk tier, auto-approve and merge safe patch bumps, flag breaking major upgrades for human review, and post a digest.",
|
|
5
|
+
"skills": "skills/"
|
|
6
|
+
}
|