Logo van Pc Ci Dependency Bot

Pc Ci Dependency Bot

Organisatie
partcad
pc-ci-dependency-bot

Sweep the open dependency-bot pull requests once - rebase the stale ones, re-trigger infrastructure failures, and merge the green patch and minor updates. Use when the user wants to baby sit, unblock, or push through pending dependabot pull requests, and on each firing of a /loop that watches them.

Overzicht

Uitgeverpartcad
Repositorypartcad
Skillnaampc-ci-dependency-bot
Sterren
504
Forks
47
Meegeleverde bestanden
Alleen instructies
LicentieApache-2.0
Links
  • Instructies in Markdown

    Het model laadt het bestand SKILL.md alleen als dat nodig is. Dat kost dus alleen tokens als een verzoek daadwerkelijk bij de skill past.

  • Werkt met elk LLM

    AI-skills bestaan uit instructies in gewone Markdown, niet uit aanbiederspecifieke code. Daardoor werken ze met GPT, Claude, Gemini, Grok of een lokaal model.

  • Compleet zonder extra bestanden

    Alles wat het model nodig heeft, staat in de instructies — geen extra bestanden om te synchroniseren.

  • Open source

    Gepubliceerd door partcad op GitHub. Bekijk de bronbestanden voordat je de skill installeert.

Installatie

Installeer de AI-skill Pc Ci Dependency Bot in TypingMind om deze met elk LLM te gebruiken, of voeg de skill toe aan een andere agent die SKILL.md kan lezen.

1

Installeren in TypingMind

TypingMind installeert een skill rechtstreeks vanuit de GitHub-map. De app leest SKILL.md, bundelt de bijbehorende bestanden en slaat het resultaat lokaal op.

  1. Open de app en ga naar Plug-ins → Skills.
  2. Kies "Installeren via GitHub".
  3. Plak de onderstaande URL van de skillmap en bevestig.
    https://github.com/partcad/partcad/tree/devel/.claude/skills/pc-ci-dependency-bot
  4. Schakel de skill in voor elke chat waarin je de skill wilt kunnen gebruiken.
Plug-ins → Skills → Skill toevoegen → Via GitHub-URL. Plak vervolgens de map-URL en druk op Doorgaan.
2

Installeren in een andere agent

Elke agent die het Agent Skills-formaat kan lezen, kan deze skill gebruiken — kopieer de map naar de skillmap van die agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/partcad/partcad.git /tmp/partcad
mkdir -p .claude/skills
cp -r /tmp/partcad/.claude/skills/pc-ci-dependency-bot .claude/skills/pc-ci-dependency-bot
Start Claude Code na het kopiëren opnieuw op, zodat de nieuwe skill wordt herkend.

Gebruik deze skill in TypingMind

Schakel Pc Ci Dependency Bot in voor een chat naar keuze in TypingMind en het model doet de rest. De naam en beschrijving staan in de systeemprompt. Zodra een verzoek bij de skill past, laadt het model zelf de volledige instructies. Je hoeft de skill nooit handmatig aan te roepen. Pas als het model de skill daadwerkelijk gebruikt, kost dat tokens.

Het model laadt Pc Ci Dependency Bot automatisch zodra een verzoek erbij past.

Werkt met elk AI-model

AI-skills zijn gewone Markdown-instructies in plaats van aanbiederspecifieke code. Daardoor is Pc Ci Dependency Bot niet gebonden aan het model waarvoor de skill is geschreven. Installeer de skill één keer in TypingMind en gebruik deze met GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama of een lokaal model dat je zelf draait — allemaal met je eigen API-sleutels.

  • Alleen geladen wanneer nodig

    De systeemprompt bevat alleen de naam en beschrijving. De instructies worden bij het eerste bijpassende verzoek opgehaald, dus een ongebruikte skill kost niets.

  • Wissel van model tijdens een chat

    Omdat de skill uit instructies bestaat en niet uit code, blijft deze werken als je van model wisselt — het volgende model leest hetzelfde SKILL.md-bestand.

Skillinstructies

Dit is de inhoud van SKILL.md die het model laadt. Lees deze vóór de installatie — een skill bestaat uit instructies die je model zal volgen.

Sweep the open dependency-bot pull requests once: rebase the stale ones, re-trigger infrastructure failures, and merge the ones that are green and in scope.

This skill performs a single pass and exits. It never sleeps and never loops internally. To baby sit continuously, drive it from the loop skill:

/loop 1h pc-ci-dependency-bot

