克劳德·多特菲尔斯
可移植的Claude代码配置,基于配置文件的设置。一个repo可以在任何机器上运行——台式机或无头VPS。
这有什么作用
- 分层CLAUDE.md --通用基础+环境配置文件+个人覆盖
- 配置文件系统 --桌面(全浏览器工具、opus)与VPS(无头、十四行诗、最小插件)
- 交互式安装程序 --选择配置文件,设置GitHub用户名,配置MCP服务器
- 跨平台脚本 --OS感知(macOS+Linux)子代理清理、状态线、门脚本
- 未提交个人信息 --基础设施、IP、SSH快捷方式都存在于gitignored中
.local/
快速开始
git clone https://github.com/iamnolanhu/claude-dotfiles.git
cd claude-dotfiles
./setup.sh安装程序将:
- 询问您的机器类型(台式机/VPS)
- 询问您的GitHub用户名(可选,用于提交策略)
- 询问您是否希望在提交中隐藏AI归因
- 将设置、脚本和状态线链接到
~/.claude/ - 组装
CLAUDE.md从基础层+剖面层+局部层 - 引导您完成MCP服务器选择
结构
claude-dotfiles/
├── setup.sh # Interactive installer
├── base/
│ └── CLAUDE.md # Generic instructions (no personal info)
├── profiles/
│ ├── desktop/
│ │ ├── CLAUDE.md # Browser automation priorities
│ │ └── settings.json # Full plugins, opus, prettier hook
│ └── vps/
│ ├── CLAUDE.md # Headless constraints, resource limits
│ └── settings.json # Minimal plugins, sonnet, docker perms
├── examples/
│ └── local-CLAUDE.md # Template for personal config
├── .local/ # Gitignored — your machine-specific config
│ └── CLAUDE.md # Infrastructure, SSH, self-hosted services
├── scripts/
│ ├── cleanup-subagents.sh # Kill stale subagents by age + count
│ ├── code-simplifier-gate.sh # Cooldown gate for code review hook
│ └── kill-all-orphans.sh # Nuclear cleanup for orphaned processes
├── statusline.sh # Multi-line statusline (git, cost, context %)
├── .env.example # API key template
└── .gitignoreCLAUDE.md程序集的工作原理
期末 ~/.claude/CLAUDE.md 由三层构建:
| 图层 | 源 | 包含 |
|---|---|---|
| 基础 | base/CLAUDE.md | 包管理器、工具优先级、工程标准、子代理规则 |
| 简介 | `profiles/ | |
| /CLAUDE.md` | 桌面:浏览器工具。VPS:无头约束 | |
| 本地 | .local/CLAUDE.md | 您的基础设施、SSH主机、自托管服务URL |
跑 ./setup.sh update 编辑任何源层以重新组装后。
档案
桌面
- 全套插件(包括代理浏览器、前端设计在内的26个插件)
- 浏览器自动化工具优先级(代理浏览器>chrome devtools>剧作家)
- 文件写入时的预格式化挂钩
- 会话停止时的代码简化器门
- 默认型号: 作品
虚拟专用服务器
- 与桌面相同的插件、钩子和模型(不包括特定于浏览器的:代理浏览器、前端设计、vercel、stripe)
- MCP设置期间不提供浏览器工具
- 添加了Docker、systemctl和journalctl权限
- 默认型号: 作品
命令
./setup.sh # Initial setup (profile + integrations)
./setup.sh add # Add/enable a single MCP integration
./setup.sh list # Show all integrations and their status
./setup.sh env KEY [v] # Add an API key to ~/.claude/.env
./setup.sh update # Pull latest and reassemble config个人化
运行安装程序后,编辑 .local/CLAUDE.md 使用您的机器特定配置。看 examples/local-CLAUDE.md 对于模板。常见补充:
- 服务器IP和Tailscale拓扑
- SSH快捷方式和端口转发
- 自托管服务URL(crawl4ai、n8n等)
- 项目模板引用
- 文件共享和同步设置
MCP集成
| 集成 | 需要API密钥 | 仅限桌面 |
|---|---|---|
| 上下文7 | ||
| 瑟琳娜 | ||
| morphllm快速申请 | ||
| chrome开发工具 | 是 | |
| 鞭炮 | 是的 | |
| github | 是 | |
| openrouter | 是 | |
| apify | 是 | |
| 数字语言 | 是 | |
| n8n | 是 | |
| crawl4ai | 是 | |
| 剧作家 | 是的 | |
| 浏览器工具 | 是 | |
| 魔法 | 是的 |
