Sign inGet started
–

setup-code-maintenance-bot

by paperclipai/paperclip · Coding & Development

Sets up a scheduled agent and routine that runs a code-maintenance skill on a repository and opens pull requests automatically.

Lift · GLM-5.3-flash0ppdirectional · all models →
88
Trustsecurity · quality · license · upkeep
Scan Saferisk 0/100
LicenseMITserved via MCP
Claude Haiku 5.5 · GPT-6 Luna — not run yet
Pass-rate Lift0pp95% CI [−38, +38] · CI includes zero
screen tier · directionalchat harness (v2)
−100pp+100pp

Pass rate with the skill minus without, same tasks, same model.

baseline
75%
with skill
75%
forced
50%
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
SkillzBench badge preview

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 →

Markdown[![SkillzBench](https://skillzbench.com/api/badge/setup-code-maintenance-bot.svg)](https://skillzbench.com/skills/setup-code-maintenance-bot)
+ cost/task[![SkillzBench](https://skillzbench.com/api/badge/setup-code-maintenance-bot.svg?cost=1)](https://skillzbench.com/skills/setup-code-maintenance-bot)
HTML<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
baseline · 1.00

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.

with skill · 0.00
(no text deliverable)
setup-code-maintenance-bot--m2
baseline · 0.15

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-format branch is force-reset from main at 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.
with skill · 0.15

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-lint skill live? Is it already installed as a company skill in the instance, or a file/path in the repo I should verify on main? (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-format PR is already open). OK?
  • Delivery: PR auto-format → main, labeled maintenance, 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
baseline · 1.00

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 cleanup
    • acme/web → job: dependency bumps
    • Cadence: nightly at 02:00 UTC
  • PR settings: branch prefix maint/, label maintenance, assignee: core team
  • 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.

with skill · 1.00

I have most of the contract resolved, but per the setup process I need a couple of things confirmed before provisioning:

  1. Paperclip instance — which instance URL should this be set up on? (e.g., https://<your-org>.paperclip...) I don't want to assume one.
  2. Company — is it "Acme" within that instance?

Here's what I have resolved so far, for confirmation:

ChoiceValue
AgentExisting agent maint-bot (keep its stored credentials and settings)
Repos & jobsacme/api → dead-code cleanup; acme/web → dependency bumps
TriggerNightly timer at 2:00 UTC
PR policyBranch prefix maint/, label maintenance, assignee core team
DedupSkip 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: main for 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 core assignment.

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
baseline · 1.00

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-backport job 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-alerts with repo, branch, and error details

If you can enable the relevant skills or tools (repo/CI/Slack access), I can set this up directly.

with skill · 1.00

I can set this up. Before provisioning, I need a few choices resolved:

  1. Paperclip instance — which instance should this run in? Please share the verified Paperclip web URL (I won't assume one).
  2. 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
  3. Repository details — confirm repo acme/core, and the execution workspace/environment it should run in.
  4. Skill source — where does the security-patch-backport job's skill live (company skill library, repo path, version policy)?
  5. 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).
  6. PR behavior — draft or ready-for-review, and default reviewers/owners for the PRs?
  7. 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 → run security-patch-backport on all active release/* 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
baseline · 0.00
(no text deliverable)
with skill · 1.00

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 branch main
  • 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:

  1. Paperclip instance URL — which instance should this run in? (I won't assume one; please share the verified web URL.)
  2. Company — confirm it's Acme within that instance, or tell me the right company.
  3. 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.
  4. 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.
  5. 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.

Limitations
  • 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.