DEV Community

Cover image for Choose a Coding-Agent Workflow by the Step It Adds (Part 1 of 5)
Artsiom Rudzenka
Artsiom Rudzenka

Posted on Edited on AI-assisted

Choose a Coding-Agent Workflow by the Step It Adds (Part 1 of 5)

For a long time I ran coding agents on skills I had written myself, with a planning step before every feature. That left me with a plan for each feature, but no history of decisions and no specification of the application as it stands. I wanted to see where the recommended frameworks add something and where they only add steps.

So we ran local trials with the six tools in the guide below, our usual workflow, and two combinations. "We" in this series is me and the coding agents that ran the sessions. Each trial compared some of them, most on one task. Our usual workflow has four parts: the project's guidance files, a short plan, tests, and an independent acceptance check. Here's what we learned about choosing a workflow, and which check to keep whichever one you choose.

The short version. Choose a workflow for the step you need. Keep an independent acceptance check for any change to data or access, and repeat it.

  • Same result. In the trials in Parts 3 and 4, the compared workflows ended their final run with the same acceptance result, though not always a full pass. Part 5 describes two other runs of the migration where the results differed.
  • Different steps. The workflows differed in what they added: a change history, a consistency check, or a separate review.
  • One shared failure. On a data migration, two first sign-ins that arrived together could end with one of them rejected. All five implementations had this flaw: three from OpenSpec, Spec Kit, and Superpowers on their own, and two from the combinations. One run of our independent check caught it in one of the five; five runs caught it in all five. The brief did not say that both sign-ins must succeed, so this was a gap in the requirement as well as in the code.

Which workflow should you try?

  • One prompt or a short plan. On four small label changes, one prompt that listed every condition was enough, and adding a short plan changed nothing. We did not test larger changes.
  • OpenSpec. Try it when you need to record what changed and keep the current specification up to date.
  • Spec Kit. Try it when the requirements, plan, and tasks need to agree before and after implementation.
  • Matt Pocock's skills. Try Grilling to find open questions and To Tickets to split agreed work into tasks.
  • BMad TEA. Try it when you need to decide which risks to test first.
  • Superpowers. Try it when you want someone other than the agent that wrote the code to review it. In the command-line trial in Part 3, its reviewer found a defect before acceptance, and so did a reviewer in our usual workflow. In the migration trial in Part 4, its reviewers could not open the working copy, so they read what the main agent passed to them.
  • Gstack. Try it to review work and prepare it for release, though our trial stopped before any push.
  • OpenSpec + Superpowers or Spec Kit + Superpowers. Try a combination if you want a separate review and can assign someone to close the specification. Closing means bringing the specification in line with the final code and finishing the tool's closing steps. Neither combination improved the final acceptance score in our two trials.

The table below gives a first step for each option.

A first step for each option
Situation What to try
A simple label change or a change with several conditions One prompt or a short plan. For a label change, give the location and the exact new text. If the change has several conditions, list what should happen in each case.
The team needs a history of behavior changes OpenSpec. Describe one change, update the main specification, and archive the change.
The requirements, plan, and tasks might disagree Spec Kit. Compare the documents before implementation. Check them again after implementation.
The team needs to clarify requirements or split the work Matt Pocock's skills. Try Grilling to surface questions or To Tickets to split the work. Check dependencies against the code.
The team needs a test strategy based on risk BMad TEA. Try one test architecture step. Give both workflows the same independent checks.
An agreed plan needs a separate implementation review Superpowers. Give implementation and review to different roles. Ask the reviewer for evidence of each defect.
The team needs review and preparation for release Gstack. Try the local review and preparation steps. Set an explicit stop before any push.
The team uses OpenSpec and needs a separate implementation review OpenSpec + Superpowers. Hand off the saved plan. Assign someone to update the main specification and archive the change.
The team uses Spec Kit and needs a separate implementation review Spec Kit + Superpowers. Hand off the saved plan. Assign someone to check the final code and tasks against the specification.

The diagram below gives four questions to ask about any change.

Four questions about simple label changes, changes with several conditions, handoffs, and risk to data or access.

What a workflow's own review can miss

The guide above covers what each workflow adds. One trial also showed what a workflow's own review can miss.

On the data migration, no review or verification step in the five implementations caught the shared defect. The sign-in check did. A separate step ran it and saw only the saved implementation. We call such a step an independent acceptance check. It is not the tests a session writes for its own code: in the implementation we inspected, that session's repository test passed.

Here is the sign-in check, written out for this article in the form of a short plan.

Check: two first sign-ins for one account, at the same time
Start: a fresh test database, no owner record for the account
Pass:  both sign-ins succeed, and one owner record exists
Run:   five attempts, and all five must pass
Enter fullscreen mode Exit fullscreen mode

