triage-dotfiles-env

triage-dotfiles-env is a skill for Claude Code from urmzd/dotfiles. It costs 138 tokens per session (1,136 once invoked), scanned A, original, Apache-2.0.

A troubleshooting guide for common problems in a developer's shell, Git signing setup, Python command-line tools, direnv, and Neovim.

In plain words
What is it for?
Use it to diagnose shell startup failures, broken pipx commands, commit-signing errors, direnv issues, or Neovim plugin errors.
Why use it?
It provides known causes, fixes, and checks for recurring environment errors instead of requiring fresh investigation each time.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

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.

agentmods
npx agentmods add skills/urmzd/dotfiles/triage-dotfiles-env
Any agent
npx skills add urmzd/dotfiles --skill triage-dotfiles-env
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 triage-dotfiles-env

README.md
[![agentmods](https://agentmods.dev/badge/skills/urmzd/dotfiles/triage-dotfiles-env.svg)](https://agentmods.dev/skills/urmzd/dotfiles/triage-dotfiles-env)
Your own site
<a href="https://agentmods.dev/skills/urmzd/dotfiles/triage-dotfiles-env"><img src="https://agentmods.dev/badge/skills/urmzd/dotfiles/triage-dotfiles-env.svg" alt="Measured on agentmods" height="20"></a>
Per session 138 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,136 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00138 $0.01136
Opus 5 $0.00069 $0.00568
Sonnet 5 $0.00028 $0.00227
Haiku 4.5 $0.00014 $0.00114

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

Security

Grade A, and why

triage-dotfiles-env scanned grade A with 0 findings 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 6d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

dot_agents/skills/triage-dotfiles-env/SKILL.md · 99 lines

How it starts

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

Triage Dotfiles Environment

Look the symptom up here before debugging from scratch. Every fix ends with its verification step; a fix without verification is not done.

Known failure modes

pipx shims: "bad interpreter: no such file or directory"

Seen repeatedly in .zshrc completions (register-python-argcomplete: bad interpreter).

  • Cause: a Homebrew or uv Python upgrade rebuilt the interpreter path; every pipx venv shebang now points at a deleted Python.
  • Fix: pipx reinstall-all. If pipx itself is broken: brew reinstall pipx && pipx reinstall-all.
  • Verify: open a fresh zsh -l and confirm zero startup errors, then run the failing shim directly.

gpg: "cannot run gpg: No such file or directory" on commit

  • Cause: git config points at a gpg binary that moved (brew relink, new machine), or GPG_TTY is unset in a non-login context.
  • Fix: git config --global gpg.program "$(command -v gpg)", ensure the zshrc exports GPG_TTY=$(tty), and confirm user.signingkey matches gpg --list-secret-keys --keyid-format long.
  • Verify: git commit --allow-empty -m "test: signing" && git log --show-signature -1, then drop the test commit.

direnv + nix: shellHook runs bash, not zsh

Symptoms: aliases and functions missing inside a nix shell, prompts wrong, zsh-only syntax errors from hooks.

  • Cause: nix shellHook always executes in bash. zsh config never runs.
  • Fix: keep shellHook to environment exports only; put interactive setup in zsh init guarded by IN_NIX_SHELL. Never source zsh files from shellHook.
  • Verify: direnv exec . zsh -ic 'echo $SHELL; alias | head'.

Powerlevel10k instant-prompt warnings

  • Cause: something in .zshrc prints output before the instant-prompt block (installer scripts, completion generators, version managers).
  • Fix: move the offending line below the instant-prompt block or silence its output; keep the instant-prompt block first.
  • Verify: fresh zsh -l shows no warning banner.

Read the full file on GitHub · 99 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. 6d ago First seen · 99 lines · 138 tokens per session scan A 6e00d2f04d35

Subscribe to this mod's changes

triage-dotfiles-env is a skill published in the GitHub repository urmzd/dotfiles (3 stars, last pushed 24d ago), licensed Apache-2.0. It adds 138 tokens to every session and 1,136 once invoked, about $0.0007 per session on Opus 5. A static security scan graded it A with 0 findings. 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

save-debug-experience

Record a debugging session's findings into a timestamped markdown file under debugexperience/. Captures problem, root cause, solution, and key learnings in a structured, reusable format. Use when: you've just resolved a non-obvious bug, found an undocumented edge case, encountered an issue that took multiple attempts…

magic3007/dotfiles · 113 tokens

use-next-devtools

Reference for using the NextJS Dev Tools via the nextjs-agent. Use to debug or observe Next.js framework internals.

ooloth/dotfiles · 30 tokens

typescript-circular-dependency

Detect and resolve TypeScript/JavaScript circular import dependencies. Use when: (1) "Cannot access 'X' before initialization" at runtime, (2) Import returns undefined unexpectedly, (3) "ReferenceError: Cannot access X before initialization", (4) Type errors that disappear when you change import order, (5) Jest/Vitest…

magic3007/dotfiles · 88 tokens

nextjs-server-side-error-debugging

Debug getServerSideProps and getStaticProps errors in Next.js. Use when: (1) Page shows generic error but browser console is empty, (2) API routes return 500 with no details, (3) Server-side code fails silently, (4) Error only occurs on refresh not client navigation. Check terminal/server logs instead of browser for…

magic3007/dotfiles · 87 tokens

prisma-connection-pool-exhaustion

Fix Prisma "Too many connections" and connection pool exhaustion errors in serverless environments (Vercel, AWS Lambda, Netlify). Use when: (1) Error "P2024: Timed out fetching a new connection from the pool", (2) PostgreSQL "too many connections for role", (3) Database works locally but fails in production…

magic3007/dotfiles · 100 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