Skip to main content

code-formatter

格式化源代码文件,支持Python、JavaScript、JSON等语言,使用行业标准格式化工具。 Use when this capability is needed.

跳到安装

来源信息

仓库
tomevault-io/skills-registry
最近来源活动
2026年4月28日 22:53
检测到的 SKILL.md 语言
英语
星标
1
分支
0

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

文件资源管理器
2 个文件

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
code-formatter
description
格式化源代码文件,支持Python、JavaScript、JSON等语言,使用行业标准格式化工具。 Use when this capability is needed.
metadata
{"author":"aidotnet"}
# 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: ✅ --- > Converted and distributed by [TomeVault](https://tomevault.io/claim/aidotnet) — claim your Tome and manage your conversions. <!-- tomevault:4.0:skill_md:2026-04-11 -->
在 GitHub 查看