From reLint
Lints files against user-defined regular expression rules in a YAML config. Supports git-diff linting, pre-commit hooks, and CI annotation output.
How this skill is triggered — by the user, by Claude, or both
Slash command
/relint:run-relintThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
reLint is a regular expression linter. It checks files against user-defined rules written in a YAML config file (default `.relint.yml`).
reLint is a regular expression linter. It checks files against user-defined rules written in a YAML config file (default .relint.yml).
reLint can be run directly with uvx — no install required:
uvx relint --version
# or, for advanced regex features (e.g. lookbehinds on variable-width patterns):
uvx --with "relint[regex]" relint
All CLI examples below can be run via uvx relint ... (e.g. uvx relint -c .relint.yml FILE).
The config file defaults to .relint.yml in the working directory. Override it with -c/--config.
# Lint specific files using the default config (.relint.yml)
relint FILE FILE2 ...
# Lint with a custom config file
relint -c path/to/.relint.yml FILE FILE2 ...
# Lint only the changed lines piped from a git diff
git diff --unified=0 | relint my_file.py --diff
# Lint the currently staged git diff directly
relint --git-diff
# Fail (non-zero exit) on warnings too
relint -W FILE ...
# Suppress warnings (useful in CI)
relint --ignore-warnings FILE ...
# Group matches by rule instead of listing each occurrence
relint --summarize FILE ...
# Control code snippet padding (default 2; set -1 to hide snippets)
relint --code-padding 4 FILE ...
.relint.yml in the working directory; use -c if the user specifies a different file. If no config exists, tell the user and offer to create one (see the write-rule skill).::error/::warning annotations automatically when GITHUB_ACTIONS=true.If the user wants to automate linting, add this to .pre-commit-config.yaml:
- repo: https://github.com/codingjoe/relint
rev: 1.4.0
hooks:
- id: relint
args: [-W] # optional: fail on warnings during commit
error attribute (default true) controls whether a rule produces a warning (false) or a hard error.filePattern attribute (default .*) narrows which files a rule applies to. It is matched against the full file path.npx claudepluginhub codingjoe/claude-plugins --plugin relintAuthors and edits reLint rules in .relint.yml configs for regex-based linting. Use to create new lint rules, modify existing ones, or add rules from the Cookbook.
Reference for ESLint, Ruff, Pylint, RuboCop, Stylelint, and Clippy rule names, AST selectors, and config details when authoring enforce() rules.
Authors, modifies, or removes lint rules in `.bully.yml` config. Always tests a rule against a fixture before writing it.