Skip to main content

validate-and-fix

Run install sync, unit tests, and make verify; auto-fix trivial failures (ruff format/fix, obvious test expectation updates). Use when the user asks to validate, run tests, check the pipeline, or verify changes are clean.

소스 정보

저장소
openshift/lightspeed-agentic-sandbox
최근 소스 활동
2026년 5월 19일 11:24
감지된 SKILL.md 언어
영어
스타
5
포크
23

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
validate-and-fix
description
Run install sync, unit tests, and make verify; auto-fix trivial failures (ruff format/fix, obvious test expectation updates). Use when the user asks to validate, run tests, check the pipeline, or verify changes are clean.
disable-model-invocation
true
# Validate & Auto-Fix Run the project validation pipeline, auto-fix trivial issues, and re-run until green or a real failure is found. ## Rules - Never modify production logic to fix a test. Only fix test expectations, imports, formatting, and lint. - Never skip or delete a failing test. - Stop after 3 auto-fix cycles to avoid loops. - Report real failures clearly; do not attempt speculative fixes. ## Step 0: Ensure Dependencies Are Installed ```bash make install-all ``` Use `make install` if the user only needs dev tooling without all provider extras. For most agent code paths, `install-all` matches CI-like coverage. ## Step 1: Run Unit Tests ```bash make test ``` If all pass, proceed to Step 3. If failures occur, classify each failure (see Step 2). ## Step 2: Classify and Fix Failures **Auto-fixable** (fix immediately, then re-run Step 1): | Type | Fix | |------|-----| | Missing `await` on async call | Add `await`, mark test `async def`, add `@pytest.mark.asyncio` | | Test asserts old default value | Update assertion to match new default | | Ruff format | `make format` | **Real failures** (do not auto-fix without user): - Logic errors in production code - Assertion failures reflecting unclear behavior changes - Import errors from missing optional extras (install with `make install-all`) ## Step 3: Run Verify ```bash make verify ``` This runs: `ruff format --check`, `ruff check`, `mypy` on `src/lightspeed_agentic`. If failures occur: | Type | Fix | |------|-----| | Format | `make format` | | Unused import (F401) | Remove the import | | Other ruff-fixable | `make format` (includes `ruff check --fix`) | Re-run `make verify` after each fix. ## Step 4: Report Report exactly: - `make test`: pass/fail (counts if useful) - `make verify`: pass/fail - Auto-fixes applied (file + what changed) - Cycles used: N/3 Do not include unrelated diagnostics.
GitHub에서 보기