# Black

> Use this skill when the user wants to format Python code, auto-format Python files, enforce consistent Python style, or fix code formatting.

- Skill: `javimosch/black` (Agent Skill)
- Install (CLI): `npx skillmds@latest add javimosch/black`
- Raw SKILL.md: https://api.skillmd.com/api/skills/javimosch/black/raw
- Safety review: PASS (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: javimosch (https://skillmd.com/u/javimosch)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/javimosch/black

---


# black Plugin

Uncompromising Python code formatter.

## Commands

### Format
- `black format run` — Format Python files (dry run with diff)
- `black format write` — Format Python files in-place

## Usage Examples
- "Format this Python file"
- "Check if my Python code is formatted correctly"
- "Auto-format all Python files in the project"
- "Show what would change without applying"

## Installation

```bash
pip install black
```

## Examples

```bash
# Format files in-place
black .

# Check formatting
black --check .

# Show diff
black --diff .

# Specific line length
black --line-length 100 .

# Fast mode (skip regex)
black --fast .
```

