Lint

From softspark/ai-toolkit · View interactive version

Lint is an AI agent skill from the GitHub repository softspark/ai-toolkit. Runs linter+typechecker with auto-detected toolchain (ruff/mypy, eslint/tsc, phpstan, golangci-lint, clippy). Triggers: lint, typecheck, static analysis.

How to use this skill

Skill file

Lint Runner

$ARGUMENTS

Run linting and type checking based on detected project type.

Project context

Auto-Detection

Run the bundled script to detect available linters:

python3 ${CLAUDE_SKILL_DIR}/scripts/detect-linters.py .

Usage

/lint [path]

Commands by Project Type

| Project Type | Lint Command | Type Check |

|--------------|--------------|------------|

| Python | ruff check . | mypy . |

| TypeScript/Node | npx eslint . | npx tsc --noEmit |

| PHP | ./vendor/bin/phpstan analyse | - |

| Go | golangci-lint run | - |

| Rust | cargo clippy | - |

| Flutter/Dart | dart analyze | - |

Python Projects

# Linting
ruff check .

# Type checking
mypy .

# Auto-fix
ruff check --fix .
ruff format .

TypeScript/Node Projects

# Linting
npx eslint .

# Type checking
npx tsc --noEmit

# Auto-fix
npx eslint --fix .

PHP Projects

# Static analysis
./vendor/bin/phpstan analyse

# Code style
./vendor/bin/phpcs
./vendor/bin/phpcbf  # auto-fix

Docker Execution (if applicable)

# Generic pattern - replace {container} with your app container
docker exec {container} make lint
docker exec {container} make typecheck

Quality Gates

Common Issues

| Error | Fix |

|-------|-----|

| Missing type hints | Add type annotations |

| Unused imports | Remove or use # noqa: F401 |

| Line too long | Break line or disable for that line |

| Import order | Let linter fix with --fix |

Rules

Gotchas

When NOT to Use

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.