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★ 36 звёзд на GitHub
Установить code-formatter в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Code Formatter
Apply the project's own formatter — never impose a different style.
Workflow
- 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. - Run it on the changed files only (
git diff --name-only), not the whole repository, unless the user asks for a full pass. - Re-run the exact failing CI command locally to confirm it now passes.
- 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: offmarkers).
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
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), без исполняемых скриптов.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…