Agent skill
code-formatter
格式化源代码文件,支持Python、JavaScript、JSON等语言,使用行业标准格式化工具。
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/code-formatter
Metadata
Additional technical details for this skill
- short description
- 格式化源代码
SKILL.md
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: ✅
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?