Optional code-review workflow after /opsx:apply

未关闭
#2,147 0 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
45/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
typescript

调研方向

Read the issue body closely: the requester already has a working branch with tests and docs, so the first step is maintainer buy-in, not coding. Study the existing /opsx:verify and /opsx:apply workflow definitions to see how optional workflows outside the core profile are structured, and check draft PR #1251, which uses the same /opsx:review name for a different read-only design — the naming conflict needs resolving first. Done means a maintainer-approved scope decision, after which the workflow files, tests, and docs can land.

由索引模型根据 Issue 内容生成。

描述

The problem, in one or two sentences

After /opsx:apply finishes, OpenSpec has no step that reviews the code it just wrote. /opsx:verify checks that the code matches the plan, but nothing looks for bugs, missing error handling, edge cases, or missing tests, and apply's own completion message already tells users to "review or verify the change" with no review workflow to hand off to.

Who this affects

Everyone using the apply workflow, on every agent. It matters most for agent-written code, where review is the main safeguard before archiving and merging.

Alternatives you considered
  • /opsx:verify: checks completeness and spec/design adherence, and only flags pattern deviations as suggestions. It is advisory and never fixes anything, and it is not a code-quality review.
  • Asking the agent for a review in plain words: works, but every user improvises the prompt, the scope (which files the change touched) is guessed, and there is no consistent rule for when the agent may edit code versus ask first.
  • Separate review skills (security, performance): useful, but nothing ties them to a change's scope or to OpenSpec's plan.
Why it's worth the added complexity

It can stay small and opt-in: an optional workflow outside the core profile, like verify, with no new CLI commands. People who don't select it get no new files. It reuses the scope rule users already know from /opsx:apply (do in-scope work, pause on added scope), so its behavior is predictable.

What you have in mind

An optional /opsx:review that:

  • scopes to the files the change touched (git diff since the merge-base), and asks when that's unclear
  • does a basic review and hands specialized concerns to whatever review skills the agent environment already has (security, performance, ...), without OpenSpec registering them
  • fixes CRITICAL/WARNING findings that stay within the change's plan, pauses on anything beyond it, and only lists suggestions for the user to pick from
  • never edits planning artifacts, and points to /opsx:update when the plan itself is wrong

I have a working implementation with tests and docs on a local branch, and would be glad to contribute it if you'd like it.

Related: draft PR #1251 also uses the /opsx:review name, for a read-only plan-vs-code review that is closer to /opsx:verify.

主要语言
TypeScript
星标
76k
派生
5.2k
平均合并
1 天 5 小时
30 天内合并 PR
58

环境准备

在 Codespaces 中打开

在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

Fission-AI/OpenSpec 的其他 Issue

查看 Fission-AI/OpenSpec 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。