Skip to content
Back to skills

Code Formatter

ASecurity

格式化源代码文件,支持Python、JavaScript、JSON等语言,使用行业标准格式化工具。

  • 85 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added February 7, 2026
toolsjavascriptpythonjavabashgit

Works with

  • claude code

Security analysis

A100/100

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

Scanned February 12, 2026

npx -y skills add AIDotNet/MoYuCode --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/aidotnet-code-formatter/badge)](https://www.skillsdirectory.com/skills/aidotnet-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: 格式化源代码文件,支持Python、JavaScript、JSON等语言,使用行业标准格式化工具。
metadata:
  short-description: 格式化源代码
source:
  repository: https://github.com/psf/black
  license: MIT
---

# Code Formatter Tool

## Description
Format source code files using industry-standard formatters like Black for Python, with support for multiple languages.

## Trigger
- `/format` command
- User needs to format code
- User wants consistent code style

## Usage

```bash
# Format Python file
python scripts/code_formatter.py file.py

# Format with specific line length
python scripts/code_formatter.py file.py --line-length 100

# Format JSON
python scripts/code_formatter.py config.json

# Check without modifying
python scripts/code_formatter.py file.py --check

# Format directory
python scripts/code_formatter.py ./src/ --recursive
```

## Tags
`format`, `code`, `python`, `black`, `style`

## Compatibility
- Codex: ✅
- Claude Code: ✅

Files in this skill

  • SKILL.md1012 B
  • scripts/code_formatter.py3.1 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…