---
name: Code Formatter
slug: code-formatter-2
category: Quality
description: "Code Formatter formats source code files with the project's codeformat tool to fix style violations and match team standards. Use it when files need reformatting, not for linting, type-checking, or code review."
github: "https://github.com/mgechev/skillgrade/tree/main/fixtures/code-formatter-skill.md"
language: TypeScript
stars: 684
forks: 48
install: "npx degit https://github.com/mgechev/skillgrade/tree/main/fixtures ~/.claude/skills/fixtures"
installs_to: ~/.claude/skills/fixtures
source_path: fixtures/code-formatter-skill.md
collection_size: 5
category_size: 1354
collection_url: "https://dirskills.com/collections/mgechev/skillgrade"
added: 2026-08-23T05:21:04.338Z
last_synced: 2026-08-23T05:21:04.338Z
canonical_url: "https://dirskills.com/skills/code-formatter-2"
---

# Code Formatter

Code Formatter formats source code files with the project's codeformat tool to fix style violations and match team standards. Use it when files need reformatting, not for linting, type-checking, or code review.

**Install:**

```bash
npx degit https://github.com/mgechev/skillgrade/tree/main/fixtures ~/.claude/skills/fixtures
```

## README

# Code Formatter

Format source code files using the `codeformat` tool to ensure all files comply with the team's coding style.

## Procedures

**Step 1: Identify Files to Format**
1. List files with style violations: `codeformat check .`
2. Review the output to identify which files need formatting.

**Step 2: Apply Formatting**
1. Format all files: `codeformat fix .`
2. Or format a specific file: `codeformat fix --target <filename>`

**Step 3: Verify Results**
1. Run `codeformat verify` to confirm all files are properly formatted.
2. The tool generates a `.format-passed` metadata file on success.

## Error Handling
* If `codeformat verify` fails, re-run `codeformat fix .` and try again.
* If formatting introduces syntax errors, revert the file and report the issue.
