Skip to content
Development
Command

/lint-fix

Auto-fix all linting and formatting issues

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

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

@cloudai-x
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.

1.4k14 skills7 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
1.4k
Star history of CloudAI-X/claude-workflow-v2 on GitHub, a chart by star-history.com

Other commands on project-starter.

architect

architect

Command

System design and architecture planning mode. Focuses on high-level design, trade-offs, and technical decisions before…

bootstrap-repo

bootstrap-repo

Command

Explore the repository with 10 parallel subagents to create comprehensive documentation. Creates CODEBASE.md with full…

code-simplifier

code-simplifier

Command

Simplifies code after implementation. Reviews recent changes and suggests/applies simplifications while preserving behavior.

More commands from other plugins.

build
Auto-invoked

build

Command

Implement tasks incrementally — build, test, verify, commit. Add "auto" to run the whole plan in one approved pass.

@addyosmani@addyosmaniInstall Command