AGENTS.md@skills/mise-fy/assets · git:20260621.fd30194 · 2026-06-21 · sha256 d7278363682f61e7
AGENTS.md@skills/mise-fy/assets git:20260621.fd30194A
Immutable. This exact content is served forever at /api/v1/blob/d7278363682f61e7.
# AGENTS.md > Drop-in block for an agent-facing guide. Trim the hk lines if the repo has no pre-commit hooks. ## Toolchain (mise) This project uses [**mise**](https://mise.jdx.dev) to pin tools, expose tasks, and wire git hooks. `mise.toml` is the source of truth. Don't install tools by hand or add ad-hoc scripts; add a mise tool or task instead. **Setup** (once, and per new worktree): `mise trust && mise run setup`. **Run via mise.** Run `mise run check` before you call work done. A few examples, not the full list: ```sh mise run check # all linters/formatters/validators (alias: lint); add --fix to auto-fix mise run test # test suite mise tasks # discover every task mise run <task> --help # a task's flags ``` Prefer `mise run <task>` over calling the tool directly, so local, hooks, and CI stay in sync. ## Git hooks (hk) Commits run [hk](https://hk.jdx.dev), the same `check` CI runs, to format and lint staged files. Fix failures with `mise run check --fix`. Don't disable steps to push a commit through; `git commit --no-verify` skips hooks for a WIP commit. ## Extending the setup Changing tools, tasks, env, or hooks? Edit the config, don't bolt on scripts, then run `mise run check`. Where things live: - **`mise.toml`**: the source of truth for `[tools]`, `[tasks]`, `[env]`/`[vars]`, `[settings]`, and `[hooks]`. - **`mise.lock`**: resolved versions plus checksums. Commit it; regenerate with `mise install` after a `[tools]` change. - **`.mise/`**: project-local state (gitignored), like the setup stamp the `setup`/`enter` hooks read. File tasks can live in `.mise/tasks/`. - **`hk.pkl`**: the pre-commit and `check` pipeline (linters and formatters, in Pkl). Add or edit a lint step here. For tool, task, and hook syntax, see the [mise](https://mise.jdx.dev) and [hk](https://hk.jdx.dev) docs.