prek - Pre-commit Runner
Run pre-commit checks easily with fuzzy matching.
Usage
The user invokes this skill with /prek <query> where query can be:
- •A partial check name:
/prek compile-uimatchesairflow-core:compile-ui-assets - •A project name:
/prek airflow-coreruns all airflow-core checks - •
listto show all available checks
Instructions
- •If the argument is
listor empty, runprek listand show the output - •Otherwise, run
prek listto get available checks, then fuzzy match the argument against check names - •If exactly one match, run it with
prek <project>:<check> - •If multiple matches, show them and ask user to be more specific
- •If no matches, show similar options
Examples
- •
/prek compile-ui→ runsprek airflow-core:compile-ui-assets - •
/prek mypy-airflow→ runsprek airflow-core:mypy-airflow-core - •
/prek providers→ runs all providers checks - •
/prek list→ shows all available checks