The brief that the sessions received did not say that both sign-ins must succeed; that part of the pass rule came from the check. The number of attempts, five, was fixed in the check's script before this trial's first run. We chose to repeat the check because an earlier run of the same migration had passed it once and failed it on other repeats. Part 5 gives a version of this check that you can run, on a table with two columns.

Here are three lines from the log of one failed attempt, with names changed and lines shortened.

CAUSE IntegrityError 23505 pk_owners
FAILED test_concurrent_first_login_uses_one_binding
1 failed, 9 deselected in 1.57s
Enter fullscreen mode Exit fullscreen mode

The insert skipped a conflict on one unique index, but two first sign-ins also collided on the primary key, pk_owners here. The first attempt failed one of the five implementations. Across five attempts each, 12 of 25 failed.

Part 5 goes further: why the repository test missed the case, and a separate run of the same migration in which some implementations passed. Part 4 covers what the reviews did find, and that in three of the five runs the reviewers could not open the working copy.

How to install each tool and what to type first

We did not use these installers. We built each tool from a pinned copy of its source, so that every session ran the same revision. The lines below come from each tool's own README or install page at that revision, in the form for Codex CLI. Several tools have had releases since, so check the current README before you run anything.

Tool and the version we used Install What to type first
OpenSpec 2.0.0 npm install -g @fission-ai/openspec@latest, then openspec init in your project $openspec-propose <what-you-want-to-build>
Spec Kit 1.4.1.dev0 uv tool install specify-cli, then specify init my-project --integration codex $speckit-specify and a description of the feature
Matt Pocock's skills 1.3.2 codex plugin marketplace add mattpocock/skills, then codex plugin add mattpocock-skills@mattpocock /setup-matt-pocock-skills once per repository, then /grill-me, which the README offers for non-code work; for code it offers /grill-with-docs
BMad TEA 4.0.1 npx skills add bmad-code-org/bmad-method-test-architecture-enterprise, then bmad setup tea in the chat $bmad-tea-test-design
Superpowers 7.0.2 In Codex CLI, type /plugins, search for superpowers, and select Install Plugin Describe the task: its skills trigger automatically
Gstack 1.91.9.0 git clone --single-branch --depth 1 https://github.com/garrytan/gstack.git ~/gstack, then cd ~/gstack && ./setup --host codex /review on a branch with changes; the README's quick start runs /office-hours first

TEA also needs the bmad and bmod-core-tools skills from BMad Method, and its README gives the line for them.

Codex CLI takes a skill with $ before its name, and the table uses that form where the tool's documentation gives it: OpenSpec, Spec Kit, and TEA. The Matt Pocock and Gstack rows keep the slash that their READMEs print. OpenSpec's README says that most tools take the slash form and Codex the $ form, and that openspec init prints the right form for the tools you pick. For Claude Code, the Matt Pocock README installs with claude plugin install mattpocock-skills@claude-plugins-official, and the Gstack README clones into ~/.claude/skills/gstack and runs ./setup there.

The same documentation gives the step after the first one.

  • OpenSpec. openspec init creates an openspec folder with specs, changes, and an optional config.yaml. After the proposal come /openspec-apply-change and /openspec-archive-change, which Codex takes with $.
  • Spec Kit. The README order is /speckit-constitution, /speckit-specify, /speckit-plan, /speckit-tasks, /speckit-implement, /speckit-converge. Codex takes these with $ too.
  • Matt Pocock's skills. The setup skill asks which issue tracker you use, which labels you apply, and where to save documents. The README names no step after /grill-me.
  • BMad TEA. Setup asks about your test stack and writes the answers to _bmad/config.toml. Its quickstart runs framework, then test-design, then automate.
  • Superpowers. Its skills activate in this order: brainstorming, using-git-worktrees, writing-plans, subagent-driven-development or executing-plans, test-driven-development, requesting-code-review, finishing-a-development-branch.
  • Gstack. After /review, the README runs /qa and then /ship.

When a short plan is enough

For the first entry in the guide, we have a working rule, a later test of it, and one separate measurement.

Our working rule had two cases: one prompt for a simple label change, and a short plan for a change with several conditions. After the trials, we tested it on a small form app written for the test. It had two label changes and two changes where the label depends on the form state. Each change ran three times with one prompt and three times with the same prompt plus a short plan: 24 sessions with the model used throughout this series. All 24 passed a check of the label in every state. On these changes, one prompt was enough when it listed every condition, and the plan added nothing we could measure. The changes were easy enough that the test could not show where a plan starts to help.

  • A simple label change. Give the agent the page and the exact new text.
  • A change with several conditions. List the expected label for each state, in the prompt or in a short plan. Both worked in our test.

