enable-quality-gate

Configure automated code quality gates with mise and hk.

40|33|Updated Aug 20, 2015
One-click install
npx skills add https://github.com/bitsoex/bitso-java --skill enable-quality-gate
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: enable-quality-gate
Source: https://github.com/bitsoex/bitso-java/tree/main/.claude/skills/enable-quality-gate
Command: npx skills add https://github.com/bitsoex/bitso-java --skill enable-quality-gate

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the setup of robust code quality gates using mise and hk, ensuring consistent code standards and security across your repositories.

Core Features & Use Cases

  • Automated Setup: Detects project type, generates configuration files (hk.pkl, mise.toml), and installs git hooks.
  • Hook Migration: Provides clear patterns for migrating from popular hook managers like Husky, pre-commit, and lefthook.
  • Use Case: Onboarding a new Java project to Bitso's CI/CD pipeline by automatically configuring mise for environment management and hk for pre-commit and pre-push hooks, including linters like Spotless and Checkstyle.

Quick Start

Run hk init --interactive --mise to set up quality gates for your project.

Frequently Asked Questions about enable-quality-gate

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

FAQPage Schema
How do I automate code quality gates for a new project using mise and hk?

To automate code quality gates using mise and hk, run `hk init --interactive --mise`. This detects your project type and automatically generates the required `hk.pkl` and `mise.toml` configuration files while installing necessary git hooks.

Can I migrate existing git hooks from Husky or pre-commit to hk?

Yes, you can migrate existing git hooks from Husky, pre-commit, or lefthook to hk. The skill provides clear migration patterns to transition your hook configurations while maintaining automated linters, formatters, and security checks.

Does the quality gate setup support Java, Node.js, Python, and Go projects?

The quality gate setup supports Java, Node.js, Python, and Go projects. It automatically detects the project type and integrates relevant linters and formatters, such as Spotless and Checkstyle for Java codebases.

What is a quality gate in CI/CD and how do git hooks enforce it?

A quality gate in CI/CD enforces code standards before integration. Git hooks like pre-commit and pre-push trigger automated linters, formatters, and security checks locally, ensuring code adheres to quality standards before reaching the repository.

Do I need mise installed before configuring hk for environment management?

You need mise for environment management when configuring hk. The skill generates a `mise.toml` file to manage dependencies and tool versions alongside `hk.pkl` for your git hook configuration.

Why use hk for pre-commit hooks instead of other git hook managers?

Using hk for pre-commit hooks provides automated project type detection and configuration generation via `hk.pkl`. It streamlines onboarding to CI/CD pipelines by integrating security checks and formatters while offering migration paths from other hook managers.