pre-commit

Automate typecheck, test, and build steps across monorepo workspaces before commits.

Updated Apr 6, 2026
One-click install
npx skills add https://github.com/monobaselabs/monobase-js --skill pre-commit-monobaselabs
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pre-commit
Source: https://github.com/monobaselabs/monobase-js/tree/main/.claude/skills/pre-commit
Command: npx skills add https://github.com/monobaselabs/monobase-js --skill pre-commit-monobaselabs

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill automates the full pre-commit verification checklist to catch issues before code is committed, reducing wasted cycles on broken builds and failing tests.

Core Features & Use Cases

  • Run type checks across the codebase to ensure type safety.
  • Execute tests and builds across multiple workspaces (e.g., services/api-ts, apps/account, packages/sdk-ts).
  • Lint the entire repository and optionally run the contract suite when the API surface is touched.
  • Triggered automatically before commits or PRs to guarantee a clean baseline.

Quick Start

Run the pre-commit checks before committing changes to ensure typecheck, tests, and builds pass across the workspace.

Frequently Asked Questions about pre-commit

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

FAQPage Schema
How do I automate pre-commit checks for typecheck, tests, and builds in a Bun monorepo?

Automating pre-commit checks in a Bun monorepo involves orchestrating typecheck, test, and build steps across workspaces like services/api-ts, apps/account, and packages/sdk-ts before commits. This ensures type safety and a clean build baseline.

What is the best way to enforce code quality before commits in a monorepo?

Enforcing code quality before commits requires running automated verification checks that lint the repository and execute tests across multiple workspaces. This catches issues early, reducing wasted cycles on broken builds and failing tests.

Do I need Bun to run pre-commit verification across multiple workspaces?

Yes, Bun is required as the runtime to execute pre-commit verification checks across multiple workspaces. It orchestrates the typecheck, test, and build steps for services/api-ts, apps/account, and packages/sdk-ts.

Can I run contract tests automatically when the API surface is touched?

Yes, you can run contract tests automatically when the API surface is touched. The pre-commit process includes optional lint and contract-test steps that trigger specifically when API surfaces are modified.

Why does my pre-commit hook fail when type checks pass in individual workspaces?

Pre-commit hooks may fail because the verification process runs type checks across the entire codebase simultaneously. It orchestrates checks across all workspaces, ensuring type safety globally rather than in isolated projects.