← ClaudeAtlas

fmt-sweeplisted

Run cargo fmt --all across N Rust workspaces, verify tests still pass, commit per-repo with a uniform body, push to origin. Compresses what would otherwise be 6-8 tool calls per repo into one invocation. Use when the user says "fmt sweep", "canonicalize whitespace", or as a /loop PRIORITY 5 hygiene step.
thepictishbeast/claude-tools · ★ 0 · AI & Automation · score 68
Install: claude install-skill thepictishbeast/claude-tools
# /fmt-sweep — multi-repo cargo fmt + test + commit + push Walks a configured list of Rust workspaces and, per repo: 1. Runs `cargo fmt --all --check` to count drifted regions 2. If drift > 0: runs `cargo fmt --all` to canonicalize 3. Runs `cargo test --workspace` to verify no regression 4. `chown -R paul:paul` (when running as root) so the autogenerated artifacts have correct ownership before git 5. Stages **only** `.rs` files (filters out generated `static/`, `reports/`, etc.) 6. Commits with an auto-generated body listing the drift count + files touched 7. Pushes to `origin main` LFI repos excluded by default per `feedback_lfi_out_of_scope_for_this_instance`. Override via `--include-lfi`. ## Why this exists Surfaced 2026-05-20 during a manual fmt sweep across PlausiDen-Forge / PlausiDen-Crawler / PlausiDen-Loom / Crucible. Per-repo, the manual sequence was: `cargo fmt --check` → `cargo fmt --all` → `cargo fmt --check` again → `cargo test --workspace` → `chown -R paul:paul` → `sudo -u paul git add` (filtered) → `sudo -u paul git commit` (HEREDOC body) → `sudo -u paul git push`. That's ~8 tool calls per repo × 4 repos = 32 tool calls plus the verification + chown ceremony. Compresses to **one** invocation. This is paul's `contribute to claude tools repo any tasks that can be automated that can save tokens` directive: each repeated agent workflow is a fmt-sweep waiting to happen. ## Steps ### 1. Read the workspace list Default in-scope set (PlausiDen substrate): ```