format

Installation
SKILL.md

Auto Format Code

I'll format your code using the project's configured formatter.

Token Optimization Strategy

Target: 70% reduction (2,000-3,500 → 600-1,050 tokens)

This skill implements comprehensive token optimization achieving 70% reduction through external tool execution and smart caching.

1. Bash-Based Formatter Detection (50% savings)

Problem: Reading config files to detect formatters wastes 800-1,200 tokens Solution: Use Bash commands and Glob patterns for detection

# ✅ EFFICIENT - Bash-based detection (50-100 tokens)
# Check for Prettier
test -f package.json && grep -q "prettier" package.json && echo "prettier"
Related skills
Installs
5
GitHub Stars
1
First Seen
Feb 21, 2026