Add Chezmoi Dependency

Add software entries to a chezmoi-managed packages.toml file.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/oskar-dragon/claude-code --skill add-chezmoi-dependency
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Add Chezmoi Dependency
Source: https://github.com/oskar-dragon/claude-code/tree/main/plugins/chezmoi/skills/add-dependency
Command: npx skills add https://github.com/oskar-dragon/claude-code --skill add-chezmoi-dependency

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill streamlines adding new software entries to a chezmoi-managed packages file so users do not need to manually edit TOML sections, worry about formatting, or forget to apply and verify installations.

Core Features & Use Cases

  • Guided Data Collection: Prompts for package name, package type (formula, cask, tap, MAS, bun, npm), machine category, and an optional inline comment.
  • TOML Placement & Formatting: Explains how to add entries to the correct packages.toml section, preserve indentation, include inline comments, and keep lists alphabetized.
  • Apply & Verify: Instructs running chezmoi apply and commands to confirm installation for Homebrew, MAS, and Bun; includes rules to avoid duplicates and handle MAS numeric IDs.
  • Use Case: Add a new Homebrew formula to the common machine category so it installs across all user machines via chezmoi.

Quick Start

Provide the package name, package type, target machine category, and an optional comment so the assistant can update packages.toml and instruct you to run chezmoi apply.

Frequently Asked Questions about Add Chezmoi Dependency

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add a Homebrew formula to my chezmoi packages.toml file?

To add a Homebrew formula to your chezmoi packages.toml file, provide the package name, type, and target machine category. The Skill updates the appropriate TOML section with inline comments while preserving formatting and alphabetical order, then instructs you to run chezmoi apply to install.

Can I manage Mac App Store apps and bun packages with chezmoi?

Yes, you can manage Mac App Store (MAS) apps and bun packages with chezmoi. This Skill validates package types for MAS apps using numeric IDs, bun, npm global packages, Homebrew casks, and taps, adding them to the correct packages.toml sections.

What is the best way to organize dotfiles packages for different machines in chezmoi?

The best way to organize dotfiles packages for different machines in chezmoi is by using machine categories. This Skill supports adding software to common, work_computer, or personal_computer categories within your packages.toml file to manage installations across multiple machines.

How do I keep packages.toml entries alphabetized and avoid duplicates in chezmoi?

To keep packages.toml entries alphabetized and avoid duplicates in chezmoi, the Skill automatically validates package types, updates the appropriate TOML sections, and preserves formatting and alphabetical order while applying rules to prevent duplicate software entries.

Does adding a package to chezmoi packages.toml automatically install the software?

Adding a package to chezmoi packages.toml does not automatically install the software. After the Skill updates your TOML file, you must manually run chezmoi apply and execute specific verification commands to confirm the installation for Homebrew, MAS, and Bun.