AGENT SKILL

code-formatter

A simple example skill for demonstration purposes

License 许可
MIT
最近更新
2026-09-22
Stars
★ 0
Forks
0

01 前言 Front Matter

name
code-formatter
subagents
[ { "name": "reviewer", "description": "You are a senior code reviewer." } ]
description
A simple example skill for demonstration purposes
allowed-tools
[ "Read", "Write" ]

02 资源文件 1

03 SKILL.md 正文

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)

04 同仓库更多 Skills