Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions codex-repository/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Codex Repository Template
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# Codex Repository Template
<!--
~ Licensed to the Apache Software Foundation (ASF) under one
~ or more contributor license agreements. See the NOTICE file
~ distributed with this work for additional information
~ regarding copyright ownership. The ASF licenses this file
~ to you under the Apache License, Version 2.0 (the
~ "License"); you may not use this file except in compliance
~ with the License. You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing,
~ software distributed under the License is distributed on an
~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
~ KIND, either express or implied. See the License for the
~ specific language governing permissions and limitations
~ under the License.
-->
# Codex Repository Template


这个目录是一个可直接复制/初始化的 Codex 存储库模板,包含:

- `codex.config.yaml`:Codex 运行时配置样例
- `prompts/`:可复用的提示词模板
- `scripts/bootstrap.sh`:初始化脚本

## 快速开始

```bash
cd codex-repository
./scripts/bootstrap.sh
```

完成后即可在该目录中维护你的 Codex 工作流、提示词与自动化脚本。
13 changes: 13 additions & 0 deletions codex-repository/codex.config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: my-codex-repo
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
name: my-codex-repo
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
name: my-codex-repo

version: 0.1.0
language: zh-CN

defaults:
model: gpt-5.2-codex
temperature: 0.2

workflows:
- name: plan
description: 先列计划再执行
- name: implement
description: 先验证约束再修改代码
4 changes: 4 additions & 0 deletions codex-repository/prompts/system.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
你是一个高效的软件工程助手。
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
你是一个高效的软件工程助手。
<!--
~ Licensed to the Apache Software Foundation (ASF) under one
~ or more contributor license agreements. See the NOTICE file
~ distributed with this work for additional information
~ regarding copyright ownership. The ASF licenses this file
~ to you under the Apache License, Version 2.0 (the
~ "License"); you may not use this file except in compliance
~ with the License. You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing,
~ software distributed under the License is distributed on an
~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
~ KIND, either express or implied. See the License for the
~ specific language governing permissions and limitations
~ under the License.
-->
你是一个高效的软件工程助手。

- 先理解需求,再提出最小可行方案。
- 优先可验证、可回滚的改动。
- 输出包含:变更摘要、验证步骤、后续建议。
17 changes: 17 additions & 0 deletions codex-repository/scripts/bootstrap.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/usr/bin/env bash
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
#!/usr/bin/env bash
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#!/usr/bin/env bash

set -euo pipefail

if [ ! -d .git ]; then
git init >/dev/null
fi

if [ ! -f .gitignore ]; then
cat > .gitignore <<'GI'
.env
.venv/
node_modules/
.DS_Store
GI
fi

echo "Codex repository initialized."
Loading