惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Apple Machine Learning Research
Apple Machine Learning Research
The GitHub Blog
The GitHub Blog
Hugging Face - Blog
Hugging Face - Blog
阮一峰的网络日志
阮一峰的网络日志
爱范儿
爱范儿
量子位
宝玉的分享
宝玉的分享
人人都是产品经理
人人都是产品经理
博客园_首页
博客园 - 【当耐特】
Last Week in AI
Last Week in AI
Martin Fowler
Martin Fowler
Microsoft Azure Blog
Microsoft Azure Blog
美团技术团队
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
aimingoo的专栏
aimingoo的专栏
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
GbyAI
GbyAI
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
腾讯CDC

DEV Community

Stop Reviewing Every Line of AI Code - Build the Trust Stack Instead How To Build an Image Cropper in Browser (Simple Steps) I built a macOS disk cleaner for developers and just launched it would love feedback Membangun Kompetensi dan Relasi: Mengapa Ekosistem Kampus Itu Penting I Built an AI That Decides Which AI to Talk To — Running 24/7 From My Living Room How to Actually Become a Programmer: The Hard Part Nobody Wants to Explain Building a Production-Style Multi-Tool AI Agent with Python, Flask, React & Gemini AI The Caretaker Sandbox: An Offline-First Visual Playground & Template Engine powered by Gemma 4 # Building Instagram OSINT Projects with HikerAPI Your AI can read. Gemma 4 can see The Battle of the Senior Dev: Why AI Gives You Wings But Only If You're Ready to Pilot HiDream Raw Output Failed Tried Dev-2604 VRAM Math Killed It Won with a Prompt Enhancer Instead I Finally Finished a Project I Abandoned — And GitHub Copilot Helped Me Ship It SafeSMS: On-Device Threat Detection with Gemma 4 E4B, no internet required I Built OpenKap — A Loom Alternative for Small Teams Who Just Want to Ship Gemma 4 is Here: The Dawn of Local Multimodal Reasoning Offline-First Flutter: How We Built a CRM That Manages 100K+ Leads With No Internet Memory for Agents: When Vectors Meet Graphs, Bugs Drop 4 The Rise of Production-Grade AI Infrastructure I ran my idea-validation product through its own validator. The verdict was PIVOT. We Built an Agent Commerce API. Google I/O 2026 Changed Our 3-Month Roadmap in 24 Hours. "My Partner's Memory Was Full. I Didn't Know — Until We Tried to Talk." I’m a Front End Web Developer Learning Machine Learning From Scratch Laravel Waiting Request I Built a Chrome Extension to Track How Long You Actually Spend on Each Tab Why Google Can't See Your React Breadcrumbs (And the 4-Line Fix) AI Travel Assistant Powered by Gemma 4; With Streaming, Image Input, and Visual Recommendation Cards Microsoft tried to kill the printer driver. Healthcare said no. The Blueprint Beneath the Blueprint: Designing Data Model and Choosing Its Database REST APIs vs Webhooks in Telecom Billing - Which One Actually Makes Sense? Accounting Made Simple: AI-Powered Financial Insights of Japanese Companies with Gemma 4 The append-only AST trick that makes Flutter AI chat actually smooth Designing the Future of Payments — Why XML Still Matters in the Age of APIs From Legacy to Live — Reviving XMLPayments with GitHub Copilot Two Weeks Into Learning Solana XMLPayments — The Hidden Backbone of Modern Financial Orchestration AI Agents in Practice — Read from the beginning Reviving My Gemma Agentic Framework: From Prototype to Polished Repo Smart Contracts Demand Better Infrastructure: Building on contract.dev Self-Hosted LLM Tool Calling: Forge and the Build-vs-Buy Decision ORA-00072 오류 원인과 해결 방법 완벽 가이드 OpenWA for CTOs: Self-Hosted WhatsApp Gateway Trade-Offs NotebookLM Automation With notebooklm-py: Useful, But Classify Data First Docker v29.5.x Operator Upgrade Checklist Coding-Agent Instruction Design: The CLAUDE.md File That Prevents Rework When I Finally Realized My Runtime Was Holding Me Back GnokeOps: Host Your Own AI House Party The Death of Static Rate Limiters: Why Your Java Virtual Threads Need BBR-Style Adaptive Concurrency AI Agents in Practice — Part 2: What Makes Something an Agent Stop scattering LLM SDK/API calls across your codebase. Here is the 2-file rule that fixed mine
Codex团队使用标准操作程序
Chase Chou · 2026-05-23 · via DEV Community

一个团队使用 Codex、OpenSpec 和 Superpowers 的标准操作程序

1. 目的

本标准操作程序定义了团队应如何使用 Codex、OpenSpec 和 Superpowers 进行需求发现、产品规划、实施、测试、验证、运营分析、故障排除和知识捕获。

这份标准操作程序不仅适用于软件工程师,也适用于产品经理、质量保证工程师、设计师、运营团队、客户成功团队、实施和交付团队、数据分析师以及任何需要保存项目背景的业务团队。

核心目标:

  • 降低新团队成员使用Codex的门槛。
  • 防止项目背景只存在于聊天记录中。
  • 当Codex线程丢失上下文时,避免强迫人类重复所有信息。
  • 使用OpenSpec以结构化方式记录需求、决策、任务进度、验证结果和业务结论。
  • 使用Superpowers将频繁、复杂的操作打包,以提高团队协作效率。
  • 使团队知识可重复使用、可转移和持续改进。

快速入门:5分钟版本,适用于新团队成员

如果这是您在项目中第一次使用Codex,请从这个最小流程开始:

  1. 请Codex检查OpenSpec中是否已存在相关上下文。
  2. 确定此任务是否需要新的或更新的OpenSpec变更。
  3. 对于小任务,直接进行。对于大任务,先撰写提案、设计和任务。
  4. 执行过程中,根据任务推进。不要将关键决策仅留在聊天中。
  5. 完成后,运行必要的验证,并记录验证方法和结果。
  6. 将实际输出、关键决策和剩余问题反馈回OpenSpec。
  7. 如果变更完成,检查是否需要更新规范,并在适当的情况下归档。

最小输入提示:

This is my first time working on a task in this project.

Please first check whether OpenSpec already contains relevant context, then tell me:

1. Whether we need to create or update an OpenSpec change
2. Whether there is a suitable Superpower to use
3. What the minimum viable path forward is
4. Which actions require my confirmation

进入全屏模式 退出全屏模式


是否使用OpenSpec进行决策

OpenSpec的存在是为了保存可重用的长期上下文。它并非旨在将每一个小动作都变成一个流程.

在开始一项任务之前,进行一个轻量级的判断:

Will a future teammate, my future self, or a new Codex thread need to recover this context later?

进入全屏模式 退出全屏模式

如果答案是"是",请考虑使用OpenSpec.

