Code Formatter
格式化源代码文件,支持Python、JavaScript、JSON等语言,使用行业标准格式化工具。
by aidotnet · MIT
The skill
格式化源代码文件,支持Python、JavaScript、JSON等语言,使用行业标准格式化工具。
Code Formatter Tool
Description
Format source code files using industry-standard formatters like Black for Python, with support for multiple languages.
Trigger
/formatcommand- User needs to format code
- User wants consistent code style
Usage
# 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: ✅
Use this skill
Connect your agent to the Skill Store MCP server and ask for it by ref: aidotnet/code-formatter-17515908362.
Details
- Publisher
- aidotnet
- Category
- Software Development › Developer docs & tooling
- License
- MIT
- Updated
- 2026-01-28
References
More from aidotnet
- Api Designer 设计RESTful API并生成OpenAPI/Swagger规范文档,遵循行业最佳实践。包括端点命名、请求/响应模式和错误处理模式。
- Ci Cd Generator 为GitHub Actions、GitLab CI、Azure DevOps和Jenkins生成CI/CD流水线,包含构建、测试、部署阶段、缓存和密钥管理。
- Code Review 全面的代码审查技能,分析代码质量、识别问题、安全漏洞,并提供带严重性评级的改进建议。
- Database Designer 设计和优化数据库模式,支持PostgreSQL、MySQL、SQLite和MongoDB。包括ER建模、规范化、索引优化和迁移脚本生成。