black-to-ruff-format

Installation
SKILL.md
Contains Shell Commands

This skill contains shell command directives (!`command`) that may execute system commands. Review carefully before installing.

/migration-patterns:black-to-ruff-format

Migrate from black to ruff format — Ruff's drop-in Black-compatible formatter written in Rust (~35x faster). Replaces the psf/black pre-commit hook, migrates [tool.black] configuration, and removes black from dev dependencies.

When to Use This Skill

Use this skill when... Keep black when...
.pre-commit-config.yaml contains psf/black Team has strong preference for black's exact output
[tool.black] exists in pyproject.toml CI uses black --check specifically by name
Repo already uses ruff for linting Project uses black's API in build scripts
Wanting to consolidate formatting under ruff

Context

  • Pre-commit config: !find . -maxdepth 1 -name '.pre-commit-config.yaml'
  • pyproject.toml: !find . -maxdepth 1 -name 'pyproject.toml'
  • ruff already present: !find . -maxdepth 1 -name 'ruff.toml'
Installs
4
GitHub Stars
36
First Seen
Apr 21, 2026
black-to-ruff-format — laurigates/claude-plugins