---
title: "Skill learning"
description: "How Baz keeps your skills and instruction files current: updates from review replies, the Skill Maintainer's scans, and the Baz skills scan."
canonical: "https://baz.ai/docs/brain/skill-learning"
---

# Skill learning

How Baz keeps your skills and instruction files current: updates from review replies, the Skill Maintainer's scans, and the Baz skills scan.

Skills go stale the moment the code moves. A skill that lists "all webhook handlers" stops being true when someone adds a new one, and every coding agent that reads it inherits the mistake. Baz keeps skills current, and every change it proposes needs evidence from your code.

## How skills change

You can update a skill yourself by replying to an **AI Coding Guidelines** finding. The **Skill Maintainer** also scans your repositories and opens a fix PR when a skill falls behind the code. Skills stored in Baz are checked by the **Baz skills scan**, which saves a new version instead of opening a PR.

## From a review reply

When an AI Coding Guidelines finding shows that a rule no longer matches how your team works, reply `apply skill update`. Baz changes only the text the discussion is about and leaves the rest of the skill alone. To get the change as a commit or a pull request instead, reply `apply commit`, `apply pr`, or `apply pr to <branch>`.

Commands are matched anywhere in your comment and are not case sensitive, so "stop flagging this, apply skill update" works. Baz adds a hint with the available command to AI Coding Guidelines findings. Updates run through [Fixer](/docs/agents/build/fixer). See [PR commands](/docs/reference/pr-commands).

## Skill Maintainer

The [Skill Maintainer](/docs/agents/maintain/skill-maintainer) agent in **Software Factory → Maintain** checks your repository skills against recently merged pull requests. It needs write access.

It proposes an update only when it can quote the skill and the current code on your default branch that contradicts it. A merged PR alone is never proof. When it finds a stale skill, Fixer opens a pull request that changes only that part of the skill, and your team reviews it like any other change.

Style nits and speculative improvements never trigger an update. For example, a skill that lists your queue workers gets updated when the code registers one the skill doesn't mention.

### Configure it

Set when scans run with the **Skills scan** schedule, and check **Last scan** and **Next scan** to see where it stands. You can also set the title and branch prefixes for skill PRs, for example `skills:` and `baz/skills-`.

Each run appears in **Sessions** as a **Skill Maintainer session**, and **Insights → Evaluation → Maintain** shows **Skills updates** (Updated and Not updated).

## Baz skills scan

Skills you created in Baz are checked the same way by the **Baz skills scan**. It checks each Baz skill against recently merged pull requests and applies the same proof rules. When a skill needs an update, Baz saves a new version of it instead of opening a PR. The version shows as **Updated skill by baz**, and you can switch back to an earlier version at any time.

Skills that span several repositories or the whole organization are skipped by this scan. The **Baz skills** tab shows **Last scan**, **Next scan**, and **View session** for the latest run.

## Skills and memories

Skills and memories work together. Skills are rules your team writes down, and coding agents and Fixer read them too. Memories are lessons Baz learns from review discussions, and only Baz's review agents use them.

Memories never edit your instruction files. If a memory states a rule your whole team should follow, add it to a skill.

## Related

<CardGroup cols={2}>
  <Card title="Skills and instructions" href="/docs/brain/skills-and-instructions" icon="file-code">
    Which files Baz reads and how they are enforced.
  </Card>
  <Card title="Skill Maintainer" href="/docs/agents/maintain/skill-maintainer" icon="wrench">
    Enable and schedule the agent.
  </Card>
  <Card title="Learning loop" href="/docs/concepts/learning-loop" icon="history">
    How Baz learns across reviews, memories, and skills.
  </Card>
  <Card title="PR commands" href="/docs/reference/pr-commands" icon="terminal">
    Every reply command Baz understands.
  </Card>
</CardGroup>
