Repository Formatting

Use when a repository needs source formatting, import normalization, or formatter verification before review or release.

9 stars 3 forksOther

Install

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add sandbaseai/workbuddy-skill --skill repository-formatting
Manual install
git clone --depth 1 https://github.com/sandbaseai/workbuddy-skill.git /tmp/workbuddy-skill
mkdir -p ~/.claude/skills
cp -r /tmp/workbuddy-skill/skills/repository-formatting ~/.claude/skills/repository-formatting

Personal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.

From the SKILL.md

# Repository Formatting

Format code using the repository's own command and configuration. Formatting is a controlled source change, not a license to rewrite unrelated files or hide semantic changes. Preserve existing user edits, inspect the diff afterward, and never claim a clean result when the formatter was skipped or failed.

## Establish the root and command

1. Identify the repository root from version-control metadata and the manifest/workspace files that define the project. Do not run a formatter from an arbitrary subdirectory.
2. Read contributor and CI documentation, package scripts, formatter configuration, lockfiles, and ignore rules. Prefer the exact command used by CI or the project maintainers (`pnpm format`, `npm run format`, `cargo fmt`, `gofmt`, `rustfmt`, or equivalent).
3. Inspect `git status` and the target diff before starting. Do not overwrite unrelated modifications; narrow the formatter scope if the repository supports it, or record the pre-existing state.
4. Confirm the formatter and dependency versions. Use the lockfile and repository package manager. Installing dependencies is a state-changing action: do it only in the authorized checkout, with the declared manager, and do not execute untrusted post-install code merely to inspect formatting.

## Run with bounded recovery
Read the full skill on GitHub

Details

Skill name
repository-formatting
Path
skills/repository-formatting/SKILL.md
License
MIT
Repo updated
8 September 2026

FAQ

What does the Repository Formatting skill do?

Use when a repository needs source formatting, import normalization, or formatter verification before review or release.

How do I install the Repository Formatting skill?

skills CLI (Claude Code, Cursor, Codex and more): npx skills add sandbaseai/workbuddy-skill --skill repository-formatting. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.

Is Repository Formatting popular?

It lives in sandbaseai/workbuddy-skill, which has 9 GitHub stars and 3 forks.

Related skills

Browse the most popular Claude skills, all other skills, or write your own with the skills generator.