Optional code-review workflow after /opsx:apply

Open
#2,147 0 comments 1 reaction 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
45/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
typescript

Research direction

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.

Written by the indexing model from the issue text.

Description

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.

Dominant language
TypeScript
Stars
76k
Forks
5.2k
Avg merge
1d 5h
Merged PRs (30d)
58

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Fission-AI/OpenSpec

All issues in Fission-AI/OpenSpec

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.