# OpenCLI Agent Pack: Ruff

Use this when an AI agent needs to work with `ruff`.

## What this CLI is for
Linting, formatting, and python code quality from the terminal. Built by Astral.

Best for: linting, formatting, and python code quality from the terminal.

## Agent readiness
Usable with guardrails (50/100)
- Supports non-interactive/scripted use.
- Works well in CI or repeatable automation.

## Install
```sh
brew install ruff
```

## Verify before real work
```sh
ruff --version
```
Expected signal: ruff responds locally and is ready for the first real command.

## Safe starting commands
```sh
ruff --version
```

```sh
ruff check . && ruff format .
```

## Guardrails for agents
- Prefer small commands and ask the agent to summarize plain text output.

## Suggested agent instruction
You may use Ruff (`ruff`) for linting, formatting, and python code quality from the terminal.. First install it if missing, then run the verify command. Start with read-only or inspection commands. Summarize what you found before changing anything. Ask for confirmation before commands that mutate remote state, spend money, deploy, delete data, merge code, or expose secrets.

Source: OpenCLI
