code-formatter

一个用于演示目的的简单示例技能

📖 中文导读:一个用于演示目的的简单示例技能 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。

name: code-formatter description: A simple example skill for demonstration purposes subagents:

  • name: reviewer description: You are a senior code reviewer. allowed-tools:
  • Read
  • Write

Code Formatter Skill

Automatically formats code files using industry-standard tools.

Capabilities

  • Format JavaScript/TypeScript with Prettier
  • Fix ESLint issues automatically
  • Format JSON, YAML, and Markdown files
  • Run format checks before commits

Usage Examples

Format a single file:

"Format the src/index.js file"

Format entire directory:

"Format all files in the src/ directory"

Check formatting without changes:

"Check if files in src/ are properly formatted"

Configuration

Set these environment variables for custom configuration:

  • PRETTIER_CONFIG: Path to prettier config (default: .prettierrc)
  • ESLINT_CONFIG: Path to eslint config (default: .eslintrc.js)