setup-devenv-with-chezmoi

setup-devenv-with-chezmoi is a skill for Claude Code from urmzd/dotfiles. It costs 112 tokens per session (906 once invoked), scanned A, original, Apache-2.0.

Chezmoi-specific helpers for managing development tools and project settings in a chezmoi-managed home directory. Chezmoi is a tool that keeps personal configuration files and scripts consistent across computers.

In plain words
What is it for?
Use it to add pinned installers for tools such as gcloud or aws-cli, maintain a shared project environment template, and standardize how local command-line tools are connected across projects.
Why use it?
It removes repeated manual work when adding tools with fixed versions or applying project configuration. It also helps prevent installers from downloading the same tool again unnecessarily.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it to add pinned installers for tools such as gcloud or aws-cli, maintain a shared project environment template, and standardize how local command-line tools are connected across projects.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/urmzd/dotfiles/setup-devenv-with-chezmoi
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add urmzd/dotfiles --skill setup-devenv-with-chezmoi
Clone the repo
git clone --depth 1 https://github.com/urmzd/dotfiles

Made for: Claude Code.

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 setup-devenv-with-chezmoi

README.md
[![agentmods](https://agentmods.dev/badge/skills/urmzd/dotfiles/setup-devenv-with-chezmoi/github.svg)](https://agentmods.dev/skills/urmzd/dotfiles/setup-devenv-with-chezmoi)
Your own site
<a href="https://agentmods.dev/skills/urmzd/dotfiles/setup-devenv-with-chezmoi"><img src="https://agentmods.dev/badge/skills/urmzd/dotfiles/setup-devenv-with-chezmoi/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 setup-devenv-with-chezmoi

Your own site · 80×15
<a href="https://agentmods.dev/skills/urmzd/dotfiles/setup-devenv-with-chezmoi"><img src="https://agentmods.dev/badge/skills/urmzd/dotfiles/setup-devenv-with-chezmoi.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 112 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 906 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 original No closer match found 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.00112 $0.00906
Opus 5 $0.00056 $0.00453
Sonnet 5 $0.00022 $0.00181
Haiku 4.5 $0.00011 $0.00091

Measured 9d ago against content hash cbbaf4a141b3, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

setup-devenv-with-chezmoi 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 9d 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 "<download-url>" -o "${BIN_PATH}"
dot_agents/skills/setup-devenv-with-chezmoi/SKILL.md · 93 lines

How it starts

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

Dev Env with Chezmoi

Personal-portfolio extensions to setup-devenv. This skill assumes a chezmoi-managed home directory and stays focused on the chezmoi-specific plumbing the portable skill deliberately omits.

When to Use

  • Adding a pinned-version installer for a tool that ships only via a vendor script (gcloud, aws-cli, Snowflake Cortex, etc.).
  • Updating the canonical dot_envrc.project.example template that new projects copy.
  • Standardizing how ~/.local/bin is wired up across projects.

If you're not on chezmoi, use setup-devenv directly. Substitute Brewfile / Nix / your own dotfile manager.

Pinned Installer Pattern

~/.local/share/chezmoi/run_onchange_after_install-<tool>.sh.tmpl

Skeleton:

#!/usr/bin/env bash
set -euo pipefail

<TOOL>_VERSION="<pin>"
INSTALL_DIR="$HOME/.local/share/<tool>/${<TOOL>_VERSION}"
BIN_PATH="${INSTALL_DIR}/<tool>"
BIN_LINK="$HOME/.local/bin/<tool>"

# Guard must test the actual install path, not a bin/ subdir, or the script
# re-downloads on every `chezmoi apply`.
if [ -x "${BIN_PATH}" ]; then
  exit 0
fi

mkdir -p "${INSTALL_DIR}"
curl -fsSL "<download-url>" -o "${BIN_PATH}"
chmod +x "${BIN_PATH}"

ln -sf "${BIN_PATH}" "${BIN_LINK}"

Conventions:

  • Pin the version at the top in ALL_CAPS. Bumping is a one-line diff.
  • Install to ~/.local/share/<tool>/<version>/. Versioned subdirs let you roll back without re-downloading.
  • Symlink into ~/.local/bin/<tool>. Keeps $PATH stable.
  • Mirror the structure of existing scripts like run_onchange_after_install-cloud-clis.sh.tmpl or run_onchange_after_install-cortex.sh.tmpl. Consistency makes the directory scannable.

Project envrc Template

The canonical project envrc lives at:

~/.local/share/chezmoi/dot_envrc.project.example

When a new project needs .envrc, copy this file into the project root, strip the per-language idioms that don't apply, and direnv allow. The portable patterns the file demonstrates (layout python, use fnm, PATH_add bin, dotenv, source_up) are documented in setup-devenv; this skill owns the file itself.

Read the full file on GitHub · 93 lines

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. 9d ago First seen · 93 lines · 112 tokens per session scan A cbbaf4a141b3

Subscribe to this mod's changes

setup-devenv-with-chezmoi is a skill published in the GitHub repository urmzd/dotfiles (3 stars, last pushed 3d ago), licensed Apache-2.0. It adds 112 tokens to every session and 906 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

benchling-integration

Benchling Python SDK and REST API integration for registry entities, inventory, ELN entries, workflows, Benchling Apps, and Data Warehouse queries. Use when automating lab data with benchling-sdk or the v2 API.

magic3007/dotfiles · 50 tokens

mcp-notion-usage-guide

A usage guide for connecting AI agents to Notion databases through MCP. Notion is a workspace for documents and databases, while a database view is a saved way of displaying database records.

magic3007/dotfiles · 174 tokens

astropy

Core Python library for astronomy and astrophysics workflows that need Astropy APIs, including units/quantities, coordinates, FITS I/O, tables, time systems, WCS, and cosmology. Use when implementing or debugging astronomical data analysis code with Astropy.

magic3007/dotfiles · 56 tokens

esm

Comprehensive toolkit for EvolutionaryScale protein language models including ESM3 (generative multimodal design across sequence, structure, and function) and ESM C (efficient embeddings). Use for protein sequence/structure/function tasks, inverse folding, embeddings, variant design, and ESMFold2 structure prediction…

magic3007/dotfiles · 96 tokens

ralph-loop

An iterative development workflow that moves from requirements to planning to building, with code review and tests required at each stage.

magic3007/dotfiles · 63 tokens

create-pr

Rebase from the latest origin/main, squash the commits from it, and then create a PR on github with intelligent commit messages based on staged changes.

magic3007/dotfiles · 34 tokens