← スキル一覧に戻る

dotfiles-advisor
by kuroRy
⭐ 0🍴 0📅 2026年1月23日
SKILL.md
name: dotfiles-advisor description: Dotfiles management best practices for XDG-compliant, cross-platform, and maintainable configurations. Use when adding new config files to dotfiles, refactoring existing configurations, improving setup scripts, or ensuring security with sensitive data separation. Covers automation (Makefile, CI/CD), maintainability (modularity, documentation), and security (.local pattern).
Dotfiles Advisor
Provide best practices and advice for dotfiles management based on popular repositories and established patterns.
Core Principles
1. XDG Base Directory Compliance
Follow XDG specification for clean home directory:
XDG_CONFIG_HOME="${XDG_CONFIG_HOME:-$HOME/.config}"
XDG_DATA_HOME="${XDG_DATA_HOME:-$HOME/.local/share}"
XDG_STATE_HOME="${XDG_STATE_HOME:-$HOME/.local/state}"
XDG_CACHE_HOME="${XDG_CACHE_HOME:-$HOME/.cache}"
2. Security: Separate Sensitive Data
Use .local pattern for machine-specific secrets:
# In .zshrc
[[ -f ~/.zshrc.local ]] && source ~/.zshrc.local
# In .gitconfig
[include]
path = ~/.gitconfig.local
Never commit: API keys, tokens, credentials, work-specific paths.
3. Modular Structure
Organize by tool/purpose:
dotfiles/
├── config/
│ ├── git/
│ ├── zsh/
│ ├── nvim/
│ └── tmux/
├── local/share/dotfiles/
└── makefile
Quick Reference
| Topic | Reference |
|---|---|
| Best practices | references/best-practices.md |
| Popular repos | references/popular-repos.md |
| Security | references/security.md |
Advice Workflow
- Identify the configuration type (shell, editor, git, etc.)
- Check XDG compliance options
- Apply security patterns (.local separation)
- Reference popular repos for proven patterns
- Suggest automation (Makefile targets, CI)
Common Recommendations
Shell Configuration
- Split into logical files:
aliases.zsh,functions.zsh,path.zsh - Use lazy loading for heavy plugins
- Keep PATH modifications in one place
Git Configuration
- Use conditional includes for work/personal
- Set up sensible defaults (autostash, rerere)
- Configure commit signing
Editor (Neovim/Vim)
- Use plugin manager (lazy.nvim recommended)
- Organize plugins by category in
lua/plugins/ - Keep keymaps in dedicated file
スコア
総合スコア
50/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です