dotfiles: Skill for Claude Code

.agents/skills/managing-chezmoi-packages/SKILL.md

managing-chezmoi-packages is a skill for Claude Code, Codex from martinemde/dotfiles. It costs 88 tokens per session (3,027 once invoked), scanned A, a copy of managing-chezmoi-packages, ISC.

A set of instructions for managing packages and external tools in a chezmoi dotfiles repository. Chezmoi is a tool for managing personal configuration files across machines.

In plain words
What is it for?
It is for adding, updating, removing, organizing, and choosing packages or command-line tools in chezmoi configuration.
Why use it?
It provides a defined process for version pinning, automated updates, organized external files, and previewing changes.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

This is martinemde/dotfiles's own configuration. It tells Claude Code and Codex how to work on dotfiles itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything dotfiles configures →

Reuse

Borrowing it

Nothing to install: this file belongs to martinemde/dotfiles. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/martinemde/dotfiles/main/.agents/skills/managing-chezmoi-packages/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/martinemde/dotfiles

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for managing-chezmoi-packages

README.md
[![agentmods](https://agentmods.dev/badge/skills/martinemde/dotfiles/managing-chezmoi-packages/github.svg)](https://agentmods.dev/skills/martinemde/dotfiles/managing-chezmoi-packages)
Your own site
<a href="https://agentmods.dev/skills/martinemde/dotfiles/managing-chezmoi-packages"><img src="https://agentmods.dev/badge/skills/martinemde/dotfiles/managing-chezmoi-packages/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for managing-chezmoi-packages

Your own site · 80×15
<a href="https://agentmods.dev/skills/martinemde/dotfiles/managing-chezmoi-packages"><img src="https://agentmods.dev/badge/skills/martinemde/dotfiles/managing-chezmoi-packages.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 88 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,027 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin 88% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00088 $0.03027
Opus 5.5 $0.00035 $0.01211
Sonnet 5.5 $0.00018 $0.00605
Haiku 4.5 $0.00009 $0.00303

Measured 8d ago against content hash 8a0af9d86665, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

managing-chezmoi-packages scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -fsSL https://github.com/USER/REPO/raw/SHA/path/to/file
Origin

This is a copy

88% identical to managing-chezmoi-packages — 30 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.agents/skills/managing-chezmoi-packages/SKILL.md · 384 lines

How it starts

The opening of the file, as written. The whole thing — 384 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Managing Chezmoi Packages

This skill handles all aspects of package and dependency management in chezmoi dotfiles repositories, with emphasis on security, reproducibility, and automated updates.

Core Principles

  1. Version Pinning: Always pin to immutable references (commit SHAs, specific versions, digests)
  2. Renovate Automation: Ensure all dependencies have corresponding Renovate rules
  3. Organization: Group externals by primary program using .chezmoiexternals/ directory
  4. Minimal Edits: Make focused changes without unrelated modifications
  5. Preview First: Show proposed changes before applying

When to Use This Skill

Invoke this skill when the user requests:

  • Adding/updating/removing packages or tools
  • Managing chezmoi external dependencies
  • Pinning versions or updating SHAs
  • Organizing external files by program
  • Setting up Renovate automation for dependencies
  • Choosing between package ecosystems (Homebrew, mise, etc.)

Workflow

1. Identify the Request

Determine what the user wants:

  • Add: New package or external dependency
  • Update: Change version/SHA of existing package
  • Remove: Delete package or external
  • Organize: Migrate externals to .chezmoiexternals/ structure
  • Pin: Add immutable version/SHA reference

2. Select the Ecosystem

Choose the appropriate package manager (see ./ecosystem-guide.md for details):

Use Case Ecosystem Location
macOS packages (Homebrew) brew/cask/mas home/.chezmoidata/packages.yaml
CLI developer tools mise (Aqua) .mise.toml or home/dot_config/mise/config.toml
Python tools pip home/dot_config/dotfiles/requirements.txt
Docker/devcontainer docker home/dot_config/docker-compose/*.yml, .devcontainer/
External files/repos chezmoi externals home/.chezmoiexternals/*.toml[.tmpl]
Install script CLIs cli-versions home/dot_config/dotfiles/cli-versions.toml

Read the full file on GitHub · 384 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 384 lines · 88 tokens per session scan A 8a0af9d86665

Subscribe to this mod's changes

managing-chezmoi-packages is a skill published in the GitHub repository martinemde/dotfiles (10 stars, last pushed yesterday), licensed ISC. It adds 88 tokens to every session and 3,027 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). It is 88% identical to managing-chezmoi-packages, differing in 30 lines, and is treated as a copy.