Skip to content
Back to skills

Format

ASecurity

Run the project formatter and apply consistent style across changed files

  • 3 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 3, 2026
ai-agentsrustgo

Security analysis

A100/100

Scanned September 3, 2026

npx -y skills add black141312/ada --skill format --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Format?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Format
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/black141312-format/badge)](https://www.skillsdirectory.com/skills/black141312-format)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: format
description: Run the project formatter and apply consistent style across changed files
category: review
---

# Format

Use this to apply the project's canonical code style — run the configured formatter so style is consistent and never a review topic.

1. Detect the project's formatter from config (e.g. `prettier`, `black`/`ruff format`, `gofmt`/`goimports`, `rustfmt`, `.editorconfig`) and its run command.
2. Prefer the project script (`npm run format`, `make fmt`) over a global binary so the pinned version and config are used.
3. Run the formatter in write mode, scoped to changed files when possible to keep the diff tight.
4. Inspect the resulting diff to confirm only whitespace/style changed and no logic was touched.
5. Run a `--check`/`--diff` pass to verify the tree is now clean, then run the test suite.
6. Commit formatting on its own so functional diffs aren't buried under style churn.

## Rules
- Use the project's pinned formatter and config — never impose your own style preferences.
- Don't reformat untouched files unless that's the explicit task; mass reformatting destroys blame and bloats reviews.
- If no formatter is configured, match the surrounding file's existing style instead of introducing one.
- Keep formatting commits separate from logic commits for a clean, reviewable history.
- A formatter must be idempotent — if a second run produces a diff, the config or version is mismatched; resolve that.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…