---
title: "Instruction files"
description: "Every file and folder pattern Baz reads as team guidelines and agent skills, and where Baz keeps the skills it writes."
canonical: "https://baz.ai/docs/reference/instruction-files"
---

# Instruction files

Every file and folder pattern Baz reads as team guidelines and agent skills, and where Baz keeps the skills it writes.

Baz reads the instruction files your team already writes for coding agents, such as `AGENTS.md`, `CLAUDE.md`, and Cursor rules, and uses them as review guidelines. The AI Coding Guidelines agent checks each pull request against them. There is no Baz configuration file: Baz finds these files by path, and you manage them in **Software Factory → Build → AI Coding Guidelines**.

## When Baz scans

Baz scans a repository's instruction files on every push to the default branch. A change to an instruction file on a feature branch is not used to review that same branch; it applies after it merges.

## Files Baz reads

| Pattern | Typical source |
| --- | --- |
| `AGENTS.md` | Agent instructions at the repository root |
| `*/AGENTS.md` | Agent instructions in a top-level folder |
| `CLAUDE.md` | Claude Code instructions at the root |
| `*/CLAUDE.md` | Claude Code instructions in a top-level folder |
| `.clauderc` | Claude configuration |
| `.claude/*.md` | Claude Code memory and instruction files |
| `.claude/agents/*.md`, `.claude/agents/*.mdc` | Claude Code subagents |
| `.claude/rules/**/*.md`, `.claude/rules/**/*.mdc` | Claude Code rules |
| `.cursorrules`, `*/.cursorrules` | Legacy Cursor rules |
| `.cursor/rules/**/*.md`, `.cursor/rules/**/*.mdc` | Cursor project rules |
| `.cursor/BUGBOT.md`, `*BUGBOT.md`, `.*BUGBOT.md` | Cursor Bugbot rules |
| `.coderabbit.yaml` | CodeRabbit configuration |
| `.agent/*.md`, `.agent/*.mdc` | Generic agent instructions |
| `.agents/*.md`, `.agents/*.mdc` | Generic agent instructions |
| `.github/instructions/**/*.md`, `.github/instructions/**/*.mdc` | GitHub Copilot instructions |

## Skill folders Baz reads

A skill is a folder that contains a `SKILL.md` file. Baz picks up skill folders in the usual places agents keep them: `.claude/skills/`, `.cursor/skills/`, `.agent/skills/`, `.agents/skills/`, and `.github/skills/`. A folder under `.claude/rules/` counts too if it has a `SKILL.md`.

Baz also follows Claude Code plugins. When `.claude/settings.json` enables a plugin from a marketplace with a Git source, Baz reads the marketplace's `.claude-plugin/marketplace.json` (or `marketplace.json`) and imports that plugin's instruction files and skills.

## Paths Baz ignores

Command folders are not guidelines, so Baz skips them:

- `.claude/commands/`
- `.cursor/commands/`

## Example repository

<FileTree>
- AGENTS.md
- CLAUDE.md
- .cursor/
  - rules/
    - api-conventions.mdc
    - testing.md
  - commands/
    - release.md (ignored)
- .claude/
  - settings.json
  - agents/
    - reviewer.md
  - skills/
    - db-migrations/
      - SKILL.md
- .github/
  - instructions/
    - frontend.md
- services/
  - AGENTS.md
</FileTree>

In this tree Baz reads every file except `.cursor/commands/release.md` and `.claude/settings.json`, which it reads only to find enabled plugins.

## Baz skills

Skills you create in Baz, and skills Baz generates for you, are stored in Baz rather than committed to your repository. Each one is identified by the path `.baz/<skill title>.md`, so a skill title must be unique within a repository. They appear under **Baz skills** next to **Your skills**, keep a version history, and are kept current by the [Skill Maintainer](/docs/agents/maintain/skill-maintainer).

To import skills from a repository that does not match the patterns above, use **Import skills and rules**, choose a **Repository** and a **File glob** (default `**/SKILL.md`), or upload files.

## Related

<CardGroup cols={2}>
  <Card title="Skills and instructions" href="/docs/brain/skills-and-instructions" icon="brain">
    Manage, enable, import, and version skills in the app.
  </Card>
  <Card title="AI Coding Guidelines" href="/docs/agents/build/ai-coding-guidelines" icon="sparkles">
    The agent that reviews PRs against these files.
  </Card>
  <Card title="Skill learning" href="/docs/brain/skill-learning" icon="history">
    How Baz proposes skill updates from merged PRs.
  </Card>
</CardGroup>
