{"schemaVersion":"opencli.cli.v1","slug":"ruff","name":"Ruff","shortName":"ruff","binaryName":"ruff","maker":{"slug":"astral","name":"Astral","type":"small-team","url":"https://astral.sh","officialPlatformMaker":false,"featuredBuilder":true},"category":"Productivity","description":"Linting, formatting, and python code quality from the terminal. Built by Astral.","tagline":"Linting, formatting, and python code quality from the terminal.","install":{"packageManager":"brew","command":"brew install ruff","packageName":null,"npmPackage":null,"brewFormula":"ruff","brewCask":null,"crateName":null,"pypiPackage":null,"goPackage":null,"dockerImage":null},"verify":{"command":"ruff --version","signal":"ruff responds locally and is ready for the first real command."},"quickStart":"ruff check . && ruff format .","exampleWorkflow":["ruff check . && ruff format ."],"agent":{"readiness":{"label":"Usable with guardrails","score":50,"reasons":["Supports non-interactive/scripted use.","Works well in CI or repeatable automation."],"guardrails":["Prefer small commands and ask the agent to summarize plain text output."]},"packUrl":"https://opencli.co/cli/ruff/agent.md","packMarkdown":"# OpenCLI Agent Pack: Ruff\n\nUse this when an AI agent needs to work with `ruff`.\n\n## What this CLI is for\nLinting, formatting, and python code quality from the terminal. Built by Astral.\n\nBest for: linting, formatting, and python code quality from the terminal.\n\n## Agent readiness\nUsable with guardrails (50/100)\n- Supports non-interactive/scripted use.\n- Works well in CI or repeatable automation.\n\n## Install\n```sh\nbrew install ruff\n```\n\n## Verify before real work\n```sh\nruff --version\n```\nExpected signal: ruff responds locally and is ready for the first real command.\n\n## Safe starting commands\n```sh\nruff --version\n```\n\n```sh\nruff check . && ruff format .\n```\n\n## Guardrails for agents\n- Prefer small commands and ask the agent to summarize plain text output.\n\n## Suggested agent instruction\nYou 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.\n\nSource: OpenCLI\n"},"fit":{"bestFor":"linting, formatting, and python code quality from the terminal.","useThisIf":"You need productivity workflows in both local dev and CI.","skipIf":"You don't work with productivity workflows.","whatHappensNext":"Run `ruff check . && ruff format .` and see what comes back."},"capabilities":{"agentFriendly":true,"supportsJsonOutput":false,"supportsNonInteractive":true,"supportsDryRun":false,"requiresAuth":false,"requiresNetwork":false,"ciFriendly":true,"localFirst":false,"destructivePotential":"low"},"taxonomy":{"useCases":["Linting","Formatting","Python code quality"],"aliases":["python linter"],"keywords":["python lint format"],"tags":["builder","agent-friendly","ci-friendly"]},"links":{"website":"https://docs.astral.sh/ruff/","github":"https://github.com/astral-sh/ruff","docs":"https://docs.astral.sh/ruff/","opencli":"https://opencli.co/cli/ruff","markdown":"https://opencli.co/cli/ruff/agent.md","json":"https://opencli.co/cli/ruff.json"},"metrics":{"githubStars":47868,"latestRelease":"2026-06-08T10:54:24Z","license":"MIT","metricLabel":"Homebrew installs (30d)","metricValue":11932,"metricSource":"homebrew","metricAsOf":"2026-06-08T11:00:38.024Z"}}