agentsclimarketplace

Dotfiles development

Skill JamesPrial/skills/skills/dotfiles-development

collection of Claude skills. treat as mostly examples

Install
npx -y skills add JamesPrial/skills --skill dotfiles-development

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Use when working in this dotfiles repository - modifying shell configs, SSH, neovim, or scripts. Covers symlink architecture, agent selection, and permission model.

SKILL.md

4.7 KB, as published. Nobody here has run it

Dotfiles Development

Symlink Architecture

~/.dotfiles -> <repo>               # Primary anchor (points to repo root)
~/.zshrc                            # Bootstrap file (sources ~/.dotfiles/zshrc)
~/.ssh/config -> ~/.dotfiles/ssh/config
~/.config/nvim -> ~/.dotfiles/nvim
~/.claudescripts -> ~/.dotfiles/claudescripts

All paths resolve through ~/.dotfiles. Scripts find the repo via:

DOTFILES_DIR="$(readlink -f "$HOME/.dotfiles")"

Agent Selection

digraph agent_selection {
    "Task type?" [shape=diamond];
    "Git operation?" [shape=diamond];
    "GitHub/Actions?" [shape=diamond];
    "Writing script?" [shape=diamond];

    "git-ops (Haiku)" [shape=box];
    "gh-cli-expert (Sonnet)" [shape=box];
    "bash-script-architect + bash-tdd-architect (parallel)" [shape=box];
    "devops-infra-lead (Sonnet)" [shape=box];
    "No agent needed" [shape=box];

    "Task type?" -> "Git operation?";
    "Git operation?" -> "git-ops (Haiku)" [label="yes"];
    "Git operation?" -> "GitHub/Actions?" [label="no"];
    "GitHub/Actions?" -> "gh-cli-expert (Sonnet)" [label="yes"];
    "GitHub/Actions?" -> "Writing script?" [label="no"];
    "Writing script?" -> "bash-script-architect + bash-tdd-architect (parallel)" [label="yes"];
    "Writing script?" -> "devops-infra-lead (Sonnet)" [label="infra/CI work"];
    "Writing script?" -> "No agent needed" [label="config edit"];
}
AgentModelUse For
git-opsHaikuAll git operations - commits, branches, status. Isolates git context from main conversation.
bash-script-architectHaikuWriting/debugging bash scripts
bash-tdd-architectinheritTDD for bash scripts - runs IN PARALLEL with bash-script-architect
gh-cli-expertSonnetGitHub Actions failures, PR management, gh CLI
devops-infra-leadSonnetInfrastructure, CI/CD, system admin

Important: For committing changes, use the git-ops agent (not generic skills). It keeps git output isolated from the main context window.

TDD for Scripts: When writing or modifying bash scripts, launch bash-tdd-architect IN PARALLEL with bash-script-architect. The TDD agent designs behavior-driven tests BEFORE seeing implementation, ensuring true test-first development.

Wrapper Scripts (claudescripts/)

ScriptModelPurpose
pushHaikuQuick commit/push with conventional commits
ghcliSonnetGitHub CLI operations
supportOpusBash debugging with web search

Accessed via ~/.claudescripts symlink (in PATH).

Adding New Configurations

StepActionScript to Update
1Add file to repo root (no dot prefix)
2Add chmod line for permissionsfix-perms (bin/dotfiles-fix-perms)
3Add symlink if neededinstall (bin/dotfiles-install)

Detailed steps:

  1. Add file to repo root (no dot prefix in name)
  2. Update fix-perms — Add chmod line to bin/dotfiles-fix-perms:
    • Scripts/dirs: chmod 700
    • Config files: chmod 600
  3. Update install (if needed) — Add symlink to setup_symlinks() in bin/dotfiles-install

Common mistake: Forgetting the fix-perms step. Every new file needs a chmod line.

Permission Model

TypePermissionExample
Directories700nvim/, bin/
Scripts700bin/dotfiles-install, bin/dotfiles-sync
Config files600zshrc, ssh/config

Git hooks auto-fix permissions on pulls via bin/dotfiles-fix-perms.

Testing Changes

source ~/.zshrc                      # Reload shell config
./bin/dotfiles-install               # Safe to re-run (idempotent)
ls -la                               # Verify permissions

Common Mistakes

MistakeFix
Adding dot prefix to filesUse zshrc not .zshrc - symlinks add the dot
Forgetting fix-permsEvery new file needs a chmod line in bin/dotfiles-fix-perms
Wrong permission valueScripts=700, configs=600
Editing ~/.zshrc directlyEdit zshrc at repo root - bootstrap file just sources it
Hardcoding pathsUse $HOME/.dotfiles or resolve via symlink

Key Files

  • bin/dotfiles-install - Bootstrap, symlinks, dependencies
  • bin/dotfiles-fix-perms - Permission management
  • bin/dotfiles-sync - Pull and fix permissions
  • CLAUDE.md - Repository overview
  • bin/CLAUDE.md - Scripts documentation

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.