Skip to content
Back to skills

Managing Chezmoi Packages

ASecurity

Use when adding, updating, pinning, or removing a package, tool, image, GitHub Action, or chezmoi external in this dotfiles repo. Picks the right manifest, pins an immutable version/digest/SHA, and keeps the matching Renovate rule in sync.

  • 10 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 9, 2026
developmentpythondockergitapibackenddocumentation

Works with

  • cli
  • api

Security analysis

A100/100

Scanned November 17, 2026

npx -y skills add martinemde/dotfiles --skill managing-chezmoi-packages --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Managing Chezmoi Packages?

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

Security grade badge for Managing Chezmoi Packages
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/martinemde-managing-chezmoi-packages/badge)](https://www.skillsdirectory.com/skills/martinemde-managing-chezmoi-packages)

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: managing-chezmoi-packages
description: Use when adding, updating, pinning, or removing a package, tool, image, GitHub Action, or chezmoi external in this dotfiles repo. Picks the right manifest, pins an immutable version/digest/SHA, and keeps the matching Renovate rule in sync.
---

# Managing packages in this repo

Pin to an immutable reference (version, `tag@sha256:` digest, or commit SHA) and make sure
Renovate can update it. Read the target manifest and `renovate.json5` before editing, and
match the neighbouring entries.

| What                                      | Manifest                                                 | Renovate                                    |
| ----------------------------------------- | -------------------------------------------------------- | ------------------------------------------- |
| macOS brew/cask (unversioned)             | `home/dot_Brewfile`                                      | none                                        |
| Mac App Store (unversioned)               | `home/dot_Brewfile.mas`                                  | none                                        |
| CLI tools (user)                          | `home/dot_config/mise/config.toml` (`aqua:owner/repo`)   | native mise (explicit source discovery)     |
| CLI tools (this repo)                     | `.mise.toml`                                             | native mise                                 |
| Python tools                              | `home/dot_config/dotfiles/requirements.txt`              | pip_requirements                            |
| Docker / devcontainer images              | `home/dot_config/docker-compose/*.yml`, `.devcontainer/` | built-in; keep `tag@sha256:`                |
| GitHub Actions                            | `.github/workflows/*.yml`                                | built-in; pin to SHA with a version comment |
| Installer-managed CLIs                    | `home/dot_config/dotfiles/cli-versions.toml`             | one custom regex per tool                   |
| Files, archives, repos fetched by chezmoi | `home/.chezmoiexternals/<program>.externals.toml`        | one custom regex per dependency             |

User and project mise declarations use exact versions; Renovate owns updates. Keep
existing active installed versions when converting a declaration, resolving global inventory
outside project directories. Retain `# Pinned:` comments for behaviour dependencies. The
seven-day delay still guards explicitly floating resolutions, while exact pins bypass it;
review their release dates through Renovate's policy. Attested precompiled Python and
signed mise self-updates retain scoped zero-delay exceptions; do not extend those to
optional-attestation backends. See `docs/mise.md` for verification limits.

The native mise manager explicitly discovers `home/dot_config/mise/config.toml`.
Keep tool declarations plain TOML; eza uses `os = ["linux"]`. Do not add a competing
Aqua regex updater. Validate raw tool TOML after editing.
Project tools have a cross-platform `mise.lock`; global tools do not yet have a
reviewed complete lockfile and native dependency sidecars. Refresh project locks
without installing or upgrading tools:
`MISE_SAFE=1 MISE_MINIMUM_RELEASE_AGE=7d mise lock --platform linux-x64,linux-arm64,macos-x64,macos-arm64`.
Keep verification fields. Global lock generation must be isolated, with platform and
backend coverage checked: a successful command may retain version-only entries after
warnings. Do not enable unsafe Renovate execution or commit a partial result.

During read-only checks set `MISE_AUTO_INSTALL=0` and use already installed executables
directly. A mise shim can otherwise install a newly locked version automatically.

## Chezmoi externals

Group by program in `home/.chezmoiexternals/<program>.externals.toml`. Existing entries pin a
GitHub archive or raw URL to a 40-char commit SHA, or a release download URL to a tag, with a
comment block (purpose, `# renovate: repo=… branch=…`). The comment is documentation only;
what Renovate reads is a `customManagers` entry in `renovate.json5` whose `fileMatch` names that
file and whose regex captures the SHA (`github-digest`, `currentValueTemplate` = tracked branch).
Release binaries need an adjacent `checksum.sha256` pin. Match the URL version and
`currentDigest` together with `github-release-attachments` so Renovate replaces both.
CI verifies the Zellij artifacts with `python3 bin/check-zellij-plugins`. Add the matching
manager and artifact verification with every new executable external. Never fix a mismatch
by accepting new bytes without reviewing the upstream change.

A script that hashes an externals file (`{{ include … }}`) re-runs when it changes; grep for
references before moving or renaming one.

## Verify

- Resolve the pin from the source (`gh api repos/O/R/commits/BRANCH --jq .sha`,
  `gh api repos/O/R/releases/latest --jq .tag_name`, `docker buildx imagetools inspect`).
- `chezmoi diff <target>` renders the change; `bats test/` covers templates and scripts.
- Check the Renovate regex actually matches the new line (test it against the file contents).
- Don't run `brew`, `mise install`, or `chezmoi apply` without permission.

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 development →

Comments

Loading comments…

Newsletter

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