Claude Code 配置与项目模板。
CLAUDE.md # 全局约束(自动加载,所有项目通用)
templates/
└── web-CLAUDE.md # Web/Vue 项目模板
brew install bun # macOS
# 或参考 https://bun.sh在 Claude Code 里粘贴以下内容,Claude 会自动完成安装:
Install gstack: run
git clone --single-branch --depth 1 https://github.com/garrytan/gstack.git ~/.claude/skills/gstack && cd ~/.claude/skills/gstack && ./setupthen add a "gstack" section to CLAUDE.md that says to use the /browse skill from gstack for all web browsing, never use mcp__claude-in-chrome__* tools, and lists the available skills: /office-hours, /plan-ceo-review, /plan-eng-review, /plan-design-review, /design-consultation, /design-shotgun, /design-html, /review, /ship, /land-and-deploy, /canary, /benchmark, /browse, /connect-chrome, /qa, /qa-only, /design-review, /setup-browser-cookies, /setup-deploy, /retro, /investigate, /document-release, /codex, /cso, /autoplan, /careful, /freeze, /guard, /unfreeze, /gstack-upgrade, /learn.
git clone https://github.com/samque1983/dotclaude.git
cp dotclaude/CLAUDE.md ~/.claude/CLAUDE.md
cp dotclaude/templates/web-CLAUDE.md ~/.claude/templates/web-CLAUDE.mdcp ~/.claude/templates/web-CLAUDE.md 你的项目/CLAUDE.md
# 然后修改项目名称和特定内容~/.claude/CLAUDE.md— 全局加载,适合放通用偏好(TDD、文档规范等)~/.claude/templates/— 不会自动加载,纯模板存放项目/CLAUDE.md— 仅本项目加载,从模板复制后定制gstack— 需要 Bun v1.0+,提供/ship、/review、/qa等工作流 skill