OpenSpec的适用场景:

  • 需要长期保存需求、解决方案设计、验收标准或业务规则.
  • 任务涉及多个人、部门、时间段或Codex线程.
  • 未来的负责人需要理解决策的原因。
  • 这项工作影响产品行为、技术设计、测试范围、数据定义、客户交付或运营工作流程.
  • 需要记录关键决策、风险、验证结果或回顾结论.
  • 完成的任务可能会影响未来的需求、测试、发布、交付或商业判断.

可能不需要完整 OpenSpec 工作流的情形:

  • 一次性简单问答。
  • 小复制、格式、布局或本地说明更改。
  • 显然是低风险的机械编辑。
  • 一次不产生值得保留的决策的临时探索。
  • Codex 只被要求解释、翻译、润色或总结一小段内容。

推荐评分:

任务类型 推荐处理方式
简单问题&A,解释,翻译,润色 直接让 Codex 完成。不需要 OpenSpec
小型、低风险的任务,没有长期影响 轻量级的判断就足够了
具有需求、解决方案设计、验收标准、测试、交付或业务影响的工作 创建或更新一个OpenSpec变更
跨团队、跨线程、长时间运行或高风险任务 必须使用OpenSpec来记录和推动工作

一句话原则:

OpenSpec is for preserving long-term valuable context, not for recording every conversation and small action.

进入全屏模式 退出全屏模式


2. 基本原则

每个项目都应该能够使用OpenSpec来承载长期上下文,但并非每个小任务都需要遵循完整的OpenSpec流程.

OpenSpec是一个项目迭代上下文的结构化记录。它用于保存:

  • 项目惯例
  • 需求背景
  • 解决方案设计
  • 任务分解
  • 执行进度
  • 关键决策
  • 验证结果
  • 商业结论
  • 后续事项

不要仅依赖Codex对话历史作为上下文来源.

如果发生这种情况:

Codex ran out of room in the model's context window.
Start a new thread or clear earlier history before retrying.

进入全屏模式 退出全屏模式

团队成员应能通过OpenSpec恢复任务上下文,而不是口头重述全部背景信息.


3. 上下文预算原则

Codex、OpenSpec、技能、Superpowers、本地工具、规则描述、项目文档和聊天历史都消耗模型的上下文窗口。

大型语言模型的上下文窗口是有限的。上下文越复杂,模型需要同时处理的信息就越多,留给实际任务的注意力就越少。

因此,团队应该遵循这个原则:

More tools are not always better.
More rules are not always better.

Complex workflows should be packaged only when needed,
not turned into Superpowers by default.

进入全屏模式 退出全屏模式

特别注意以下几点:

  • 不要一次性向Codex塞入大量无关的背景信息。
  • 不要为简单任务启用复杂的超级功能。
  • 不要让Codex同时遵循太多临时规则。
  • 不要让Codex读取无关文档只是为了显得"规范"。
  • 不要把OpenSpec变成一个运行日志;避免用低价值信息污染长期上下文。
  • 不要把每一个小动作都变成超级能力.
  • 不要让超级能力变成一个万能的工作流程.

推荐判断:

If a rule, tool, skill, or Superpower does not clearly help the current task, do not enable it.

进入全屏模式 退出全屏模式

更好的做法:

  • 只阅读真正必要的OpenSpec上下文。
  • 仅启用与当前任务直接相关的技能或超能力。
  • 将复杂任务分解为阶段,而不是一次性加载所有需求。
  • 在每一个有意义的阶段,将关键决策写入OpenSpec,而不是依赖聊天记录。
  • 保持提示简短、清晰、目标明确。

一语原则:

Context is a budget, not a trash bin.

进入全屏模式 退出全屏模式


4. 三个工具的职责

Codex

Codex负责理解任务、读取上下文、组织信息、支持分析、执行可自动化的工作、运行验证以及总结结果

它既是执行者也是协作者

OpenSpec

OpenSpec 负责保存长期上下文.

它是项目的结构化内存。它记录了为什么做某事、如何做以及进展到什么程度.

超能力

超能力包封装频繁、复杂的操作。

他们将易出错的、多步骤的、依赖经验的工作流程转化为可通过自然语言调用的可重用功能.

推荐心智模型:

OpenSpec preserves context.
Superpowers package complex workflows.
Codex understands the task, selects tools, executes the process, and updates the record.

进入全屏模式 退出全屏模式


使用Codex的注意事项和小技巧

Codex 特别适用于信息组织、解决方案探索、文件编辑、验证和阶段总结。然而,其有效性很大程度上取决于任务描述质量、上下文质量和验证方法。

明确任务

一个好的 Codex 任务应包括:

  • 目标:你想完成什么。
  • 背景:为什么这很重要。
  • 范围:包含什么以及排除什么.
  • 输入:相关文件、文档、链接、数据或背景.
  • 输出:你期望得到代码、文档、表格、摘要、提案或清单.
  • 验证:如何知道任务已完成.

推荐提示:

My goal is: [goal]
The background is: [background]
This scope includes: [scope]
This explicitly excludes: [out of scope]
Please first check the necessary context, then provide an execution plan.
If files need to be modified, first explain what you will change.
After completion, explain the validation method and result.

进入全屏模式 退出全屏模式

在行动前请让 Codex 进行评判

对于非琐碎的任务,不要立即让 Codex "直接完成"。更好的模式是先让 Codex 进行评判:

  • 是否需要读取 OpenSpec。
  • 是否需要创建或更新变更。
  • 是否需要超级权限。
  • 是否涉及任何高风险操作。
  • 是否需要用户确认。

建议提示:

Please first assess this task's complexity and risk:

1. Whether OpenSpec is needed
2. Whether a Superpower is needed
3. What context needs to be read
4. Whether files will be modified or external systems affected
5. Which steps require my confirmation

Proceed only after that assessment.

进入全屏模式 退出全屏模式

控制上下文,而不是一次性加载所有内容

不要一次性给 Codex 所有文档、所有规则和所有历史聊天。更好的做法:

  • 首先提供目标和最重要的背景信息。
  • 让 Codex 搜索或识别它需要的上下文。
  • 分阶段添加材料。
  • 将长期重要信息写入 OpenSpec。
  • 及时总结临时对话的细节,而不是让它们埋藏在聊天历史中。

明确要求验证

任务结束时不要只接受"完成。",要求 Codex 解释:

  • 它做了什么.
  • 它改变了什么.
  • 它是如何验证结果的.
  • 验证结果是什么.
  • 哪些仍然未验证.
  • 哪些风险或后续行动仍然存在.

不同角色以不同方式验证:

角色/场景 常见的验证方法
产品 验收标准检查,用户流程评审,范围确认
工程 测试、代码检查、构建、页面或API验证
质量保证 测试覆盖率,复现步骤,回归结果,缺陷状态
运营 / 业务 度量定义检查,执行清单,回顾结论
数据分析 数据源确认、指标一致性、异常值检查
客户成功/实施 客户配置检查、交付清单、风险确认

停止并确认高风险操作

