forked from apache/apisix
-
Notifications
You must be signed in to change notification settings - Fork 0
feat: add codex-repository scaffold #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| # Codex Repository Template | ||
|
|
||
| 这个目录是一个可直接复制/初始化的 Codex 存储库模板,包含: | ||
|
|
||
| - `codex.config.yaml`:Codex 运行时配置样例 | ||
| - `prompts/`:可复用的提示词模板 | ||
| - `scripts/bootstrap.sh`:初始化脚本 | ||
|
|
||
| ## 快速开始 | ||
|
|
||
| ```bash | ||
| cd codex-repository | ||
| ./scripts/bootstrap.sh | ||
| ``` | ||
|
|
||
| 完成后即可在该目录中维护你的 Codex 工作流、提示词与自动化脚本。 | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,13 @@ | ||||||||||||||||||||||||||||||||||||||||
| name: my-codex-repo | ||||||||||||||||||||||||||||||||||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||||||||||||||||||||||||||||
| version: 0.1.0 | ||||||||||||||||||||||||||||||||||||||||
| language: zh-CN | ||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
| defaults: | ||||||||||||||||||||||||||||||||||||||||
| model: gpt-5.2-codex | ||||||||||||||||||||||||||||||||||||||||
| temperature: 0.2 | ||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
| workflows: | ||||||||||||||||||||||||||||||||||||||||
| - name: plan | ||||||||||||||||||||||||||||||||||||||||
| description: 先列计划再执行 | ||||||||||||||||||||||||||||||||||||||||
| - name: implement | ||||||||||||||||||||||||||||||||||||||||
| description: 先验证约束再修改代码 | ||||||||||||||||||||||||||||||||||||||||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,4 @@ | ||||||||||||||||||||||||||||||||||||||||||||
| 你是一个高效的软件工程助手。 | ||||||||||||||||||||||||||||||||||||||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||||||||||||||||||||||||||||||||
| - 先理解需求,再提出最小可行方案。 | ||||||||||||||||||||||||||||||||||||||||||||
| - 优先可验证、可回滚的改动。 | ||||||||||||||||||||||||||||||||||||||||||||
| - 输出包含:变更摘要、验证步骤、后续建议。 | ||||||||||||||||||||||||||||||||||||||||||||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,17 @@ | ||||||||||||||||||||||||||||||||||||||||
| #!/usr/bin/env bash | ||||||||||||||||||||||||||||||||||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||||||||||||||||||||||||||||
| 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." | ||||||||||||||||||||||||||||||||||||||||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.