Comprehensive code quality verification system for running type checking, linting, and tests. Use when validating code quality, preparing commits, running CI checks locally, or when the user mentions preflight, verify, lint, typecheck, or test commands.
View on GitHubcharlesjones-dev/claude-code-plugins-dev
ai-workflow
January 21, 2026
Select agents to install to:
npx add-skill https://github.com/charlesjones-dev/claude-code-plugins-dev/blob/main/plugins/ai-workflow/skills/preflight-checks/SKILL.md -a claude-code --skill preflight-checksInstallation paths:
.claude/skills/preflight-checks/# Preflight Code Quality Checks This skill provides comprehensive guidance for discovering and running code quality checks across different project types. ## Overview Preflight checks are the quality gates that verify code before commits, PRs, or deployments. They typically include: 1. **Type Checking** - Static type verification (TypeScript, MyPy, etc.) 2. **Linting** - Code quality and style enforcement 3. **Formatting** - Consistent code style 4. **Security Scanning** - Dependency audits and static analysis (SAST) 5. **Testing** - Unit, integration, and e2e tests ## Quick Reference ### Node.js / TypeScript Projects | Check | Command | Auto-fix | |-------|---------|----------| | TypeScript | `npx tsc --noEmit` | N/A (manual) | | ESLint | `npx eslint .` | `npx eslint . --fix` | | Biome | `npx biome check .` | `npx biome check . --write` | | Prettier | `npx prettier --check .` | `npx prettier --write .` | | Jest | `npx jest` | N/A | | Vitest | `npx vitest run` | N/A | **Prefer npm scripts when available:** ```bash # Check package.json scripts first npm run lint # if exists npm run typecheck # if exists npm run test # if exists npm run check # often runs all checks ``` ### Python Projects | Check | Command | Auto-fix | |-------|---------|----------| | MyPy | `mypy .` | N/A (manual) | | Ruff lint | `ruff check .` | `ruff check . --fix` | | Ruff format | `ruff format --check .` | `ruff format .` | | Black | `black --check .` | `black .` | | isort | `isort --check .` | `isort .` | | Pytest | `pytest` | N/A | **With pyproject.toml (modern Python):** ```bash # Check for [tool.X] sections ruff check . && ruff format --check . # Ruff (fast, recommended) mypy src/ # Type checking pytest # Tests ``` ### .NET Projects | Check | Command | Auto-fix | |-------|---------|----------| | Build | `dotnet build` | N/A | | Build strict | `dotnet build --warnaserror` | N/A | | Format check