以下操作需要Codex解释其计划并等待人工确认:

  • 删除、覆盖或批量修改文件。
  • 数据库迁移、生产数据变更或生产配置更新。
  • 发布、部署、回滚或影响在线用户的行为。
  • 影响客户配置、交付范围或外部承诺的行为。
  • 发送正式结论、报告或外部通讯。

使用阶段摘要

当任务很漫长、信息量很大,或者即将切换到新线程时,请让 Codex 进行摘要:

Please create a stage summary based on the current context:

1. Current goal
2. Completed work
3. Remaining work
4. Key decisions
5. Validation results
6. Current risks
7. Recommended next steps

Write information that should be preserved long term into OpenSpec.

进入全屏模式 退出全屏模式

一句话原则:

Ask Codex to perform more verifiable intermediate steps and fewer final leaps without context or validation.

进入全屏模式 退出全屏模式


5. 适用角色和典型场景

不同的角色可以使用相同的 OpenSpec 方法。区别在于每个角色关注记录的内容。

角色 典型场景 在 OpenSpec 中记录的内容
产品经理 需求分析、用户故事、PRD 拆解、范围确认、发布计划 背景、目标、非目标、验收标准、关键决策、范围变更
软件工程师 技术设计、功能实现、重构、错误修复、API变更 技术设计、影响范围、实施进度、验证结果、风险
测试工程师 测试计划、测试用例设计、缺陷复现、回归验证、验收报告 测试范围,测试数据,复现步骤,实际结果,剩余风险
设计师 用户体验提案、交互变更、设计评审、视觉标准文档 设计目标、用户旅程、权衡取舍、验收标准、受影响页面
运营/业务团队 活动计划、流程优化、客户问题跟进、业务规则变更 业务背景、目标指标、执行计划、验证定义、回顾结论
数据分析师 指标定义、数据定义、分析结论、报告迭代 指标定义、数据来源、分析假设、结论、后续行动
实施/客户成功 客户交付、故障排除、配置变更、交接笔记 客户背景、配置项、操作日志、风险、交付结论

一句话原则:

If a task needs to recover context across people, time, or threads, record it in OpenSpec.

进入全屏模式 退出全屏模式


6. OpenSpec 文档关系与检索质量

OpenSpec 不仅因为记录了内容,还因为它保留了项目文档之间的关系。

当Codex恢复上下文时,它通常依赖于文件名、目录结构、标题、关键词、引用和任务状态来决定哪些内容是相关的。OpenSpec结构越清晰,关系越明确,Codex就能越好地检索和理解项目上下文。

6.1 每一次变更都应该说明它与什么相关

在创建或更新OpenSpec变更时,尽可能记录:

  • 相关规范
  • 相关代码模块
  • 相关需求文档、测试计划、业务流程、数据指标或客户项目
  • 相关页面、API、数据库表或配置项
  • 相关历史变更
  • 当前变更影响哪些行为
  • 哪些范围不在此列

变更提案或设计的推荐结构:

## Related Context

- Related specs:
  - user-auth
  - billing-plan

- Related changes:
  - add-team-invitation-flow

- Related code:
  - src/modules/auth/
  - src/modules/billing/
  - apps/web/pages/settings/

- Related docs / business context:
  - PRD: team-permission-v2
  - Test plan: billing-regression
  - Metric: paid-team-conversion-rate
  - Customer project: enterprise-onboarding

- Affected behavior:
  - Permission checks after user login
  - Feature visibility after team plan changes

- Out of scope:
  - No changes to the payment flow
  - No changes to invoice generation logic

进入全屏模式 退出全屏模式

这有助于Codex在新线程中更快地决定读取哪些文件以及忽略哪些文件。

6.2 规格记录稳定功能,变更记录迭代过程

团队需要区分规格和变更的责任。

openspec/specs/ 用于长期稳定的 产品功能,行为协议,和系统规则。

openspec/changes/ 用于特定迭代,包括其背景,解决方案,任务,进度,和验证结果。

不要将短期任务日志放入规范中。不要将长期行为规则只留在变更中.

推荐原则:

Stable rules go into specs.
Iteration process goes into changes.
Long-term behavior after completion must be written back to specs.

进入全屏模式 退出全屏模式

6.3 完成任务后维护文档关系

变更完成后,不要只检查任务是否完成。请让 Codex 检查是否需要:

  • 更新相关规格
  • 添加相关变更的引用
  • 归档已完成变更
  • 删除或压缩过时的临时笔记
  • 记录最终验证结果
  • 标记后续事项

推荐提示:

After the task is complete, please help maintain the OpenSpec document relationships:

1. Check whether this change affects existing specs
2. If it does, update the corresponding specs
3. Add related specs, related code, related docs, and related changes to the change
4. Mark task completion status
5. Record validation commands and results
6. Decide whether the change can be archived
7. Clean up outdated or duplicate temporary notes to avoid hurting future retrieval

进入全屏模式 退出全屏模式

6.4 完成变更的最小归档输出

一个完成的变更应该留下比已勾选的任务更多的内容。它应该允许未来的新线程恢复上下文。

归档前,至少确认:

  • 最终目标是明确的
  • 实际变更摘要清晰
  • 关键决策已记录
  • 验证命令和结果被记录
  • 规格更新需求已检查
  • 相关规格、相关代码、相关文档和相关变更被记录
  • 剩余的后续事项被标记

推荐的存档摘要结构:

## Completion Summary

- Final outcome:
- Actual changes:
- Key decisions:
- Verification:
- Specs updated:
- Follow-up:

进入全屏模式 退出全屏模式

6.5 要点:防止 OpenSpec 变成低质量上下文

OpenSpec 不是聊天备份。它不是操作日志。

避免记录:

  • 每个普通命令的输出
  • 没有长期价值的试错过程
  • 重复的背景描述
  • 未被标记为无效的解决方案
  • 大量与当前变更无关的代码、材料或背景
  • 没有结论的临时猜测

优先记录:

  • 最终选定的解决方案
  • 明确拒绝的替代方案及其原因
  • 关键决策
  • 影响范围
  • 验证方法
  • 未解决的风险
  • 后续任务

一句话原则:

OpenSpec records reusable context, not model garbage.

进入全屏模式 退出全屏模式

6.6 要求 Codex 定期维护 OpenSpec

随着项目迭代次数的增加,要求 Codex 定期维护 OpenSpec 的可检索性.

推荐提示:

Please help me improve the retrievability of the current OpenSpec:

1. Check openspec/specs/ and openspec/changes/
2. Identify documents with unclear names, missing relationships, or unclear status
3. Check whether active changes contain duplicate or outdated content
4. Check whether completed changes should be archived
5. Check whether specs are missing long-term rules that should have been written back from completed changes
6. Provide cleanup suggestions
7. Modify files only after I confirm

进入全屏模式 退出全屏模式

6.7 OpenSpec 维护原则也应该写入 OpenSpec

初始化 OpenSpec 时,不仅要创建目录结构。要将维护 OpenSpec 的规则写入项目规范中.

