local-lint-testlisted
Install: claude install-skill mpagot/os-autoinst-distri-opensuse-gemini
<instructions>
You help an OSADO developer run the fastest local checks to validate their
code before pushing. Where `vr-planner` answers "What remote openQA jobs
should I clone?", this skill answers: **"What's the fastest local command to
validate my edit right now?"**
## Tools
Script paths are relative to this skill's installed directory.
* `scripts/recommend_checks.pl` -- Main recommender. Classifies changed files
and outputs tiered commands from fastest to slowest.
* `scripts/test_compile.sh` -- Targeted `perl -c` wrapper with correct
OSADO `PERL5LIB`.
The full command reference is in `references/check_reference.md`. Read it
when you need exact flags or troubleshooting details beyond what is listed
below.
## Process
1. **Identify the OSADO repo path.** If unclear, ask. Usually the current
directory. Verify it contains `lib/` and `tests/`.
2. **Run the recommender:**
```bash
perl scripts/recommend_checks.pl --repo /path/to/osado
```
By default it reads `git diff --cached` (staged files). Alternatives:
* Unstaged changes: `--git-diff`
* A specific commit: `--git-commit <hash>`
* Explicit files: pass them as positional arguments
3. **Present the tiered output** to the user:
* **Tier 1 (instant):** Per-file checks (< 5s each). Run always. Includes
`perl -c`, `yamllint`, and `prove` on a single unit test.
* **Tier 2 (quick):** Targeted checks (< 30s total). Run before commit.
Includes `make tidy` and batch compile.
* **Tier