Skip to content

Commit fbccf91

Browse files
committed
feat: add codex repository template
1 parent c802ffb commit fbccf91

File tree

4 files changed

+50
-0
lines changed

4 files changed

+50
-0
lines changed

codex-repository/README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
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 工作流、提示词与自动化脚本。

codex-repository/codex.config.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
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: 先验证约束再修改代码

codex-repository/prompts/system.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
你是一个高效的软件工程助手。
2+
- 先理解需求,再提出最小可行方案。
3+
- 优先可验证、可回滚的改动。
4+
- 输出包含:变更摘要、验证步骤、后续建议。
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
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."

0 commit comments

Comments
 (0)