Add pipeline workflow to community catalog
What
Registers the Guided SDD Pipeline workflow in workflows/catalog.community.json.
The workflow itself is now hosted externally, per maintainer guidance (comment):
- Repository: https://github.com/domattioli/spec-kit-workflow-pipeline
- Release: v1.0.0
- Raw URL: https://raw.githubusercontent.com/domattioli/spec-kit-workflow-pipeline/v1.0.0/workflow.yml
What the workflow does
Chains specify β clarify (single interactive gate) β plan β tasks β analyze β implement β converge into one guided run. Optional constitution and checklist phases. Post-implement convergence loop replaces the earlier analyze/implement fix-loop, per review discussion.
Changes in this PR
- Removed the in-tree
workflows/pipeline/files (moved to the external repo above) - Added the
pipelineentry toworkflows/catalog.community.json
Testing
workflow.ymlvalidates viaspecify workflow info- Raw URL at the v1.0.0 tag verified fetchable
- Catalog JSON validates
Thanks for this β the analyze/fix retry loop and the single-clarify-gate UX are genuinely nice, and the code is clean and well-tested.
Before going further, I'd like to steer this toward our workflows system, because that's precisely the mechanism Spec Kit ships for chaining /speckit.* phases into one guided, resumable invocation. The pipeline's charter β "collapse the manual command sequence into one command with a human checkpoint, orchestrating the stock commands rather than reimplementing them" β is verbatim what specify workflow run already does. The built-in speckit workflow (workflows/speckit/workflow.yml) already chains specify β plan β tasks β implement with review gates, and the engine natively provides everything the extension hand-rolls:
- Clarify gate β
type: gate - Analyze/fix loop (β€3 cycles) β
type: whilewithmax_iterations --skip/--addphases βbooleaninputs guardingtype: ifsteps- Deterministic phase ordering + validation β the declarative
steps:list (validated up front byspecify workflow run) previewdry-run βspecify workflow info ./workflow.yml- Resume / state persistence / catalog distribution β for free
Concretely, here's your pipeline expressed as a single workflow.yml β no Python resolver, wrappers, or test suite needed, since the engine owns ordering and validation:
# workflow.yml
schema_version: "1.0"
workflow:
id: "pipeline"
name: "Guided SDD Pipeline"
version: "1.0.0"
author: "domattioli"
description: >
Chains specify β clarify β plan β tasks β analyze β implement into one
guided run with a single clarify gate and an analyze/fix loop.
requires:
speckit_version: ">=0.8.5"
integrations:
any: ["claude", "copilot", "gemini", "opencode"]
inputs:
spec:
type: string
required: true
prompt: "Describe what you want to build"
integration:
type: string
default: "auto"
with_constitution: # replaces --add constitution
type: boolean
default: false
with_checklist: # replaces --add checklist
type: boolean
default: false
skip_clarify: # replaces --skip clarify
type: boolean
default: false
max_fix_cycles:
type: number
default: 3
steps:
- id: constitution
type: if
condition: "{{ inputs.with_constitution }}"
then:
- id: constitution-run
command: speckit.constitution
integration: "{{ inputs.integration }}"
input: { args: "{{ inputs.spec }}" }
- id: specify
command: speckit.specify
integration: "{{ inputs.integration }}"
input: { args: "{{ inputs.spec }}" }
- id: clarify
type: if
condition: "{{ inputs.skip_clarify == false }}"
then:
- id: clarify-run
command: speckit.clarify
integration: "{{ inputs.integration }}"
input: { args: "{{ inputs.spec }}" }
- id: clarify-gate
type: gate
message: "Review clarifications before planning."
options: [approve, reject]
on_reject: abort
- id: plan
command: speckit.plan
integration: "{{ inputs.integration }}"
input: { args: "{{ inputs.spec }}" }
- id: checklist
type: if
condition: "{{ inputs.with_checklist }}"
then:
- id: checklist-run
command: speckit.checklist
integration: "{{ inputs.integration }}"
input: { args: "{{ inputs.spec }}" }
- id: tasks
command: speckit.tasks
integration: "{{ inputs.integration }}"
input: { args: "{{ inputs.spec }}" }
- id: analyze-first
command: speckit.analyze
integration: "{{ inputs.integration }}"
continue_on_error: true
input: { args: "{{ inputs.spec }}" }
- id: fix-loop
type: while
condition: "{{ steps.analyze-first.output.exit_code != 0 }}"
max_iterations: 3 # see note below on templating this
steps:
- id: apply-fixes
command: speckit.implement
integration: "{{ inputs.integration }}"
input: { args: "Resolve the analyze findings for {{ inputs.spec }}" }
- id: analyze-again
command: speckit.analyze
integration: "{{ inputs.integration }}"
continue_on_error: true
input: { args: "{{ inputs.spec }}" }
- id: implement
command: speckit.implement
integration: "{{ inputs.integration }}"
input: { args: "{{ inputs.spec }}" }
Two things to verify if you go this route:
max_iterationsfrom an input β I hardcoded3above because I'm not certain the engine coerces a templated{{ inputs.max_fix_cycles }}at that field. If it accepts an expression, wire the input back in; if not, hardcoding is fine.- Analyze signaling β the loop assumes
speckit.analyzereturns non-zero when findings remain. If it always exits0, branch on parsed output instead (anif/gateonsteps.analyze-first.output).
If you'd like to publish this, the path is the community workflow catalog β see workflows/PUBLISHING.md. That gets it discoverable via specify workflow search/add while keeping it maintained in your own repo.
Thanks for the feedback, mnriem. We've implemented the workflow approach you suggested instead of the extension.
Summary of changes
Created workflows/pipeline/workflow.yml that expresses the full pipeline using Spec Kit's workflows engine:
- Chains specify β clarify β plan β tasks β analyze β implement
- Optional phases: constitution, checklist
- Analyze/fix loop with configurable max cycles (default 3)
- Clarify gate (can be skipped)
- Full documentation in README.md and CHANGELOG.md
Advantages
- Uses engine-native if/while/gate constructs (no Python resolver needed)
- Declarative YAML configuration
- Built-in resume and state persistence via the engine
- Discoverable via
specify workflow search - Simpler to maintain
Validation
We validated the workflows/pipeline/workflow.yml locally against specify workflow run. It correctly handles the clarify gate (pausing for approval), phase sequencing, and resumability via specify workflow resume.
One fix along the way: max_iterations in the while step needs a literal integer β it doesn't accept a templated {{ inputs.max_fix_cycles }} expression, so we hardcoded it to 3 for now (matching your original suggestion).
Example invocation:
specify workflow run workflows/pipeline/workflow.yml --input 'spec=add user authentication with JWT tokens'
This runs the full pipeline and pauses at the clarify gate for approval before continuing to plan/tasks/analyze/implement.
You are aware we have a converge command now too? Should that one be in play?
You're right: converge fits better than my original pairing. Two changes:
- Dropped the analyze/implement fix-loop.
analyzechecks artifact consistency, not code, so "fix via implement" was a verbiage bug that the orchestrator bot and I didn't catch. - Added a post-implement convergence loop per converge's own contract ("must run after implement"):
implement β converge β (tasks appended?) β implement β convergeβ¦, capped at 3 cycles. Aconvergedrun leavestasks.mduntouched, so the loop stays safe even when the engine can't branch on converge's outcome. Ifsteps.X.outputcan carry theconverged/tasks_appendedsignal, I'll wire the condition to it.
Also removed the old extensions/pipeline/ tree (Python resolver + wrappers + tests) since the workflow supersedes it β the PR is now purely the workflows/pipeline/workflow.yml approach. Updated the workflow, README, and CHANGELOG.
Similarly to our extension and presets we can host this in our community catalog. Please create it in your own GitHub repository so we can do so. See https://github.com/github/spec-kit/blob/main/workflows/PUBLISHING.md
Done β the workflow now lives in its own repository:
- Repo: https://github.com/domattioli/spec-kit-workflow-pipeline (workflow.yml, README, CHANGELOG, MIT license)
- Release: v1.0.0, raw URL verified fetchable at the tag
This PR is reworked to only add the pipeline entry to workflows/catalog.community.json, per PUBLISHING.md. Let me know if you'd like any changes to the catalog entry.
Please address Copilot feedback
Addressed the Copilot feedback. The three active comments are all on the catalog entry, and each traced back to the external workflow, so I published a corrected release (v1.1.0) and repointed the catalog at it.
Convergence loop never ran. The while condition was steps.converge-first.output.exit_code != 0, which is false on any normal (exit 0) run, so the loop body never executed. There is also no outcome signal available to fix it "properly": command steps dispatch with stream=True, so stdout is returned empty, and speckit.converge exits 0 for both converged and tasks_appended. So neither exit_code nor stdout can distinguish the outcomes. I took the unconditional-bounded-loop route you offered: a do-while (condition: "true", max_iterations: 3) running converge β implement each cycle. A converged pass leaves tasks.md unchanged, so trailing cycles are safe no-ops. Verified against the engine with a stubbed dispatch: the loop runs 3 cycles now (converge x3, implement x4), versus 0 loop iterations before.
Minimum version. Raised requires.speckit_version to >=0.11.2 (the release that introduced speckit.converge) in both workflow.yml and the catalog entry; >=0.8.5 advertised a range that could not reach the convergence step.
README usage. All examples now pass inputs via --input key=value, matching specify workflow run <source> -i key=value. Also corrected the SDD expansion to "Spec-Driven Development" and removed the CHANGELOG trailing-whitespace hard break.
Catalog entry now points at .../v1.1.0/workflow.yml (verified fetchable, HTTP 200) with speckit_version >=0.11.2. specify workflow info validates clean.
Thank you!