code-formatter

Automatically format code across multiple languages with opinionated configurations.

25 stars

Best use case

code-formatter is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Automatically format code across multiple languages with opinionated configurations.

Teams using code-formatter should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/code-formatter/SKILL.md --create-dirs "https://raw.githubusercontent.com/ComeOnOliver/skillshub/main/skills/aiskillstore/marketplace/curiouslearner/code-formatter/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/code-formatter/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How code-formatter Compares

Feature / Agentcode-formatterStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Automatically format code across multiple languages with opinionated configurations.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# Code Formatter Skill

Automatically format code across multiple languages with opinionated configurations.

## Instructions

You are a code formatting expert. When invoked:

1. **Detect Languages**: Identify all code file types in the current directory or specified path
2. **Check for Configs**: Look for existing formatting configurations (.prettierrc, .editorconfig, pyproject.toml, etc.)
3. **Apply Formatting**: Format code according to:
   - Existing project configuration (if found)
   - Language-specific best practices (if no config exists)
   - Popular style guides (e.g., PEP 8 for Python, StandardJS, Google Style Guide)

4. **Report Changes**: Summarize what was formatted and any style decisions made

## Supported Languages

- JavaScript/TypeScript (Prettier)
- Python (Black, autopep8)
- Go (gofmt)
- Rust (rustfmt)
- Java (Google Java Format)
- CSS/SCSS/LESS
- HTML
- JSON/YAML
- Markdown

## Usage Examples

```
@code-formatter
@code-formatter src/
@code-formatter --check-only
@code-formatter --language python
```

## Formatting Rules

- Use 2 spaces for JavaScript/TypeScript/CSS
- Use 4 spaces for Python
- Use tabs for Go
- Maximum line length: 100 characters (unless project config specifies otherwise)
- Always use semicolons in JavaScript (unless project uses StandardJS)
- Single quotes preferred for JavaScript (unless project config says otherwise)
- Trailing commas in multi-line structures

## Notes

- Always respect existing project configuration files
- Ask before modifying configuration files
- Never format generated code or vendor directories
- Skip binary files and lock files

Related Skills

commit-message-formatter

25
from ComeOnOliver/skillshub

Commit Message Formatter - Auto-activating skill for DevOps Basics. Triggers on: commit message formatter, commit message formatter Part of the DevOps Basics skill category.

simple-formatter

25
from ComeOnOliver/skillshub

Formats text according to specified style guidelines. A clean example skill with no security issues.

enact-json-formatter

25
from ComeOnOliver/skillshub

Formats and prettifies JSON with configurable indentation

enact-formatter

25
from ComeOnOliver/skillshub

Formats and prettifies JSON with configurable indentation

standup-formatter

25
from ComeOnOliver/skillshub

Use when generating standup reports, daily updates, or team status summaries. Formats work activity into concise standup format.

Biome — Fast Linter and Formatter (ESLint + Prettier Replacement)

25
from ComeOnOliver/skillshub

You are an expert in Biome, the Rust-based toolchain that replaces ESLint and Prettier with a single, fast tool. You help developers configure linting, formatting, and import sorting for JavaScript, TypeScript, JSX, JSON, and CSS — achieving 100x faster execution than ESLint+Prettier with zero configuration, unified diagnostics, and IDE integration.

Daily Logs

25
from ComeOnOliver/skillshub

Record the user's daily activities, progress, decisions, and learnings in a structured, chronological format.

Socratic Method: The Dialectic Engine

25
from ComeOnOliver/skillshub

This skill transforms Claude into a Socratic agent — a cognitive partner who guides

Sokratische Methode: Die Dialektik-Maschine

25
from ComeOnOliver/skillshub

Dieser Skill verwandelt Claude in einen sokratischen Agenten — einen kognitiven Partner, der Nutzende durch systematisches Fragen zur Wissensentdeckung führt, anstatt direkt zu instruieren.

College Football Data (CFB)

25
from ComeOnOliver/skillshub

Before writing queries, consult `references/api-reference.md` for endpoints, conference IDs, team IDs, and data shapes.

College Basketball Data (CBB)

25
from ComeOnOliver/skillshub

Before writing queries, consult `references/api-reference.md` for endpoints, conference IDs, team IDs, and data shapes.

Betting Analysis

25
from ComeOnOliver/skillshub

Before writing queries, consult `references/api-reference.md` for odds formats, command parameters, and key concepts.