Skip to content
Back to skills

Add Tool

ASecurity

Decide where a new tool slots into the chezmoi bootstrap and host-status. Use when adding a CLI/binary to the host bootstrap so it lands in the right install pass and host-status reports it when missing or logged out.

  • 2 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 1, 2026
toolsgoshellbashtestinggitapibackend

Works with

  • terminal
  • cli
  • api

Security analysis

A100/100

Scanned November 28, 2026

npx -y skills add alunduil/alunduil-chezmoi --skill add-tool --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Add Tool?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Add Tool
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/alunduil-add-tool/badge)](https://www.skillsdirectory.com/skills/alunduil-add-tool)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: add-tool
description: Decide where a new tool slots into the chezmoi bootstrap and host-status. Use when adding a CLI/binary to the host bootstrap so it lands in the right install pass and host-status reports it when missing or logged out.
---

# Add a tool to bootstrap

First check the tool belongs on the host, then make two decisions
independently.

## Libraries with no console script

mise's `pypi:` backend installs only packages with an executable. Place
a PyPI library one of two ways:

1. An installed tool imports it (plugins, optional backends): enable
   the tool's extra that pulls it in, as `beets` enables `chroma` for
   `pyacoustid`. `just lock-tools` pins it in the tool's `uv.lock`
   sidecar.
2. Otherwise, keep it off the host. The caller runs
   `uv run --with <pkg>==<version> <script>` and owns the pin. Stop
   here: no bootstrap change, no `host-status` entry.

Install a CLI front-end that wraps the library only when its command
is itself wanted.

## Auth axis

Does the tool need interactive auth (login, browser flow, API token)
to do real work?

- **Yes** (gh, claude, gcx, readwise, tailscale): add a `check_login` line
  to `check_logins` in `dot_local/bin/executable_host-status.tmpl`,
  testing local state the login leaves behind (a credential file, or a
  command that reads it without the network). Auth state is runtime,
  never managed by chezmoi.
- **No** (zellij, lazygit, act, gh-poi): no login line.

## Missing-tool report

`host-status` derives apt packages from `ansible/group_vars/all/packages.yml`
and pinned tools from `mise ls --missing`, so those need no entry. A
tool installed any other way (ghcup, an upstream installer) goes in
its `commands` array.

## Install mechanism

All passes live under `.chezmoiscripts/`.

Pick the canonical installer for the ecosystem:

| Source                                                 | Where                                 | Pattern                  |
| ------------------------------------------------------ | ------------------------------------- | ------------------------ |
| Debian package                                         | `ansible/group_vars/all/packages.yml` | append to `apt_packages` |
| Release binary, npm package, cargo crate, PyPI package | `dot_config/mise/config.toml`         | mise entry below         |

Raise a release binary that mise can't verify against its publisher,
such as one signed only with GPG, with the user before adding it.

Auth and install axes are independent: `gcx` is auth-required *and*
a mise tool.

Install a `gh` extension as a mise tool, then link
`~/.local/share/gh/extensions/gh-<name>/gh-<name>` to its shim, as
`gh-poi` does.

## mise entry

Add the tool under `[tools]` in `dot_config/mise/config.toml`, at an
exact version, sorted by tool name. Use the short name when
`mise registry <tool>` lists one. Otherwise name the backend:
`"github:<owner>/<repo>"` for a release binary, `"npm:<package>"`,
`"cargo:<crate>"`, or `"pypi:<package>"`. Then lock it with
`just lock-tools`. Renovate's mise manager bumps the entry and
`mise.lock` together, so it takes no `# renovate:` line.

`script/checks/pinned-tools` runs
`<last segment of the config.toml name> --version` and expects it to
exit 0. Add any tool that needs another command to `RUN_COMMANDS`
there, or an empty entry for a library with nothing to run. A TUI
also goes in `TUI`, which runs it in a pseudo-terminal and expects it
still running at the timeout.

Commit `config.toml`, `mise.lock`, and any new sidecar under
`dot_config/mise/.mise/locks/`.

A pass that runs the new tool is `run_after_`, since shims resolve
through the `~/.config/mise` that apply deploys. Call
`use_mise_shims` from `script/lib/bootstrap.sh`, then the tool by name.

## Shell completion

When the tool prints a bash completion script, add
`dot_local/share/bash-completion/completions/<command>` holding one
line that evals it, mirroring `just`. bash-completion sources the file
on the first Tab, so the script always matches the installed version.

## Procedure

1. For a library with no console script, settle its shape first; stop
   if it stays off the host.
2. Identify the auth axis and install mechanism.
3. Wire the installer into the right `.chezmoiscripts/` pass, or add
   the mise entry.
4. Update `host-status`: a `check_login` line for an auth-required tool,
   and a `commands` entry for one installed outside apt and mise.
5. Add a [Shell completion](#shell-completion) file if the tool
   generates one.
6. Run sensors before claiming done:

   ```bash
   prek run --all-files
   bats --recursive dot_local dot_claude etc script
   script/checks/chezmoi-apply
   script/checks/pinned-tools
   ```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in tools →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.