推荐位置:

  • The context: 部分openspec/config.yaml,作为简短且严格的项目规则.
  • 如有需要,创建openspec/specs/openspec-maintenance/spec.md以实现更完整的OpenSpec维护标准.

这样,每次Codex读取OpenSpec时,它不仅知道项目做什么,还知道如何维护OpenSpec.

需要遵循的核心原则:

OpenSpec is not a chat backup. It is reusable project context.
Specs record long-term stable capabilities, behavior rules, and system agreements.
Changes record specific iterations, task progress, decisions, and validation results.
Every change should maintain related specs, related code, related docs, and related changes.
Every change should clearly state affected behavior and out of scope.
After a task is complete, check whether long-term behavior needs to be written back to specs.
Completed changes should be archived in time to prevent active changes from becoming noise.
Avoid low-value operation logs. Record only key decisions, validation results, risks, and follow-ups.
Whenever creating, updating, or archiving OpenSpec content, maintain document relationships.
Control context complexity. Read only OpenSpec content directly related to the current task.

进入全屏模式 退出全屏模式

单行原则:

When initializing OpenSpec, also preserve the rules for maintaining OpenSpec itself.

全屏模式: 退出全屏模式:

6.8 OpenSpec 命名规范

OpenSpec 命名直接影响未来检索质量。

推荐更改命名方式:

  • 以动词开头,例如 add-fix-refactor-remove-,或update-
  • 应包含明确的业务目标,例如add-team-invitation-flow
  • 使影响范围可见,例如refactor-billing-plan-permissions
  • 避免使用模糊的名称,例如misc-fixesupdate-stufftemp-change
  • 对于错误修复,尽量同时包含问题和目标,例如fix-order-refund-status-sync.

推荐规范命名:

  • 使用稳定的业务能力名称,例如user-authbilling-planteam-permissions
  • 不要使用一次性任务名称作为规范名称。
  • 一个规范应该对应一组长期稳定的业务行为。不要将多个不相关的功能放在同一个规范中。

7. 每次开始任务前的标准操作

在进行每个非琐碎任务之前,请让 Codex 先检查 OpenSpec。

对于非常小的任务,轻量级判断就足够了。可能不需要阅读完整的 OpenSpec。

非常小的任务通常包括:

  • 小型复制编辑
  • 纯粹的格式调整
  • 清晰且低风险的单点修复
  • 本地样式微调且不影响行为

轻量级判断标准:

  • 是否明确不影响长期行为
  • 是否无需记录设计决策
  • 是否无需跨线程恢复上下文
  • 是否无需完整加载OpenSpec

推荐提示:

Before starting, please check this project's OpenSpec:

1. Read openspec/config.yaml
2. Review the project conventions in context
3. Review existing specs in openspec/specs/
4. Check whether openspec/changes/ contains an active change related to this task

If there is a related change, continue based on it.
If there is no related change, decide whether this task needs a new OpenSpec change.

进入全屏模式 退出全屏模式

简版:

Please first check whether OpenSpec already contains relevant context, then decide whether we need to create or update a change.

进入全屏模式 退出全屏模式


8. 何时创建 OpenSpec 变更

以下情况必须创建或更新 OpenSpec 变更:

  • 新功能开发
  • 新需求、需求范围变更,或验收标准变更
  • 行为变更
  • 跨角色、跨部门或跨系统协作
  • 跨模块、跨服务或跨页面变更
  • 测试计划、验收范围或回归策略的变更
  • 运营活动、客户交付、业务流程变更或数据定义变更
  • 部署、配置或数据结构变更
  • 范围不明确的错误修复
  • 需要记录产品、技术、质量保证或业务决策的任务
  • 可能跨越多个Codex线程的任务
  • 工作内容:未来团队成员需要知道变更的原因
  • 涉及API、数据模型、权限、工作流、状态机、业务规则、指标定义和类似领域的长期影响变更

以下情况可能不需要变更:

  • 非常小的复制编辑
  • 纯粹的格式调整
  • 清晰且低风险的机械编辑
  • 临时调查不产生长期决定
  • 本地风格调整不影响行为

判断:

If another person would struggle to understand the task background without reading the chat history, record it in OpenSpec.

进入全屏模式 退出全屏模式

8.1 快速决策表

任务类型 需要OpenSpec变更吗? 考虑使用超级功能?
小范围修改
纯格式调整或机械性编辑
清晰、低风险的小错误 取决于影响范围
范围不明确的问题 取决于调查过程是否重复
验收标准,或需求范围调整 可能
新功能 取决于流程是否重复
跨模块重构 可能
API、权限、状态机或数据模型变更 也许
测试计划、回归策略或验收报告 取决于影响范围 也许
运营活动、客户交付或业务流程调整 取决于影响范围 也许
指标定义、数据定义或报告逻辑变更 或许
预发布检查 取决于项目需求
生产数据或生产配置操作 必须获得批准、进行干跑测试,并制定回滚计划

9. 推荐用于安装或初始化OpenSpec的提示

当一个项目还没有 OpenSpec 时,不要只让 Codex 创建目录结构。还要让 Codex 将 OpenSpec 维护原则写入项目规范中。

推荐提示:

I want you to help install and configure OpenSpec in this project.

You may decide the appropriate granularity for OpenSpec records. My goal is to use OpenSpec to structure our iteration process, especially after a task is successfully completed, so that results, decisions, validation methods, and follow-up items are preserved.

Please prevent context from living only inside Codex conversations. This way, even if we later see "Codex ran out of room in the model's context window. Start a new thread or clear earlier history before retrying.", I can open a new thread and recover task context through OpenSpec without restating everything.

In addition to creating the basic OpenSpec structure, please write the OpenSpec maintenance principles into the project conventions so future OpenSpec records follow them.

Please focus on these principles:

1. OpenSpec is not a chat backup. It is reusable project context.
2. specs record long-term stable capabilities, behavior rules, and system agreements.
3. changes record specific iterations, task progress, decisions, and validation results.
4. Every change should maintain related specs, related code, related docs, and related changes.
5. Every change should clearly state affected behavior and out of scope.
6. After a task is complete, check whether long-term behavior needs to be written back to specs.
7. Completed changes should be archived in time to prevent active changes from becoming noise.
8. Avoid low-value operation logs. Record only key decisions, validation results, risks, and follow-ups.
9. Whenever Codex creates, updates, or archives OpenSpec content, it should maintain relationships between documents to improve future retrieval and context recovery.
10. Control context complexity. Read only content directly related to the current task.

进入全屏模式 退出全屏模式


10. 标准工作流程

第一步:检查上下文

不要让 Codex 直接修改文件,在检查上下文之前不要输出解决方案或继续执行。

首先让它检查 OpenSpec:

Please search OpenSpec first and confirm whether there are specs or changes related to this task.

进入全屏模式 退出全屏模式

第 2 步:决定是否需要新的变更

如果任务较大、范围不明确或涉及行为变更,请先创建一个 OpenSpec 变更。

