Skip to content
dotfiles-config logo

Dotfiles Config Skill

dotfiles-config

Use when editing ANY configuration file in this dotfiles repository. Ensures files are edited in the repo (not symlinks), identifies correct file locations, and tracks the repository structure.

SKILL.md

Full skill instructions

Dotfiles Config Skill

Golden Rule

ALWAYS edit files in ~/​dev/​dotfiles/, NEVER edit symlinked files in ~/ or ~/​.config/.

The files in your home directory are symlinks pointing back to this repo. Verify with:

ls -la ~/​.config/​ghostty/​config  # Should show symlink to dotfiles

Repository Structure

~/​dev/​dotfiles/
├── home/                    # Base configs (all platforms)
│   ├── .claude/             # Claude Code config (this skill lives here)
│   ├── .config/             # XDG configs
│   │   ├── alacritty/
│   │   ├── ghostty/
│   │   ├── helix/
│   │   ├── home-manager/    # Nix Home Manager (CLI tools)
│   │   ├── lazygit/
│   │   ├── nvim/
│   │   ├── yazi/
│   │   ├── zellij/
│   │   └── zsh/
│   ├── .bashrc
│   ├── .tmux.conf
│   └── .zshrc
├── home-mac/                # macOS-specific configs
│   └── Brewfile             # GUI apps via Homebrew
├── home-linux/              # Linux-specific configs
├── mac/
│   └── nix-darwin/          # macOS system settings
└── ubuntu/                  # Ubuntu-specific configs

Config File Locations

ToolDotfiles LocationSymlinked To
Alacrittyhome/​.config/​alacritty/~/​.config/​alacritty/
Claude Codehome/​.claude/~/​.claude/
Ghosttyhome/​.config/​ghostty/~/​.config/​ghostty/
Helixhome/​.config/​helix/~/​.config/​helix/
Home Managerhome/​.config/​home-manager/~/​.config/​home-manager/
Lazygithome/​.config/​lazygit/~/​.config/​lazygit/
Neovimhome/​.config/​nvim/~/​.config/​nvim/
Ripgrephome/​.config/​rg/~/​.config/​rg/
Starshiphome/​.config/​starship.toml~/​.config/​starship.toml
Tmuxhome/​.tmux.conf~/​.tmux.conf
Yazihome/​.config/​yazi/~/​.config/​yazi/
Zellijhome/​.config/​zellij/~/​.config/​zellij/
Zshhome/​.zshrc, home/​.config/​zsh/~/​.zshrc, ~/​.config/​zsh/

Package Management

CLI Tools (Nix Home Manager)

Edit: home/​.config/​home-manager/​home.nix Apply: home-manager switch

GUI Apps (macOS Homebrew)

Edit: home-mac/​Brewfile Apply: cd home-mac && brew bundle

Language Runtimes (mise)

Edit: home/​.config/​mise/​config.toml Apply: mise install

macOS System Settings (nix-darwin)

Edit: mac/​nix-darwin/​flake.nix Apply: just nix-darwin-switch

Stow Commands

After adding new config files, re-run stow:

just stow-mac    # macOS
just stow-linux  # Linux
just stow-home   # Just base home/

Skills Location

Skills live in home/​.claude/​skills/ and are symlinked to ~/​.claude/​skills/.

To create a new skill:

  1. Create directory: mkdir -p home/​.claude/​skills/​skill-name
  2. Create SKILL.md with frontmatter (name, description)
  3. Stow will automatically symlink it

Common Mistakes to Avoid

  1. Editing symlinked files - Always navigate to ~/​dev/​dotfiles/ first
  2. Forgetting to stow - New files need just stow-* to create symlinks
  3. Wrong platform directory - macOS GUI apps go in home-mac/, not home/
  4. Editing ~/​.config directly - These are symlinks, edit the source in dotfiles

Verification

Before declaring a config change complete:

  1. Confirm you edited the file in ~/​dev/​dotfiles/
  2. Check the symlink exists: ls -la ~/​.config/<tool>/
  3. Test the config works (reload app or run verification command)

More Other skills

Delegate independent tasks to specialized agents working concurrently with isolated context.

295.4K 206.3K
View

Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.

179.7K 100.1K
View

Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with colors/fonts that you can apply to any artifact that has been creating, or can generate a new theme on-the-fly.

179.7K 89.5K
View

A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill whenever asked to write some sort of internal communications (status reports, leadership updates, 3P updates, company newsletters, FAQs, incident reports, project updates, etc.).

179.7K 76.1K
View

Fundamental design principles for writing maintainable, testable Python code.

40.2K 21.9K
View

Modern responsive layouts using container queries, fluid typography, CSS Grid, and mobile-first strategies.

40.2K 20K
View

Generate Playwright tests from scenarios using interactive browser exploration and validation.

39.7K 18.2K
View

Modern React state management with Redux Toolkit, Zustand, Jotai, and React Query for every state category.

40.2K 14.7K
View

GDPR-compliant data handling with consent management, data subject rights, and privacy controls.

40.2K 14.3K
View

Python error handling patterns including input validation, exception hierarchies, and partial failure handling. Use when implementing validation logic, designing exception strategies, handling batch processing failures, or building robust APIs.

40.2K 13.5K
View

Detailed multi-file refactor planning with safety checks and rollback guidance.

39.7K 13K
View