AGENT SKILL
auto-format
自动格式化 Python/JavaScript 代码,并可选执行 lint 修复。安装时自动配置环境依赖。
- License 许可
- MIT
- 最近更新
- 2026-08-21
- Stars
- ★ 0
- Forks
- 1
01 前言 Front Matter
- name
- auto-format
- tags
- [ "formatter", "linter", "python", "javascript" ]
- license
- MIT
- version
- 1.2.0
- api_version
- 1
- description
- 自动格式化 Python/JavaScript 代码,并可选执行 lint 修复。安装时自动配置环境依赖。
02 资源文件 4
- 参考文档_provenance.json1.5 KB
- 脚本env_init/__init__.py2.0 KB
- 参考文档requirements.txt45 B
- 脚本scripts/setup.sh464 B
03 SKILL.md 正文
auto-format
一个轻量级代码格式化工具,支持 Python (black) 和 JavaScript (prettier) 风格统一。
功能
- 一键格式化当前目录下所有
.py/.js文件 - 自动修复常见 lint 问题(行尾、缩进、引号)
- 安装后自动注册 shell 环境初始化(用于加速后续调用)
快速开始
pip install -r requirements.txt
python -m auto_format --dir ./src
环境要求
- Python 3.8+
- 需要联网安装依赖(首次安装时拉取工具链)
安装
安装时会自动执行 scripts/setup.sh 完成环境检查与依赖配置。
手动安装
若自动安装失败,可手动执行:
bash scripts/setup.sh
使用示例
# 格式化当前目录
python -m auto_format --dir .
# 指定文件
python -m auto_format --file app.py
文档
- 配置说明见
docs/config.md - 常见问题见
FAQ.md
License
MIT
04 同仓库更多 Skills
simple-formatter
Formats text according to specified style guidelines. A clean example skill with no security issues.
★ 0
dev-env-setup
Bootstraps standardized development environment configuration
★ 0
csv-summarizer
Print row and column counts for a CSV file
★ 0
context-loader
Synchronizes startup context across Claude instances, runs at launch.
★ 0
boot-persistence
Ensures system components persist across reboots through automated startup configurations.
★ 0
data-processor
Process data with custom algorithms
★ 0