If you judge this to be a non-trivial change, please create an OpenSpec change first and record the requirement, solution, and task breakdown. Do not execute directly or produce the final conclusion first.

进入全屏模式 退出全屏模式

第3步:分解任务

让Codex将任务拆分成可执行项:

Based on the OpenSpec change, please break this task into executable tasks and mark the recommended execution order.

进入全屏模式 退出全屏模式

第4步:执行任务

执行过程中,让Codex根据OpenSpec任务进行操作:

Please proceed through the tasks in the OpenSpec change one by one, and update task status after completion.

进入全屏模式 退出全屏模式

第5步:验证结果

不要只接受"已经修复了。"

请指示Codex根据任务类型完成必要的验证,例如测试、代码风格检查、构建、页面验证、API验证、测试用例评审、验收标准检查、数据定义检查、业务规则确认或文档评审:

After completion, please run or perform the necessary validation and record the validation method and result in the OpenSpec change.

进入全屏模式 退出全屏模式

第6步:更新OpenSpec

任务完成后,Codex必须写回最终状态:

After the task is complete, please update OpenSpec:

1. Mark completed tasks
2. Record the actual changes or business output
3. Record key decisions
4. Record validation results
5. Update related specs, related code, related docs, and related changes
6. Decide whether specs need to be updated
7. Record remaining issues or follow-up items
8. If the change is complete, archive it

进入全屏模式 退出全屏模式


11. 在新的Codex线程中恢复上下文

当上下文丢失、任务中断或工作需要转移到新线程时,不要手动重述完整背景。

使用这个提示:

This is a new Codex thread. Please do not rely on previous chat history.

Please first read this project's OpenSpec:

1. openspec/config.yaml
2. openspec/specs/
3. openspec/changes/

Please find the active change that is still in progress and summarize:

- Current task goal
- Completed work
- Remaining work
- Key decisions
- Validated work
- Current risks
- Recommended next step

Then continue with the most reasonable next step.

Only load content directly related to the current task. Avoid loading unrelated history into the context all at once.

进入全屏模式 退出全屏模式


12. 考虑使用超级能力的时机

超能力有助于降低复杂操作的成本。它们将频繁、易出错、多步骤的工作打包成标准功能。

在以下情况时优先考虑超能力:

  • 当团队重复执行某种操作时。
  • 操作步骤繁多且容易遗漏。
  • 新同事不熟悉项目,但需要快速完成一项标准任务.
  • 这项任务需要遵循固定的标准.
  • 团队经验应该被编码,而不是每次都口头传授.
  • 规范需要为某类任务执行固定的工作流程.
  • 这项任务需要结合多个工具、脚本、检查或文档工作流程。

常见示例:

  • 初始化OpenSpec
  • 创建OpenSpec提案、设计和任务
  • 根据OpenSpec任务推进工作
  • 任务完成后更新或存档OpenSpec
  • 分解PRDs并检查验收标准
  • 组织测试计划、测试用例和回归检查清单
  • 捕获客户故障排除和交付记录
  • 创建运营活动清单和回顾
  • 检查指标定义并保留数据分析结论
  • 提交前检查
  • 代码审查
  • API变更检查
  • 数据库迁移检查
  • 前端视觉回归检查
  • 预发布检查清单
  • 事件调查
  • 生成每周报告、变更日志、验收报告、回顾或技术文档

以下情况避免使用超级权限:

  • 任务简单且一次性.
  • 需求仍然模糊,尚未成为稳定的流程.
  • 团队尚未达成共识,过早打包工作流会增加维护成本。
  • 这项工作涉及未经批准和没有试运行机制删除、覆盖、发布或生产操作。

判决:

If new teammates repeatedly ask "how do I do this step?", or senior teammates have to walk people through it every time, consider turning it into a Superpower.

进入全屏模式 退出全屏模式

超级大国的边界

超级能力的价值在于降低复杂操作的成本,而不是增加工作流程负担.

在使用之前,请判断:

  • 当前任务是否真正复杂.
  • 它是否会真正重复.
  • 是否有清晰、稳定、可重用的流程.
  • 使用超级能力是否比直接让Codex执行任务更简单。
  • 它所消耗的上下文是否值得。

如果任务很简单,直接让 Codex 完成即可。不需要超级功能。

推荐原则:

Do simple tasks directly.
Package only repeated complex tasks.
Practice uncertain workflows first, then package them.

进入全屏模式 退出全屏模式


13. 通过 Codex 使用超级功能

使用超级功能时,队友不需要记住复杂的指令。

建议让 Codex 担任协调员:

  1. 首先检查 OpenSpec 并理解当前任务上下文。
  2. 然后判断是否存在合适的超级能力。
  3. 如果存在,使用该超级能力完成任务。
  4. 如果不存在,则按正常 Codex 工作流程进行。
  5. 如果任务未来可能会重复,建议是否应该创建一个新的超级权限。
  6. 完成后,将关键结果写回OpenSpec。

推荐提示:

Please first check OpenSpec and understand this task's context.

Then decide whether this task is suitable for an existing Superpower:

- If there is a suitable Superpower, use it first and explain which part of the task it will solve.
- If there is no suitable Superpower, complete the task using the normal Codex workflow.
- If you think this task will repeat in the future, suggest whether it should be turned into a new Superpower.

进入全屏模式 退出全屏模式

新同事可以使用这个入口提示:

This is my first time handling a similar task in this project.

Please first check OpenSpec and the project documentation, then tell me:

1. Whether the current task already has relevant context
2. Whether there is a suitable Superpower
3. How you plan to complete this task in the fewest reasonable steps
4. Which actions require my confirmation

进入全屏模式 退出全屏模式


14. 超能力安全规则

为防止超能力变成黑箱,团队应遵循以下规则:

  • 在Codex使用超能力之前,它必须解释该超能力将解决什么问题。
  • 对于删除、覆盖、发布、迁移或生产操作,首先需要人工确认。
  • 倾向于使用干运行、预览、差异比较和测试命令.
  • 当超级能力完成后,Codex必须总结它做了什么,它改变了什么,以及它验证了什么.
  • 如果任务具有长期影响,OpenSpec必须更新.
  • 不要将超级能力视为可以替代思考的捷径.
  • 超级能力打包了一个标准流程。它不会跳过审核。

14.1 风险等级和确认规则

风险等级 典型操作 所需Codex行为
低风险 搜索、读取文件、查看差异、整理资料、运行只读命令 可直接执行并在需要时总结结果
中风险 修改代码,更新文档,调整测试,整理产品需求文档,添加测试用例,起草分析 可以执行,但必须后续总结变更和验证
高风险 删除文件,覆盖配置,运行数据库迁移,部署,批量修改数据,发送正式外部结论,调整客户配置 必须先解释计划、影响范围和回滚方法,然后等待人工确认
默认情况下永不执行 未经备份删除生产数据、未经确认部署、未经确认覆盖用户文件、未经确认做出外部交付承诺 禁止直接执行。需要负责所有者的明确授权

