From zed
Find an open Dependabot PR that is ready to merge and merge it using the repo's default merge method.
How this skill is triggered — by the user, by Claude, or both
Slash command
/zed:dependabot-mergeThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Merge the oldest open Dependabot PR that is ready to merge (no conflicts, all checks passing).
Merge the oldest open Dependabot PR that is ready to merge (no conflicts, all checks passing).
Run the helper script to retrieve all open Dependabot PRs and their merge readiness:
bash "${CLAUDE_PLUGIN_ROOT}/scripts/dependabot-prs.sh"
If the script reports no open Dependabot PRs, tell the user and stop.
If the script fails, report the error and stop.
Parse the JSONL output. Each line is a JSON object with these fields:
number — PR numbertitle — PR titlebranch — head branch namemergeable — merge state: MERGEABLE, CONFLICTING, or UNKNOWNchecks_pass — boolean or null; true if all status checks succeeded, false if any failed, null if check info is unavailable (token lacks checks:read permission)review_decision — review decision (may be empty if no reviews required)url — PR URLA PR is ready to merge when both conditions are met:
mergeable is MERGEABLEchecks_pass is true OR null (when null, use --auto to let GitHub enforce branch protection rules)Filter the list to only ready-to-merge PRs.
If no PRs are ready to merge, tell the user there are no Dependabot PRs ready to merge right now (mention how many open PRs there are and why they aren't ready — conflicts, pending/failing checks, etc.) and stop.
Select the first ready PR from the list (PRs are sorted oldest-first, so this merges the longest-waiting PR).
Tell the user which PR you are going to merge, including:
Merge the selected PR:
gh pr merge <number> --merge
Report the result to the user. If the merge fails due to branch protection rules, rulesets, or any other policy, report the error to the user and stop. Do not retry with --admin or any other flag that bypasses protections.
Guides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.
npx claudepluginhub zostay/zed --plugin zed