当设计或修改 REST API 响应结构、处理 API 返回值时触发。防止 API 设计缺陷导致的字段错位、类型歧义等问题。
The English summary is being prepared. Showing the original description.
一键安装 cc-use-exp 配置体系到 Codex CLI
The English summary is being prepared. Showing the original description.
See how to installReview the instructions the agent will receive before you install.
一键安装 cc-use-exp AI 编码助手配置体系到 Codex CLI。
$skill-installer install https://github.com/doccker/cc-use-exp/.codex/skills/cc-skill-installer
或指定 GitHub URL(未来扩展):
$skill-installer install https://github.com/doccker/cc-use-exp
INSTALL_DIR="$HOME/.codex/.cc-use-exp"
if [ -d "$INSTALL_DIR" ]; then
echo "⚠️ 检测到已安装"
echo ""
echo "安装位置: $INSTALL_DIR"
echo ""
cd "$INSTALL_DIR"
echo "当前版本:"
git log -1 --pretty=format:"%h - %s (%ar)" 2>/dev/null || echo "无法获取版本信息"
echo ""
echo ""
echo "是否更新到最新版本?(y/N)"
read -r response
if [[ ! "$response" =~ ^[Yy]$ ]]; then
echo "❌ 取消安装"
exit 0
fi
echo "🔄 更新现有安装..."
git pull origin main
else
echo "📦 开始安装 cc-use-exp..."
echo ""
# 创建安装目录
mkdir -p "$HOME/.codex"
# Clone 仓库
git clone https://github.com/doccker/cc-use-exp.git "$INSTALL_DIR"
if [ $? -ne 0 ]; then
echo "❌ 克隆失败,请检查网络连接"
exit 1
fi
cd "$INSTALL_DIR"
echo "✓ 仓库克隆完成"
fi
echo ""
echo "🔧 同步配置到 Codex..."
echo ""
if [ -f "./tools/sync-config.sh" ]; then
# 只执行 Codex 部分的同步
CC_USE_EXP_SYNC_TARGETS=codex ./tools/sync-config.sh
else
echo "❌ 错误:找不到同步脚本"
exit 1
fi
echo ""
echo "✅ 安装完成!"
echo ""
echo "📝 已同步配置到:"
echo " - ~/.codex/AGENTS.md(受管区块)"
echo " - ~/.codex/rules/"
echo " - ~/.codex/instructions/"
echo " - ~/.codex/*.config.toml(profiles)"
echo " - ~/.agents/skills/"
echo ""
echo "🔄 配置已生效,无需重启"
echo ""
echo "💡 后续操作:"
echo " - 更新配置:重新运行 \$skill-installer install"
echo " - 查看状态:\$cc-status"
echo " - 卸载:手动删除 $INSTALL_DIR 和上述配置"
echo ""
echo "📖 文档:https://github.com/doccker/cc-use-exp"
网络错误:
if ! git clone ...; then
echo "❌ 网络错误,请检查:"
echo " 1. 网络连接是否正常"
echo " 2. 是否可以访问 GitHub"
echo " 3. 是否需要配置代理"
exit 1
fi
权限错误:
if [ ! -w "$HOME/.codex" ]; then
echo "❌ 权限错误:无法写入 ~/.codex/"
echo "请检查目录权限"
exit 1
fi
~/.codex/.cc-use-exp/~/.codex/、~/.agents/skills/AGENTS.md 使用受管区块合并,profiles 使用独立 *.config.toml 文件,不会覆盖用户自定义配置> 📋 本回复遵循:`skill-installer` - cc-use-exp Codex 安装器
No reviews yet. Tell others what you thought.
No login needed. Share how it worked for you, ask a question, or note where it did not run.
No comments yet. Be the first to write one.
当设计或修改 REST API 响应结构、处理 API 返回值时触发。防止 API 设计缺陷导致的字段错位、类型歧义等问题。
The English summary is being prepared. Showing the original description.
当设计或修改 REST API 响应结构、处理 API 返回值,或生成 Excel/CSV/PDF/对账文件等下游产物时触发。防止 API 设计缺陷导致的字段错位、类型歧义,以及生成产物时关键字段缺失但静默成功的问题。
The English summary is being prepared. Showing the original description.
网关/代理/WAF/CDN 中间件的安全关键词匹配实现规范,防止纯子串匹配误判正常响应内容中的技术术语(如 Cloudflare、502、error)
The English summary is being prepared. Showing the original description.
当 API/任务可能执行超过 10 秒(批量数据处理、远程 API 批量调用、全表扫描、跨租户聚合)时触发。防止同步接口被网关 30s 超时切断、用户重复点击触发并发、状态缓存内存泄漏等问题。提供异步任务状态机标准模板。
The English summary is being prepared. Showing the original description.
Bash 脚本与系统命令规范。禁止行尾注释,强制使用 tee/heredoc 写入,提升命令执行的可维护性。
The English summary is being prepared. Showing the original description.
当用户操作 .sh、Dockerfile、Makefile、.yml、.yaml 文件,或在 Markdown 中编写 bash 代码块时触发。提供 Bash 编写规范。
The English summary is being prepared. Showing the original description.