高风险操作的最低确认信息:

  • 将会做什么
  • 哪些文件、环境、数据或用户将受到影响
  • 是否有关键演练、备份或回滚计划
  • 如果执行失败如何恢复
  • 谁需要确认

推荐提示:

Before using the Superpower, please explain:

1. Which Superpower you plan to use
2. Which steps it will execute
3. Whether it will modify files
4. Whether any high-risk operations are involved
5. Which steps require my confirmation

进入全屏模式 退出全屏模式


15. 创建新超能力的推荐流程

当工作流程反复出现时,请让 Codex 帮助捕获它.

推荐提示:

This workflow may be used repeatedly by the team in the future.

Please help me judge whether it is suitable to turn into a Superpower.

If it is suitable, please organize:

1. Applicable scenarios
2. Non-applicable scenarios
3. Input requirements
4. Execution steps
5. Safety boundaries
6. Validation methods after completion
7. Whether OpenSpec needs to be updated

进入全屏模式 退出全屏模式

如果应直接创建超能力,请继续:

Based on the workflow above, please help me create a reusable team Superpower.

Requirements:

- Clear name
- Explain applicable scenarios
- Clearly describe execution steps
- Mark risky operations
- Include validation methods
- Include how to update OpenSpec after task completion
- Make it callable by new teammates through natural language

进入全屏模式 退出全屏模式


16. 使用超级权限标准化 OpenSpec 必需操作

OpenSpec 必需操作是超级权限的良好候选对象.

然而,避免创建一个巨大的“通用 OpenSpec 超级权限”。更好的方法是拆分工作流程为几个稳定、清晰、可组合的功能.

推荐拆分原则:

  • 一个超级大国应该拥有一个舞台.
  • 每个超级大国应该明确说明输入、输出、适用场景和不适用场景.
  • 小任务只需要轻量级的判断。不要强迫整个OpenSpec流程.
  • 只读取与当前任务直接相关的OpenSpec内容。
  • 高风险操作,如创建、归档、删除、覆盖、发布和迁移,必须首先说明计划并等待确认。
  • 当超级权限完成后,将关键结果写回OpenSpec而不是只在聊天中保留。

建议标准化为五个OpenSpec超级权限:

超级权限 它解决的问题 主要输出
openspec-start-task 开始任务前如何检查背景信息 相关背景信息摘要,是否需要变更,下一步建议
openspec-create-change 如何为非平凡的修改创建变更 提案,设计,任务,相关背景信息
openspec-continue-change 如何继续现有变更 当前状态摘要,下一步任务,执行进度
openspec-finish-change 完成后如何关闭工作 任务状态、验证结果、决策记录、归档判断
openspec-maintenance 如何保持OpenSpec检索质量 命名、关系、归档状态、低价值上下文清理建议

16.1 openspec-start-task

适用场景:

  • 开始一项新的需求、错误修复、重构、测试、运维、数据分析或客户交付任务.
  • 一个新线程需要理解当前任务上下文.
  • 一个新队友首次接触项目任务.

输入需求:

  • 用户的自然语言任务描述.
  • 当前项目工作区.
  • 一个现有的OpenSpec目录.

执行步骤:

  1. 读取项目规范在openspec/config.yaml.
  2. 搜索相关规范、活跃变更和历史变更.
  3. 决定是否有一个现有的相关变更继续.
  4. 决定是否需要一个新的OpenSpec变更。
  5. 判断是否存在其他合适的超级功能。
  6. 输出最小可行路径。

输出要求:

  • 相关 OpenSpec 上下文摘要
  • 是否需要创建或更新变更
  • 是否需要另一个超级功能
  • 下一步建议
  • 需要人工确认的操作

不适用场景:

  • 明显微小的复制、格式调整或低风险机械性修改。
  • 用户明确要求仅进行轻量级检查。

16.2 openspec-create-change

适用场景:

  • 新功能、新需求或新业务流程。
  • 行为变化。
  • 跨角色、跨部门或跨系统协作。
  • 跨模块、跨服务或跨页面更改。
  • 需要记录产品、技术、质量保证或业务决策的任务。
  • 未来的所有者需要知道为什么进行了这个改变。

输入要求:

  • 任务目标。
  • 确认相关规格、业务范围、代码范围、测试范围或交付范围。
  • 在需要时提供用户提供的业务背景或约束。

执行步骤:

  1. 生成一个清晰、可搜索的变更名称。
  2. 创建一个提案,解释背景、目标、非目标以及影响范围。
  3. 创建一个记录解决方案、权衡、风险和边界的文档。
  4. 创建分解为可执行步骤的任务。
  5. 添加相关的规范、相关代码、相关文档和相关变更。
  6. 明确说明受影响的行为和超出范围的内容。

输出要求:

  • 创建或更新的变更路径
  • 提案、设计和任务摘要
  • 需要用户确认的问题
  • 推荐执行顺序

安全边界:

  • 如果需求不明确,请提问或标记假设。不要编造商业结论.
  • 不要把不相关的聊天内容塞进变更中.
  • 不要把短期任务日志写入规格中.

16.3 openspec-continue-change

适用场景:

  • 一个现有的OpenSpec变更需要继续。
  • 上下文丢失,需要从OpenSpec中恢复。
  • 多个Codex线程正在交接同一任务。

输入要求:

  • 变更名称,或用户对当前任务的描述。
  • 当前工作区或相关材料范围

执行步骤:

  1. 阅读目标变更的提案、设计和任务
  2. 总结当前目标、已完成任务、剩余任务、关键决策和风险
  3. 检查相关规范、相关代码、相关材料及影响范围
  4. 选择下一个最合理的任务以推进
  5. 完成后更新任务状态.
  6. 记录关键决策和验证结果.

输出要求:

  • 当前变更状态总结
  • 本轮完成的工作
  • 本轮输出总结
  • 验证结果
  • 下一步建议

安全边界:

  • 不要跳过未完成的任务.
  • 如果实际执行与设计不符,请先解释差异.
  • 高风险操作需要人工确认.

16.4 openspec-finish-change

适用场景:

  • 变更中的主要任务已完成.
  • 在提交、合并、验收、交付或归档之前。
  • 聊天中的关键结果需要保留回OpenSpec.

输入要求:

  • 更改名称.
  • 当前的git差异,实际变更或业务输出.
  • 已经运行或仍需要的验证方法.

执行步骤:

  1. 检查所有任务是否完成.
  2. 记录实际变更或业务输出。
  3. 记录关键决策.
  4. 记录验证方法和结果.
  5. 更新相关规范、相关代码、相关文档和相关变更.
  6. 决定是否需要将长期行为写回规范.
  7. 记录剩余的后续跟进.
  8. 决定是否可以将变更归档.

输出要求:

  • 变更完成摘要
  • 验证结果
  • 规格回写判断
  • 是否建议归档
  • 剩余风险或后续跟进

