shell-env
Skill14 starsChanged 4 months agoMITView on GitHub
Stow-first shell environment editing for zsh, aliases, tmux/sesh, Starship, Ghostty, yabai, Git, and dotfiles packages. Use when the user wants to add or change terminal config, aliases, shell startup, or Stow-managed symlinks. Route Neovim-specific work to neovim and whole-system health checks to audit.
In this repository46 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- analyze-repoSkill
- architectSkill
- commitSkill
- debugSkill
- frontendSkill
- pr-reviewSkill
- react-hook-form-auditSkill
- react-hook-formSkill
- reactSkill
- refactorSkill
- researchSkill
- reviewSkill
- specSkill
- testSkill
- auditSkill
- neovimSkill
- learnSkill
- tilSkill
- audit-paraSkill
- capture-receiptSkill
- close-daySkill
- dailySkill
- goalsSkill
- ideasSkill
- ingestSkill
- maintainSkill
- memory-recallSkill
- moneySkill
- process-inboxSkill
- projectSkill
- save-noteSkill
- spot-driftSkill
- vaultSkill
- weekly-reviewSkill
- careerSkill
- check-communicationSkill
- deslopifySkill
- ideationSkill
- prototypeSkill
- standupSkill
- blogSkill
- docsSkill
- talkSkill
- tutorialSkill
- tweet-todaySkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 2 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 12
All config is managed with GNU Stow from ~/.dotfiles.
- Distinctive: line 30
Run the safest verification for the tool:
- Very specific: line 61
Create a package directory: mkdir ~/.dotfiles/<toolname>.
- Distinctive: line 63
Add the config file.
- Very specific: line 64
Run stow -n <toolname> from ~/.dotfiles, then stow <toolname> if the dry run is clean.
- Very specific: line 94
When editing tmux config, reload without restart: tmux source ~/.config/tmux/tmux.conf or prefix + r if you have that binding.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Shell & Terminal Environment
All config is managed with GNU Stow from ~/.dotfiles. Never edit files directly in ~ — always edit the source in ~/.dotfiles and let Stow manage the symlinks.
Config Locations
| Tool | Source path | Symlinked to |
| Zsh | ~/.dotfiles/zsh/.zshrc | ~/.zshrc |
| Zsh modules | ~/.dotfiles/zsh/zsh.d/ | ~/.zsh.d/ |
| Ghostty | ~/.dotfiles/.config/ghostty/config | ~/.config/ghostty/config |
| Tmux | ~/.dotfiles/.config/tmux/tmux.conf | ~/.config/tmux/tmux.conf |
| Starship | ~/.dotfiles/.config/starship.toml | ~/.config/starship.toml |
| yabai | ~/.dotfiles/.config/yabai/yabairc | ~/.config/yabai/yabairc |
Stow-first edit loop
- Locate the source file under
~/.dotfiles. - Inspect the current config before changing it; do not rely on remembered theme/font values.
- Edit only the source file, never the symlink target in
~. - Run the safest verification for the tool:
- zsh:
zsh -n <file>or open a new interactive shell - tmux:
tmux source ~/.config/tmux/tmux.conf - Starship:
starship explainorstarship timings - Ghostty: inspect/reload config, then restart or use the app reload command when available
- yabai:
yabai --restart-service - Stow:
cd ~/.dotfiles && stow -n <package>before relinking or restructuring
- zsh:
- Report the source path changed, reload command, and verification result.
Done when the config change is live or the remaining manual reload step is explicit.
GNU Stow Workflow
cd ~/.dotfiles
# Symlink a package (creates symlinks in home dir)
stow zsh
# Remove symlinks for a package (does NOT delete source files)
stow -D zsh
# Re-stow (unlink + relink, useful after restructuring)
stow -R zsh
# Dry run — see what would change without doing it
stow -n zshWhen adding a new tool:
- Create a package directory:
mkdir ~/.dotfiles/<toolname>. - Mirror the target directory structure inside it (e.g.,
.config/ghostty/for~/.config/ghostty/). - Add the config file.
- Run
stow -n <toolname>from~/.dotfiles, thenstow <toolname>if the dry run is clean.
Zsh: Modular Config
~/.dotfiles/zsh/zsh.d/ holds modular files, sourced automatically by .zshrc. Add new functionality as separate files rather than growing .zshrc:
zsh.d/
├── aliases.zsh # all aliases
├── exports.zsh # PATH and environment variables
├── functions.zsh # shell functions
├── completions.zsh # completion config
└── tools.zsh # tool-specific init (zoxide, starship, etc.)Ghostty
Config at ~/.dotfiles/.config/ghostty/config. Inspect the file for current theme and font before changing them.
Changes take effect on Ghostty restart (or Cmd+Shift+, to reload config on macOS).
Tmux + sesh
Tmux config at ~/.dotfiles/.config/tmux/tmux.conf. Session management via sesh — creates and attaches to named tmux sessions.
sesh connect <project> # create or attach to a session
sesh list # list active sessionsWhen editing tmux config, reload without restart: tmux source ~/.config/tmux/tmux.conf or prefix + r if you have that binding.
Starship Prompt
Config at ~/.dotfiles/.config/starship.toml. Docs: starship.rs/config.
starship explain # shows what each segment in current prompt means
starship timings # shows how long each module took to renderyabai
Window manager config typically at ~/.dotfiles/.config/yabai/yabairc. Reload after changes:
yabai --restart-serviceReferences
| Priority | Load when | Reference |
| High | Modern CLI tools or shell aliases: eza, bat, fd, rg, zoxide, fzf, lazygit | references/modern-cli-tools.md |
| High | Terminal emulator, tmux/sesh, Starship, yabai, or theme consistency config | references/terminal-config.md |
| Medium | Git identity setup, multi-config, signing, or git aliases | references/git-config.md |
Quick Reference
# Verify a symlink is correctly set up
ls -la ~/.zshrc # should point to ~/.dotfiles/zsh/.zshrc
# Check all stow packages currently linked
ls ~/.dotfiles/ # each dir is a stow package
# Find broken symlinks in home dir
find ~ -maxdepth 3 -type l ! -e 2>/dev/nullDoes it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