Here is an illustration of a short plan, written for this article and not taken from trial data.

Change: Save button label
- Empty form: "Save", disabled
- Valid form: "Save order"
- While sending: "Saving..."
Check: read it in each state
Enter fullscreen mode Exit fullscreen mode

A pilot on small fixes with a ready test

We did measure one thing on small fixes with a ready test. We used four such tasks and supplied a broken version and a fixed version of the code. We used two skills of our own.

  • The first helped the agent record the expected result and the test command in a short plan.
  • The second helped the agent confirm that the test failed on the broken version and passed on the fixed version.

We counted the runs where the agent confirmed both results on its first attempt.

Pairs of runs With the skills Without the skills
First skill version: 4 pairs 3 of 4 3 of 4
Current skill version: 6 pairs 6 of 6 3 of 6
All 10 pairs 9 of 10 6 of 10

Each pair is one run with the skills and one run without. Two of the six current pairs used the two tasks that we had not used for refinement. They gave 2 of 2 with the skills and 1 of 2 without.

Read those counts as a pilot result. We refined the skills on two of the four tasks, and four of the six current pairs reused those two tasks. We have yet to measure what each skill contributes on its own.

All five first-attempt failures had the same cause: the shell stopped the test command on a reserved variable name. In one run with the refined skills, the planning step caught that error in a dry run and fixed the command before the handoff.

The pilot gives no rule to copy: it counts how often the first confirmation attempt succeeded. In all ten pairs, both runs confirmed the two results once we allowed retries.


What Parts 2 to 5 cover

Each result in Parts 2 to 4 comes from one or two tasks, usually a single run.

  • Part 2: requirements and tasks. To Tickets made two tasks wait for a third, though the code needed only its shared parts.
  • Part 3: the steps after the plan. In all three trials, the tool's workflow ended with the same acceptance result as our usual workflow. In one, reviewers in both workflows found a defect before acceptance.
  • Part 4: both combinations. On the migration, all five implementations ended at nine of ten acceptance criteria, after a correction to two evaluator checks. Nobody closed the specification. In a later run with the closing steps and database tools installed and closing requested, all eight runs closed it.
  • Part 5: one missed defect. It explains why a repository test passed while the sign-in check failed, and what happened when one shared plan named the case.

How we ran the trials

We ran these trials on existing private codebases, and most ran in mid-November 2026. They covered small fixes, feature work, and a database migration. We describe the tasks in general terms.

The trials behind this series
Trial and task What we report Part
Small-fix pilot: four small fixes with a ready test Our usual workflow with and without two of our skills 1
Web recovery trial: load recovery in a web app Spec Kit's Clarify and Analyze, Matt Pocock's Grilling and To Tickets 2
Command-line trial: a reporting command OpenSpec and Spec Kit in Part 2, Superpowers and our usual workflow in Part 3 2, 3
Test-strategy trial: a rescheduling form BMad TEA and our usual workflow 3
Release-preparation trial: a roadmap correction Gstack and our usual workflow 3
Web comparison trial: a document comparison feature OpenSpec, Spec Kit, Superpowers, and the two combinations 4
Migration trial: sign-in identifiers The same five as the web comparison trial. Part 5 adds two runs with seven workflows and a check of seven plans 1, 4, 5

The command-line trial also ran BMad without TEA and Matt Pocock's skills, and all six workflows passed the same 57 checks. The release-preparation trial ran seven workflows. Each part reports the tools whose step it covers.

Within each trial, every session started from the same code, requirements, and model settings. The records for this series name one model, gpt-6.1-sol, at low reasoning effort, while the records of the small-fix pilot name none.

The counts in this article summarize our trials, while the original working copies and full logs remain internal.

For a separate example to inspect, see Neil Haddley's calculator trial, which tested OpenSpec, Spec Kit, and BMad with the same two feature requests. Haddley shared the method, results, and code. Trial write-up ยท Repository and branches

Conclusion and what's next

Decide on the check first. Then choose a workflow for the step it adds. That order is our practice. Most of the evidence comes from one migration, where the written requirement did not say that both simultaneous sign-ins must succeed. On a second task, whose requirement spelled out the hard cases, all three implementations passed the independent check five times out of five.

For your next change, do four things.

  1. Write down the expected result and how someone else can check it.
  2. Confirm that the check fails on a broken version and passes on the fixed one. That step is our practice, not a trial result.
  3. If the change affects data or access, run a check that starts from the conditions the service can encounter. Repeat it on a fresh test database. Part 5 shows why.
  4. Keep the first result and the results of the repeats.

Two questions remain open here.

  • We have yet to measure what each of our two skills contributes.
  • We have yet to compare the workflows on a project that starts from scratch.

Next in the series. Part 2 covers requirements and tasks.

Top comments (0)