precheck

Run backend tests, lint, and frontend type checks before commits.

1|Updated Feb 27, 2026
One-click install
npx skills add https://github.com/jrmatherly/apollos-portal --skill precheck
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: precheck
Source: https://github.com/jrmatherly/apollos-portal/tree/main/.claude/skills/precheck
Command: npx skills add https://github.com/jrmatherly/apollos-portal --skill precheck

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automatically enforce code quality by running the full validation suite before committing, preventing broken builds and regressions.

Core Features & Use Cases

  • Run backend tests: uv run --package apollos-portal-backend pytest -v
  • Run backend lint: uv run --package apollos-portal-backend ruff check backend/
  • Run CLI lint: uv run --package apollos-cli ruff check cli/
  • Run frontend lint: cd frontend && npx biome check .
  • Run frontend type check: cd frontend && npx tsc --noEmit

Quick Start

Run the precheck to execute the full validation suite before committing or opening a pull request.

Frequently Asked Questions about precheck

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run pre-commit checks for backend and frontend code?

Run pre-commit checks by executing a unified validation script that runs backend tests, backend lint, CLI lint, frontend lint, and frontend type checks, printing a PASS/FAIL summary.

Do I need uv and ruff installed to run backend lint checks?

Yes, running backend lint requires uv and ruff to be installed and wired, as the precheck executes uv run ruff check to validate backend code quality before committing.

What tools are required to run frontend lint and type checks?

Frontend lint and type checks require node, biome, and tsc to be installed, executing npx biome check and npx tsc --noEmit to validate frontend code before commit.

How does automating pre-commit validation prevent broken builds?

Automating pre-commit validation prevents broken builds by running a full suite of tests and lint checks before committing, ensuring code quality and stopping regressions locally before PR submission.

Can I use biome and tsc for frontend precheck in a monorepo?

Yes, the frontend precheck supports monorepo workflows by running cd frontend && npx biome check and npx tsc --noEmit to validate frontend code independently before commit.

What is the best way to validate CLI code quality before a commit?

The best way to validate CLI code quality before a commit is running uv run ruff check cli/ to lint the CLI package and ensure it passes precheck validation without breaking builds.