precommit

Automate lint, format, type-check, and test precommit checks.

112|10|Updated Mar 16, 2026
One-click install
npx skills add https://github.com/mycelium-io/mycelium --skill precommit-mycelium-io
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: precommit
Source: https://github.com/mycelium-io/mycelium/tree/main/.claude/skills/precommit
Command: npx skills add https://github.com/mycelium-io/mycelium --skill precommit-mycelium-io

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Run precommit checks to automatically enforce code quality before committing.

Core Features & Use Cases

  • Lint and format checks with auto-fix
  • Type checking and tests to catch regressions early
  • Frontend/build and docs verifications to ensure consistency across the repository

Quick Start

Run precommit to automatically lint, format, type-check, and validate your changes before committing.

Frequently Asked Questions about precommit

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

FAQPage Schema
How do I automate lint and format checks before a git commit?

Automating precommit checks enforces code quality by running lint and format checks with auto-fix before a git commit. This validates your codebase locally to catch issues early before pushing changes.

What is the best way to run type checking and tests before committing code?

Running precommit checks is the best way to execute type checking and tests before committing code. It automatically validates your changes locally to catch regressions early in the development workflow.

Can I enforce frontend builds and documentation checks in my precommit workflow?

Yes, precommit workflows can enforce frontend builds and documentation verifications. This ensures consistency across the repository by validating build integrity and docs alongside standard lint and test checks.

Does precommit work across multiple projects or just a single repository?

Precommit checks apply to local development workflows across multiple projects. You can run the automated lint, format, type-check, and test validation on various codebases to ensure consistent code quality before committing.

Why should I run precommit checks instead of waiting for CI to fail?

Running precommit checks catches regressions and formatting issues locally before they reach remote CI. Enforcing lint, type, and test validation before committing prevents broken builds and saves pipeline execution time.

How do I automatically run pytest and lint checks before committing changes?

You can run precommit to automatically execute pytest and lint checks before committing changes. It applies local development validation to ensure code quality, formatting, and tests pass before the commit is finalized.