Automic VaultAutomic Vault

brew

hk を Homebrew, MacPorts, scoop でインストール

hk のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

インストール

追加のインストールコマンド

macOS

Homebrew確認済み · 100%
brew install hk

local Homebrew formula metadata

MacPorts確認済み · 94%
sudo port install hk

MacPorts ports tree · devel/hk/Portfile · ソース: api.github.com

Windows

Scoop確認済み · 92%
scoop install main/hk

Scoop official bucket manifest trees · bucket/hk.json · ソース: api.github.com

概要

パッケージ概要

Git hook and pre-commit lint manager

コマンドとエイリアス

  • generate-docs
  • hk

履歴

プロジェクトの歴史と使われ方

hk is a Rust git-hook manager and project lint runner by jdx, designed around fast hook execution, tighter linter integration, and safe parallelism through read/write file locking.

プロジェクトの歴史

The official README describes hk as a git hook manager and project linting tool with an emphasis on performance. Its About page explains the motivation: git hooks need to be fast or developers stop using them, and naive parallel execution can break when multiple formatters or linters modify the same files.

hk's configuration model uses Apple's Pkl language through hk.pkl files. The configuration documentation describes layered sources, including built-in defaults, user-level hkrc, project config, Git config, environment variables, and CLI flags.

採用の歴史

hk is a young tool in the git-hook manager space. The GitHub repository was created in January 2025, early GitHub releases began in March 2025, and the documentation quickly oriented around global Git hook installation, per-project hk.pkl files, and integration with mise-en-place.

The input package facts show packaging through Homebrew, MacPorts, and Scoop, which is a practical footprint for a developer CLI aimed at local workstations rather than servers.

使われ方

The intended workflow is to install hooks globally or per repository, run hk init to create hk.pkl, and then let Git events run configured lint and fix steps. hk check and hk fix provide explicit command-line entry points for running checks outside Git hooks.

The configuration docs emphasize precedence and local overrides: hk.local.pkl is for local changes that should not be committed, while ~/.config/hk/config.pkl can hold user-wide defaults.

パッケージ好きにとっての重要性

hk matters to package nerds because it is part of the newer wave of developer workflow CLIs that try to make local checks fast enough to keep enabled. Its differentiator is not another hook file format by itself, but the combination of Pkl configuration, built-in linter definitions, libgit2 usage, mise integration, and locking around file modification.

It also reflects a packaging trend: single-purpose Rust CLIs distributed through Homebrew, Scoop, MacPorts, and direct release binaries for developers who want one binary in their path.

タイムライン

  • 2025-01-26: The jdx/hk GitHub repository was created.
  • 2025-03-29: Early v0.6.x GitHub releases were published.
  • 2025: hk documentation described global Git hook installation and hk.pkl project setup.
  • 2026: hk documentation described pklr as the built-in Pkl evaluator and layered configuration sources.

Related projects

  • mise-en-place: jdx's environment/tool-version manager that hk documentation names as an integration point.
  • pre-commit, lefthook, Husky, lint-staged: adjacent git-hook and lint-running tools in the same developer workflow category.
  • Pkl: Apple's configuration language used for hk.pkl.

セキュリティ状態

リスクレベル: グリーン

narrow executable package without higher-risk signals.

リスク分類器

リスク グリーン · 信頼度 低 · appliance

理由

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

インストール挙動

  • formula メタデータに Homebrew post-install フックは記録されていません。
  • Homebrew bottle メタデータは 6 個のプラットフォームターゲットで利用できます。
  • 2 件の実行時依存関係とともにインストールされます。
  • ビルドメタデータには 2 件のビルド依存関係があります。

推奨レビュー

エージェントに無人実行させる前に、このツールが平文の認証情報を読むか、リモート状態を書き込むか、成果物を公開するか、プラグインを起動するかを確認してください。

local files

Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.

Configuration files

Config paths the tool may read or write during local use.

Unix
hk.local.pkl.config/hk.local.pklhk.pkl.config/hk.pkl~/.config/hk/config.pkl

実行可能ファイル

インストールされる実行可能ファイル

コマンド種類公開範囲メモ
generate-docscliグローバル実行可能ファイル
hkcliグローバル実行可能ファイル

鮮度

バージョンと鮮度

これらの信号は、ページ生成時期、パッケージマネージャの活動、上流リリース比較を分けて示します。バージョン遅れは、証拠 URL と比較可能なバージョンがある場合だけ警告されます。

ページ生成日2026-07-25
マネージャ版1.53.0
マネージャ更新日2026-07-25
ローカルデータOK
上流not checked
検出された最新未検出

https://github.com/jdx/hk

インストールメタデータ

パッケージメタデータ

パッケージキーbrew:hk
バージョン1.53.0
パッケージマネージャHomebrew
パッケージマネージャページhttps://formulae.brew.sh/formula/hk
ホームページhttps://hk.jdx.dev
リポジトリhttps://github.com/jdx/hk
上流ドキュメントhttps://hk.jdx.dev/
ライセンスMIT
ソースアーカイブhttps://github.com/jdx/hk.git
最終更新2026-07-25T01:00:14Z
Pulseupdated
依存関係openssl@3, usage
ビルド依存関係pkl, rust
Bottle利用可能 (対象 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定義
サービス宣言なし

レジストリ情報

ソースデータベース詳細

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namehk
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

ソースデータベース一致

他のパッケージマネージャ記録

一致は外部パッケージマネージャインデックスから取得され、ローカルの Automic Vault パッケージリンクとは分けて表示されます。

MacPorts95%

hk

sudo port install hk
  • normalized package name match
  • 一致条件: Hk
MacPorts ports tree · api.github.com · MacPorts ports tree: devel/hk/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
Scoop95%

main/hk

scoop install main/hk
  • normalized package name match
  • 一致条件: Hk
Scoop official bucket manifest trees · api.github.com · Scoop official bucket manifest trees: bucket/hk.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

ソース経路

リポジトリデータから生成

このページは scripts/generate-pkg-sqlite.py が生成した非公開のパッケージ SQLite アーティファクトから av-web によって提供されます。

Combined YAML source

View the package source record on GitHub.

combined/hk.yml

使用ソース

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated configuration and credential file locations
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment