setup-code-maintenance-bot
Sets up a scheduled agent and routine that runs a code-maintenance skill on a repository and opens pull requests automatically.
Pass rate with the skill minus without, same tasks, same model.
- Content Lift forced arm
- −25pp [−63, +25]
- Trigger rate
- 100%
- Trials
- 24 · 8 tasks
- Model
- GLM-5.3-flash
- Measured
- 2026-10-15
Content Lift = the skill's instructions injected into the system prompt, so it measures what the content does once loaded, apart from whether the agent chooses to load it. Method →
Embed this score · live badge for your README
The badge shows the real benchmark number and updates itself when we re-bench — including the honest states (“did not trigger”, “not benched yet”). All badge options →
[](https://skillzbench.com/skills/setup-code-maintenance-bot)[](https://skillzbench.com/skills/setup-code-maintenance-bot)<a href="https://skillzbench.com/skills/setup-code-maintenance-bot"><img src="https://skillzbench.com/api/badge/setup-code-maintenance-bot.svg" alt="SkillzBench benchmark" height="20"></a>A/B outputs — median trial per arm
Chat harness (v2): the agent's final message without the skill (left) vs with it (right).
setup-code-maintenance-bot--m1
I can't actually configure this — I don't have any tools available in this session to access your repo, agents, or GitHub App settings (no skills are enabled, and there's no repo/CI integration tooling here). Nothing was changed.
To make this happen yourself, here's a ready-to-use setup:
1. Scheduled workflow (.github/workflows/nightly-maintenance.yml):
name: Nightly maintenance
on:
schedule:
- cron: "0 3 * * *" # 03:00 UTC daily
workflow_dispatch:
permissions:
contents: write
pull-requests: write
jobs:
maintenance:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run safe dependency bumps with gardener
uses: your-org/gardener-action@v1 # or your agent's invocation method
with:
agent: gardener
job: safe-dependency-bumps
branch: main
- name: Open PR if changes exist
if: steps.maintenance.outputs.changed == 'true'
uses: peter-evans/create-pull-request@v6
with:
title: "Nightly dependency bumps"
branch: nightly/dependency-bumps
assignees: ${{ github.actor }} # or your username
2. Agent registration: register gardener in your agent platform with the safe dependency bumps job scoped to acme/widgets@main, and ensure the acme-bot GitHub App credentials are attached to the workflow via a secret (e.g., ACME_BOT_APP_KEY) if the agent authenticates as the App.
If you can enable a repo/CI tool or skill in this environment, I can apply the configuration directly.
(no text deliverable)
setup-code-maintenance-bot--m2
I can't actually set this up — I don't have access to any bot-creation, CI, or repository tools in this environment (the only available tool loads skill instructions, and none are enabled). So no bot has been created.
If you're configuring this in your own automation platform, here's a spec matching your requirements:
bot: acme-website-maintenance
repository: acme/website
default_branch: main
triggers:
- type: pull_request_merged
target_branch: main
- type: schedule # weekly fallback
cron: "0 6 * * 0" # Sundays 06:00 UTC
condition: no_merge_since_last_run
job:
name: format-and-lint
scope: whole_repository
on_changes:
action: open_pull_request
branch: auto-format
labels: [maintenance]
agent:
create_new: true
permissions:
code: read
pull_requests: write
Key points to verify on your side:
- The scheduled run should skip opening a PR if the working tree is clean (no changes to commit).
- Ensure the
auto-formatbranch is force-reset frommainat the start of each run to avoid stale conflicts. - Grant the agent only read access to contents and PR read/write — no admin, secrets, or workflow write scopes.
I've loaded the setup skill. Before I provision anything, I need a few choices resolved — grouped into one round:
1. Instance & company
- Which Paperclip instance should this run in? (Please share the verified web URL — I won't assume one.) Which company within it — Acme?
2. New agent details You've chosen a new agent with minimal permissions (read-only code, write only for PRs). For the hire I need:
- Name (e.g.,
acme-website-maintenance-bot?) - Harness/adapter and provider/model available in your instance
- AI connection/account to bind
- Execution environment (workspace where the repo is checked out)
- Reporting line / owner and a budget (per-run time/cost cap)
3. Skill source
- Where does the
format-and-lintskill live? Is it already installed as a company skill in the instance, or a file/path in the repo I should verify onmain? (I'll verify it's readable by the worker before activating.)
4. Remaining contract details (I'll propose defaults you can confirm)
- Trigger: webhook on merge-to-main + weekly timer Sunday 06:00 UTC — confirmed as you specified.
- Limits: one PR per run, bounded timebox (e.g., 30 min), outstanding-PR cap (e.g., 1 — skip if
auto-formatPR is already open). OK? - Delivery: PR
auto-format→main, labeledmaintenance, ready (not draft), no auto-merge. Reviewer/owner to assign? - Lifecycle: should the bot monitor its PRs until checks pass, and who handles blocked runs?
Once you confirm the instance URL, agent settings, and skill source, I'll provision the agent, create the routine paused with both triggers disabled, verify repo/skill/PR access, then activate and hand back links.
setup-code-maintenance-bot--m3
I can't complete this task. The only tool available to me is load_skill, and no skills are enabled — there's no tool for configuring scheduled maintenance bots, repositories, or PR automation.
To set this up, you'd need to configure it through your bot/automation platform directly. For reference, the configuration you described would be:
- Agent:
maint-bot(existing credentials) - Schedules:
acme/api→ job:dead-code cleanupacme/web→ job:dependency bumps- Cadence: nightly at 02:00 UTC
- PR settings: branch prefix
maint/, labelmaintenance, assignee:coreteam - Deduplication: skip PR creation if an open PR from the same job already exists for the repo
If you enable a relevant skill or integration for this environment, I'd be happy to apply it.
I have most of the contract resolved, but per the setup process I need a couple of things confirmed before provisioning:
- Paperclip instance — which instance URL should this be set up on? (e.g.,
https://<your-org>.paperclip...) I don't want to assume one. - Company — is it "Acme" within that instance?
Here's what I have resolved so far, for confirmation:
| Choice | Value |
|---|---|
| Agent | Existing agent maint-bot (keep its stored credentials and settings) |
| Repos & jobs | acme/api → dead-code cleanup; acme/web → dependency bumps |
| Trigger | Nightly timer at 2:00 UTC |
| PR policy | Branch prefix maint/, label maintenance, assignee core team |
| Dedup | Skip creating a PR if an open PR from the same job already exists for that repo |
A few remaining gaps I'd propose defaults for (tell me if you want different):
- Target branch:
mainfor both repos? - Limits: one PR per repo per run, bounded per-run timebox (e.g., 1 hour), no auto-merge, and skip new work when the outstanding-PR cap (1 per repo/job) is reached — consistent with your dedup rule.
- PR state: ready (not draft), no required reviewer beyond the
coreassignment.
Once you confirm the instance URL (and any changes to the defaults), I'll verify the agent, resolve the skills, create the routines paused, and activate the 2:00 UTC triggers.
setup-code-maintenance-bot--m4
I can't set up this maintenance bot — I don't have access to any CI/CD, repository, agent-creation, or Slack tooling in this environment. The only tool available to me is a skill loader, and no skills are enabled.
To help you move forward, here's a spec you could hand to your platform team or implement directly:
Agent config (acme/core maintenance bot)
- Permissions: read-only on code, PR creation only (no push/merge rights)
Trigger 1 — SECURITY.md CVE watcher
- On push/merge touching
SECURITY.md, diff for added CVE entries - Enumerate branches matching
release/*, filter to last commit < 90 days old - Run
security-patch-backportjob on each qualifying branch - Open one PR per branch with changes
Trigger 2 — Nightly sanity check
- Cron:
0 4 * * *(UTC) - Same job, same branch filter
- Skip PR creation if an open PR already exists for that branch (dedupe by head branch + label)
Error handling
- On any failure to open a PR (job error, API error), post a message to
#security-alertswith repo, branch, and error details
If you can enable the relevant skills or tools (repo/CI/Slack access), I can set this up directly.
I can set this up. Before provisioning, I need a few choices resolved:
- Paperclip instance — which instance should this run in? Please share the verified Paperclip web URL (I won't assume one).
- Agent — you asked for a new agent with read-only code access and PR-creation rights. To create it I need:
- Name (e.g., "acme-core-security-bot")
- Harness/adapter, provider/model, and AI connection available on that instance
- Execution environment and reporting line
- Budget
- Repository details — confirm repo
acme/core, and the execution workspace/environment it should run in. - Skill source — where does the
security-patch-backportjob's skill live (company skill library, repo path, version policy)? - Limits — per-run time/cost limit, max PRs per run, and outstanding-PR cap (proposal: 30-min timebox, max ~10 PRs/run, cap of 3 open PRs per branch).
- PR behavior — draft or ready-for-review, and default reviewers/owners for the PRs?
- Slack failure alerts — which connection/credentials should the agent use to post to
#security-alerts?
What I have locked in from your spec:
- Repo:
acme/core - Trigger 1: webhook/event — new CVE entry added to
SECURITY.md→ runsecurity-patch-backporton all activerelease/*branches whose last commit is < 90 days old; open one PR per changed branch. - Trigger 2: nightly at 04:00 UTC — same job, same branch filter, as a sanity check; skip branches that already have an open PR from this bot.
- Failure handling: if a run fails to open a PR due to an error, post to
#security-alerts. - Agent permissions: read-only code access + PR creation only.
Send the instance URL and the remaining choices and I'll provision the agent and routine (created paused, then activated once readiness is verified).
setup-code-maintenance-bot--m5
(no text deliverable)
I've loaded the setup guide. Most of the contract is already specified — here's what I have and what's still missing:
Resolved so far
- Repository:
acme/landing-page, target branchmain - Work: dependency-update routine (dependency maintenance skill)
- Agent: existing agent
nightly-ops - Trigger: nightly timer at 2:00 AM UTC
- Delivery: PR titled
chore: dependency updates, assigned to you, only if changes are produced; no-op otherwise
Still needed before I can provision:
- Paperclip instance URL — which instance should this run in? (I won't assume one; please share the verified web URL.)
- Company — confirm it's Acme within that instance, or tell me the right company.
- Skill source — which dependency-maintenance skill should the routine use, and where does the worker read it from (company skill library, or a committed path in the repo)? If you don't have one installed, I can propose installing/assigning the company dependency-maintenance skill.
- Limits — per-run time/cost budget, max PRs per run, and an outstanding-PR cap. My default proposal: one coherent PR per run, a bounded timebox (e.g., 60 min), no automatic merging, and no new work if an unmerged dependency PR is already open.
- Your GitHub username for the PR assignment (or confirm I should pull it from the agent's account settings).
Once you confirm the instance URL and these choices, I'll inspect nightly-ops (preserving its existing settings), check for an equivalent existing routine to avoid duplicates, create the routine paused with the trigger disabled, verify the agent can actually push and open PRs on acme/landing-page, then enable and activate it — and hand back links plus the next scheduled run time.
- Results are for the SkillzBench reference agent on GLM-5.3-flash. Switch models above — a skill can help one model and not another.
- Screen tier (1 trial per arm) is directional. Verified needs a full-tier run (≥ 8 tasks, ≥ 3 trials per arm) with the CI excluding zero.
- Task coverage: 8 generated tasks for this skill's category; a skill can shine elsewhere.