hk-setup

Automate hk pre-commit hook and linter setup for multi-language projects.

Updated Dec 14, 2025
One-click install
npx skills add https://github.com/kennyg/tome-grimoire --skill hk-setup
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: hk-setup
Source: https://github.com/kennyg/tome-grimoire/tree/main/skills/hk-setup
Command: npx skills add https://github.com/kennyg/tome-grimoire --skill hk-setup

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

hk-setup automates the configuration of hk git hooks and per-project linting, reducing manual setup time and ensuring consistent code quality across teams.

Core Features & Use Cases

  • Detects project type (Python, JS/TS, Go, Rust, etc.) and configures appropriate linters/formatters.
  • Generates a deterministic hk.pkl and integrates with pre-commit workflow for new or existing projects.
  • Works with agents and tools that rely on hk for code quality and automation.

Quick Start

Install hk, then run the hk-setup workflow to initialize pre-commit hooks and language-specific linting.

Frequently Asked Questions about hk-setup

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

FAQPage Schema
How do I set up pre-commit hooks for a multi-language project?▼

To set up pre-commit hooks for a multi-language project, this automation detects your project type from config files and generates a deterministic hk.pkl configuring language-specific linters and builtins.

What is the best way to automate git hooks and linting configuration?▼

Automating git hooks and linting configuration is best handled by detecting the project type and generating a deterministic hk.pkl file, ensuring consistent code quality workflows across teams without manual setup.

Does hk pre-commit hook setup work with Go, Rust, and Python codebases?▼

Yes, hk pre-commit hook setup works with Python, JavaScript/TypeScript, Go, Rust, and Shell codebases by detecting the project type and applying the appropriate linters and formatters automatically.

How do I configure linters for an existing project using hk?▼

To configure linters for an existing project using hk, you run the setup workflow which detects your project type and generates an hk.pkl file integrating the necessary hooks and tools.

Can I use hk-setup to enforce consistent code quality across teams?▼

You can use hk-setup to enforce consistent code quality across teams by generating a deterministic hk.pkl configuration that standardizes pre-commit hooks and language-specific linting workflows.