Skip to content
Back to skills

Code Formatter

ASecurity

Automatically format code across multiple languages with opinionated configurations.

  • 416 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added February 7, 2026
developmentjavascripttypescriptpythonrustgojava

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned February 12, 2026

npx -y skills add aiskillstore/marketplace --skill code-formatter --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Code Formatter?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Code Formatter
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/aiskillstore-code-formatter/badge)](https://www.skillsdirectory.com/skills/aiskillstore-code-formatter)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: code-formatter
description: Automatically format code across multiple languages with opinionated configurations.
---

# 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

Files in this skill

  • SKILL.md1.7 KB
  • skill-report.json7.9 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…