dotfiles
diegosouzapw2026-10-28查看 1207复制 182
Dotfiles 项目指南(英文、最小化配置、使用 Makefile 进行安装)
📘如何使用这个技能
- 1复制技能内容·点击上方「Copy SKILL.md」复制全部内容,或 Download 下载到本地
- 2打开你的 AI 客户端·支持 Claude Code、Trae、Cursor、ChatGPT、DeepSeek、Kimi 等任意 AI 助手
- 3粘贴为系统提示/知识文件·Claude Code:放入 .claude/skills/ 目录;普通对话:作为首条消息发送并说「请严格按这份技能文档执行」
- 4直接提出你的需求·AI 会按技能定义的工作流、格式和约束来处理,无需再解释背景
💡 提示:技能生效后,每次对话只需一句需求,AI 会按 SKILL.md 的流程执行。
SKILL.md1903 chars
--- name: dotfiles description: Dotfiles project guidelines (English, minimal config, Makefile for installs) metadata: globs: "" --- # Dotfiles Guidelines - All comments and documentation must be written in **English** - Keep configurations **simple and minimal** — avoid over-engineering - **Avoid unnecessary comments** — prefer self-documenting code. Only add comments when they explain *why* something is done, not *what* it does. Configuration option names are usually self-explanatory. - Primary platform: **macOS** (Darwin), but keep configs **portable to Linux** (EC2, servers) - Avoid macOS-specific features when a cross-platform alternative exists - Use `uname` or similar checks when platform-specific code is unavoidable ## Installation & Package Management **CRITICAL**: Always use the Makefile for installing tools and applications. Never install packages directly with `brew install`, `npm install -g`, or other package managers. See `makefile.md` for details. ## Symlink Conventions Configuration files are symlinked from this repo: - `~/.config/fish` → `~/.dotfiles/fish` - `~/.config/nvim` → `~/.dotfiles/nvim` - `~/.config/Cursor/User/*` → `~/.dotfiles/cursor/*` Always update the Makefile when adding new symlinked configurations. ## Code Style ### Comments - **Minimal comments**: Only comment when explaining non-obvious behavior or important context - **No obvious comments**: Don't comment what the code already clearly shows (e.g., `scrollback_lines = 200000` doesn't need a comment) - **Self-documenting**: Prefer clear variable/option names over comments - **When to comment**: Only when explaining *why* something is configured a certain way, not *what* it does ## Primary Work Context Main technologies used daily: - **TypeScript** — Use strict mode, prefer explicit types - **PostgreSQL** — Use UPPER CASE for SQL keywords - **Node.js** — Managed via Volta