Command Palette

Search for a command to run...

Назад к скиллам
скилл № 31220

code-formatter

Run the project's configured formatter (prettier, black, gofmt, rustfmt) on changed files and fix formatting-only CI failures. Use when the user asks to…

БесплатноБез исполняемых скриптов
Krusty84от Krusty84★ 36 звёзд на GitHub

Установить code-formatter в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

Code Formatter

Apply the project's own formatter — never impose a different style.

Workflow

  1. Detect the formatter from config files (.prettierrc, pyproject.toml [tool.black], .editorconfig, rustfmt.toml) or the CI step that failed. If none exists, ask before introducing one.
  2. Run it on the changed files only (git diff --name-only), not the whole repository, unless the user asks for a full pass.
  3. Re-run the exact failing CI command locally to confirm it now passes.
  4. Show the user a summary: which files changed and which tool/version ran.

Rules

  • Formatting commits must contain no semantic changes; if the formatter's output alters behavior (rare, but possible with aggressive import sorting), stop and report it.
  • Respect ignore files (.prettierignore, # fmt: off markers).

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл code-formatter?

Run the project's configured formatter (prettier, black, gofmt, rustfmt) on changed files and fix formatting-only CI failures. Use when the user asks to format code, fix a lint/format CI step, or normalize whitespace and import order. Do not use for logic changes or refactoring.

Как установить скилл code-formatter?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл code-formatter запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить code-formatter с