Code Formatting
OfficialAutomate 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
rustfmtto all Rust code or specific files, ensuring consistent style. - TypeScript Code Formatting: Format TypeScript files using
prettierviapnpm 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.rsto 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 requiredComponents
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.