Target: $ARGUMENTS (if empty, use the whole project root).
Do this mechanically, step by step. Do not ask questions.
Detect lint/format tooling by checking the repo root for config/marker files (use
lsandRead):- JS/TS:
package.json(deps/scripts containingeslintand/orprettier),.eslintrc*,eslint.config.*,.prettierrc*,prettier.config.* - Python:
pyproject.tomlorsetup.cfg(sections/deps forruffand/orblack) - Rust:
Cargo.toml(impliescargo fmt/rustfmt) - Go:
go.modor any*.gofiles (impliesgofmt) If none of these are found, output exactly: "No lint/format tooling detected." and stop. Make no changes.
- JS/TS:
For each tool detected, run its autofix command, scoped to $ARGUMENTS if given, else the whole project:
- ESLint:
npx eslint --fix $ARGUMENTS(or the project'slint:fix/lint --fixnpm script if defined) - Prettier:
npx prettier --write $ARGUMENTS - Ruff:
ruff check --fix $ARGUMENTSandruff format $ARGUMENTS - Black:
black $ARGUMENTS - Rust:
cargo fmt - Go:
gofmt -w $ARGUMENTS(orgo fmt ./...if no path given) Run every tool that is actually configured in the project — don't skip any that were detected in step 1.
- ESLint:
Run
git diff --statto see what changed.Summarize in 3-5 short lines: which tool(s) ran, how many files changed, and the general nature of the changes (e.g. formatting/whitespace, import ordering, quote style). Do not paste the full diff. Do not add extra commentary beyond this summary.