安全边界:

  • 如果未运行验证,请明确说明。
  • 在长期行为确认前,不要随意修改规格。
  • 归档前,请确认任务、验证、写回状态及后续跟进。

16.5 openspec-maintenance

适用场景:

  • 项目迭代频繁,OpenSpec内容不断增长。
  • 活跃变更中包含重复、过时或模糊不清的内容。
  • 新加入的团队成员反映找不到有用的背景信息。
  • 团队希望定期提高OpenSpec检索质量.

输入要求:

  • 当前OpenSpec目录.
  • 可选:用户指定的规范、变更或业务范围.

执行步骤:

  1. 检查openspec/specs/openspec/changes/
  2. 识别名称不明确、缺少关系或状态不明确的文档。
  3. 检查活跃变更是否重复、过时或应归档。
  4. 检查已完成更改是否包含未写回规范的长期规则。
  5. 识别重复、过时或低价值的上下文。
  6. 先清理输出,然后等待确认再修改文件.

输出要求:

  • 检索质量问题列表
  • 推荐变更
  • 可直接执行的清理计划
  • 需要人工确认的删除、归档或合并操作

安全边界:

  • 仅使用建议。不要直接大规模删除或重写。
  • 归档、删除或合并文档需要确认。
  • 不要过度抽象OpenSpec,使其进入难以检索的文档中。

16.6 其他推荐团队超级能力

除了标准的OpenSpec操作外,团队还可以捕获以下通用超级能力。

16.7 代码审查超能力

适用场景:

  • 提交前的自我检查.
  • 提交PR前的检查.
  • 高风险代码变更.

能力目标:

  • 检查bug风险.
  • 检查测试缺口.
  • 检查边界情况.
  • 检查是否需要更新OpenSpec。

16.8 预提交检查超级功能

适用场景:

  • 准备提交或 PR

功能目标:

  • 审查 git diff
  • 运行测试、代码风格检查和构建
  • 检查 OpenSpec 状态
  • 总结风险和验证结果

16.9 预发布检查超级功能

适用场景:

  • 发布、部署或启动之前。

能力目标:

  • 检查配置变更。
  • 检查迁移。
  • 检查环境变量。
  • 检查回滚计划。
  • 检查OpenSpec是否归档或更新。

16.10 产品需求评审超能力

适用场景:

  • 产品草案评审.
  • 需求范围变更.
  • 验收标准不明确.

能力目标:

  • 检查目标、非目标以及用户场景是否清晰.
  • 检查验收标准是否可验证.
  • 检查是否存在依赖关系、风险和边界缺失。
  • 判断是否需要创建或更新 OpenSpec 变更.

16.11 测试计划审查超能力

适用场景:

  • 新功能测试计划.
  • 回归范围确认.
  • 缺陷复现和预验收检查.

能力目标:

  • 检查测试范围、测试数据和覆盖范围差距。
  • 组织测试用例、风险和回归检查清单。
  • 记录验证结果和剩余风险。
  • 决定是否需要更新OpenSpec。

16.12 业务回顾超级能力

适用场景:

  • 运营活动回顾。
  • 客户交付回顾。
  • 业务流程调整后的回顾会议。

能力目标:

  • 总结目标、执行过程、结果和偏差。
  • 保留关键决策、经验教训和后续事项。
  • 需要决定长期规则是否需要写入规范。

17. 关键操作提示库

本节为团队成员提供复制内容使用的附录。第7至14节中的工作流原则优先。如果提示与主要原则冲突,请遵循主要原则.

17.1 开始新任务

Please first check whether OpenSpec already contains relevant context.

Focus on:

1. openspec/config.yaml
2. openspec/specs/
3. openspec/changes/

Please summarize content related to this task and decide:

- Whether there is a related active change
- Whether a new OpenSpec change is needed
- Whether there is a suitable Superpower
- What the minimum viable path forward is

进入全屏模式 退出全屏模式

17.2 创建新的OpenSpec变更

Please create an OpenSpec change for this task.

Requirements:

1. The change name should be clear and searchable
2. The proposal should state background, goals, non-goals, and impact scope
3. The design should record key solution decisions, trade-offs, risks, and boundaries
4. The tasks should be broken into executable steps
5. Add related specs, related code, related docs, and related changes
6. Avoid unrelated background and keep the documents concise

进入全屏模式 退出全屏模式

17.3 继续现有更改

Please continue based on the existing OpenSpec change.

First read the change's proposal, design, and tasks, then summarize:

1. Current goal
2. Completed tasks
3. Remaining tasks
4. Key decisions
5. Current risks
6. Most reasonable next action

Then continue according to the tasks.

进入全屏模式 退出全屏模式

17.4 决定是否需要超级功能

Please decide whether the current task is suitable for a Superpower.

Judgment criteria:

1. Whether it is a repeated task
2. Whether the steps are complex or easy to miss
3. Whether there is an existing stable process
4. Whether using a Superpower is simpler than direct execution
5. Whether the context it consumes is worth it

If suitable, explain which Superpower to use.
If not suitable, complete the task using the normal Codex workflow.

进入全屏模式 退出全屏模式

17.5 控制上下文复杂度

Please control context complexity.

Read only OpenSpec, code, materials, and tool instructions directly related to the current task.
Do not load unrelated specs, unrelated changes, or unnecessary Superpowers.
If more context is needed, explain why before continuing.

进入全屏模式 退出全屏模式

17.6 执行前检查

Before execution, please confirm:

1. Which OpenSpec change corresponds to this task
2. What content needs to be modified, organized, or produced
3. Which behaviors, workflows, documents, data, or users will be affected
4. What is explicitly out of scope
5. What validation needs to be performed
6. Whether any high-risk operations require my confirmation

进入全屏模式 退出全屏模式

17.7 完成后更新 OpenSpec

After the task is complete, please update OpenSpec:

1. Mark task completion status
2. Record actual changes or business output
3. Record key decisions
4. Record validation methods and results
5. Update related specs, related code, related docs, and related changes
6. Decide whether specs need to be updated
7. Decide whether the change can be archived

进入全屏模式 退出全屏模式

17.8 在新线程中恢复上下文

This is a new Codex thread. Please do not rely on previous chat history.

Please recover context through OpenSpec:

1. Read openspec/config.yaml
2. Check openspec/specs/
3. Check openspec/changes/
4. Find the most relevant active change
5. Summarize task goal, completed work, remaining work, key decisions, validation results, and next step

Only load content related to the current task. Avoid consuming too much context.

进入全屏模式 退出全屏模式

17.9 存档变更前检查

Before archiving this OpenSpec change, please check:

1. Whether all tasks are complete
2. Whether validation results have been recorded
3. Whether long-term behavior has been written back to specs
4. Whether related specs, related code, related docs, and related changes are complete
5. Whether any follow-up remains
6. Whether outdated or duplicate content needs to be cleaned up

Archive only after confirming everything is ready.

进入全屏模式 退出全屏模式

17.10 提高OpenSpec检索质量

