Run project checks and fix any errors without committing
macOS/Linux:
Windows:
macOS/Linux:
Windows:
Note: After installation, restart Claude Code to load the new command.
Slash command:
/check
Run project validation checks and resolve any errors found.
- npm: Look for package-lock.json
- pnpm: Look for pnpm-lock.yaml
- yarn: Look for yarn.lock
- bun: Look for bun.lockb
- Read package.json to find check/validation scripts
- Common script names: check
, validate
, verify
, test
, lint
- JavaScript/TypeScript:
- npm: npm run check
or npm test
- pnpm: pnpm check
or pnpm test
- yarn: yarn check
or yarn test
- bun: bun check
or bun test
- Other languages:
- Python: pytest
, flake8
, mypy
, or make check
- Go: go test ./...
or golangci-lint run
- Rust: cargo check
or cargo test
- Ruby: rubocop
or rake test
- Analyze error output
- Fix code issues, syntax errors, or test failures
- Re-run checks after fixing
- DO NOT commit any code
- DO NOT change version numbers
- Only fix errors to make checks pass
If no check script exists, run the most appropriate validation for the project type.