code-formatter

Format and lint source code across multiple languages with autodetection.

Updated Jul 21, 2025
One-click install
npx skills add https://github.com/nikhillinit/Updog_restore --skill code-formatter-nikhillinit
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: code-formatter
Source: https://github.com/nikhillinit/Updog_restore/tree/main/.claude/skills/workflow-engine/code-formatter
Command: npx skills add https://github.com/nikhillinit/Updog_restore --skill code-formatter-nikhillinit

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill formats and lints code across multiple languages to enforce consistent style and quickly fix common issues.

Core Features & Use Cases

  • Multi-language formatting: JavaScript/TypeScript, Python, Go, Rust, JSON, YAML, Markdown, CSS/HTML with common formatters.
  • Auto-fix linting: Run ESLint, Black, isort, and similar tools to fix issues automatically.
  • Report generation: Produce a diff/summary of changed files for reviews.

Quick Start

Format or check code across a project: “Format all files under src/ with language auto” or “Check formatting only for src/”.

Frequently Asked Questions about code-formatter

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I format code across multiple programming languages automatically?

Multi-language formatting enforces consistent code style by applying language-specific formatters like Prettier for JavaScript, Black for Python, gofmt for Go, and rustfmt for Rust in a single operation. The Skill auto-detects file types and applies the appropriate formatter, preserving code semantics while standardizing whitespace, indentation, and syntax conventions across your project.

Can I use code formatting in CI pipelines and pre-commit hooks?

Yes, code formatting integrates into CI pipelines and pre-commit hooks to enforce style automatically before code review. The Skill runs formatters and linters on staged files, generates diffs showing all changes, and reports results so reviewers see exactly what was modified and why.

What languages and file formats does automatic formatting support?

Formatting covers JavaScript/TypeScript, Python, Go, Rust, JSON, YAML, Markdown, CSS/SCSS, and HTML with corresponding standard formatters and linters. Language autodetection applies the correct tool to each file type without manual configuration.

How do linting and auto-fix work together with formatting?

Linting runs tools like ESLint and Black alongside formatters to catch style violations and common issues, then auto-fixes both formatting and logic errors in a single pass. The Skill reports all changes in a diff summary for review before the code is committed.

Do I need to configure style rules for each language separately?

Project-specific style guides can be applied, but the Skill works with sensible defaults for each language. You can enforce your own rules through configuration files like .prettierrc or pyproject.toml that the formatters recognize natively.