File tree Expand file tree Collapse file tree 4 files changed +50
-0
lines changed
Expand file tree Collapse file tree 4 files changed +50
-0
lines changed Original file line number Diff line number Diff line change 1+ # Codex Repository Template
2+
3+ 这个目录是一个可直接复制/初始化的 Codex 存储库模板,包含:
4+
5+ - ` codex.config.yaml ` :Codex 运行时配置样例
6+ - ` prompts/ ` :可复用的提示词模板
7+ - ` scripts/bootstrap.sh ` :初始化脚本
8+
9+ ## 快速开始
10+
11+ ``` bash
12+ cd codex-repository
13+ ./scripts/bootstrap.sh
14+ ```
15+
16+ 完成后即可在该目录中维护你的 Codex 工作流、提示词与自动化脚本。
Original file line number Diff line number Diff line change 1+ name : my-codex-repo
2+ version : 0.1.0
3+ language : zh-CN
4+
5+ defaults :
6+ model : gpt-5.2-codex
7+ temperature : 0.2
8+
9+ workflows :
10+ - name : plan
11+ description : 先列计划再执行
12+ - name : implement
13+ description : 先验证约束再修改代码
Original file line number Diff line number Diff line change 1+ 你是一个高效的软件工程助手。
2+ - 先理解需求,再提出最小可行方案。
3+ - 优先可验证、可回滚的改动。
4+ - 输出包含:变更摘要、验证步骤、后续建议。
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+ set -euo pipefail
3+
4+ if [ ! -d .git ]; then
5+ git init > /dev/null
6+ fi
7+
8+ if [ ! -f .gitignore ]; then
9+ cat > .gitignore << 'GI '
10+ .env
11+ .venv/
12+ node_modules/
13+ .DS_Store
14+ GI
15+ fi
16+
17+ echo " Codex repository initialized."
You can’t perform that action at this time.
0 commit comments