Skip to content
Development
Command

/lint-fix

Auto-fix all linting and formatting issues

BOOST
From plugin
project-starter
1.4k26 skills7 agents26 commands6 hooks
Install
> /plugin marketplace add CloudAI-X/claude-workflow-v2
> /plugin install project-starter@claude-workflow

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/lint-fix

Context preview

What this command does when you run it.

Auto-fix all linting and formatting issues

Command definition

lint-fix.md
allowed-tools: Bash(npm:*), Bash(npx:*), Bash(yarn:*), Bash(pnpm:*), Bash(bun:*), Bash(python:*), Bash(go:*), Bash(cargo:*)
description: Auto-fix all linting and formatting issues
argument-hint: "[optional file or directory path]"

Context

  • Project root files (infer the project type and lint config from these): !`ls -a`
  • Package scripts: !`cat package.json 2>/dev/null | grep -A 20 '"scripts"' | head -25 || echo "No package.json"`
  • Staged files: !`git diff --name-only --cached 2>/dev/null`
  • Files changed in the last commit: !`git diff --name-only HEAD~1 2>/dev/null | head -50`

Task

Auto-fix all linting and formatting issues:

1. Detect the project type and available linters 2. Run formatters first (Prettier, Black, gofmt, rustfmt) 3. Run linters with auto-fix enabled:

  • JavaScript/TypeScript: `eslint --fix`
  • Python: `ruff check --fix` or `black` + `isort`
  • Go: `gofmt -w` + `go vet`
  • Rust: `cargo fmt` + `cargo clippy --fix`

4. Report what was fixed 5. List any remaining issues that require manual attention

Scope: $ARGUMENTS

Ships withproject-starter

A universal Claude Code workflow plugin with specialized agents, skills, hooks, and mode commands for any software project. Compatible with skills.sh — works with Claude Code, Cursor, Codex, and 35+ AI agents.

Get the whole plugin

Other commands on project-starter.