auto-format

Standardize source code formatting and enforce style consistency across project files.

Updated Jun 5, 2026
One-click install
npx skills add https://github.com/0xRayAI/xray --skill auto-format-0xrayai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: auto-format
Source: https://github.com/0xRayAI/xray/tree/main/skills/auto-format
Command: npx skills add https://github.com/0xRayAI/xray --skill auto-format-0xrayai

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill eliminates manual code formatting overhead and prevents style drift across your codebase by enforcing consistent syntax and structure automatically.

Core Features & Use Cases

  • Code Formatting: Standardizes indentation, spacing, and syntax across project files.
  • Style Consistency: Ensures all team members adhere to the same coding standards.
  • Auto-formatting: Triggers automated cleanup of source files to maintain high code quality.
  • Use Case: Use this skill to instantly normalize the formatting of a newly cloned repository or a set of files before submitting a pull request to ensure clean diffs.

Quick Start

Invoke the auto-format skill to apply standard formatting rules to all files in the current working directory.

Frequently Asked Questions about auto-format

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I maintain consistent code formatting across project files automatically?

Automated code formatting standardizes indentation, spacing, and syntax across your project files to prevent style drift. It enforces consistent coding standards for all team members without manual cleanup overhead.

What's the best way to normalize source code syntax before submitting a pull request?

Normalizing source code syntax before a pull request ensures clean diffs by applying standard formatting rules. You can trigger automated cleanup to instantly format newly cloned repositories or modified files.

How does automated linting and syntax normalization work in local development workflows?

Automated linting and syntax normalization works by executing formatting commands on local file systems through the xray MCP server. It applies standard rules to all files in the current working directory during development.

Do I need the xray MCP server to run auto-formatting commands on local file systems?

Yes, the xray MCP server is required to execute formatting commands on local file systems. This integration allows the automated linting and syntax normalization rules to access and modify your project files.

Can I use this to enforce style consistency for a newly cloned repository?

Yes, you can use this to enforce style consistency for a newly cloned repository. Invoking the formatting skill applies standard rules to all files in the current working directory, instantly normalizing the codebase.