code-formatter

Format JavaScript/TypeScript code and fix ESLint errors with Prettier.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/ainexllc/ClaudeCodeTraining --skill code-formatter
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: code-formatter
Source: https://github.com/ainexllc/ClaudeCodeTraining/tree/main/.claude/skills/code-formatter
Command: npx skills add https://github.com/ainexllc/ClaudeCodeTraining --skill code-formatter

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires prettier, eslint.

What problem does it solve?

Developers spend significant time manually formatting code and fixing linting errors, leading to inconsistencies and wasted effort. This skill automates code style enforcement, ensuring clean, consistent, and error-free code without manual intervention.

Core Features & Use Cases

  • Auto-Format with Prettier: Automatically applies consistent code style across your project.
  • Fix ESLint Errors: Identifies and fixes common linting issues, improving code quality.
  • Use Case: Before committing, run this skill to automatically format all staged JavaScript/TypeScript files and fix any linting errors, ensuring your codebase adheres to defined standards.

Quick Start

Format all JavaScript and TypeScript files in the current project.

Frequently Asked Questions about code-formatter

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

FAQPage Schema
How do I automatically format and fix linting errors in my JavaScript project?

Code formatting and linting fixes can be automated by running Prettier to standardize style and ESLint to resolve style issues across your JavaScript or TypeScript files. This skill detects your existing Prettier and ESLint configurations, applies both format and lint fixes, and verifies the results while excluding node_modules and build directories.

Can I use Prettier and ESLint together to enforce code standards?

Yes. Prettier handles code formatting consistency while ESLint identifies and fixes style violations. This skill runs both tools in sequence on your specified files or entire repository, ensuring your codebase adheres to defined standards without manual intervention.

What files and directories does the formatter skip?

The skill automatically excludes node_modules, dist, build, and other ignored paths from formatting and linting operations, ensuring only source code is processed and speeding up execution on large projects.

How do I format code before committing to version control?

Run this skill on your staged JavaScript and TypeScript files to automatically format them with Prettier and fix linting errors with ESLint in a single operation, ensuring clean code adheres to your project's style standards before commit.

Does this work if I don't have Prettier or ESLint configured?

The skill detects and uses available Prettier and ESLint configurations in your project. If configurations are missing, setup is required before the skill can format and lint your code effectively.

What's the difference between code formatting and linting fixes?

Code formatting standardizes spacing, indentation, and style with Prettier. Linting fixes resolve code quality issues and style rule violations with ESLint. This skill applies both to ensure consistency and correctness across your codebase.