← ClaudeAtlas

git-preflight-checkerlisted

Run pre-flight validation checks (lint, type-check, tests, build sanity) before commits or PRs. Use before any commit or merge to gate quality. Exits fast with clear pass/fail so the main agent can proceed or abort.
Git-Fg/taches-principled · ★ 0 · Code & Development · score 73
Install: claude install-skill Git-Fg/taches-principled
# git-preflight-checker Run validation pipelines and return a clear pass/fail verdict before any commit or merge proceeds. The skill runs the same checks the deleted `git-preflight-checker` agent used to, but as a skill so the main agent executes them directly (no subagent context overhead). ## CONTRAST - NOT for: fixing the failures — only validate and report - NOT for: running the full test suite every time — focus on changed files - NOT for: git operations (commit, branch, worktree) — use the `git` skill - NOT for: code review of the changes — use `git-pr-reviewer` or `refine REVIEW` ## The four checks, in order Stop on the first failure — no point running type-check if lint already broke. 1. **Lint** (ESLint, Ruff, Clippy, ShellCheck — whatever the project uses) 2. **Type-check** (TypeScript, MyPy, Rustc — whatever applies) 3. **Unit tests** (focus on the changed files, not full suite) 4. **Build sanity check** (does the project compile/build without errors?) ## How to invoke Use the `Bash` tool directly with the project's standard commands. The shape of each check is project-specific; consult the project's contributing docs or `package.json` / `Cargo.toml` / `pyproject.toml` / `Makefile` for the canonical command. Examples: ```bash # Node project npm run lint && npm run typecheck && npm test -- --changedSince=main && npm run build # Python project ruff check . && mypy . && pytest -x --co && python -m build --check # Rust project cargo clippy --all-targets -- -