code-formatter
について
このClaude Skillは、複数のプログラミング言語にわたってコードを自動的にフォーマットし、独自の設定と一般的なスタイルガイドに従います。ファイルタイプを検出し、既存のプロジェクト設定があればそれを尊重し、行われたすべてのフォーマット変更を報告します。JavaScript、Python、Go、Rust、Java、CSSをサポートするプロジェクトで、コードスタイルを迅速に標準化するためにご利用ください。
クイックインストール
Claude Code
推奨/plugin add https://github.com/CuriousLearner/devkitgit clone https://github.com/CuriousLearner/devkit.git ~/.claude/skills/code-formatterこのコマンドをClaude Codeにコピー&ペーストしてスキルをインストールします
ドキュメント
Code Formatter Skill
Automatically format code across multiple languages with opinionated configurations.
Instructions
You are a code formatting expert. When invoked:
-
Detect Languages: Identify all code file types in the current directory or specified path
-
Check for Configs: Look for existing formatting configurations (.prettierrc, .editorconfig, pyproject.toml, etc.)
-
Apply Formatting: Format code according to:
- Existing project configuration (if found)
- Language-specific best practices (if no config exists)
- Popular style guides (e.g., PEP 8 for Python, StandardJS, Google Style Guide)
-
Report Changes: Summarize what was formatted and any style decisions made
Supported Languages
- JavaScript/TypeScript (Prettier)
- Python (Black, autopep8)
- Go (gofmt)
- Rust (rustfmt)
- Java (Google Java Format)
- CSS/SCSS/LESS
- HTML
- JSON/YAML
- Markdown
Usage Examples
@code-formatter
@code-formatter src/
@code-formatter --check-only
@code-formatter --language python
Formatting Rules
- Use 2 spaces for JavaScript/TypeScript/CSS
- Use 4 spaces for Python
- Use tabs for Go
- Maximum line length: 100 characters (unless project config specifies otherwise)
- Always use semicolons in JavaScript (unless project uses StandardJS)
- Single quotes preferred for JavaScript (unless project config says otherwise)
- Trailing commas in multi-line structures
Notes
- Always respect existing project configuration files
- Ask before modifying configuration files
- Never format generated code or vendor directories
- Skip binary files and lock files
GitHub リポジトリ
関連スキル
content-collections
メタThis skill provides a production-tested setup for Content Collections, a TypeScript-first tool that transforms Markdown/MDX files into type-safe data collections with Zod validation. Use it when building blogs, documentation sites, or content-heavy Vite + React applications to ensure type safety and automatic content validation. It covers everything from Vite plugin configuration and MDX compilation to deployment optimization and schema validation.
sglang
メタSGLang is a high-performance LLM serving framework that specializes in fast, structured generation for JSON, regex, and agentic workflows using its RadixAttention prefix caching. It delivers significantly faster inference, especially for tasks with repeated prefixes, making it ideal for complex, structured outputs and multi-turn conversations. Choose SGLang over alternatives like vLLM when you need constrained decoding or are building applications with extensive prefix sharing.
cloudflare-turnstile
メタThis skill provides comprehensive guidance for implementing Cloudflare Turnstile as a CAPTCHA-alternative bot protection system. It covers integration for forms, login pages, API endpoints, and frameworks like React/Next.js/Hono, while handling invisible challenges that maintain user experience. Use it when migrating from reCAPTCHA, debugging error codes, or implementing token validation and E2E tests.
Algorithmic Art Generation
メタThis skill helps developers create algorithmic art using p5.js, focusing on generative art, computational aesthetics, and interactive visualizations. It automatically activates for topics like "generative art" or "p5.js visualization" and guides you through creating unique algorithms with features like seeded randomness, flow fields, and particle systems. Use it when you need to build reproducible, code-driven artistic patterns.
