Skip to content
Skills Library
Programming · Automation

run-relint

/run-relint

Run reLint to lint files using regular expression rules. Use when the user wants to run relint, check files against relint rules, lint a diff, or configure relint in pre-commit/CI.

Repository
relint ↗
Licence
MIT
Last repository change
27.10.2026

Assessment and security

84/ 100Class: good
Format9 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
1
Deprecation

No signals detected. Repository changed on 27.10.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Run reLint to lint files using regular expression rules. Use when the user wants to run relint, check files against relint rules, lint a diff, or configure relint in pre-commit/CI.

Original author description

Run reLint to lint files using regular expression rules. Use when the user wants to run relint, check files against relint rules, lint a diff, or configure relint in pre-commit/CI.

How it works

  1. Prerequisites
  2. CLI usage
  3. How to run
  4. pre-commit integration
  5. Tips
Original SKILL.md headings · 73 lines, 425 words
SKILL.md preview
---
description: Run reLint to lint files using regular expression rules. Use when the user wants to run relint, check files against relint rules, lint a diff, or configure relint in pre-commit/CI.
allowed-tools: Bash(uvx relint *) Bash(relint *) Read
---

# Run reLint

reLint is a regular expression linter. It checks files against user-defined rules written in a YAML config file (default `.relint.yml`).

## Prerequisites

reLint can be run directly with `uvx` — no install required:

```shell
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`).

## CLI usage

The config file defaults to `.relint.yml` in the working directory. Override it with `-c`/`--config`.

```shell
# 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 ...
```

## How to run

1. Determine the scope of files the user wants to lint. If none are given, ask which files or globs to lint. Do NOT lint the entire repo by default — relint takes explicit file paths, not globs.
1. Locate the relint config. Default to `.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).
1. Run relint via the Bash tool, passing the config and target files.
1. Report the results clearly: list each match with its rule name, file, line number, and hint. If relint exits non-zero, point out which rules errored vs. warned.
1. If running in a CI/GitHub Actions context, note that relint emits `::error`/`::warning` annotations automatically when `GITHUB_ACTIONS=true`.

## pre-commit integration

If the user wants to automate linting, add this to `.pre-commit-config.yaml`:

```yaml
- repo: https://github.com/codingjoe/relint
  rev: 1.4.0
  hooks:
    - id: relint
      args: [-W]  # optional: fail on warnings during commit
```

## Tips

- reLint reads the entire file, so patterns can span multiple lines and include newlines.
- The `error` attribute (default `true`) controls whether a rule produces a warning (`false`) or a hard error.
- The `filePattern` attribute (default `.*`) narrows which files a rule applies to. It is matched against the full file path.

Versions

The database has no other skills named run-relint.

Database snapshot: 13.11.2026 · package version 82ba9e4cf971 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 84write-rule
    Author and edit reLint rules in a .relint.yml config. Use when the user wants to create a new linting rule, write a regex-based linter, modify existing relint rules, or add rules from the Cookbook.
  • 100run-patdown
    Run the patdown CLI against files or a directory using project AGENTS.PATDOWN.md rules. Use when the user asks to fuzzy-lint, patdown a tree, or check writes against markdown rules.
  • 90ship-check
    Pre-commit checklist that runs tests and lint, reviews the diff, and catches secrets and leftover debug logs before you commit or push. Use when the user says ship it, ready to commit, pre-commit check, before I push, is this safe to commit, or review my changes.
  • 100setup-pre-commit
    在当前仓库设置 Husky pre-commit hooks,集成 lint-staged (Prettier)、类型检查和测试。适用于用户想添加 pre-commit hooks、设置 Husky、配置 lint-staged,或在提交时运行格式化、类型检查和测试时。
  • 100commit
    Stage named files and commit per the repo commit rules (else existing convention). Use for "commit this", "split into commits".
  • 100setup-pre-commit
    Set up Husky pre-commit hooks with lint-staged (Prettier), type checking, and tests in the current repo. Use when user wants to add pre-commit hooks, set up Husky, configure lint-staged, or add commit-time formatting/typechecking/testing.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.