Each firing is a fresh session with no memory of the last one, so every piece of state this skill relies on is re-read from the GitHub API rather than carried in context.

Scope: GitHub only. The triage below is built on gh and on dependabot's comment commands. GitLab and Gerrit are not supported — stop and say so rather than improvising an equivalent.

Input: Optionally a repository (URL or OWNER/NAME). Defaults to the current working directory's repository.

Steps

1. Select the repository

If the user named a repository, use it. Otherwise infer it from the conversation, then fall back to git remote get-url origin. If it is still ambiguous, ask with the AskUserQuestion tool.

Announce the choice and how to change it:

Using upstream: <owner/name> — re-run with `pc-ci-dependency-bot <owner/name>` to target another repository.

Pass the repository explicitly on every gh call (--repo <owner/name>) so the skill behaves identically inside and outside a checkout.

2. List the open bot pull requests

bash
gh pr list --repo <owner/name> --state open --author "app/dependabot" \
  --json number,title,url,headRefName,mergeStateStatus,labels

If the list is empty, report "No open dependency-bot pull requests" and exit. Do not wait — the next /loop firing is the wait.

Note that this repository configures dependabot for github-actions on a monthly interval (.github/dependabot.yml), so most passes will find nothing. That is the expected outcome, not a failure.

Then handle each pull request with steps 3–6. A pull request that gets an action in step 3 is done for this pass; move to the next one.

3. Bring the pull request up to date first

CI results from before a base-branch move describe a merge that no longer exists, so settle freshness before reading any logs.

Read mergeStateStatus from step 2:

  • BEHIND — the branch is out of date. Ask dependabot to rebase and move on to the next pull request; the new runs are evaluated on a later pass:

    bash
    gh pr comment <number> --repo <owner/name> --body "@dependabot rebase"

    Do not re-comment if the most recent comment on the pull request is already an unactioned @dependabot rebase — check with gh pr view <number> --repo <owner/name> --json comments. Dependabot queues these, and repeating the request hourly spams the thread without changing anything.

  • DIRTY — the branch conflicts with the base. Dependabot cannot rebase through a conflict. Report it under "Needs attention" and move on.

  • BLOCKED — a required review or check is missing, or branch protection is unsatisfied. Continue to step 4; the merge in step 6 will surface the real reason.

  • CLEAN, UNSTABLE, HAS_HOOKS — up to date. Continue to step 4.

4. Read the check status

bash
gh pr checks <number> --repo <owner/name> --json name,state,bucket,link

The bucket field categorises each check as pass, fail, pending, skipping, or cancel.

  • Any check in pending — the pull request is still building. Skip it this pass and report it as pending.
  • All checks in pass or skipping — go to step 6.
  • Any check in fail or cancel — go to step 5.

5. Triage the failures

For each failing check, read enough of the log to classify it:

bash
gh run view <run-id> --repo <owner/name> --log-failed

Re-trigger only failures that are not caused by the pull request — network timeouts, runner eviction, registry rate limits, corrupted package downloads and similar infrastructure noise. Compile errors, test assertions and lint violations are caused by the change: leave them, and report the pull request under "Needs attention".

Before re-triggering, check how many attempts the run has already had. The attempt counter lives in the API, which is what makes it survive across /loop firings:

bash
gh run list --repo <owner/name> --branch <headRefName> \
  --json databaseId,workflowName,conclusion,status,attempt

attempt is 1 for a run that has never been re-triggered. Re-trigger at most 3 times — if attempt >= 4, stop re-triggering that run and report the pull request under "Needs attention" instead. A failure that survives three re-runs is not flaky, whatever the log looks like.

bash
gh run rerun <run-id> --repo <owner/name> --failed

A re-trigger completes this pull request for this pass; the result is evaluated on a later firing.

6. Merge what is in scope

Only reached when every check passes.

Check the version jump before merging. Dependabot titles carry it, in the form bump <dependency> from <old> to <new>. Compare the leading numeric component:

  • Patch or minor bump — approve and merge:

    bash
    gh pr review <number> --repo <owner/name> --approve
    gh pr merge <number> --repo <owner/name> --squash
  • Major bump (leading component differs, e.g. from 4 to 8) — do not merge. Green CI does not prove a major bump is safe; it proves the parts covered by CI still run. Report it under "Needs attention" with the old and new versions and let a human decide.

  • Version unparseable from the title — treat it as a major bump and report it.

If the merge is rejected (branch protection, required reviewers, a merge queue), report the error verbatim rather than working around it.

Output

