@olegkoval/agent-skills 1.25.0 โ 1.27.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 +8 -2
- package/.cursor-plugin/index.json +30 -0
- package/.grok-plugin/index.json +30 -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/.windsurf/rules/codexloop.md +253 -0
- package/.windsurf/rules/geminiloop.md +229 -0
- package/.windsurf/rules/pr-finalize-complete.md +186 -0
- package/README.md +12 -3
- package/catalog/skills.json +146 -0
- package/package.json +5 -3
- 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-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
- package/site/assets/paperbag.css +707 -0
- package/site/assets/paperbag.js +218 -0
- package/site/build.mjs +380 -0
|
@@ -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
|
+
}
|
|
@@ -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: ["cursor"]
|
|
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,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
|
+
}
|
|
@@ -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 |
|