这份完整提示词让 Codex 依据官方 Astra 指南审计并精简仓库指令,同时把修改范围严格限制在指令文件内。
适合的任务:升级仓库的 AGENTS.md、核对真实开发命令、减少不必要审批停顿、明确实现和修复任务的完成条件。
不适合的任务:模型 API 迁移、修改应用内提示词、变更模型 ID、优化应用运行性能或自动修改全局配置。
适用的模型版本:GPT-6 Astra;提示词要求结合当前官方 Codex 文档和 Astra prompting guidance。
适用的客户端、Agent 或 API:安装 OpenAI Docs Skill 的 Codex CLI;其他客户端需要把 $openai-docs 调用替换成等价的官方文档访问方式。
推荐的推理档位和参数:原帖未公开 effort、模型快照或 API 参数。
$openai-docs
Improve the instructions that govern how Codex CLI works in this repository, using current official Codex documentation and GPT-6 Astra prompting guidance.
The goal is better implementation quality, reliable follow-through, fewer unnecessary approval pauses, and efficient use of context and verification.
This is a Codex workflow improvement task. Do not migrate this application's API integrations, change its model IDs, modify application prompts, or optimize its runtime performance.
1. Inspect the existing setup.
Read the applicable AGENTS.md and AGENTS.override.md files, repository-local Codex configuration, and relevant installed skill instructions. Inspect the README, package manifests, workspace structure, and CI configuration to establish the actual development and verification commands.
Identify conflicting instructions, redundant guidance, outdated commands, unnecessary stopping points, and missing repository knowledge. Distinguish verified problems from preferences.
2. Apply focused improvements.
Update the effective repository-level AGENTS.md, creating it if needed. Update nested instruction files only where their scope requires it. Preserve valid project constraints and existing uncommitted work.
Keep the instructions concise and specific to this repository. Include:
• A compact map of the important code locations and architectural boundaries.
• The actual package manager and supported development commands.
• Relevant test, typecheck, lint, build, and runtime verification commands, including prerequisites.
• Expectations for following existing patterns and avoiding unrelated changes.
• Clear completion criteria for implementation and bug-fix tasks.
Incorporate the applicable official prompting guidance:
• Carry authorized implementation through the relevant verification.
• Resolve routine, reversible choices without repeatedly seeking confirmation.
• Ask focused questions when an unresolved decision materially affects correctness, scope, or authorization.
• Respect higher-priority instructions and permission boundaries; explain the exact source of a blocking instruction.
• Match verification to the change and required project gates; repeat checks when new evidence warrants it.
• Report the result, verification evidence, and concrete remaining limitations concisely.
Avoid copying entire prompting guides, adding motivational boilerplate, or duplicating instructions already supplied by the harness.
3. Keep changes within scope.
Only edit repository instruction files for this task. Inspect global instructions and installed skills as needed, but report conflicts there without modifying them. Recommend any Codex configuration changes separately, with their documented benefits and tradeoffs.
4. Verify and finish.
Review the resulting instruction hierarchy for contradictions and confirm documented commands against repository scripts and CI. Clearly distinguish commands you actually ran from commands you only inspected.
Apply the authorized instruction edits now. Finish with a concise explanation of what changed, why it should help, the official sources used, and any unresolved conflicts. Do not claim measured performance improvements without a comparison.先安装或启用能读取 OpenAI 官方文档的 Skill,再在目标仓库根目录运行。
提交前检查 diff,确认只修改了仓库指令文件,没有触碰应用提示词、模型配置或业务代码。
运行提示词中识别出的最小必要验证,并区分“实际执行”和“只从脚本中确认存在”的命令。
原帖公开了完整输入,但没有公开 Astra 的最终输出、修改 diff、测试结果或前后对照指标,因此属于可复制 prompt,不构成效果基准。
GPT-6 Astra