← ClaudeAtlas

local-lint-testlisted

Recommends the fastest local commands to validate edited OSADO code before pushing. Activate when the user asks "how do I check my code", "what should I run locally", "lint my changes", "does this compile", "run perltidy", "run perlcritic", "run a unit test", "check formatting", or after editing files to verify correctness. Covers compilation, formatting, linting, unit tests, YAML validation, and static analysis -- always preferring the lightest targeted command over full-suite runs.
mpagot/os-autoinst-distri-opensuse-skills · ★ 2 · Code & Development · score 66
Install: claude install-skill mpagot/os-autoinst-distri-opensuse-skills
<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