feat: support codex sh download
This commit is contained in:
@@ -54,10 +54,13 @@ RequirementsDoc ──▶ PRD ──▶ FeatureSummary ──▶ DevelopmentPlan
|
||||
一行命令搞定安装和更新。脚本会智能处理:新 skill 直接装,已有的对比更新,本地魔改自动备份。
|
||||
|
||||
```bash
|
||||
# Codex(默认)
|
||||
# Claude Code + Codex(推荐)
|
||||
bash <(curl -sL https://git.internal.intelligrow.cn/zhangfucai/spec-coding-skills/raw/branch/main/install.sh) both
|
||||
|
||||
# Codex only
|
||||
bash <(curl -sL https://git.internal.intelligrow.cn/zhangfucai/spec-coding-skills/raw/branch/main/install.sh) codex
|
||||
|
||||
# Claude Code
|
||||
# Claude Code only
|
||||
bash <(curl -sL https://git.internal.intelligrow.cn/zhangfucai/spec-coding-skills/raw/branch/main/install.sh) claude
|
||||
```
|
||||
|
||||
@@ -65,15 +68,22 @@ bash <(curl -sL https://git.internal.intelligrow.cn/zhangfucai/spec-coding-skill
|
||||
|
||||
```bash
|
||||
curl -sL https://git.internal.intelligrow.cn/zhangfucai/spec-coding-skills/raw/branch/main/install.sh -o /tmp/install-skills.sh
|
||||
bash /tmp/install-skills.sh codex
|
||||
bash /tmp/install-skills.sh both
|
||||
```
|
||||
|
||||
### 安装脚本行为
|
||||
|
||||
- `both` 模式:同时安装 `.codex/skills/` 和 `.claude/skills/`,并生成 `AGENTS.md` + `CLAUDE.md`
|
||||
- `codex` 模式:安装到 `.codex/skills/`,并在项目根目录生成或更新 `AGENTS.md`
|
||||
- `claude` 模式:安装到 `.claude/skills/`,并在项目根目录生成或更新 `CLAUDE.md`
|
||||
- 如果传入自定义目标目录,脚本会优先安装 Codex 版 skills;目标路径包含 `.claude/skills` 时自动切到 Claude 版
|
||||
|
||||
### 推荐用法
|
||||
|
||||
- 团队项目、模板仓库:用 `both`,一次安装双端,最省心
|
||||
- 只有你自己在 Codex 里用:用 `codex`
|
||||
- 仓库明确只服务 Claude Code:用 `claude`
|
||||
|
||||
### 更新策略
|
||||
|
||||
| 情况 | 处理方式 |
|
||||
|
||||
Reference in New Issue
Block a user