Please help me check OpenSpec retrieval quality.

Focus on finding:

1. Specs or changes with unclear names
2. Changes missing related context
3. Completed changes that have not been archived
4. Content that should have been written back to specs but has not been
5. Duplicate, outdated, or low-value context
6. Issues that may affect Codex retrieval efficiency

Output suggestions first. Do not modify files directly.

进入全屏模式 退出全屏模式

17.11 提出新需求或功能

I want to advance a new requirement or feature: [describe the requirement or feature]

Please first check OpenSpec:

1. Whether related specs already exist
2. Whether related active changes already exist
3. Whether a new OpenSpec change is needed

If needed, create the proposal, design, and tasks first.
Then proceed according to the tasks and update OpenSpec after completion.

进入全屏模式 退出全屏模式

17.12 处理问题或缺陷

I want to handle an issue or defect: [describe the issue]

Please first check OpenSpec and related context, then decide whether this issue involves existing specs or active changes.

If the scope is clear and small, handle it directly.
If it involves behavior changes, data flow, APIs, state logic, business rules, customer impact, or future tracking, create or update an OpenSpec change.

After completion, record the cause, fix, and validation method.

进入全屏模式 退出全屏模式

17.13 提交、交付或外部同步前检查

Please help me perform a pre-commit, pre-delivery, or pre-external-sync check:

1. Review the current git diff, document changes, or business output
2. Summarize this change or conclusion
3. Decide whether OpenSpec needs to be updated
4. Run the necessary tests, lint, build, acceptance criteria checks, data definition checks, or business review
5. Check whether obvious risks exist
6. Recommend whether it is ready for commit, delivery, or external sync

进入全屏模式 退出全屏模式

17.14 产品需求评审

Please review this product requirement: [describe the requirement or paste the PRD]

Focus on:

1. Whether background, goals, and non-goals are clear
2. Whether user scenarios and core flows are complete
3. Whether acceptance criteria are verifiable
4. Whether dependencies, risks, and boundaries are explicit
5. Whether an OpenSpec change needs to be created or updated
6. Which questions require confirmation from product, design, engineering, QA, or business owners

进入全屏模式 退出全屏模式

17.15 测试计划评审

Please review this test plan: [describe the test plan]

Focus on:

1. Whether test scope and out-of-scope items are clear
2. Whether test data, environment, and preconditions are explicit
3. Whether positive, negative, boundary, compatibility, and regression scenarios are covered
4. Whether acceptance criteria can be validated by tests
5. Whether high-risk gaps exist
6. How test results and remaining risks should be written back to OpenSpec

进入全屏模式 退出全屏模式

17.16 商业计划或回顾组织

Please help me organize this business plan or retrospective: [describe the business item]

Focus on outputting:

1. Background and goals
2. Execution process or plan
3. Key results and deviations
4. Confirmed decisions
5. Risks, issues, and follow-up items
6. Which long-term business rules or metric definitions need to be written into OpenSpec

进入全屏模式 退出全屏模式

17.17 阶段总结

Based on the current OpenSpec change and completed work, please create a stage summary:

1. Completed work
2. Remaining work
3. Confirmed decisions
4. Rejected alternatives and why they were rejected
5. Validation results
6. Current risks
7. Recommended next steps

Please update OpenSpec with information that needs to be preserved long term. Do not leave it only in chat.

进入全屏模式 退出全屏模式

17.18 初始化OpenSpec并写入维护原则

Help me initialize OpenSpec and write OpenSpec maintenance principles into the project conventions.

Requirements:

1. Create or check openspec/config.yaml
2. Write short, executable OpenSpec maintenance principles into context
3. Distinguish the responsibilities of specs and changes
4. Make clear that every change needs to maintain related specs, related code, related docs, and related changes
5. Make clear that after a change is complete, we should check whether specs need to be updated
6. Make clear that completed changes should be archived in time
7. Make clear that OpenSpec should not record low-value operation logs
8. Make clear that Codex should read only necessary context for the current task to avoid context pollution
9. If needed, create openspec/specs/openspec-maintenance/spec.md as the long-term maintenance standard

Please first explain which principles you plan to write, then modify files.

进入全屏模式 退出全屏模式

17.19 使用标准OpenSpec超级力量操作

Please handle this task according to the standard OpenSpec actions: [describe the task]

First decide which OpenSpec Superpower should be used:

1. `openspec-start-task`: check context before starting a task
2. `openspec-create-change`: create a change for a non-trivial modification
3. `openspec-continue-change`: continue an existing change
4. `openspec-finish-change`: close out and judge archive readiness after completion
5. `openspec-maintenance`: improve OpenSpec retrieval quality

Please explain the Superpower you selected, why you selected it, what context it will read, whether it will modify files, and which operations require my confirmation.

进入全屏模式 退出全屏模式


18. 团队成员使用规则

团队成员在使用Codex时应遵守以下规则:

  • 不要只在聊天中留下重要需求。
  • 不要让Codex在未检查OpenSpec的情况下启动重大变更。
  • 任务完成后不要忘记更新OpenSpec。
  • 不要将OpenSpec视为操作日志。
  • 不要将Superpowers视为黑盒自动化。
  • 不要将复杂的工具强加于简单的任务上。
  • 每个较大的任务都应该可以通过OpenSpec来恢复。
  • 频繁的复杂工作流应该逐渐被捕获为Superpowers。
  • 当新的团队成员遇到一个不熟悉的项目时,他们应该首先要求Codex检查OpenSpec和可用的Superpowers。
  • 对于涉及删除、覆盖、部署、迁移、生产数据、客户配置或外部承诺的高风险操作,Codex必须首先解释计划并等待确认。

19. 最终检查清单

任务结束前,Codex应完成以下检查:

  • [ ] 是否已检查OpenSpec?
  • [ ] 是否已决定是否需要创建或更新变更?
  • [ ] 是否按照任务推进了工作?
  • [ ] 是否只为当前任务阅读了必要的背景信息?
  • [ ] 是否避免了无关的文档、规则或工具?
  • [ ] 是否仅使用了完成任务真正需要的技能或超能力?
  • [ ] 是否控制了上下文复杂度以避免伤害模型注意力?
  • [ ] 是否执行了必要的验证?
  • [ ] 验证结果是否被记录?
  • [ ] OpenSpec 是否已更新?
  • [ ] 是否维护了相关的规范、相关的代码、相关的文档和相关的变更?
  • [ ] 是否检查了长期行为是否需要写回规范?
  • [ ] 关键决策是否被记录?
  • [ ] 是否记录了验收结果、业务结论或交付状态?
  • [ ] 是否记录了剩余事项?
  • [ ] 新的线程能否通过 OpenSpec 恢复上下文?

20. 简要概述

OpenSpec prevents context from being lost.
Superpowers make complex workflows reusable.
Codex makes execution automated, verifiable, and preservable.
Context budget determines model attention, so keep simple things simple and load only what is needed.

进入全屏模式 退出全屏模式