code.format

Community

Automate code style with Prettier, ensure consistency.

Authorepieczko
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Inconsistent code style across a project leads to readability issues, merge conflicts, and wasted developer time. This Skill automates code formatting using Prettier, ensuring a consistent style across multiple languages without manual effort.

Core Features & Use Cases

  • Multi-Language Support: Formats JavaScript, TypeScript, CSS, HTML, JSON, YAML, Markdown, and more, covering diverse project needs.
  • Config Auto-Detection: Automatically finds and applies .prettierrc or prettier.config.js files, respecting project-specific style guides.
  • Check-Only Mode: Validate formatting without modifying files, ideal for pre-commit hooks or CI/CD pipelines to enforce standards.
  • Use Case: A team wants to enforce a consistent code style. They integrate code.format into their pre-commit hook, automatically formatting changed files or failing the commit if style issues are detected, ensuring all code adheres to standards.

Quick Start

Format all JavaScript and TypeScript files in 'src/'

python3 skills/code.format/code_format.py --path src/ --patterns "**/*.{js,jsx,ts,tsx}"

Dependency Matrix

Required Modules

prettier (npm)

Components

scripts

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: code.format
Download link: https://github.com/epieczko/betty/archive/main.zip#code-format

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.