Report every pull request examined, then exit.

Using upstream: <owner/name> — re-run with `pc-ci-dependency-bot <owner/name>` to target another repository.

## PR #<number> — <title>
<what was found and what was done>
✓ <Merged | Rebase requested | Re-triggered (attempt N of 3) | Pending>

## PR #<number> — <title>
<what was found and what was done>
✓ <action>

---
Swept N pull requests: <x> merged, <y> awaiting CI, <z> need attention.

If any pull request needs a human:

## Needs attention

**PR:** #<number> — <title>
**URL:** <url>

### Issue
<what is blocking it: conflict, real test failure, exhausted retries, or major version bump>

**Options:**
1. <option 1>
2. <option 2>
3. Other approach

End the pass there. Do not ask a blocking question and do not wait for an answer — a /loop firing has no one to answer it. Report the options and exit; the user acts between firings.

Guardrails

  • One pass per invocation. Never sleep, never restart from step 1.
  • Never re-trigger a run that is already on its 4th attempt.
  • Never re-trigger a failure the pull request actually caused.
  • Report blockers and exit rather than guessing or working around branch protection.

Veelgestelde vragen

Wat doet de AI-skill Pc Ci Dependency Bot?

Sweep the open dependency-bot pull requests once - rebase the stale ones, re-trigger infrastructure failures, and merge the green patch and minor updates. Use when the user wants to baby sit, unblock, or push through pending dependabot pull requests, and on each firing of a /loop that watches them.

Waarom Pc Ci Dependency Bot gebruiken in TypingMind?

Omdat je deze skill één keer installeert en met elk model kunt gebruiken. Pc Ci Dependency Bot bestaat uit gewone Markdown in plaats van aanbiederspecifieke code. Dezelfde skill werkt dus met GPT-5, Claude, Gemini, Grok of een lokaal model. Ook als je midden in een chat van model wisselt, blijft de skill werken. TypingMind werkt met je eigen API-sleutels, dus je betaalt aanbieders rechtstreeks in plaats van een abonnement per gebruikersplek af te sluiten. Je skills en chats blijven in je eigen opslag.

Hoe installeer ik Pc Ci Dependency Bot in TypingMind?

Open Plug-ins → Skills → Installeren vanaf GitHub in TypingMind en plak https://github.com/partcad/partcad/tree/devel/.claude/skills/pc-ci-dependency-bot. TypingMind leest het bestand SKILL.md en installeert het als een skill die je per chat kunt inschakelen.

Welke AI-modellen kunnen Pc Ci Dependency Bot gebruiken?

Elk model dat je in TypingMind koppelt. AI-skills bestaan uit gewone Markdown-instructies in plaats van aanbiederspecifieke code. GPT, Claude, Gemini, Grok en lokale modellen kunnen deze skill dus allemaal laden wanneer een verzoek erbij past.

Hoeveel AI-modellen kan ik met Pc Ci Dependency Bot gebruiken?

Zoveel als je wilt. Je kunt Pc Ci Dependency Bot gebruiken met elk model dat skills ondersteunt, zoals GPT, Claude, Gemini, Grok, DeepSeek, Mistral of Llama. Allemaal in TypingMind met je eigen API-sleutels.

Is de AI-skill Pc Ci Dependency Bot gratis?

Ja. Deze skill is door partcad op GitHub gepubliceerd onder de licentie Apache-2.0. Je betaalt alleen je eigen AI-aanbieder voor de tokens die je gebruikt.

Wat zijn AI-skills?

Een AI-skill is een herbruikbare bundel instructies die een AI-model leert hoe het één specifieke taak moet uitvoeren. De skill volgt het open Agent Skills-formaat: het bestand SKILL.md bevat de naam en beschrijving van de skill. Daarnaast kan de skill scripts, sjablonen of referentiebestanden bevatten die het model nodig heeft. Het model leest de instructies alleen als je verzoek bij de skill past. Een geïnstalleerde skill kost dus niets zolang deze niet wordt gebruikt.

Waarin verschillen AI-skills van plug-ins of MCP-servers?

Een plug-in of MCP-server geeft een model nieuwe tools om aan te roepen: code die ergens wordt uitgevoerd en een resultaat teruggeeft. Een AI-skill geeft het model juist kennis en een werkwijze: hoe het een taak moet aanpakken, welke stappen het moet volgen en hoe goede uitvoer eruitziet. Skills bestaan uit gewone Markdown en hebben dus geen server, API-sleutel of runtime nodig. Ze werken met elk model.

Bekijk alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