---
title: "Skill Maintainer"
description: "Checks your agent skills and instruction files against recently merged code and opens pull requests to update them, only when it can prove a rule is out of date."
canonical: "https://baz.ai/docs/agents/maintain/skill-maintainer"
---

# Skill Maintainer

Checks your agent skills and instruction files against recently merged code and opens pull requests to update them, only when it can prove a rule is out of date.

Skills and instruction files go stale as code changes: a new worker is added but the skill still lists the old set, or a helper is renamed but `CLAUDE.md` still names the old one. The Skill Maintainer looks at what was merged since its last scan, checks the related skills against the current code, and opens a pull request for your team to review when a rule is out of date.

## What it catches

- Rules that contradict the current code, such as a function, module, or path that was renamed or removed
- Closed lists in a skill (workers, webhooks, providers, integrations, owners) that miss a peer that now exists in code
- Guidance that no longer matches how the team writes the code

It works on the files [AI Coding Guidelines](/docs/agents/build/ai-coding-guidelines) enforces: `SKILL.md`, `CLAUDE.md`, `AGENTS.md`, Cursor rules, and `.github/instructions/`.

## Why you can trust it

Baz checks each skill against the current code on your default branch, not against the pull requests that hinted at a change. It proposes an update only when it can quote the line in the skill and the code that contradicts it, and every skill pull request shows that proof. If it can't prove a rule is out of date, it leaves the skill alone. Your team reviews and merges every change.

You can also update a skill from a review: reply `apply skill update` on an AI Coding Guidelines comment, and Baz turns that discussion into a minimal skill edit.

## What you see

```markdown title="Skill PR"
skills: Add the reviews webhook to the webhook list

Proof
- Skill: `.claude/skills/webhooks/SKILL.md`
  > Baz handles three webhooks: GitHub, GitLab, and Azure DevOps.
- Code: `bff/src/modules/webhooks/entire.controller.ts:12-18`
  The Entire webhook route is registered alongside the other three.
```

Each scan is a **Skill Maintainer session** in [Sessions](/docs/work/sessions). **Insights → Evaluation → Maintain** shows **Skills updates** (**Updated** and **Not updated**).

## Prerequisites

- Write access
- A payment method or credits

## Settings

Select **Skill Maintainer** on **Software Factory → Maintain**. The row reads "Analyze PRs to keep skills up to date and suggest new ones".

**Skills scan** ("Control when scans are activated."): turn on the schedule and pick **3 days** (default), **Week**, or **2 weeks**, choose repositories, or select **Scan now**. The section shows **Last scan**, **Next scan**, and **Scan in progress** while one runs. Coverage counts the Skill Maintainer only when the schedule is on.

**Configure PR conventions for the Skill Maintainer** sets how its pull requests look.

**Max open fix PRs** caps how many pull requests it keeps open at once (default 3). **PR title prefix** and **PR branch prefix** default to `skills:` and `baz/skills-`.

## Related

<CardGroup cols={2}>
  <Card title="Skill learning" href="/docs/brain/skill-learning" icon="history">
    How skills evolve with your code.
  </Card>
  <Card title="Skills and instructions" href="/docs/brain/skills-and-instructions" icon="book-open">
    Import, create, and version skills.
  </Card>
  <Card title="AI Coding Guidelines" href="/docs/agents/build/ai-coding-guidelines" icon="file-code">
    Enforce skills on every PR.
  </Card>
</CardGroup>
