Optional code-review workflow after /opsx:apply

オープン
#2,147 コメント 0 件 リアクション 1 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
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時間
マージ済み PR(30日)
58

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Fission-AI/OpenSpec のほかの issue

Fission-AI/OpenSpec の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。