code-lint
Installation
SKILL.md
Run project linting by detecting the environment and fixing issues.
Process
-
Identify context:
- If code changes are involved: run
jj diff -sfirst to see changed files; then usejj diff -- pathto restrict to specific files/directories - If the user specified specific files or paths, focus on those
- If code changes are involved: run
-
Detect the preferred way to run linting: a. Check existing instructions:
README.md,CONTRIBUTING.md,CLAUDE.md,AGENTS.md,GEMINI.md,CODEX.mdb. Check task runners:Makefile,justfile,Taskfile.ymlfor lint target c. Check for scripts inbin/,.my/bin/(lint, check, *-lint, etc.) d. Check package manager scripts (package.jsonlint/check scripts, etc.) e. Fall back to standard:npm run lint,ruff check .,golangci-lint run,cargo clippy -
Run the detected linting command with auto-fix where possible
-
Handle remaining issues manually