Code Formatting

Official

Automate code style, ensure consistency.

Authoredgeandnode
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill solves the problem of inconsistent code style across a project, which often leads to messy diffs, reduced readability, and wasted time on manual formatting. It automates the enforcement of coding standards for both Rust and TypeScript.

Core Features & Use Cases

  • Rust Code Formatting: Apply rustfmt to all Rust code or specific files, ensuring consistent style.
  • TypeScript Code Formatting: Format TypeScript files using prettier via pnpm format.
  • Formatting Checks: Verify code style compliance without making changes, ideal for pre-commit hooks or CI.
  • Use Case: After making edits to a Rust file, immediately run just fmt-file src/my_module/logic.rs to automatically apply the project's formatting rules, saving you from manual adjustments and ensuring clean commits.

Quick Start

Format the Rust file located at src/my_module/logic.rs.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: Code Formatting
Download link: https://github.com/edgeandnode/amp/archive/main.zip#code-formatting

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository