One-click install
npx skills add https://github.com/edgeandnode/ampup --skill code-format-edgeandnode
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: code-format
Source: https://github.com/edgeandnode/ampup/tree/main/.agents/skills/code-format
Command: npx skills add https://github.com/edgeandnode/ampup --skill code-format-edgeandnode

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Formatting Rust and shell scripts to meet project conventions, ensuring consistent style across the codebase.

Core Features & Use Cases

  • Auto-format all Rust code in the workspace with a nightly toolchain.
  • Format the install script and other shell scripts to enforce shell style.
  • Check formatting status and apply per-file or global formatting based on edits to reduce review overhead.

Quick Start

Format Rust and shell files before committing.

Frequently Asked Questions about code-format

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

FAQPage Schema
How do I auto-format Rust code in a workspace before committing?

Auto-format Rust code in a workspace by running cargo +nightly fmt before commits to enforce consistent style across the repository. This applies project conventions globally or per-file based on edits.

What is the best way to format shell scripts for consistent style?

The best way to format shell scripts for consistent style is using shfmt. It automatically enforces shell style conventions on install scripts and other shell files across the codebase.

Do I need the nightly toolchain to format Rust code?

Yes, you need the nightly toolchain to format Rust code. The formatting process requires cargo +nightly fmt to apply the specific project conventions and style rules required by the repository.

Can I check formatting status without applying changes to the codebase?

Yes, you can check formatting status without applying changes. Available checks verify compliance against project conventions, ensuring Rust and shell scripts meet style rules before you commit modifications.

Why does formatting Rust and shell scripts reduce review overhead?

Formatting Rust and shell scripts reduces review overhead by automatically enforcing consistent style across the codebase. Applying conventions before commits ensures reviewers focus on logic rather than style.